:root {
    --bg: #F3EEE5;
    --surface: #E4DCCC;
    --ink: #181813;
    --title: #2F392B;
    --muted: #5A604C;
    --line: #C5C9B2;
    --accent: #B97559;
    --accent-text: #8F4F35;
    --btn-bg: #B97559;
    --btn-ink: #181813;
    --btn-hover-bg: #2F392B;
    --btn-hover-ink: #F3EEE5;
    --band: #2F392B;
    --on-band: #F3EEE5;
    --serif: 'Outfit', system-ui, sans-serif;
    --sans: 'Manrope', system-ui, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #2F392B;
        --surface: #414B39;
        --ink: #F3EEE5;
        --title: #F3EEE5;
        --muted: #D8CDBB;
        --line: #66705C;
        --accent: #B97559;
        --accent-text: #E6B69C;
        --btn-bg: #F3EEE5;
        --btn-ink: #181813;
        --btn-hover-bg: #B97559;
        --btn-hover-ink: #181813;
        --band: #E4DCCC;
        --on-band: #181813;
    }
}

:root[data-theme="dark"] {
    --bg: #2F392B;
    --surface: #414B39;
    --ink: #F3EEE5;
    --title: #F3EEE5;
    --muted: #D8CDBB;
    --line: #66705C;
    --accent: #B97559;
    --accent-text: #E6B69C;
    --btn-bg: #F3EEE5;
    --btn-ink: #181813;
    --btn-hover-bg: #B97559;
    --btn-hover-ink: #181813;
    --band: #E4DCCC;
    --on-band: #181813;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem; /* 17 px con la letra por defecto, pero respeta el tamaño que cada persona eligió en su navegador */
    font-weight: 400;
    line-height: 1.6;
    padding-bottom: 72px;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; color: var(--title); }
.band h2, .band h3 { color: var(--on-band); }
h1 { font-size: clamp(3rem, 7.2vw, 6rem); line-height: 0.95; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 300; padding-bottom: .06em; }
h1 em { display: block; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
[data-sentinel] { position: absolute; top: 0; height: 8px; width: 1px; }

.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.scrolled { border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { display: block; height: 2.6rem; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: none; gap: 34px; font-size: 0.9375rem; }
.nav a { padding: 12px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover { background-size: 100% 1px; }
.tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: color .2s ease; }
.icon-btn:hover { color: var(--accent-text); }

.hero { padding: 28px 0 64px; overflow: clip; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 38ch; margin: 22px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .actions { margin-top: 0; }

.hero-art { position: relative; justify-self: stretch; }
.hero-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.hero-main img, .band-media img, .detail-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-second { position: absolute; left: 12px; bottom: -22px; width: 36%; aspect-ratio: 5 / 7; overflow: hidden; border: 6px solid var(--bg); background: var(--surface); }
.hero-second img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid transparent; border-radius: 0; cursor: pointer; white-space: nowrap; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover-bg); color: var(--btn-hover-ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.link { font-size: 0.9375rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .2s ease; }
.link:hover { color: var(--accent-text); }
.back { display: inline-block; margin-bottom: 24px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.h1-sm { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.sec-note { margin: -10px 0 28px; max-width: 52ch; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.card.is-hidden { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--ink); font-size: 0.75rem; letter-spacing: 0.04em; padding: 4px 10px; }
.card-body { padding-top: 12px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 1.4rem; }
.price { font-weight: 500; margin: 0; white-space: nowrap; }
.price.big { font-size: 1.6rem; margin: 6px 0 20px; }
.meta { font-size: 0.9375rem; color: var(--muted); margin: 4px 0 0; }
.detail-line { font-size: 0.9375rem; margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--sans); font-size: 0.9375rem; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }

/* Interruptor de descuentos: si está activo, los filtros solo miran las prendas rebajadas */
.deal-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; margin-bottom: 12px; border: 1px solid var(--accent); color: var(--accent-text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.deal-toggle:hover { background: var(--surface); }
.deal-toggle.is-on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }

/* Filtros del catálogo: cerrados por defecto, abiertos si hay alguno puesto */
.filters-box { margin: -16px 0 28px; border: 1px solid var(--line); }
.filters-box > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer; font-weight: 500; list-style: none; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.filters-box[open] > summary::after { transform: rotate(-135deg); }
.filters-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 6px; background: var(--btn-bg); color: var(--btn-ink); font-size: .8125rem; border-radius: 999px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 16px; padding: 4px 16px 18px; }
.filter-grid .field { display: grid; gap: 6px; }
.filter-grid label { font-size: .9375rem; font-weight: 500; }
.filter-grid input[type="number"], .filter-grid select { font: 400 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; min-height: 48px; padding: 0 12px; width: 100%; }
.filter-wide { grid-column: 1 / -1; }
.filter-grid .check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; }
.filter-grid .check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent); }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.empty-results { display: grid; gap: 16px; justify-items: start; padding: 24px 0; }

