/* NOMI. Mobile first: la base es el celular; los @media (min-width) añaden lo necesario para pantallas mayores. */
:root {
  --paper: #FDFCF1; --cream: #F9F9DB; --blush: #F3DDD1; --pink: #F3BCBB; --coral: #EC9084; --sand: #F7F5F2;
  --magenta: #D11C65; --magenta-d: #AE1553; --ocre: #D4953E; --rust: #BC4C24; --ink: #211915; --muted: #6B5D54; --line: #E6DCC8;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Raleway', 'Segoe UI', Arial, sans-serif;
  --gutter: 16px; --r: 14px; --safe: env(safe-area-inset-bottom, 0px); --head: 52px;
  --content-width: 1388px; --section-space: 40px; --layout-gap: 24px; --heading-gap: 24px;
  --section-title-size: clamp(2rem, 3.2vw, 3.2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; font-feature-settings: 'lnum' 1; font-variant-numeric: lining-nums; overflow-x: clip; }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
button, input, select { font: inherit; color: inherit; }
input, select { font-size: 16px; } /* Evita el zoom automático de iOS al enfocar. */
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
#main:focus { outline: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); text-decoration: none; display: block; }
.link { font-weight: 600; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.lede { font-size: 1.02rem; color: var(--muted); max-width: 52ch; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .94rem; text-decoration: none; text-align: center; transition: background .18s, color .18s, border-color .18s, transform .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:disabled { background: #D9CFC6; color: #6B5D54; cursor: not-allowed; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .88rem; }
.btn-wide { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; font-size: 1.5rem; line-height: 1; flex: none; }

/* Fondos y óvalo. Las fotos se mezclan con el fondo, así que cada producto se combina con un tono que no comparta su color. */
/* Versiones suaves de la paleta: sutiles, pero distinguibles del fondo de la página. */
.tint-pink { background: #F8DCD9; } .tint-blush { background: #F5E5DC; } .tint-coral { background: #F6D2C9; } .tint-ocre { background: #F3E0C2; } .tint-cream { background: #F4F2CD; }
.oval { display: block; border-radius: 50% / 44%; overflow: hidden; isolation: isolate; }
.oval img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 252, 241, .97); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; max-width: 1500px; margin: auto; min-height: var(--head); }
.logo { flex: none; display: flex; align-items: center; min-height: 44px; margin-right: auto; padding-left: 2px; }
.logo img { height: 24px; width: auto; mix-blend-mode: multiply; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.site-search { display: none; order: 5; flex: 1 0 100%; padding: 2px 8px 8px; }
.site-search.open { display: block; }
.site-search input { width: 100%; height: 44px; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.header-actions { display: flex; align-items: center; gap: 0; flex: none; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; display: none; place-items: center; border-radius: 9px; background: var(--magenta); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; }
.cart-count.on { display: grid; }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: 8px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: 0 22px 40px -28px rgba(33, 25, 21, .4); max-height: calc(100dvh - 130px); overflow: auto; }
.nav.open { display: flex; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 50px; width: 100%; padding: 0; background: none; border: 0; text-decoration: none; font-weight: 600; font-size: 1.02rem; border-radius: 8px; white-space: nowrap; }
.nav-link.active { color: var(--magenta); }
.nav-quiz { color: var(--magenta); font-weight: 700; }
.chev { width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 8px 0 18px; }
.mega[hidden] { display: none; }
.mega h4 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.mega a { display: flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--muted); font-size: .94rem; line-height: 1.2; }

.nav-link .cart-count { position: static; }

/* Secciones de portada: fondo completo, contenedor compartido y espacio interior. */
.home-section { margin: 0; padding: var(--section-space) var(--gutter); }
.section-inner { width: 100%; max-width: var(--content-width); margin-inline: auto; }
.hero-inner, .quiz-inner { display: grid; gap: var(--layout-gap); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); margin: 10px 0 14px; }
.hero h1 em { color: var(--magenta); font-weight: 400; }
.cta-row { display: grid; gap: 10px; margin-top: 22px; }
.hero-art { display: block; width: 100%; max-width: 480px; min-width: 0; margin: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: hero-float 7s ease-in-out infinite; }
  @keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}
.section { padding: var(--section-space) var(--gutter); max-width: calc(var(--content-width) + 2 * var(--gutter)); margin: auto; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 30px; margin-bottom: var(--heading-gap); }
.sec-head h2 { font-size: var(--section-title-size); margin-top: 8px; }
.needs-section { background: #F5E5DC; }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.need { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: clamp(16px, 2vw, 28px) 12px 16px; border: 1px solid rgba(107, 93, 84, .1); border-radius: var(--r); background: var(--paper); text-decoration: none; text-align: center; transition: border-color .2s, transform .2s; }
.need-media { display: block; width: 100%; max-width: 160px; aspect-ratio: 1; margin: 0 auto 12px; }
.need-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.need strong { display: flex; align-items: center; justify-content: center; min-height: 2.6em; margin-top: auto; font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.3; }
.quiz-band { background: var(--ink); color: var(--cream); }
.quiz-band h2 { font-size: var(--section-title-size); margin: 8px 0 16px; }
.quiz-band .eyebrow { color: var(--pink); }
.quiz-band-copy > p:not(.eyebrow) { max-width: 46ch; margin-bottom: 24px; opacity: .88; }
.quiz-band .btn { width: 100%; }
.quiz-preview { display: grid; gap: 12px; }
.quiz-preview li { display: grid; grid-template-columns: 30px 60px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: var(--r); }
.quiz-preview img { width: 60px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.quiz-preview b, .quiz-preview small { display: block; }
.quiz-preview b { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; line-height: 1.25; }
.quiz-preview small { color: var(--muted); }
.num { font-family: var(--serif); font-size: 1.5rem; text-align: center; color: var(--magenta); }
.steps { display: grid; border-top: 1px solid var(--ink); }
.steps li { border-bottom: 1px solid var(--line); }
.steps a { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 0 12px; padding: 12px 0; text-decoration: none; }
.step-num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--magenta); display: block; }
.steps .step-num { grid-row: span 2; }
.steps strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.2; }
.steps small { color: var(--muted); font-size: .88rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; max-width: 100vw; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; background: none; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.brands-sec { padding-top: 0; }
.brands { display: flex; flex-wrap: wrap; gap: 0 18px; }
.brands a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }

