/* Integra Muebles · Home 2 (/explorar). Concepto «Plano a escala»: medidas, cotas y mesa de dibujo. */
:root {
  --paper: #fdfbf7; --paper2: #f3efe6; --ink: #1b1a17; --ink2: #47443d; --mute: #6a665c; --line: rgba(27, 26, 23, .16);
  --y: #fcc500; --plate: #16150f; --err: #b3261e;
  --out: cubic-bezier(.23, 1, .32, 1); --drawer: cubic-bezier(.32, .72, 0, 1);
  --r: 14px; --head: 64px;
  --f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; font: 400 1rem/1.55 var(--f); background: var(--paper); color: var(--ink); overflow-x: clip; min-height: 100dvh; display: flex; flex-direction: column; }
body.lock { overflow: hidden; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .foot :focus-visible, dialog.dark :focus-visible { outline-color: var(--y); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; transition: top .2s var(--out); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.fine { font-size: .875rem; color: var(--mute); line-height: 1.45; }
.on-dark { color: rgba(253, 251, 247, .74); }
.h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(1.7rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.sub, .lead2 { color: var(--ink2); max-width: 60ch; margin-top: 12px; text-wrap: pretty; }
.lead2 { font-size: 1.125rem; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Botones */
.btn, .btn-f, .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--y); color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .16s var(--out), background-color .16s; }
.btn.ghost { background: transparent; }
.btn.big { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn:active, .btn-f:active, .add:active, .qv:active, .sel-b:active, .ib:active, .pg:active, .chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover, .btn-f:hover, .btn-s:hover { background: var(--ink); color: var(--paper); } .btn.ghost:hover { background: var(--ink); } }
.btn[disabled] { opacity: .6; cursor: progress; }
.textlink { font-weight: 700; text-underline-offset: 4px; }
.textlink.on-dark { color: var(--y); }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; transition: background-color .16s, transform .16s var(--out); }
@media (hover: hover) and (pointer: fine) { .ib:hover { background: rgba(27, 26, 23, .08); } }

/* Barra superior */
.util { background: var(--paper2); font-size: .8125rem; }
.util .wrap { display: flex; justify-content: flex-end; min-height: 44px; align-items: center; }
.util-a { color: var(--ink2); text-underline-offset: 3px; padding-block: 12px; display: inline-block; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(253, 251, 247, .9); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); transition: box-shadow .2s; }
.top.stuck, body.mega-on .top { box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 8px; min-height: var(--head); }
.logo { display: block; margin-right: auto; padding-block: 8px; }
.logo img { width: 104px; height: auto; aspect-ratio: 104 / 46; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: none; }
.nav ul { display: flex; gap: 4px; }
.nav-b { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color .16s; }
.nav-b[aria-expanded="true"], .nav-b[aria-current] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .nav-b:hover { background: rgba(27, 26, 23, .08); } .nav-b[aria-expanded="true"]:hover, .nav-b[aria-current]:hover { background: var(--ink); } }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--out); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.acts { display: flex; align-items: center; gap: 4px; }
.acts .ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sel-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; font-size: .875rem; }
.sel-b b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.sel-b.on b { background: var(--y); color: var(--ink); }
.bump { animation: bump .32s var(--out); }
@keyframes bump { from { transform: scale(1.35); } to { transform: scale(1); } }
.btn-f { display: none; min-height: 44px; padding: 0 20px; font-size: .9375rem; margin-left: 4px; }
@media (min-width: 48em) { .btn-f { display: inline-flex; } .sel-b { font-size: .9375rem; } }
@media (min-width: 62em) { .nav { display: block; } .menu-b { display: none !important; } }
@media (max-width: 30em) { .logo img { width: 88px; } .sel-b { padding: 0 10px; gap: 6px; font-size: .8125rem; } .top-in { gap: 2px; } }