.band { background: var(--band); color: var(--on-band); margin: 24px 0; }
.band-grid { display: grid; }
.band-media { aspect-ratio: 4 / 3; overflow: hidden; }
.band-copy { padding: 48px 20px; }
.band-copy h2 { max-width: 16ch; margin-bottom: 36px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: p; }
.points li { counter-increment: p; padding-left: 52px; position: relative; }
.points li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--serif); font-size: 1.5rem; opacity: .7; }
.points p { margin: 4px 0 0; opacity: .82; max-width: 40ch; }

.grid-two { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { max-width: 32ch; }
.split { display: block; }
.split .grid-two { margin-top: 24px; }

.closing { padding: 72px 0 64px; text-align: left; }
.closing-in h2 { max-width: 14ch; }
.closing .lead { margin: 18px 0 28px; }

.detail { display: grid; gap: 32px; }
.detail-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.note { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 16px; font-size: 1rem; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 24px; }
.foot { display: grid; gap: 18px; }
.foot p { margin: 0 0 4px; }

.tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; justify-content: space-around; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: grid; justify-items: center; gap: 2px; min-width: 64px; min-height: 48px; padding: 4px 8px; font-size: 0.75rem; color: var(--muted); }
.tabbar a.active { color: var(--accent-text); }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 13px 22px; font-size: 0.9375rem; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .3s var(--ease); z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
    @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .parallax, .parallax-rev { scale: 1.14; animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
        .parallax-rev { animation-name: drift-rev; }
        @keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
        @keyframes drift-rev { from { transform: translateY(6%); } to { transform: translateY(-6%); } }
    }
}

@media (min-width: 720px) {
    body { padding-bottom: 0; }
    .tabbar { display: none; }
    .nav { display: flex; }
    .toast { bottom: 32px; }
    .wrap { width: min(1280px, 100% - 64px); }
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
    .grid-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { display: grid; grid-template-columns: 1fr 2.4fr; gap: 64px; align-items: start; }
    .split-copy { position: sticky; top: 110px; }
    .hero { padding: 36px 0 90px; }
    .hero-second { left: -28px; bottom: -30px; }
    .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; min-height: min(720px, calc(100dvh - 120px)); }
    .band-grid { grid-template-columns: 1fr 1fr; min-height: 640px; }
    .band-media { aspect-ratio: auto; }
    .band-copy { padding: 88px max(32px, 6vw) 88px 8vw; align-self: center; }
    .detail { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
    .foot { grid-template-columns: 1fr 1fr; }
    .section { padding: 88px 0; }
    .closing { padding: 110px 0 96px; }
}