/* Tarjetas */
.grid, .grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; background: var(--sand); border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1.1; isolation: isolate; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.badge { position: absolute; left: 8px; top: 8px; padding: 3px 10px; background: var(--magenta); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 99px; }
.badge-out { background: var(--ink); }
.card-body { padding-top: 10px; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { font-size: .64rem; }
.card-title { font-family: var(--sans); font-size: .92rem; font-weight: 500; line-height: 1.32; margin: 3px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 44px; }
.price { font-weight: 700; }
.price s { color: var(--muted); font-weight: 500; margin-right: 4px; }
.add { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; font-size: 1.3rem; line-height: 1; flex: none; transition: background .18s, color .18s; }
.add:active { background: var(--magenta); border-color: var(--magenta); color: #fff; }

/* Catálogo */
.cat-head { padding: 22px var(--gutter) 12px; max-width: 1500px; margin: auto; display: grid; gap: 6px; }
.cat-head h1 { font-size: 2.3rem; }
.quiz-nudge { display: inline-flex; flex-wrap: wrap; gap: 0 5px; align-items: center; justify-self: start; min-height: 44px; margin-top: 4px; padding: 6px 18px; background: var(--blush); border-radius: 22px; text-decoration: none; font-size: .88rem; }
.quiz-nudge b { color: var(--magenta); }
.cat { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter) 50px; max-width: 1500px; margin: auto; align-items: start; }
.results { min-width: 0; }
/* En el celular, los filtros son un panel que sube desde abajo. */
.filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88dvh; overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 22px 22px 0 0; padding: 0 20px calc(84px + var(--safe)); transform: translateY(102%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
.filters.open { transform: none; visibility: visible; }
.filters-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; background: var(--paper); padding: 12px 0 6px; }
.filters-head h2 { font-size: 1.4rem; }
.apply { position: fixed; left: 16px; right: 16px; bottom: calc(14px + var(--safe)); z-index: 3; width: auto; visibility: hidden; }
.filters.open .apply { visibility: visible; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; font-size: .95rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.toggle input, .check input { accent-color: var(--magenta); width: 20px; height: 20px; margin: 0; flex: none; }
.facet { border-bottom: 1px solid var(--line); }
.facet summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .95rem; cursor: pointer; list-style: none; }
.facet summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.facet summary::after, .acc summary::after { content: '+'; font-weight: 400; font-size: 1.25rem; }
.facet[open] summary::after, .acc[open] summary::after { content: '−'; }
.facet-list { padding-bottom: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: .95rem; cursor: pointer; }
.check span { flex: 1; }
.check small { color: var(--muted); font-size: .8rem; padding-right: 4px; }
.check.zero { opacity: .42; cursor: default; }
.range { display: block; padding-bottom: 16px; font-size: .95rem; }
.range input { width: 100%; accent-color: var(--magenta); margin-top: 8px; height: 32px; }
.toolbar { position: sticky; top: var(--header-height, var(--head)); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 0 calc(var(--gutter) * -1) 24px; padding: 14px var(--gutter); min-height: 78px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px -18px rgba(33, 25, 21, .3); }
.open-filters { flex: none; min-height: 48px; padding-inline: 20px; }
/* En las pantallas más estrechas, el conteo queda en el botón del panel y lo sigue anunciando el lector de pantalla. */
.toolbar p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); color: var(--muted); font-size: .84rem; white-space: nowrap; }
.sort { position: relative; margin-left: auto; min-width: 0; flex: 0 1 180px; }
.sort-trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--blush); font-size: .9rem; text-align: left; }
.sort-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-trigger .chev { flex: none; transition: transform .2s; }
.sort-trigger[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-2px, -2px); }
.sort-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: 224px; max-width: calc(100vw - 32px); max-height: min(320px, 60dvh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: 0 12px 32px rgba(33, 25, 21, .12); }
.sort-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: .9rem; }
.sort-option[aria-selected="true"], .sort-option:focus-visible { background: var(--blush); }
.sort-option[aria-selected="true"] { font-weight: 700; }
.sort-check { flex: none; visibility: hidden; }
.sort-option[aria-selected="true"] .sort-check { visibility: visible; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--blush); border: 0; font-size: .86rem; font-weight: 600; }
.chip-clear { min-height: 40px; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; padding: 0 8px; }
.more { text-align: center; padding-top: 30px; }
.more .btn { width: 100%; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 16px; }
.empty h3, .empty h1 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-bottom: 8px; }
.empty p, .empty h1 { margin-bottom: 18px; }

