/* Ejemplo de ropa de mujer — diseño boutique: blanco cálido, serifa editorial, grilla de 2 columnas y ficha de producto.
   Autónomo: no comparte archivos con otros catálogos. */

/* ---------- Fuentes ---------- */
@font-face { font-family: "Cormorant"; src: url("fuentes/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fuentes/cormorant-italica.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fuentes/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #fbfaf8;
  --paper: #ffffff;
  --sand: #f3efea;
  --ink: #1f1c1a;
  --ink-2: #47423d;
  --muted: #6f6861;
  --line: #e7e1da;
  --camel: #a8835c;
  --camel-deep: #8a6743;
  --wa: #128c4a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --tab-h: 62px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; line-height: 1.08; text-wrap: balance; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid transparent; font-size: 15px; font-weight: 600; letter-spacing: .04em; text-decoration: none; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--ink); background: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--dark:hover { background: var(--camel-deep); }
  .btn--line:hover { background: var(--ink); color: #fff; }
  .btn--wa:hover { background: #0e7a3f; }
}

/* ---------- Avisos ---------- */
.announce { background: var(--ink); color: #f1ece5; text-align: center; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.announce p { padding: 8px 16px; }
.announce span { margin: 0 6px; color: var(--camel); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 70px; padding: 0 12px; }
.top-left, .top-right { display: flex; align-items: center; gap: 4px; }
.top-right { justify-content: flex-end; }
.top-icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: none; }
.top-icon--cart { color: var(--camel); }
.top-icon--cart .ic { width: 26px; height: 26px; }
.top-icon--wa { display: none; }
.nav { display: none; gap: 28px; margin-left: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.nav a { padding: 6px 0; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 180ms ease; }
@media (hover: hover) { .nav a:hover { border-color: var(--ink); } }

.logo { display: inline-grid; justify-items: center; color: var(--ink); text-decoration: none; line-height: 1; }
.logo-name { font: 500 31px/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.logo-sub { margin-top: 3px; font-size: 7.5px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em; color: var(--ink-2); }

.cart-count { position: absolute; top: 4px; right: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.bump { animation: bump 380ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--paper); }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; display: grid; opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s 500ms; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; }
.hero-media { position: relative; overflow: hidden; background: var(--sand); aspect-ratio: 10 / 9; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-photo { animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-media.is-link { cursor: pointer; }
.hero-photo--2 { display: none; }
.hero-caption { display: grid; justify-items: center; gap: 6px; padding: 20px 20px 54px; text-align: center; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--camel-deep); }
.hero h1, .hero h2 { font-size: 36px; font-weight: 500; }
.hero h1 em, .hero h2 em { font-style: italic; }
.hero-text { max-width: 30em; font-size: 15px; color: var(--muted); }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.hero-cta .ic { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
@media (hover: hover) { .hero-cta:hover .ic { transform: translateX(4px); } }

.hero-nav { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 4px; }
.hero-pause { min-height: 40px; margin-right: 10px; padding: 0 6px; border: 0; background: none; font-size: 13px; color: var(--ink-2); }
.hero-dots { display: flex; }
.hero-dots button { display: grid; place-items: center; width: 34px; height: 40px; padding: 0; border: 0; background: none; }
.hero-dots span { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; transition: background 200ms ease, transform 200ms ease; }
.hero-dots [aria-pressed="true"] span { background: var(--ink); transform: scale(1.15); }

/* ---------- Accesos rápidos ---------- */
.quick { border-block: 1px solid var(--line); background: var(--paper); }
.quick ul { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 760px; margin-inline: auto; }
.quick a, .quick button { display: grid; justify-items: center; align-content: start; gap: 6px; width: 100%; padding: 16px 4px 14px; border: 0; background: none; text-align: center; line-height: 1.25; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); text-decoration: none; }
.quick .ic { width: 27px; height: 27px; stroke-width: 1.25; color: var(--ink); }
@media (hover: hover) { .quick a:hover .ic, .quick button:hover .ic { color: var(--camel-deep); } }

/* ---------- Encabezados de sección ---------- */
.sec-head { display: grid; justify-items: center; gap: 8px; margin-bottom: 26px; text-align: center; }
.sec-head h2 { font-size: 38px; }
.sec-lead { max-width: 34em; font-size: 15px; color: var(--muted); }

/* ---------- Productos ---------- */
.products { padding: 54px 0 70px; }
.chips { display: flex; gap: 8px; margin: 0 -20px 14px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips[hidden] { display: none; }
.chip { flex: none; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.toolbar[hidden] { display: none; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .size-filter select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 15px; }
.search input { padding: 0 12px 0 42px; }
.size-filter select { padding: 0 32px 0 12px; }
.search input:focus, .size-filter select:focus { border-color: var(--ink); outline: none; }
.count { margin: 14px 0 18px; font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; }
.card-img { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: opacity 400ms ease, transform 700ms var(--ease); }
.card-img img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-img img:first-child { transform: scale(1.03); }
  .card:hover .card-img img + img { opacity: 1; }
}
.card-tag { position: absolute; left: 8px; top: 8px; padding: 4px 8px; background: rgb(255 255 255 / .92); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.card-price { display: grid; gap: 1px; }
.card-price b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-price small { font-size: 12.5px; color: var(--muted); }
.card-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-colors i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(31 28 26 / .22); }
.card-colors small { font-size: 12px; color: var(--muted); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Llegar a un producto (banner, lista de precios o link compartido): la tarjeta se ilumina un momento */
.is-target { animation: target-flash 1.8s ease-out; }
@keyframes target-flash { 0%, 30% { box-shadow: 0 0 0 4px rgb(168 131 92 / .45); } 100% { box-shadow: 0 0 0 4px rgb(168 131 92 / 0); } }

/* ---------- Ficha de producto ---------- */
.ficha { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.ficha[open] { animation: ficha-in 320ms var(--ease); }
.ficha::backdrop { background: rgb(20 17 15 / .55); }
@keyframes ficha-in { from { transform: translateY(28px); opacity: 0; } }
/* Cerrar: botón oscuro con la palabra, fácil de encontrar (pedido pensando en gente mayor) */
.close-btn.ficha-close { position: fixed; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; width: auto; height: 48px; padding: 0 18px 0 14px; border: 2px solid #fff; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.close-btn.ficha-close .ic { width: 22px; height: 22px; stroke-width: 2.4; }
@media (hover: hover) { .close-btn.ficha-close:hover { background: var(--camel-deep); } }
.ficha-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

.close-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.close-btn:focus-visible { outline-offset: 0; }

.product { display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.product-img > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.photo-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; }
.photo-dots button { display: grid; place-items: center; width: 30px; height: 40px; padding: 0; border: 0; background: none; }
.photo-dots span { width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; background: rgb(0 0 0 / .25); box-shadow: 0 0 3px rgb(0 0 0 / .35); }
.photo-dots [aria-pressed="true"] span { background: #fff; }
.product-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 0; }
.product h3 { font: 500 32px/1.1 var(--serif); }
.product-desc { margin-top: -8px; font-size: 15px; color: var(--muted); }

/* Ficha: encabezado e información */
.ficha-eyebrow { margin-bottom: -8px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ficha-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.ficha-price b { font-size: 32px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.ficha-price small { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ficha-curva { margin-top: -8px; font-size: 14px; color: var(--muted); }
.ficha-info { border-top: 1px solid var(--line); }
.ficha-info section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ficha-info h4 { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.ficha-info p { font-size: 14.5px; color: var(--ink-2); }

/* Curva y colores */
.text-link { padding: 0; border: 0; background: none; font-weight: 600; color: var(--camel-deep); text-decoration: underline; text-underline-offset: 3px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.swatch { width: 40px; height: 40px; padding: 0; border: 1px solid rgb(31 28 26 / .25); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper); transition: box-shadow 160ms ease; }
.swatch[aria-pressed="true"] { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.size-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.size { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (hover: hover) { .size:hover { border-color: var(--ink); } }
.curva-box { display: grid; gap: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.curva-head { font-size: 15px; color: var(--ink-2); }
.curva-head b { color: var(--ink); }
.curva-talle { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; }
.curva-talle p { display: grid; font-size: 15px; line-height: 1.2; }
.curva-talle small { font-size: 12.5px; color: var(--muted); }
.curva-talle .swatches { gap: 6px; margin-top: 0; }
.curva-talle .swatch { flex: none; width: 38px; height: 38px; }
.curva-talle .swatches--2filas { display: grid; grid-template-columns: repeat(var(--cols), max-content); }
.curva-talle .swatches--grupos, .extras .swatches--grupos { display: grid; gap: 6px; }
.curva-talle:has(.swatches--grupos) { grid-template-columns: 1fr; }
.curva-talle:has(.swatches--grupos) > p { display: flex; gap: 8px; align-items: baseline; }
.swatch-grupo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.extras .swatch-grupo .swatch { flex: none; width: 38px; height: 38px; }
.swatch-grupo span { flex: none; width: 58px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.curva-talle + .curva-talle { padding-top: 10px; border-top: 1px solid var(--line); }
.curva-all { display: grid; gap: 8px; }
.curva-all p { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 15px; line-height: 1.2; }
.curva-all small { font-size: 13.5px; color: var(--muted); }
.curva-all .swatches { gap: 6px; margin-top: 0; }
.curva-mix { justify-self: start; font-size: 14px; }
.product-price { font-size: 30px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-detail { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.product-actions { display: flex; gap: 10px; }
.product-actions .add { flex: 1; min-height: 52px; padding: 0 14px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.extras { border-top: 1px solid var(--line); padding-top: 10px; }
.extras summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.extras[open] summary::after { content: "−"; }
.extras-body { display: grid; gap: 10px; padding-top: 4px; }
.extras-note, .extras-label { font-size: 14px; color: var(--muted); }
.extras-label small { font-size: 14px; font-weight: 600; color: var(--ink); }
.extras .swatches { margin-top: 0; }
.extras .size-row.is-missing .size { border-color: var(--camel); animation: nudge 360ms var(--ease); }
.add-loose { width: 100%; }
.add-hint:empty { display: none; }
.add-hint { font-size: 14px; font-weight: 600; color: var(--camel-deep); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Lista de precios ---------- */
.prices { padding: 60px 0; background: var(--paper); border-top: 1px solid var(--line); }
.price-groups { display: grid; gap: 30px; max-width: 760px; margin-inline: auto; }
.price-item h3 { padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.price-item ul { display: grid; margin-top: 4px; }
.price-item li + li { border-top: 1px solid var(--line); }
.price-link { display: flex; align-items: baseline; gap: 10px; padding: 12px 4px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.price-link span { font-size: 15.5px; font-weight: 500; }
.price-link small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.price-link i { flex: 1; min-width: 16px; }
.price-link b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .price-link:hover { background: var(--bg); } }
.price-link:active { background: var(--sand); }

/* ---------- Cómo comprar ---------- */
.steps { padding: 60px 0; border-top: 1px solid var(--line); }
.steps-list { display: grid; gap: 26px; max-width: 980px; margin-inline: auto; }
.steps-list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps-list b { grid-row: span 2; font: 500 30px/1 var(--serif); color: var(--camel); }
.steps-list h3 { font-size: 16px; font-weight: 600; }
.steps-list p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { padding: 64px 0; background: var(--sand); text-align: center; }
.contact-in { display: grid; justify-items: center; gap: 10px; }
.contact h2 { font-size: 38px; }
.contact p:not(.kicker) { margin-bottom: 10px; color: var(--ink-2); }
/* Botón de consultas: tarjeta oscura con el ícono de WhatsApp, el texto y el número */
.wa-cta { display: flex; align-items: center; gap: 12px; width: min(100%, 380px); margin-top: 4px; padding: 12px 18px 12px 12px; background: var(--ink); color: #fff; text-align: left; text-decoration: none; transition: background 200ms ease; }
.wa-cta-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #25d366; }
.wa-cta-icon .ic { width: 26px; height: 26px; }
.wa-cta-text { display: grid; flex: 1; gap: 2px; line-height: 1.2; }
.wa-cta-text b { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wa-cta-text small { font-size: 16px; font-weight: 500; white-space: nowrap; color: #e6ddd2; font-variant-numeric: tabular-nums; }
.wa-cta-arrow { flex: none; width: 20px; height: 20px; color: var(--camel); transition: transform 200ms var(--ease); }
@media (hover: hover) { .wa-cta:hover { background: var(--camel-deep); } .wa-cta:hover .wa-cta-arrow { color: #fff; transform: translateX(4px); } }

/* ---------- Pie ---------- */
.foot { padding-top: 48px; background: var(--ink); color: #d9d2c9; text-align: center; }
.foot-in { display: grid; justify-items: center; gap: 14px; }
.logo--foot { color: #fff; }
.logo--foot .logo-sub { color: #cfc6bb; }
.foot-in > p { max-width: 30em; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.foot-links a { display: inline-block; padding: 8px 0; text-decoration: none; }
@media (hover: hover) { .foot a:hover { color: #fff; } }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 30px; padding: 18px 0 calc(22px + var(--tab-h)); border-top: 1px solid rgb(255 255 255 / .12); font-size: 12.5px; color: #a99f94; }
.foot-bottom a { text-decoration: none; }

/* ---------- Barra inferior (celular) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgb(255 255 255 / .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 0; border: 0; background: none; font-size: 10.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.tabbar .ic { width: 23px; height: 23px; color: var(--ink); }
.tabbar .cart-count { top: 6px; right: calc(50% - 22px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 24; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .22); transition: opacity 200ms ease, visibility 0s, transform 180ms ease; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (hover: hover) { .wa-float:hover { transform: translateY(-3px); } }

/* ---------- Menú lateral ---------- */
.menu { width: min(340px, 86vw); max-width: 100%; height: 100%; max-height: 100%; margin: 0 auto 0 0; padding: 0 22px 28px; border: 0; background: var(--paper); color: var(--ink); }
.menu[open] { animation: menu-in 280ms var(--ease); }
.menu::backdrop { background: rgb(20 17 15 / .5); }
@keyframes menu-in { from { transform: translateX(-30px); opacity: 0; } }
.menu-head { display: flex; justify-content: space-between; align-items: center; min-height: 70px; margin: 0 -8px 10px 0; border-bottom: 1px solid var(--line); }
.menu-head .logo-name { font-size: 26px; }
.menu-label { margin: 18px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--camel-deep); }
.menu-cats button, .menu-links a { display: flex; justify-content: space-between; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: 500 22px/1.1 var(--serif); text-align: left; text-decoration: none; }
.menu-cats small { font: 400 13px/1.6 var(--font); color: var(--muted); }
.menu-wa { margin-top: 26px; }

/* ---------- Pedido ---------- */
.cart { width: min(440px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.cart[open] { display: flex; flex-direction: column; animation: cart-in 300ms var(--ease); }
.cart::backdrop { background: rgb(20 17 15 / .55); }
@keyframes cart-in { from { transform: translateX(40px); opacity: 0; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 30px; }
.cart-body { flex: 1; overflow-y: auto; padding: 4px 22px 20px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { font-size: 16px; font-weight: 600; }
.cart-item small { font-size: 14px; color: var(--muted); }
.cart-item-total { font-variant-numeric: tabular-nums; }
.cart-group-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--camel-deep) !important; }
.cart-parts { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 8px; }
.cart-part { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-part small { display: block; font-size: 14px; color: var(--muted); }
.cart-part .cart-part-title { color: var(--ink-2); font-weight: 600; }
.cart-part-head { margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cart-part .qty { flex: none; }
.cart-part .qty button { width: 38px; height: 38px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.cart-extra { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.preview summary { font-size: 14px; font-weight: 600; color: var(--camel-deep); cursor: pointer; }
.wa-chat { margin-top: 10px; padding: 12px 16px 12px 18px; background: #efeae2; border-radius: 8px; }
.wa-bubble { position: relative; margin: 0 0 0 auto; padding: 8px 10px; background: #d9fdd3; color: #111b21; border-radius: 8px 0 8px 8px; box-shadow: 0 1px .5px rgb(11 20 26 / .13); font: 14px/1.45 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-bubble::after { content: ""; position: absolute; top: 0; right: -8px; border-top: 10px solid #d9fdd3; border-right: 8px solid transparent; }
.cart-foot { display: grid; gap: 12px; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ship-note { font-size: 14px; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total span { font-weight: 600; }
.cart-total b { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.link-btn { min-height: 44px; padding: 4px 8px; border: 0; background: none; font-size: 14px; color: var(--muted); text-decoration: underline; }

/* ---------- Aviso ---------- */
.toast { position: fixed; left: 16px; right: 84px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 50; padding: 12px 16px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 220ms ease, transform 260ms var(--ease); }
.toast.show { opacity: 1; transform: none; }

/* ---------- Tablet y computadora ---------- */
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .steps-list { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
  .price-groups { gap: 36px; }
}
@media (min-width: 960px) {
  html { scroll-padding-top: 84px; }
  .top-in { min-height: 84px; padding: 0 32px; }
  .top-left .top-icon { display: none; }
  .nav { display: flex; margin-left: 0; }
  .top-icon--wa { display: grid; color: var(--wa); }
  .logo-name { font-size: 38px; }
  .logo-sub { font-size: 8.5px; }
  .tabbar { display: none; }
  .wa-float { bottom: 24px; right: 24px; }
  .toast { left: 50%; right: auto; bottom: 28px; transform: translate(-50%, 12px); }
  .toast.show { transform: translate(-50%, 0); }
  .foot-bottom { padding-bottom: 26px; }

  /* Portada: foto a la izquierda y texto al centro de la derecha */
  .hero-slide { grid-template-columns: 1.15fr 1fr; }
  .hero-media { aspect-ratio: auto; height: min(78vh, 720px); }
  .hero-caption { align-content: center; padding: 40px 48px 80px; }
  .hero h1, .hero h2 { font-size: 64px; }
  .hero-text { font-size: 16px; }
  .hero-nav { left: 53.5%; bottom: 40px; }

  .quick a, .quick button { font-size: 12px; padding: 20px 4px 18px; }
  .products { padding: 80px 0 90px; }
  .sec-head h2, .contact h2 { font-size: 50px; }
  .chips { justify-content: center; margin: 0 0 18px; padding: 0; flex-wrap: wrap; overflow: visible; }
  .toolbar { max-width: 560px; margin-inline: auto; }
  .count { text-align: center; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 48px 24px; }
  .card-name { font-size: 16px; }
  .steps-list { grid-template-columns: repeat(4, 1fr); }
  .steps-list li { grid-template-columns: 1fr; }
  .steps-list b { grid-row: auto; margin-bottom: 10px; font-size: 38px; }

  /* Ficha: ventana centrada con la foto a la izquierda */
  .ficha { width: min(1040px, 100% - 64px); height: auto; max-height: calc(100vh - 64px); margin: auto; }
  .close-btn.ficha-close { position: absolute; }
  .ficha .product { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .ficha .product-img { position: sticky; top: 0; aspect-ratio: auto; height: min(calc(100vh - 64px), 780px); }
  .ficha .product-body { padding: 40px 36px 36px; }
  .ficha .product h3 { font-size: 40px; }
  .ficha .ficha-eyebrow { padding-right: 130px; }
  .ficha-body { padding-bottom: 0; }
}

/* Pantallas anchas: dos fotos verticales lado a lado, así no se recortan */
@media (min-width: 1200px) {
  .hero-media.has-2 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 100%; gap: 4px; }
  .hero-media.has-2 .hero-photo { min-height: 0; }
  .hero-media.has-2 .hero-photo--2 { display: block; }
}

@media (max-width: 370px) {
  .wa-cta { padding-right: 14px; }
  .wa-cta-icon { width: 42px; height: 42px; }
  .wa-cta-text b { letter-spacing: .1em; }
  .wa-cta-text small { font-size: 15px; }
  .logo-name { font-size: 26px; }
  .grid { gap: 26px 10px; }
  .card-name { font-size: 14px; }
  .curva-talle { grid-template-columns: 60px 1fr; gap: 4px; }
  .curva-talle .swatch { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Firma de Valgi Catálogos en el pie (igual en todos los catálogos) ---------- */
.firma { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; vertical-align: middle; }
.firma-pre { font-size: 12.5px; opacity: .9; }
.firma-mark { flex: none; width: 26px; height: 26px; }
.firma-text { display: grid; line-height: 1; text-align: left; }
.firma-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.firma-text strong i { font-style: normal; color: #5b7cff; }
.firma-text small { margin-top: 2px; font-size: 7.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #b9b9c9; }
@media (hover: hover) { .firma:hover .firma-pre { opacity: 1; text-decoration: underline; text-underline-offset: 3px; } }