@media (min-width: 1100px) {
    .grid { gap: 48px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .card-media img, .btn, .toast, .nav a { transition: none; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tags .tag { position: static; }
.tag-sale { background: var(--btn-bg); color: var(--btn-ink); font-weight: 500; }

.price-sale { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 .5rem; }
.price-sale .was { color: var(--muted); font-weight: 400; font-size: .9em; text-decoration: line-through; }
.price-sale .now { color: var(--accent-text); }
.price.big.price-sale { justify-content: flex-start; }
.card-row { flex-wrap: wrap; }
.detail-media { position: relative; }

.bag { position: relative; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); font: 500 .75rem/1 var(--sans); }

.cart-grid { display: grid; gap: 32px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-item:first-child { border-top: 0; }
.cart-item img { width: 72px; height: 90px; object-fit: cover; flex: none; background: var(--surface); }
.cart-item .grow { flex: 1; min-width: 0; }
.cart-item h3 { font-size: 1.3rem; }
.cart-item.gone { opacity: .85; }
.cart-item .gone-note { color: var(--accent-text); font-size: .9375rem; margin: 2px 0 0; }
.cart-remove { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9375rem; cursor: pointer; min-height: 44px; padding: 0 8px; text-decoration: underline; }
.cart-remove:hover { color: var(--ink); }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-foot .cart-remove { padding-left: 0; position: relative; top: -6px; }
.cart-total { font-size: 1.25rem; font-weight: 500; text-align: right; margin: 0 0 0 auto; }
.reserve { display: grid; gap: 14px; }
.reserve h2 { font-size: 1.8rem; }
.reserve .field { display: grid; gap: 6px; }
.reserve label { font-size: .9375rem; font-weight: 500; }
.reserve input, .reserve select { font: 400 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; min-height: 48px; padding: 0 12px; width: 100%; }
.reserve .err { color: var(--accent-text); font-size: .875rem; min-height: 1em; margin: 0; }
.reserve .err:empty { display: none; } /* sin error no ocupa lugar: el botón sube */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reserve-done { max-width: 56ch; display: grid; gap: 4px; }
.reserve-done .code { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .08em; }

@media (min-width: 900px) {
    .cart-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
    [data-reserve-box] { position: sticky; top: 96px; }
}
.bag-count[hidden] { display: none; }

/* Chat de la clienta */
.chat { position: fixed; z-index: 70; inset: 0; background: var(--bg); display: flex; flex-direction: column; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 1.7rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-start { display: grid; gap: 14px; }
.chat .field { display: grid; gap: 6px; }
.chat label, .chat legend { font-size: .9375rem; font-weight: 500; }
.chat input, .chat textarea { font: 400 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; padding: 12px; width: 100%; min-height: 48px; }
.chat textarea { resize: vertical; }
.chat .err { color: var(--accent-text); font-size: .875rem; min-height: 1em; margin: 0; }
.chat-suggest { border: 0; padding: 0; margin: 0; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-chips .chip { text-align: left; min-height: 44px; padding: 8px 14px; font-size: .9375rem; line-height: 1.3; cursor: pointer; }
.chat-thread { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; }
.chat-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
.chat-msg { max-width: 85%; padding: 10px 14px; background: var(--surface); align-self: flex-start; display: grid; gap: 2px; }
.chat-msg.clienta { align-self: flex-end; background: var(--btn-bg); color: var(--btn-ink); }
.chat-msg .who { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.chat-msg .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg time { font-size: .75rem; opacity: .75; }
.chat-wait { margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface); font-size: .9375rem; }
.chat-send { display: grid; gap: 10px; }
.chat .btn { width: 100%; }
body.chat-on { overflow: hidden; }

@media (min-width: 720px) {
    .chat { inset: auto 24px 24px auto; width: 24rem; height: min(40rem, calc(100dvh - 48px)); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, .18); }
    body.chat-on { overflow: auto; }
}

/* Cuentas de clientas: aviso (modal), registro y contraseñas */
.btn-plain { background: transparent; border-color: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-plain:hover { background: var(--surface); }
.wrap.narrow { max-width: 34rem; }
.register { margin-top: 24px; }
.hint { color: var(--muted); font-size: .875rem; }
.reserve-who { margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface); font-size: .9375rem; }
.pw { position: relative; display: flex; }
.pw input { padding-right: 5.5rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--ink); font: 500 .9375rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.gate { border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 32px 24px 24px; width: min(26rem, calc(100% - 32px)); margin: auto; }
.gate::backdrop { background: rgba(24, 24, 19, .55); }
.gate h2 { font-size: 1.8rem; margin: 0 0 8px; padding-right: 40px; }
.gate-close { position: absolute; top: 4px; right: 4px; }
.gate-actions { display: grid; gap: 8px; margin-top: 20px; }
.gate-actions .btn, .gate-login .btn { width: 100%; text-align: center; }
.gate-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: .875rem; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.gate-or span { white-space: nowrap; }
.gate-login { display: grid; gap: 14px; }
.gate .field { display: grid; gap: 6px; }
.gate label { font-size: .9375rem; font-weight: 500; }
.gate input { font: 400 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; min-height: 48px; padding: 0 12px; width: 100%; }
.gate .err { color: var(--accent-text); font-size: .875rem; min-height: 1em; margin: 0; }
.gate [hidden] { display: none; }
.quick-form, .quick-done { display: grid; gap: 14px; }
.quick-form .btn, .quick-done .btn { width: 100%; text-align: center; }
.quick-done:focus { outline: none; }
.mb-0 { margin-bottom: 0; }

/* Cómo piensa pagar: opciones grandes y fáciles de tocar */
.pay { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.pay legend { font-size: .9375rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.pay .pay-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--muted); background: var(--surface); cursor: pointer; font-weight: 400; }
.pay .pay-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pay .pay-opt input { width: 1.25rem; min-height: 0; height: 1.25rem; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }
.pay .err { color: var(--accent-text); font-size: .875rem; min-height: 1em; margin: 0; }
.chat [hidden] { display: none; }

/* Lo marcado como oculto nunca se ve, aunque su clase le dé otra visualización */
[hidden] { display: none !important; }
/* En la bolsa el precio va pegado a la izquierda, igual que sin descuento */
.cart-item .price-sale { justify-content: flex-end; }
.cart-price { flex: none; align-self: flex-start; margin-left: auto; text-align: right; padding-top: 2px; }
.cart-item .cart-remove { padding-left: 0; margin-top: 2px; }

/* Menú de cuenta (engranaje) */
.account { position: relative; }
.account > summary { list-style: none; }
.account > summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 14rem; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .2); padding: 6px 0; z-index: 80; display: grid; }
.account-name { margin: 0; padding: 10px 16px 8px; font-size: .875rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 0 16px; min-height: 48px; line-height: 48px; background: none; border: 0; color: var(--ink); font: 400 1rem var(--sans); cursor: pointer; text-decoration: none; }
.account-menu a:hover, .account-menu button:hover { background: var(--surface); }

/* Mis reservas */
.my-section { margin-top: 36px; }
.my-section h2 { font-size: 1.8rem; margin: 0 0 12px; }
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.my-order { border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.my-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.my-order-head time { color: var(--muted); font-size: .9375rem; }
.my-status { display: inline-block; padding: 2px 10px; font-size: .8125rem; font-weight: 500; background: var(--surface); color: var(--ink); }
.my-status.bought { background: var(--btn-bg); color: var(--btn-ink); }
.my-status.cancelled { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.my-cancel { justify-self: start; min-height: 44px; padding-left: 0; }
.my-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.my-items li { display: flex; gap: 14px; align-items: center; }
.my-items img { width: 56px; height: 70px; object-fit: cover; object-position: center; flex: none; background: var(--surface); }
.my-items .grow { flex: 1; min-width: 0; }
.my-items h3 { font-size: 1.25rem; margin: 0; }
.my-total { margin: 0; text-align: right; font-weight: 500; padding-top: 10px; border-top: 1px solid var(--line); }
.account-menu a, .account-menu button { display: flex; align-items: center; line-height: 1.2; }

/* Toque cómodo: el subrayado se queda como está y el área que responde al dedo crece a 44 px */
.section-head .link, .back, .register .link { position: relative; }
.section-head .link::after, .back::after, .register .link::after { content: ""; position: absolute; inset: -12px -8px; }

/* Utilidades pequeñas (reemplazan estilos escritos directo en las vistas) */
.measure-44 { max-width: 44ch; }
.measure-48 { max-width: 48ch; }
.note.flush { margin: 0; }
.rise.d0 { --d: 0; }
.rise.d1 { --d: 1; }
.rise.d2 { --d: 2; }
.rise.d3 { --d: 3; }

/* Letra clara sobre fondo oscuro: un poco más de interlineado y de espacio entre letras para leer igual de cómodo */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body { line-height: 1.68; letter-spacing: 0.005em; }
}
:root[data-theme="dark"] body { line-height: 1.68; letter-spacing: 0.005em; }
.unique-note { margin: 12px 0 0; }

/* Carrusel de fotos de la prenda: se desliza con el dedo o el mouse; los puntos muestran en cuál foto va. */
.gallery { position: relative; height: 100%; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gallery-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; }
.gallery-dots { position: absolute; left: 50%; bottom: 0.5rem; transform: translateX(-50%); display: flex; padding: 0 0.25rem; border-radius: 999px; background: rgba(47, 57, 43, 0.35); }
.gallery-dot { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(243, 238, 229, 0.75); box-shadow: 0 0 0 1px rgba(47, 57, 43, 0.35); transition: background 0.3s ease, transform 0.3s ease; }
.gallery-dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.3); }
.gallery-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gallery-track { scroll-behavior: auto; } .gallery-dot::before { transition: none; } }
.gallery-track { cursor: grab; user-select: none; }
.gallery-track.is-dragging, .gallery-track.is-sliding { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }

/* Textura de lino de fondo: muy suave, detrás de todo el contenido. En modo oscuro no se muestra. */
body { position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('/img/textura-lino.webp') center / 720px auto repeat; opacity: 0.22; }
:root[data-theme="dark"] body::before { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { display: none; } }

/* Página 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; text-align: center; }
.notfound-box { display: grid; justify-items: center; gap: 4px; max-width: 34rem; }
.notfound-box .logo { margin-bottom: 28px; }
.notfound-box h1 { font-size: clamp(7rem, 30vw, 14rem); line-height: .85; letter-spacing: -.03em; color: var(--accent-text); font-weight: 400; }
.notfound-box .lead { margin: 32px auto 28px; text-align: center; }

/* Encabezado en escritorio: logo a la izquierda; menú, nombre y herramientas juntos a la derecha */
.bar-sep, .session-label { display: none; }
@media (min-width: 720px) {
    .bar { justify-content: flex-start; }
    .bar .logo { margin-right: auto; }
    .bar-sep { display: block; width: 1px; height: 22px; background: var(--line); margin: 0 18px; flex: none; }
    .session-label { display: block; width: 8rem; flex: none; padding: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 .9375rem var(--sans); color: var(--ink); background: none; border: 0; }
}

/* Páginas legales (términos y privacidad) */
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 8px; margin: 0 0 12px; }
.legal-draft { margin: 0 0 28px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--surface); font-size: .9375rem; }
.legal-todo { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 4px; }