/* Ficha */
.crumbs { padding: 12px var(--gutter) 0; max-width: 1500px; margin: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 12px var(--gutter) 16px; max-width: 1500px; margin: auto; align-items: start; }
.pdp-media { background: var(--sand); border-radius: 18px; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: auto; overflow: hidden; isolation: isolate; }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 7%; }
.pdp-info > a.eyebrow { display: inline-flex; align-items: center; min-height: 44px; }
.pdp-info h1 { font-size: 1.9rem; margin: 0 0 10px; }
.price-lg { font-size: 1.35rem; }
.stock { font-size: .88rem; font-weight: 600; margin: 2px 0 14px; }
.stock.in { color: #2F6B3C; } .stock.out { color: var(--rust); }
.pdp-excerpt { color: var(--muted); margin-bottom: 18px; }
.note { font-size: .86rem; color: var(--muted); margin: 10px 0; }
/* La compra queda fija abajo mientras se lee la ficha. */
.pdp-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter) calc(8px + var(--safe)); background: var(--paper); border-top: 1px solid var(--line); }
.pdp-buy .price { flex: none; }
.pdp-buy .btn { flex: 1; min-height: 46px; padding: 0 12px; }
.has-buybar { padding-bottom: 64px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--blush); border-radius: 99px; font-size: .86rem; font-weight: 600; text-decoration: none; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { min-height: 52px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; list-style: none; }
.acc p { padding-bottom: 18px; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }

