/* Mobile-first: base 320px+, improvements for tablet and desktop with min-width. */
:root {
  --brand: #0f766e;
  --accent: #f59e0b;
  --ink: #162c2a;
  --muted: #64736f;
  --paper: #faf9f6;
  --nav-height: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: calc(var(--nav-height) + var(--safe-bottom)); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary, a.button { touch-action: manipulation; }
button { cursor: pointer; min-height: 44px; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 48px; font-size: 16px;
  border: 1px solid #d5ded9; background: white; border-radius: 9px; padding: 12px; color: var(--ink); scroll-margin-block: 100px;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #8cc9b9; outline-offset: 3px;
}
label { display: block; font-size: .88rem; font-weight: 600; }
label input, label textarea, label select { margin-top: 7px; }
textarea { resize: vertical; }
summary { min-height: 48px; padding: 14px 0; cursor: pointer; font-size: .88rem; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 8vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; margin-bottom: 20px; }
h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); letter-spacing: -.035em; margin-bottom: 10px; }
h3 { font-size: 1rem; line-height: 1.4; }
.wrap { max-width: 1240px; margin: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 14px; background: white; border: 2px solid var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.announcement { text-align: center; color: white; background: var(--brand); padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; font-size: .7rem; line-height: 1.5; }
.header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 76px; padding-block: max(12px, env(safe-area-inset-top, 0px)) 12px; border-bottom: 1px solid #e4e8e1; background: var(--paper);
}
.logo { min-width: 0; font-size: 1.55rem; font-weight: 850; letter-spacing: -.07em; line-height: 1.2; overflow-wrap: anywhere; }
.logo span { display: block; font-size: .52rem; letter-spacing: .12em; font-weight: 600; margin-top: 5px; }
.logo img { display: block; height: 28px; max-width: 110px; object-fit: contain; margin-bottom: 5px; }
.header nav { display: none; }
.cart-toggle { flex-shrink: 0; border: 1px solid #d8dfd8; background: transparent; border-radius: 25px; padding: 10px 12px; font-size: .78rem; }
.cart-toggle span { display: inline-grid; place-items: center; margin-left: 6px; min-width: 23px; height: 23px; border-radius: 50%; background: var(--brand); color: white; font-size: .75rem; }
.mobile-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: calc(var(--nav-height) + var(--safe-bottom)); padding: 4px 8px calc(4px + var(--safe-bottom));
  background: var(--paper); border-top: 1px solid #d9e3da; box-shadow: 0 -4px 20px #16362a09;
}
.mobile-nav a, .mobile-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 0; min-height: 56px; padding: 5px 2px; font-size: .68rem; font-weight: 600; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); text-decoration: none;
}
.mobile-nav [aria-current=page] { background: #e4efe6; color: var(--brand); }
.mobile-nav b { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 20px; padding-inline: 3px; background: var(--brand); color: white; font-size: .6rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px 0 38px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { max-width: 430px; line-height: 1.7; color: var(--muted); margin-bottom: 22px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; background: var(--brand);
  color: white; border: 0; border-radius: 10px; padding: 14px 18px; font-weight: 650; font-size: .9rem; text-decoration: none;
}
.button.secondary { border: 1px solid #bdcdc6; color: var(--brand); background: transparent; }
.button[aria-disabled=true] { opacity: .45; pointer-events: none; }
.full { width: 100%; margin-top: 14px; }
.hero-note { display: block; font-size: .74rem; color: var(--muted); margin-top: 17px; }
.eyebrow { font-size: .65rem; font-weight: 750; letter-spacing: .13em; color: var(--brand); display: block; margin-bottom: 14px; }
.hero-art { position: relative; overflow: hidden; background: #e0e9df; border-radius: 20px; min-height: 240px; box-shadow: inset 0 0 80px #c4d7c6; }
.art-label { position: absolute; top: 24px; left: 24px; color: #527361; font-size: .8rem; font-weight: 800; letter-spacing: .17em; }
.art-label small { font-size: .5rem; }
.display-piece { position: absolute; background: linear-gradient(145deg,#f8f4e8,#dfd6bd); box-shadow: 15px 20px 0 #38584533,0 20px 35px #37503825; transform: skewY(-9deg); border: 1px solid #efe8d7; border-radius: 10px; }
.piece-one { width: 36%; height: 70px; left: 8%; bottom: 45px; border-top: 20px solid #fffaf0; }
.piece-two { width: 34%; height: 90px; left: 31%; bottom: 70px; border-top: 22px solid #fffaf0; }
.piece-three { width: 30%; height: 100px; left: 56%; bottom: 100px; border-top: 23px solid #fffaf0; }
.art-tag { position: absolute; bottom: 12px; right: 15px; background: #fff9; padding: 8px 12px; border-radius: 20px; font-size: .7rem; color: #496354; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin: 20px 0; }
.section-heading > div { min-width: 0; }
.section-heading a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; color: var(--brand); }
.collection-strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 2px 18px; margin-bottom: 22px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.collection-card { min-width: 0; flex: 0 0 80%; scroll-snap-align: start; background: #e9ece3; border-radius: 14px; padding: 22px; min-height: 145px; position: relative; overflow: hidden; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .22; }
.collection-card strong, .collection-card span { position: relative; display: block; overflow-wrap: anywhere; }
.collection-card span { font-size: .8rem; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.product-card { min-width: 0; }
.product-image { position: relative; display: block; background: #edf0e9; border-radius: 13px; overflow: hidden; margin-bottom: 12px; }
.product-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.product-image .badge { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); }
.product-card h3 { margin-bottom: 5px; }
.product-card h3 a { display: flex; align-items: center; min-height: 44px; font-size: .9rem; }
.product-card .price { font-size: 1rem; margin: 8px 0 0; overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 20px; background: #e1efdf; color: #355f3f; padding: 6px 8px; font-size: .6rem; font-weight: 600; }
.muted { color: var(--muted); line-height: 1.7; }
.fine { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.price { font-size: 1.8rem; font-weight: 750; letter-spacing: -.03em; margin: 22px 0; }
.price del { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.cta { margin: 45px 0 28px; display: flex; flex-direction: column; align-items: start; gap: 24px; background: #e9eee4; border-radius: 20px; padding: 24px; }
.cta p { margin: 0; color: var(--muted); line-height: 1.7; }
.cta .button { width: 100%; }
.footer { display: flex; flex-direction: column; align-items: start; gap: 20px; border-top: 1px solid #e2e7df; padding-block: 26px; margin-top: 35px; }
.footer p, .footer a { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.7; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.catalog-title { padding: 28px 0 14px; }
.catalog-title h1 { font-size: 2.15rem; }
.filters { display: grid; gap: 8px; margin-bottom: 22px; }
.search-row { display: flex; align-items: center; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.search-row button { flex-shrink: 0; }
.filter-options { display: grid; gap: 14px; padding: 4px 0 14px; }
.filter-options select { margin-top: 7px; }
#filter-details { border-bottom: 1px solid #dce4d9; }
#filter-count { margin-left: 10px; font-size: .75rem; }
.empty { text-align: center; padding: 45px 14px; grid-column: 1/-1; }
.pagination { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 25px; }
.text-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; min-width: 44px; background: none; border: 0; color: var(--brand); padding: 10px; font-size: .85rem; text-decoration: none; }
.breadcrumbs { font-size: .8rem; margin: 18px 0; color: var(--muted); overflow-wrap: anywhere; line-height: 1.8; }
.breadcrumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 35px; }
.gallery { min-width: 0; }
.gallery > img { width: 100%; aspect-ratio: 1; object-fit: contain; max-height: 440px; background: #e8eee4; border-radius: 18px; }
.thumbnails { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; scroll-snap-type: x mandatory; }
.thumb { flex-shrink: 0; border: 2px solid transparent; background: transparent; padding: 0; border-radius: 10px; scroll-snap-align: start; }
.thumb[aria-pressed=true] { border-color: var(--brand); }
.thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.product-copy { min-width: 0; }
.product-copy h1 { font-size: 2.1rem; }
.product-copy > label { margin-top: 18px; }
.quantity-stepper { display: grid; grid-template-columns: 48px 72px 48px; gap: 8px; margin-top: 8px; align-items: center; }
.quantity-stepper button { background: white; border: 1px solid #d5ded9; border-radius: 9px; min-width: 48px; height: 48px; font-size: 1.2rem; color: var(--brand); }
.quantity-stepper input { text-align: center; appearance: textfield; margin: 0; padding-inline: 4px; }
.quantity-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-options { margin-top: 18px; border-top: 1px solid #e2e8df; }
.product-options label { margin-bottom: 10px; }
.product-description { line-height: 1.8; font-size: .95rem; margin-block: 12px; }
body:has(.product-action-dock) { padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 86px); }
.product-action-dock {
  position: fixed; inset-inline: 0; bottom: calc(var(--nav-height) + var(--safe-bottom)); z-index: 29;
  display: flex; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 1px solid #d9e3da; min-height: 86px;
}
.product-action-dock > div { min-width: 0; flex: 1; }
.product-action-dock small { display: block; font-size: .65rem; color: var(--muted); margin-bottom: 4px; }
.product-action-dock strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.product-action-dock .button { flex: 1.1; min-width: 0; font-size: .84rem; padding-inline: 10px; text-align: center; }
.card { background: white; border: 1px solid #e0e6de; border-radius: 16px; padding: 20px; min-width: 0; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0; }
.checkout h1 { font-size: 2.2rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--brand); font-size: .85rem; margin-bottom: 12px; }
.checkout-review { border: 1px solid #dce4d9; border-radius: 12px; padding-inline: 14px; }
.checkout-review summary { line-height: 1.7; }
#checkout-total-preview { display: inline-block; color: var(--brand); margin-left: 8px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; position: relative; }
.span-2 { grid-column: 1; }
.honeypot { position: absolute; left: -10000px; height: 1px; width: 1px; overflow: hidden; }
.checkout-submit { position: sticky; bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px); background: white; padding: 8px 0; border-radius: 10px; }
.checkout-submit .button { margin: 0; }
.checkout-error { color: #a83729; padding: 14px; background: #fff0ec; border-radius: 9px; margin: 0; font-size: .9rem; line-height: 1.7; }
.confirmation { max-width: 700px; margin: 28px auto; }
.confirmation h1 { font-size: 2.1rem; }
.confirmation .button { text-align: center; }
.cart-dialog {
  position: fixed; inset: 0; margin: 0; height: 100dvh; max-height: 100dvh; width: 100%; max-width: 100%;
  border: 0; padding: 0; color: var(--ink); background: var(--paper); overflow: hidden; height: var(--viewport-height, 100dvh);
}
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog::backdrop { background: #142e2955; }
.cart-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: max(16px, env(safe-area-inset-top, 0px)) 20px 12px; border-bottom: 1px solid #e1e8df; }
.cart-head h2 { margin: 0; }
#cart-items { flex: 1; overflow-y: auto; overscroll-behavior-y: contain; padding-inline: 20px; min-height: 0; }
.cart-footer { flex-shrink: 0; background: white; border-top: 1px solid #e1e8df; padding: 12px 20px calc(12px + var(--safe-bottom)); }
.cart-footer .summary-total { padding: 0; font-size: 1.05rem; }
.cart-footer .fine { margin: 10px 0 0; text-align: center; }
#cart-explore { display: none; width: 100%; }
.cart-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid #e4e8e1; }
.cart-row > img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cart-row strong { font-size: .95rem; display: block; overflow-wrap: anywhere; }
.cart-row .fine { margin: 5px 0; }
.cart-row textarea { font-size: 16px; min-height: 72px; margin-top: 8px; }
.cart-row .quantity-stepper { grid-template-columns: 44px minmax(48px, 64px) 44px; gap: 6px; }
.cart-row .quantity-stepper button { min-width: 44px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e4e8e1; font-size: .88rem; }
.summary-row > span { min-width: 0; overflow-wrap: anywhere; }
.summary-row > strong { flex-shrink: 0; }
.summary-total { font-size: 1.1rem; font-weight: 700; padding: 20px 0; }
#toast { position: fixed; bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px); left: 16px; right: 16px; background: #173c34; color: white; border-radius: 10px; padding: 14px 18px; box-shadow: 0 5px 30px #0002; display: none; z-index: 40; overflow-wrap: anywhere; }
#toast.visible { display: block; }
body:has(.product-action-dock) #toast { bottom: calc(var(--nav-height) + var(--safe-bottom) + 98px); }
.keyboard-open .mobile-nav, .keyboard-open .product-action-dock { display: none; }
.keyboard-open .checkout-submit { bottom: 8px; }

@media (min-width: 480px) {
  .wrap { padding-inline: 24px; }
  .product-grid { gap: 26px 18px; }
  .collection-card { flex-basis: 62%; }
  .hero-art { min-height: 310px; }
}
@media (min-width: 768px) {
  body, body:has(.product-action-dock) { padding-bottom: 0; }
  .mobile-nav, .product-action-dock { display: none; }
  .wrap { padding-inline: 30px; }
  .header { min-height: 96px; gap: 20px; }
  .header nav { display: flex; gap: 20px; font-size: .9rem; font-weight: 500; }
  .header nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .logo { font-size: 1.7rem; }
  .logo span { font-size: .6rem; }
  .logo img { display: inline-block; vertical-align: middle; height: 38px; max-width: 100px; margin: 0 10px 0 0; }
  .cart-toggle { font-size: .9rem; padding-inline: 16px; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 50px 0 60px; }
  .hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.5rem); }
  .hero-art { min-height: 365px; }
  .piece-one { height: 110px; bottom: 70px; border-top-width: 28px; }
  .piece-two { height: 140px; bottom: 110px; border-top-width: 30px; }
  .piece-three { height: 155px; bottom: 170px; border-top-width: 28px; }
  .art-label { top: 35px; left: 35px; }
  .art-tag { bottom: 25px; right: 25px; }
  h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
  .section-heading { align-items: end; }
  .section-heading a { font-size: .85rem; }
  .collection-card { flex: 1 0 230px; padding: 24px; min-height: 155px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
  .product-card h3 a { font-size: 1.05rem; }
  .badge { font-size: .65rem; }
  .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 38px; margin-top: 65px; }
  .cta .button { width: auto; flex-shrink: 0; }
  .footer { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 30px; margin-top: 50px; }
  .catalog-title { padding: 45px 0 22px; }
  .catalog-title h1 { font-size: 3rem; }
  .filter-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  #filter-details { border: 0; }
  #filter-details > summary { display: none; }
  .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 35px; margin-bottom: 60px; }
  .product-copy h1 { font-size: 2.6rem; }
  .gallery > img { max-height: none; }
  .thumb img { width: 75px; height: 75px; }
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 35px; padding: 45px 0; }
  .checkout h1 { font-size: 2.8rem; }
  .checkout-review { border: 0; padding: 0; }
  .checkout-review > summary { display: none; }
  .checkout-submit { position: static; }
  .card { padding: 28px; }
  .confirmation { margin-block: 55px; }
  .confirmation h1 { font-size: 2.5rem; }
  .cart-dialog { inset: 0 0 0 auto; width: 450px; max-width: 100vw; box-shadow: -10px 0 50px #0002; }
  #toast { bottom: 25px; left: 50%; right: auto; transform: translateX(-50%); max-width: 600px; }
  body:has(.product-action-dock) #toast { bottom: 25px; }
}
@media (min-width: 1024px) {
  .hero { gap: 55px; padding-block: 60px 70px; }
  .hero-art { min-height: 420px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(0, 1fr) 2fr; align-items: end; gap: 18px; }
  .filter-options { padding: 0; }
  .product-detail, .checkout { gap: 65px; }
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .span-2 { grid-column: 1/-1; }
}
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  .button:hover { filter: brightness(.94); text-decoration: none; }
  .product-image img { transition: transform .2s; }
  .product-image:hover img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.logo img.tienda-wordmark{display:block;width:140px;max-width:140px;height:auto;margin:0}