/* Pie: títulos legales como texto (todavía sin enlace) */
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.foot-sep { color: var(--line); }

/* Eliminar cuenta (Mis reservas) */
.my-danger { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.my-danger h2 { font-size: 1.4rem; margin: 0 0 8px; }
.my-danger .btn { margin-top: 8px; }

/* Casilla de aceptación (registro) */
.register .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.register .check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 2px 0 0; accent-color: var(--accent); }

/* Configuración de la cuenta (cliente) */
.cfg { display: grid; gap: 20px; }
.cfg-panel { border: 1px solid var(--line); padding: 20px; display: grid; gap: 12px; align-content: start; }
.cfg-panel h2 { font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cfg-panel p { margin: 0; }
.cfg-panel .btn { justify-self: start; }
.cfg-panel input[readonly] { color: var(--muted); cursor: default; }
.cfg-count { font-size: 1.125rem; }
.cfg-count strong { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--title); }
.cfg-benefits { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.dlg-resend { margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 10px 0; color: var(--accent-text); font: inherit; font-size: .9375rem; text-decoration: underline; cursor: pointer; min-height: 44px; }
.quick-form input[name="code"] { letter-spacing: .3em; font-size: 1.25rem; text-align: center; }

/* Aviso en el cuadro de reserva directa y contador de reservas restantes */
.quick-notice { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 14px; display: grid; gap: 6px; font-size: .9375rem; line-height: 1.5; }
.quick-notice p { margin: 0; }
.quota { margin: 0; font-size: .9375rem; }
.quota strong { color: var(--accent-text); }
.quick-notice .quota { padding-top: 6px; border-top: 1px solid var(--line); }
.cfg .field { display: grid; gap: 6px; }
.cfg label { font-size: .9375rem; font-weight: 500; }
.cfg input { font: 400 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 0; min-height: 48px; padding: 0 12px; width: 100%; }
.cfg .err { color: var(--accent-text); font-size: .875rem; margin: 0; }
.cfg .quick-form .btn { width: auto; justify-self: start; }
.cfg .note { background: var(--surface); padding: 12px 14px; font-size: .9375rem; }

/* Botón sin poder usarse (por ejemplo, eliminar cuenta con reservas activas) */
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); }

.tag-closet { background: var(--ink); color: var(--bg); }
.card[hidden] { display: none; }