/* Quiz */
.quiz { max-width: 740px; margin: auto; padding: 24px var(--gutter) 88px; }
.quiz-progress { height: 4px; background: var(--line); margin-bottom: 24px; border-radius: 3px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--magenta); transition: width .35s ease; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.quiz-meta > span { font-size: .75rem; color: var(--muted); }
.quiz h1 { font-size: clamp(1.75rem, 7.4vw, 2.2rem); line-height: 1.14; margin: 14px 0 10px; outline: 0; text-wrap: pretty; }
.quiz-hint { color: var(--muted); font-size: .9rem; }
.options { display: grid; gap: 10px; margin-top: 24px; }
.option { position: relative; text-align: left; min-height: 68px; padding: 14px 52px 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s, transform .15s; }
.option::after { content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; line-height: 1; }
.options-multi .option::after { border-radius: 5px; }
.option[aria-pressed="true"] { background: #FCF2F6; border-color: var(--magenta); }
.option[aria-pressed="true"]::after { content: '✓'; background: var(--magenta); border-color: var(--magenta); color: #fff; }
.option:disabled { opacity: .5; cursor: default; }
.option b { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.option small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 4px; }
.quiz-selection { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-nav .quiz-back { border: 0; padding-inline: 10px; color: var(--muted); }
.quiz-nav .btn-primary { flex: 1; max-width: 280px; margin-left: auto; }

/* Resultado */
.result { max-width: 1060px; margin: auto; padding: 24px var(--gutter) 80px; }
.result-head h1 { font-size: 2.2rem; margin: 10px 0 10px; }
.routine { margin-top: 22px; border-top: 1px solid var(--ink); }
.routine-item { display: grid; grid-template-columns: 30px 84px minmax(0, 1fr); gap: 10px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.routine-item .step-num { font-size: 1.9rem; }
.routine-media { display: block; background: var(--sand); border-radius: 50% / 44%; overflow: hidden; aspect-ratio: 1 / 1.14; isolation: isolate; }
.routine-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10%; }
.routine-body .eyebrow { font-size: .64rem; }
.routine-body h2 { font-family: var(--serif); font-size: 1.15rem; margin: 5px 0 4px; line-height: 1.22; }
.routine-body h2 a { text-decoration: none; }
.routine-brand { font-size: .92rem; }
.routine-what { color: var(--muted); font-size: .88rem; margin-top: 3px; line-height: 1.35; }
.why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.why li { padding: 3px 10px; background: var(--blush); font-size: .76rem; font-weight: 600; border-radius: 99px; }
.why .why-warn { background: var(--cream); color: var(--rust); }
.swap { grid-column: 3; justify-self: start; }
.routine-empty { grid-template-columns: 30px 1fr; color: var(--muted); }
.routine-empty h2 { font-size: 1.2rem; }
.result-sum { position: sticky; bottom: calc(var(--safe) + 8px); z-index: 5; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; background: var(--ink); color: var(--cream); padding: 10px 10px 10px 18px; border-radius: 20px; margin-top: 20px; }
.result-sum small { display: block; font-size: .72rem; opacity: .8; }
.result-sum strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.result-sum .btn { min-height: 46px; padding: 0 12px; font-size: .86rem; }
.result-sum .link { display: none; }
.retake { display: flex; margin: 8px auto 0; justify-content: center; }
.disclaimer { margin-top: 18px; font-size: .82rem; color: var(--muted); max-width: 70ch; }

/* Carrito */
.scrim { position: fixed; inset: 0; background: rgba(33, 25, 21, .45); z-index: 50; }
.scrim[hidden] { display: none; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; background: var(--paper); z-index: 60; transform: translateX(102%); visibility: hidden; transition: transform .28s ease, visibility .28s; display: flex; flex-direction: column; }
.cart-drawer.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.5rem; }
.cart-items { flex: 1; overflow: auto; padding: 8px 20px; }
.cart-empty { text-align: center; padding: 50px 0; }
.cart-empty p { margin-bottom: 16px; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cart-thumb { background: var(--sand); border-radius: 10px; overflow: hidden; display: block; aspect-ratio: 1; isolation: isolate; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; background: none; border: 1px solid var(--line); font-size: 1rem; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-foot { padding: 14px 20px calc(16px + var(--safe)); border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe) + 76px); transform: translate(-50%, 30px); background: var(--ink); color: var(--cream); padding: 10px 20px; border-radius: 99px; font-size: .9rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: .25s; z-index: 70; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Pie */
.site-footer { background: var(--ink); color: var(--cream); padding: 36px var(--gutter) 22px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; max-width: 1388px; margin: auto; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand img { width: 104px; height: auto; margin-bottom: 16px; }
.foot-brand p { max-width: 30ch; font-size: .9rem; }
.site-footer h4 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.site-footer li { font-size: .94rem; opacity: .86; display: flex; align-items: center; min-height: 40px; }
.site-footer a { text-decoration: none; display: flex; align-items: center; min-height: 40px; }
.foot-note { max-width: 1388px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid rgba(249, 249, 219, .22); font-size: .76rem; opacity: .75; }

/* Efectos hover: solo en dispositivos con puntero real, para que no se queden pegados al tocar. */
@media (hover: hover) {
  .btn-primary:hover { background: var(--magenta-d); }
  .btn-primary:disabled:hover { background: #D9CFC6; }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-light:hover { background: #fff; }
  .icon-btn:hover { background: var(--blush); }
  .nav-link:hover, .mega a:hover, .card-title a:hover, .routine-body h2 a:hover { color: var(--magenta); }
  .hero-art:hover { transform: translateY(-6px); }
  .need:hover .need-media img { transform: translateY(-5px); }
  .need:hover { border-color: var(--rust); transform: translateY(-2px); }
  .steps a:hover strong { color: var(--magenta); }
  .brands a:hover { color: var(--magenta); font-style: italic; }
  .card-media:hover img { transform: scale(1.05); }
  .add:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
  .chip:hover, .tags a:hover { background: var(--pink); }
  .option:not(:disabled):hover { border-color: var(--ink); transform: translateY(-1px); }
  .site-footer a:hover { text-decoration: underline; }
}

/* A partir de 360 px ya cabe el conteo de productos junto a los filtros */
@media (min-width: 360px) {
  .toolbar p { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* Portada compacta en móvil. */
@media (max-width: 759px) {
  .hero-art { max-width: 360px; }
}

/* Celular grande y tableta pequeña */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .cta-row { display: flex; flex-wrap: wrap; }
  .grid, .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
  .quiz-band .btn, .more .btn { width: auto; }
  .options-grid { grid-template-columns: 1fr 1fr; }
  .cart-drawer { width: 420px; }
  .filters { left: auto; top: 0; right: 0; width: 400px; max-height: none; border-radius: 22px 0 0 22px; transform: translateX(102%); }
  .apply { left: auto; right: 20px; width: 360px; }
  .routine-item { grid-template-columns: 44px 120px minmax(0, 1fr); gap: 16px; }
  .routine-item .step-num { font-size: 2.6rem; }
  .routine-body h2 { font-size: 1.35rem; }
  .result-sum { grid-template-columns: auto 1fr auto; padding-left: 24px; }
  .result-sum .btn { justify-self: end; padding: 0 24px; font-size: .94rem; }
  .result-sum .link { display: inline-flex; font-size: .86rem; padding-right: 8px; }
  .retake { display: none; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { border-bottom: 0; }
  .steps li + li { border-left: 1px solid var(--line); }
  .steps a { display: block; padding: 16px 12px 18px; height: 100%; }
  .steps .step-num { font-size: 2.6rem; }
  .steps strong { margin-top: 10px; font-size: 1.05rem; }
  .steps small { font-size: .82rem; line-height: 1.35; display: block; margin-top: 4px; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tableta */
@media (min-width: 760px) {
  :root { --section-space: 64px; --layout-gap: 32px; --heading-gap: 32px; }
  .needs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
  .hero h1 { font-size: 4.2rem; }
  .cat-head { grid-template-columns: 1fr auto; align-items: end; }
  .cat-head .eyebrow { grid-column: 1 / -1; }
  .cat-head h1 { font-size: 3.2rem; }
  .quiz h1, .result-head h1 { font-size: 3rem; }
  .quiz { padding-top: 40px; }
  .pdp { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 20px; }
  .pdp-media { position: sticky; top: 84px; }
  .pdp-info h1 { font-size: 2.4rem; }
  .quiz-inner { grid-template-columns: 1.1fr .9fr; }
}

/* Computadora: aparece la navegación completa y desaparece la barra inferior */
@media (min-width: 980px) {
  :root { --gutter: clamp(32px, 4vw, 56px); --head: 72px; --section-space: 80px; --layout-gap: 48px; }
  html { scroll-padding-top: 90px; }
  .menu-btn, .search-btn, .nav-only-mobile { display: none; }
  .bar { flex-wrap: nowrap; gap: 22px; padding: 10px var(--gutter); }
  .logo { margin-right: 0; padding-left: 0; }
  .logo img { height: 40px; }
  .nav { display: flex; position: static; flex: 1; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .nav-link { width: auto; min-height: 44px; padding: 0 12px; font-size: .93rem; justify-content: flex-start; }
  .mega { position: absolute; left: 0; right: 0; top: 100%; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 30px var(--gutter) 36px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 22px 40px -28px rgba(33, 25, 21, .4); }
  .mega a { min-height: 34px; }
  .site-search { display: block; order: 0; flex: 0 1 260px; padding: 0; }
  .site-search input { font-size: .9rem; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .hero h1 { font-size: clamp(4rem, 7vw, 6.4rem); margin: 16px 0 22px; }
  .hero-art { max-width: 420px; }
  .lede { font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
  .tabs { margin: 0; padding: 0; max-width: none; }
  .brands { gap: 4px 28px; }
  .brands a { font-size: clamp(1.25rem, 2.1vw, 1.9rem); }
  .steps a { padding: 22px 20px 26px; }
  .steps .step-num { font-size: clamp(3rem, 4.4vw, 4rem); }
  .steps strong { font-size: 1.3rem; }
  .steps small { font-size: .9rem; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat { grid-template-columns: 270px minmax(0, 1fr); gap: clamp(22px, 3vw, 46px); padding-bottom: 80px; }
  .filters { position: sticky; top: 90px; left: auto; right: auto; bottom: auto; width: auto; max-height: calc(100vh - 106px); padding: 0 8px 0 0; background: none; border-radius: 0; transform: none; visibility: visible; overscroll-behavior: auto; z-index: 1; }
  .close-filters, .apply, .open-filters { display: none; }
  .check { min-height: 34px; font-size: .92rem; }
  .check input, .toggle input { width: 18px; height: 18px; }
  .facet-long { max-height: 260px; overflow: auto; }
  .toolbar { position: static; margin: 0 0 24px; padding: 0 0 16px; min-height: 64px; background: none; box-shadow: none; }
  .toolbar p { font-size: .92rem; }
  .sort { flex-basis: 200px; }
  .pdp { gap: clamp(36px, 5vw, 76px); padding: 20px var(--gutter) 30px; }
  .pdp-media { top: 92px; aspect-ratio: 1 / 1.06; max-width: none; border-radius: 22px; }
  .pdp-media img { padding: 9%; }
  .pdp-info h1 { font-size: clamp(2.4rem, 3.3vw, 3rem); }
  /* La compra vuelve a integrarse en la ficha. */
  .pdp-buy { position: static; display: block; padding: 0; background: none; border: 0; }
  .pdp-buy .price { display: none; }
  .pdp-buy .btn { min-height: 50px; width: 100%; }
  .has-buybar { padding-bottom: 0; }
  .quiz { padding-block: 60px 80px; min-height: calc(100vh - 110px); }
  .quiz h1 { font-size: clamp(3rem, 5vw, 3.7rem); }
  .result { padding-block: 60px 90px; }
  .result-head h1 { font-size: clamp(3rem, 5.2vw, 4.4rem); }
  .routine-item { grid-template-columns: 62px 150px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 22px 0; }
  .routine-item .step-num { font-size: 3.4rem; }
  .routine-body .eyebrow { font-size: .72rem; }
  .routine-body h2 { font-size: 1.55rem; }
  .swap { grid-column: auto; }
  .result-sum { bottom: 12px; }
  .toast { bottom: 22px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: auto; }
  .foot-brand img { width: 128px; }
  .site-footer { padding-top: clamp(40px, 5vw, 66px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