/* Megamenú */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(27, 26, 23, .3); padding-block: 28px 32px; }
.mega:not([hidden]) { animation: mega .22s var(--out); }
@keyframes mega { from { opacity: 0; transform: translateY(-6px); } }
.mega-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.mega-l a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; min-height: 52px; padding: 10px 12px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.mn { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.mc { font-size: .875rem; color: var(--mute); text-align: right; max-width: 28ch; }
@media (hover: hover) and (pointer: fine) { .mega-l a:hover { background: var(--y); } .mega-l a:hover .mc { color: var(--ink); } }
.mega-l a:focus-visible { background: var(--y); }
.mega-c .textlink { display: inline-block; margin: 16px 12px 0; }
.mega-f img { width: 100%; height: auto; border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; }
.mega-f figcaption { margin-top: 8px; font-size: .8125rem; color: var(--mute); }

/* Búsqueda */
.busca { border-top: 1px solid var(--line); background: var(--paper); padding-block: 14px 16px; }
.busca form { display: flex; gap: 8px; }
.busca input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; font-size: 1rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.btn-s { min-height: 52px; }
#sug { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
#sug li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; min-height: 48px; padding: 10px 18px; cursor: pointer; }
#sug li small { color: var(--mute); font-size: .8125rem; text-align: right; }
#sug li[aria-selected="true"], #sug li:hover { background: var(--y); }
#sug li[aria-selected="true"] small, #sug li:hover small { color: var(--ink); }
#sug .nada { cursor: default; color: var(--ink2); }
#sug .nada:hover { background: none; }

/* Planos */
.plano { width: 100%; height: auto; aspect-ratio: 240 / 150; color: var(--ink); overflow: visible; }
.pl-f { fill: var(--y); stroke: var(--ink); stroke-width: 1.6; }
.pl-i { fill: none; stroke: rgba(27, 26, 23, .38); stroke-width: 1; }
.pl-c { fill: none; stroke: currentColor; stroke-width: 1; }
.pl-t { fill: currentColor; font: 700 10px var(--f); font-variant-numeric: tabular-nums; }
.dark .plano, .dark.plano { color: #fdfbf7; }
.dark .pl-f { stroke: #fdfbf7; }
.dark .pl-i { stroke: rgba(27, 26, 23, .45); }

/* Portada: la regla */
.dark { background: var(--plate); color: #fdfbf7; }
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(32px, 5vw, 64px); border-radius: 0 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px); background-image: linear-gradient(rgba(253, 251, 247, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(253, 251, 247, .045) 1px, transparent 1px); background-size: 48px 48px; background-color: var(--plate); }
.hero-g { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 62em) { .hero-g { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; } }
.hero h1, .hero .hero-h { font-size: clamp(2.5rem, 5.4vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; line-height: .94; text-wrap: balance; max-width: 13ch; }
.hero .lead { margin-top: 18px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(253, 251, 247, .8); max-width: 38ch; }
.mesa { margin-top: clamp(20px, 3vw, 36px); }
.rej { position: relative; container-type: inline-size; aspect-ratio: 4 / 1.2; margin-bottom: 30px; border-bottom: 2px solid rgba(253, 251, 247, .5); }
.rej::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(253, 251, 247, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(253, 251, 247, .1) 1px, transparent 1px); background-size: 6.25cqw 6.25cqw; background-position: 0 100%; }
.pz { position: absolute; left: 0; bottom: 0; width: var(--w, 50%); aspect-ratio: var(--m, 1.8) / .8; background: var(--y); border: 2px solid #fdfbf7; border-left-width: 0; display: grid; place-items: center; color: var(--ink); }
.pz::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(27, 26, 23, .4); }
.pz-c { position: relative; z-index: 1; font-weight: 800; font-size: clamp(.8125rem, 1.6cqw + .5rem, 1.25rem); font-variant-numeric: tabular-nums; }
.tick { white-space: nowrap; position: absolute; top: calc(100% + 8px); left: var(--x); transform: translateX(-50%); font-size: .8125rem; color: rgba(253, 251, 247, .78); font-variant-numeric: tabular-nums; }
.tick:first-of-type { transform: none; }
.ctl { display: block; min-width: 0; }
.ctl label { grid-column: 1 / -1; font-weight: 700; font-size: .9375rem; color: rgba(253, 251, 247, .85); position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.num { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--y); font-variant-numeric: tabular-nums; min-width: 4.4ch; margin-bottom: 8px; }
.mesa { display: grid; grid-template-columns: 1fr; }
.mesa .num { order: 3; grid-row: 3; }
.mesa .rej { order: 1; }
.mesa .ctl { order: 2; }
.mesa .fine { order: 4; margin-top: 6px; }
@media (min-width: 40em) { .mesa { grid-template-columns: auto 1fr; column-gap: 24px; } .mesa .rej { grid-column: 1 / -1; } .mesa .ctl { grid-column: 2; grid-row: 2; } .mesa .num { grid-column: 1; grid-row: 2; margin: 0; } .mesa .fine { grid-column: 2; grid-row: 3; } }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 56px; background: transparent; margin: 0; touch-action: pan-y; cursor: grab; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--y) var(--p, 50%), rgba(253, 251, 247, .28) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(253, 251, 247, .28); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--y); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--y); border: 3px solid #fdfbf7; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: transform .15s var(--out); }
input[type=range]::-moz-range-thumb { width: 38px; height: 38px; border-radius: 50%; background: var(--y); border: 3px solid #fdfbf7; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
input[type=range]:active { cursor: grabbing; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid #fdfbf7; outline-offset: 3px; }
input[type=range]:focus-visible::-moz-range-thumb { outline: 3px solid #fdfbf7; outline-offset: 3px; }
.hero-r { min-width: 0; }
.res-t { font-size: 1.125rem; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.res-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; min-height: 160px; align-content: start; }
.mini { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--r); background: rgba(253, 251, 247, .07); text-decoration: none; transition: background-color .16s, transform .16s var(--out); }
@media (hover: hover) and (pointer: fine) { .mini:hover { background: rgba(253, 251, 247, .15); } }
.mini:active { transform: scale(.98); }
.mini-p .plano { color: #fdfbf7; }
.mini-p .pl-f { stroke: #fdfbf7; }
.mini-n { font-size: .8125rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-pr { font-size: .8125rem; color: var(--y); font-weight: 700; }
.res-l .btn { grid-column: 1 / -1; }

/* Secciones */
.sec { padding-block: clamp(56px, 9vw, 112px) 0; }
.sec:last-of-type { padding-bottom: clamp(56px, 9vw, 112px); }
.indice .fila-l { margin-top: clamp(20px, 3vw, 36px); }
.fila { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 14px 0; text-decoration: none; isolation: isolate; }
.fila::before { content: ""; position: absolute; inset: 0 -12px; border-radius: var(--r); background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--out); z-index: -1; }
.fila-n { overflow-wrap: anywhere; font-size: clamp(1.6rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; grid-column: 1; }
.fila-c { grid-column: 1; grid-row: 2; font-size: .9375rem; color: var(--ink2); }
.fila-f { grid-column: 2; grid-row: 1 / 3; width: clamp(84px, 14vw, 180px); aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.fila-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--out); }
@media (hover: hover) and (pointer: fine) { .fila:hover::before { transform: scaleX(1); } .fila:hover .fila-f img { transform: scale(1.08); } }
.fila:focus-visible::before { transform: scaleX(1); }
.fila-l li + li { border-top: 1px solid var(--line); }
.esp-g { align-items: start; display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 20px; margin-top: clamp(20px, 3vw, 36px); }
.esp { grid-column: span 12; text-decoration: none; display: block; }
@media (min-width: 40em) { .esp { grid-column: span 6; } }
@media (min-width: 62em) { .esp { grid-column: span 4; } .esp-oficina { grid-column: span 7; } .esp-juntas { grid-column: span 5; } }
.esp-f { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--paper2); }
.esp-oficina .esp-f { aspect-ratio: 16 / 10; }
.esp-juntas .esp-f { aspect-ratio: 8 / 7; }
.esp-f img { height: 100%; } }
.esp-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out); }
.esp-b { padding-top: 12px; }
.esp-b h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-decoration: underline 3px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.esp-b p { margin-top: 6px; color: var(--ink2); font-size: .9375rem; max-width: 42ch; }
@media (hover: hover) and (pointer: fine) { .esp:hover .esp-f img { transform: scale(1.05); } .esp:hover h3 { text-decoration-color: var(--y); } }
.esp:focus-visible h3 { text-decoration-color: var(--y); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .esp-f { animation: descubre linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
    @keyframes descubre { from { clip-path: inset(0 0 100% 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
  }
}
.fer-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: var(--y); }
.fer-b .sub { color: var(--ink); }
.fer-b .btn { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .fer-b .btn:hover { background: var(--paper); color: var(--ink); } }

/* Tarjetas y cuadrícula */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 28px 20px; margin-top: clamp(20px, 3vw, 32px); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card-m { display: block; aspect-ratio: 8 / 5; border-radius: var(--r); background-color: var(--paper2); background-image: linear-gradient(rgba(27, 26, 23, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 26, 23, .06) 1px, transparent 1px); background-size: 20px 20px; overflow: hidden; display: grid; place-items: center; padding: 8px 14px; transition: transform .35s var(--out); }
.card-m img { width: 100%; height: 100%; object-fit: cover; margin: -8px -14px; max-width: none; width: calc(100% + 28px); height: calc(100% + 16px); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-m { transform: translateY(-3px); } }
.card-b { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.card-c { font-size: .8125rem; color: var(--mute); font-weight: 600; }
.card-t { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.card-t a { text-decoration: none; }
.card-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-d { font-size: .9375rem; color: var(--ink2); font-variant-numeric: tabular-nums; }
.precio b { font-size: 1.1875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.precio small { color: var(--mute); font-size: .75rem; }
.precio.big b { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.precio.big small { font-size: .875rem; }
.card-a { display: flex; gap: 8px; margin-top: 10px; }
.add { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; font-size: .9375rem; transition: background-color .16s, transform .16s var(--out); }
.add.on { background: var(--ink); color: var(--paper); }
.add.big { flex: none; min-height: 56px; padding: 0 30px; font-size: 1.0625rem; background: var(--y); }
.add.big.on { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .add:hover { background: var(--y); } .add.on:hover { background: var(--ink); } }
.qv { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: transparent; transition: transform .16s var(--out), border-color .16s; }
@media (hover: hover) and (pointer: fine) { .qv:hover { border-color: var(--ink); } }
.sk { pointer-events: none; }
.sk .card-m { background-image: none; }
.sk i { display: block; height: 14px; margin-top: 10px; border-radius: 7px; background: var(--paper2); width: 80%; }
.sk i:nth-child(2) { width: 55%; } .sk i:nth-child(3) { width: 35%; }
@media (prefers-reduced-motion: no-preference) { .sk .card-m, .sk i { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); background-size: 200% 100%; animation: brillo 1.3s linear infinite; } @keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } } }
.ctx { margin-top: 20px; padding: 14px; border-radius: var(--r); background: var(--paper2); }
.ctx-r { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ctx-r img { width: 100%; height: auto; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.ctx figcaption { margin-top: 10px; font-size: .875rem; color: var(--ink2); }

/* Catálogo */
.cat { padding-block: 20px clamp(56px, 8vw, 96px); }
.miga ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--mute); }
.miga li { display: inline-flex; align-items: center; }
.miga li + li::before { content: "/"; margin-right: 8px; }
.miga a { text-underline-offset: 3px; padding: 12px 4px; display: inline-flex; min-width: 44px; justify-content: center; }
.miga [aria-current] { color: var(--ink); font-weight: 600; }
.cat-h { margin: 8px 0 24px; }
.cat-g { display: grid; gap: 24px; align-items: start; }
@media (min-width: 62em) { .cat-g { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; } .cat-f { position: sticky; top: calc(var(--head) + 16px); max-height: calc(100dvh - var(--head) - 32px); overflow: auto; padding-right: 8px; overscroll-behavior: contain; } }
@media (max-width: 61.99em) { .cat-f { display: none; } }
.fp { display: flex; flex-direction: column; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 800; margin-bottom: 6px; }
.rad { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.rad input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.rad small, .chip small { color: var(--mute); margin-left: auto; font-variant-numeric: tabular-nums; }
.chips-b, .chips, .activos { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .16s, transform .16s var(--out); }
.chip small { margin-left: 2px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: rgba(253, 251, 247, .75); }
.chip.x { background: var(--y); border-color: var(--ink); }
.chip.x .i { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.chips li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 500; background: #fff; }
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: .875rem; font-weight: 600; }
input[type=text], input[type=tel], input[type=email], input[type=number], select { width: 100%; min-height: 48px; padding: 0 14px; font-size: 1rem; border: 1.5px solid #77736a; border-radius: 10px; background: #fff; }
input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.err { color: var(--err); font-size: .875rem; font-weight: 600; }
.err:empty { display: none; }
.barra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.total { font-weight: 800; font-size: 1.125rem; margin-right: auto; }
.ord { flex-direction: row; align-items: center; gap: 10px; }
.ord select { width: auto; min-width: 200px; }
.fil-b { min-height: 48px; }
.activos { margin-bottom: 14px; }
.pag { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pg { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; transition: background-color .16s, transform .16s var(--out); }
.pg[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .pg:hover { border-color: var(--ink); } }
.estado { padding: clamp(28px, 5vw, 56px); border-radius: var(--r); background: var(--paper2); }
.estado.error, .estado.vacio { margin-top: 12px; }
.estado p { margin-top: 8px; color: var(--ink2); }
.estado .btn, .vacio-a { margin-top: 18px; }
.vacio-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
section.estado { background: none; padding-block: clamp(56px, 9vw, 120px); }

/* Ficha */
.ficha { display: grid; gap: 28px; padding-block: 8px clamp(40px, 6vw, 72px); }
@media (min-width: 62em) { .ficha { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; } .ficha-m { position: sticky; top: calc(var(--head) + 16px); } }
.stage { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper2); }
.stage.dark { background-color: var(--plate); padding: clamp(16px, 4vw, 48px); background-image: linear-gradient(rgba(253, 251, 247, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(253, 251, 247, .06) 1px, transparent 1px); background-size: 32px 32px; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tabs button { min-width: 64px; min-height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; background: transparent; font-weight: 700; overflow: hidden; display: grid; place-items: center; }
.tabs button:has(img) { padding: 0; width: 72px; }
.tabs img { width: 100%; height: 48px; object-fit: cover; }
.tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--y); }
.tabs button:has(img)[aria-pressed="true"] { background: none; box-shadow: 0 0 0 2px var(--y); }
.pie { margin-top: 10px; max-width: 60ch; }
.fi { display: flex; flex-direction: column; gap: 22px; }
.fi-h { font-size: clamp(1.7rem, 2.8vw, 2.6rem); margin-top: -6px; }
.fi-a { display: flex; flex-wrap: wrap; gap: 10px; }
.fi-d { color: var(--ink2); max-width: 60ch; text-wrap: pretty; }
.med { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 8px; }
.med div { padding: 14px; border-radius: var(--r); background: var(--paper2); }
.med dt { font-size: .8125rem; color: var(--mute); font-weight: 600; }
.med dd { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.med small { font-size: .875rem; font-weight: 600; color: var(--mute); }
.chips { margin-top: 8px; }
.dat { display: grid; gap: 4px; margin-top: 8px; }
.dat div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.dat div + div { border-top: 1px solid var(--line); }
.dat dt { color: var(--mute); } .dat dd { font-weight: 600; text-align: right; }
.rel { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }

/* Contacto */
.cont-g { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 48em) { .cont-g { grid-template-columns: 1fr 1fr; } }
.cont-c { padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--paper2); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cont-c.dark { background: var(--plate); }
.cont-c h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cont-c p { max-width: 44ch; flex: 1; }

/* Diálogos */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); max-width: none; max-height: none; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(27, 26, 23, .5); transition: opacity .3s var(--out); }
.sheet { position: fixed; margin: 0; }
.sheet-in { padding: 16px clamp(16px, 4vw, 24px) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.sheet-right { inset: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; border-radius: 22px 0 0 22px; overflow: auto; translate: 100% 0; transition: translate .4s var(--drawer), overlay .4s allow-discrete, display .4s allow-discrete; }
.sheet-right[open] { translate: 0 0; } @starting-style { .sheet-right[open] { translate: 100% 0; } }
.sheet-bottom { inset: auto 0 0 0; width: 100%; max-height: 90dvh; border-radius: 22px 22px 0 0; overflow: auto; translate: 0 100%; transition: translate .4s var(--drawer), overlay .4s allow-discrete, display .4s allow-discrete; }
.sheet-bottom[open] { translate: 0 0; } @starting-style { .sheet-bottom[open] { translate: 0 100%; } }
.sheet-full { inset: 0; width: 100%; height: 100dvh; overflow: auto; opacity: 0; transition: opacity .2s var(--out), overlay .2s allow-discrete, display .2s allow-discrete; }
.sheet-full[open] { opacity: 1; } @starting-style { .sheet-full[open] { opacity: 0; } }
.sheet-full .sheet-in { gap: 22px; }
.sheet-full h2 { font-size: 1.125rem; font-weight: 800; margin-bottom: 4px; }
.sheet-full li a { display: flex; align-items: center; min-height: 52px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.sheet-full .btn { align-self: flex-start; }
.cj-h { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 2; background: var(--paper); padding-block: 4px; margin-inline: calc(-1 * clamp(16px, 4vw, 24px)); padding-inline: clamp(16px, 4vw, 24px); }
.cj-h h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-right: auto; }
.cerrar { margin-left: auto; }
.grupos { display: flex; flex-direction: column; gap: 24px; }
.grupo h3 { font-size: 1.0625rem; font-weight: 800; }
.li-s { display: grid; grid-template-columns: 84px 1fr 44px; gap: 12px; align-items: center; padding: 12px 0; }
.li-s + .li-s { border-top: 1px solid var(--line); }
.li-p { border-radius: 10px; padding: 4px 6px; background-image: linear-gradient(rgba(253, 251, 247, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(253, 251, 247, .06) 1px, transparent 1px); background-size: 14px 14px; }
.li-i a { font-weight: 700; line-height: 1.25; display: block; }
.cj-f { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: auto calc(-1 * clamp(16px, 4vw, 24px)) calc(-24px - env(safe-area-inset-bottom)); padding: 16px clamp(16px, 4vw, 24px) calc(20px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); display: flex; flex-direction: column; gap: 10px; }
.cj-f .btn { width: 100%; }
.vacio { padding: 24px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.vacio h3 { font-size: 1.375rem; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 16px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.priv summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.priv p { font-size: .875rem; color: var(--ink2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.listo { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 12px; }
.listo h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.listo .btn { width: 100%; }
.okm { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--y); }
.okm .i { width: 28px; height: 28px; stroke-width: 2.4; }
.modal { position: fixed; inset: 0; margin: auto; width: min(920px, 94vw); max-height: 90dvh; border-radius: 22px; overflow: auto; opacity: 0; scale: .96; transition: opacity .2s var(--out), scale .2s var(--out), overlay .2s allow-discrete, display .2s allow-discrete; }
.modal[open] { opacity: 1; scale: 1; } @starting-style { .modal[open] { opacity: 0; scale: .96; } }
.modal-in { position: relative; }
.modal .cerrar { position: absolute; right: 10px; top: 10px; z-index: 3; background: var(--paper); }
.qv-g { display: grid; }
@media (min-width: 48em) { .qv-g { grid-template-columns: 1.1fr 1fr; } }
.qv-m { display: grid; place-items: center; padding: 28px; min-height: 240px; background-image: linear-gradient(rgba(253, 251, 247, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(253, 251, 247, .06) 1px, transparent 1px); background-size: 28px 28px; }
.qv-b { padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.qv-b h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; padding-right: 36px; }
.qv-med { font-weight: 700; font-variant-numeric: tabular-nums; }
.qv-med small { color: var(--mute); font-weight: 500; }
.qv-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.aviso { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 16px; opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9375rem; transition: opacity .2s var(--out), translate .25s var(--out); max-width: 92vw; }
.aviso.on { opacity: 1; translate: -50% 0; }
.aviso:empty { display: none; }

/* Pie */
.foot { margin-top: 0; background: var(--plate); color: rgba(253, 251, 247, .85); padding-block: 36px calc(36px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 14px; font-size: .9375rem; }
.foot-l { max-width: 60ch; }
.foot a { color: #fdfbf7; text-underline-offset: 4px; }
.credit .heart { color: #ff5a5a; }
.sec + .foot, .sec:last-of-type + .foot { margin-top: 0; }

/* Transiciones entre vistas */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 160ms var(--out) both vt-out; }
  ::view-transition-new(root) { animation: 300ms var(--out) both vt-in; }
  ::view-transition-group(plano) { animation-duration: .5s; animation-timing-function: var(--drawer); }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) { :root { --line: rgba(27, 26, 23, .5); --mute: #4a463f; } }

.mas summary { cursor: pointer; font-weight: 600; font-size: .875rem; min-height: 44px; display: flex; align-items: center; }
.mas .chips-b { padding-bottom: 8px; }
@media (pointer: fine) { .rad { min-height: 36px; } }

.cj-h .ib:first-child:not(.cerrar) .i { transform: rotate(180deg); }

@media (max-width: 61.99em) { .mega { display: none; } }
.card-t, .li-i a, .mini-n, .qv-b h2, .fi-h { overflow-wrap: anywhere; }
.li-i { min-width: 0; }
.li-i a { text-decoration: none; } .li-i a:hover { text-decoration: underline; }
