/* Sizygia · tienda (v3). Valores en replica/design/tokens.json */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #f5f1eb;
  --border: #e6e0d6;
  --border-input: #8a8378;
  --text: #08060e;
  --text-muted: #5c5762;
  --accent: #08060e;
  --on-accent: #ffffff;
  --highlight: #b8965a;
  --announce: #e8d5a3;
  --accent-text: #7a5c27;
  --sol: #f1e1b6;
  --tierra: #e6d9c6;
  --luna: #d7e3e1;
  --tinte: var(--surface);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --pop: 0 16px 40px -12px rgba(8, 6, 14, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 82.5rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
}
body[data-universo="sol"] { --tinte: var(--sol); }
body[data-universo="tierra"] { --tinte: var(--tierra); }
body[data-universo="luna"] { --tinte: var(--luna); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body.bloqueado { overflow: hidden; }
::selection { background: var(--announce); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.envoltorio { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--text); color: var(--bg); padding: .6rem 1rem; }
.saltar:focus { left: 1rem; }

/* Iconos */
.ico { width: 1.35rem; height: 1.35rem; flex: none; }

/* Franja de anuncios */
.anuncios { background: var(--announce); font-size: .82rem; font-weight: 500; text-align: center; height: 2.25rem; overflow: hidden; position: relative; }
.anuncios p { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding-inline: 1rem; transition: opacity .5s ease, transform .5s var(--ease); }
.anuncios p[aria-hidden="true"] { opacity: 0; transform: translateY(-6px); }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.cabecera .fila { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 4.5rem; }
.cabecera .izq, .cabecera .der { display: flex; align-items: center; gap: .3rem; }
.cabecera .der { justify-content: flex-end; }
.icono-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; border-radius: 50%; cursor: pointer; position: relative; text-decoration: none; }
.icono-btn:hover { background: var(--surface); }
.contador { position: absolute; top: .25rem; right: .15rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; background: var(--highlight); color: var(--text); font-size: .7rem; font-weight: 500; display: grid; place-items: center; transition: transform .3s var(--ease); }
.contador[data-n="0"] { display: none; }
.contador.salto { transform: scale(1.35); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 3.4rem; width: auto; }
.pie-logo { display: block; height: 3rem; width: auto; margin-bottom: 1rem; }
.enlace-test { font-size: .92rem; font-weight: 500; text-decoration: none; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; }
.enlace-test:hover { border-color: var(--text); }
.nav-escritorio { display: flex; justify-content: center; gap: .3rem 1.8rem; flex-wrap: wrap; font-size: .95rem; padding-bottom: .7rem; }
.nav-escritorio a { text-decoration: none; padding: .2rem 0; border-bottom: 1px solid transparent; }
.nav-escritorio a:hover, .nav-escritorio a[aria-current="page"] { border-color: currentColor; }
.nav-escritorio .sep { width: 1px; background: var(--border); }
@media (max-width: 900px) { .nav-escritorio, .enlace-test { display: none; } .logo img { height: 2.9rem; } }
@media (min-width: 901px) { .solo-movil { display: none !important; } }

/* Barra de progreso de envío */
.progreso { background: var(--text); color: var(--bg); font-size: .82rem; }
.progreso .envoltorio { display: flex; align-items: center; justify-content: center; gap: .9rem; height: 2.15rem; }
.progreso .pista { width: min(9rem, 28vw); height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.progreso .lleno { height: 100%; width: 0; background: var(--highlight); border-radius: inherit; transition: width .6s var(--ease); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .7rem 1.5rem; border-radius: var(--r-md); border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease; }
.boton:hover { background: var(--highlight); border-color: var(--highlight); color: var(--text); }
.boton:active { transform: scale(.98); }
.boton[disabled] { opacity: .45; cursor: not-allowed; }
.boton--contorno { background: var(--bg); color: var(--text); border-color: var(--text); }
.boton--contorno:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.boton--ancho { width: 100%; min-height: 3.25rem; }
.boton--claro { background: var(--bg); color: var(--text); border-color: var(--bg); }
.boton--claro:hover { background: var(--announce); border-color: var(--announce); }
.boton--sobre-foto { background: transparent; color: #fff; border-color: #fff; }
.boton--sobre-foto:hover { background: #fff; color: var(--text); border-color: #fff; }
.botones { display: flex; flex-wrap: wrap; gap: .7rem; }
.enlace { font-weight: 500; }

/* Portada */
.hero { position: relative; min-height: min(78svh, 46rem); display: grid; align-items: end; overflow: hidden; background: #3a3129; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (prefers-reduced-motion: no-preference) { .hero img { animation: acercar 9s var(--ease) both; } }
@keyframes acercar { from { transform: scale(1.06); } to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 6, 14, .62), rgba(8, 6, 14, .08) 55%, transparent); }
.hero .envoltorio { position: relative; z-index: 1; padding-block: 3rem clamp(2rem, 6vw, 4rem); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5rem); max-width: 11ch; }
.hero p { font-size: 1.15rem; max-width: 30rem; color: #f3ede4; }

.bloque { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.bloque--surface { background: var(--surface); }
.cab-bloque { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.cab-bloque h2 { margin: 0; }
.cab-bloque p { margin: .3rem 0 0; color: var(--text-muted); }

.pie-bloque { margin: 1.4rem 0 0; }
.listado { padding-top: 2rem; }

/* Fila de categorías */
.categorias { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; padding: 0 0 .6rem; margin: 0; scrollbar-width: none; }
.categorias li { scroll-snap-align: start; }
.categorias a { display: block; text-decoration: none; }
.categorias .foto { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.categorias img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.categorias a:hover img { transform: scale(1.05); }
.categorias span { display: block; font-family: var(--display); font-size: 1.35rem; margin-top: .5rem; }

/* Carrusel */
.carril { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; padding: 0 0 .8rem; margin: 0; scrollbar-width: none; }
.carril > li { scroll-snap-align: start; }
@media (max-width: 900px) { .carril { grid-auto-columns: 46%; } }
.flechas { display: flex; gap: .4rem; }
.flechas button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.flechas button:hover { border-color: var(--text); }

/* Tarjeta de producto */
.rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .75rem; } }
.tarjeta { position: relative; }
.tarjeta .fotos { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.tarjeta .tira { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tarjeta .tira::-webkit-scrollbar, .carril::-webkit-scrollbar, .categorias::-webkit-scrollbar { display: none; }
.tarjeta .tira a { display: block; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.tarjeta .tira img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .tarjeta .fotos .segunda { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
  .tarjeta:hover .fotos .segunda { opacity: 1; }
  .tarjeta .tira { overflow: hidden; }
  .tarjeta .tira a + a { display: none; }
}
@media (hover: none) { .tarjeta .fotos .segunda { display: none; } }
.tarjeta .puntos { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); display: flex; gap: .3rem; }
.tarjeta .puntos i { width: .4rem; height: .4rem; border-radius: 50%; background: rgba(8, 6, 14, .25); }
.tarjeta .puntos i.activo { background: var(--text); }
@media (hover: hover) { .tarjeta .puntos { display: none; } }
.tarjeta .etiqueta { position: absolute; top: .55rem; left: .55rem; z-index: 2; background: var(--bg); border-radius: var(--r-sm); padding: .1rem .5rem; font-size: .75rem; font-weight: 500; }
.tarjeta .anadir { position: absolute; right: .55rem; bottom: .55rem; z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--bg); box-shadow: 0 2px 8px rgba(8, 6, 14, .15); display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .15s ease; text-decoration: none; }
.tarjeta .anadir:hover { background: var(--text); color: var(--bg); }
.tarjeta .anadir:active { transform: scale(.92); }
.tarjeta .anadir.ok { background: var(--highlight); }
.tarjeta.agotada .tira img { opacity: .55; }
.tarjeta .info { padding-top: .7rem; }
.tarjeta .nombre { display: block; font-weight: 500; text-decoration: none; line-height: 1.3; }
.tarjeta .nombre:hover { text-decoration: underline; }
.tarjeta .material { font-size: .85rem; color: var(--text-muted); margin: .15rem 0 .2rem; }
.tarjeta .precio { font-weight: 500; font-variant-numeric: tabular-nums; margin: 0; }

/* Universos en tríptico */
.triptico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.triptico a { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: #fff; background: #3a3129; }
.triptico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.triptico a:hover img { transform: scale(1.04); }
.triptico a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 6, 14, .7), transparent 55%); }
.triptico .texto-t { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 1; }
.triptico .nombre-u { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; display: block; }
.triptico .lema-u { font-family: var(--display); font-style: italic; font-size: 1.2rem; }
.triptico--dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .triptico, .triptico--dos { grid-template-columns: 1fr; } .triptico a { aspect-ratio: 16 / 11; } }

/* Garantías */
.garantias { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.garantias li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.garantias strong { display: block; font-weight: 500; }
.garantias span { color: var(--text-muted); }
.garantias .ico { color: var(--accent-text); margin-top: .1rem; }

/* Instagram */
.mosaico { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.mosaico a { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--surface); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaico a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .mosaico { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Test */
.banda-test { background: var(--surface); }
.banda-test .envoltorio { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.banda-test svg { width: 7rem; }
.banda-test h2 { margin: 0 0 .2rem; }
.banda-test p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) { .banda-test .envoltorio { grid-template-columns: 1fr; } }

/* Página de categoría */
.migas { font-size: .85rem; color: var(--text-muted); padding-top: 1.2rem; }
.migas a { color: inherit; }
.cab-categoria { padding-block: .8rem 1.4rem; }
.cab-categoria h1 { margin-bottom: .2rem; }
.cab-categoria .lema { font-family: var(--display); font-style: italic; font-size: 1.35rem; margin: 0; }
.cab-universo { background: var(--tinte); }
.cab-universo .envoltorio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.cab-universo .texto-u { padding-block: 2rem; }
.cab-universo h1 { font-size: clamp(3.4rem, 9vw, 6rem); line-height: .9; }
.cab-universo .lema { font-family: var(--display); font-style: italic; font-size: 1.5rem; }
.cab-universo .retrato { color: var(--text-muted); max-width: 32rem; }
.cab-universo .foto-u { align-self: stretch; min-height: 18rem; position: relative; }
.cab-universo .foto-u img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .cab-universo .envoltorio { grid-template-columns: 1fr; padding-inline: 0; } .cab-universo .texto-u { padding: 1.5rem var(--pad) 1.8rem; } .cab-universo .foto-u { order: -1; min-height: 15rem; } }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: 0 0 .3rem; margin: 0 0 1.4rem; list-style: none; scrollbar-width: none; }
.chips a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .35rem 1rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: .92rem; }
.chips a:hover { border-color: var(--text); }
.chips a[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.recuento { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.vacio { padding: 3rem 0; text-align: center; }

/* Ficha */
.ficha { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 1rem 3rem; align-items: start; }
.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.galeria figure { margin: 0; aspect-ratio: 4 / 5; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; }
.galeria figure:first-child { grid-column: 1 / -1; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria .puntos { display: none; }
.compra { position: sticky; top: 7rem; }
.compra .etiqueta-u { display: inline-flex; align-items: center; gap: .4rem; background: var(--tinte); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 500; text-decoration: none; }
.compra h1 { margin: .7rem 0 .25rem; font-size: clamp(2.2rem, 4vw, 3rem); }
.compra .lema { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--accent-text); margin-bottom: .6rem; }
.compra .precio { font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: .3rem; }
.compra .material { color: var(--text-muted); font-size: .95rem; }
.compra .desc { margin-top: 1rem; }
.variantes { border: 0; padding: 0; margin: 1.2rem 0; }
.variantes legend { padding: 0; font-size: .9rem; margin-bottom: .5rem; }
.variantes legend b { font-weight: 500; }
.variantes label { display: inline-flex; margin: 0 .4rem .4rem 0; }
.variantes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variantes span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; }
.variantes input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.variantes input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.variantes input:disabled + span { color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; }
.acciones { display: grid; gap: .6rem; margin: 1.2rem 0; }
.aviso-envio { font-size: .9rem; color: var(--text-muted); margin: 0 0 1.4rem; }
.compra .garantias { grid-template-columns: 1fr 1fr; gap: .9rem; padding: 1.1rem 0; border-block: 1px solid var(--border); margin-bottom: .4rem; }
.desplegable { border-bottom: 1px solid var(--border); }
.desplegable summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-weight: 500; min-height: 2.75rem; }
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; transition: transform .25s var(--ease); }
.desplegable[open] summary::after { transform: rotate(45deg); }
.desplegable .cont { padding-bottom: 1rem; font-size: .95rem; }
.desplegable dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0 0 .8rem; }
.desplegable dt { color: var(--text-muted); }
.desplegable dd { margin: 0; }
@media (max-width: 900px) {
  .ficha { grid-template-columns: 1fr; padding-top: 0; }
  .compra { position: static; }
  .galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin-inline: calc(var(--pad) * -1); scrollbar-width: none; }
  .galeria figure { flex: 0 0 100%; border-radius: 0; scroll-snap-align: start; }
  .galeria-envoltorio { position: relative; }
  .galeria-envoltorio .puntos { display: flex; justify-content: center; gap: .35rem; margin-top: .6rem; }
  .galeria-envoltorio .puntos i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--border); }
  .galeria-envoltorio .puntos i.activo { background: var(--text); }
}
@media (min-width: 901px) { .galeria-envoltorio .puntos { display: none; } }
.barra-movil { position: sticky; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: .6rem var(--pad); display: none; gap: .8rem; align-items: center; }
.barra-movil .boton { flex: 1; }
@media (max-width: 900px) { .barra-movil.visible { display: flex; } }

/* Paneles laterales: menú y bolsa */
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(8, 6, 14, .35); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.velo.abierto { opacity: 1; pointer-events: auto; }
.panel-lateral { position: fixed; top: 0; bottom: 0; z-index: 50; width: min(26rem, 92vw); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--pop); transition: transform .45s var(--ease); visibility: hidden; }
.panel-lateral.abierto { visibility: visible; transform: none; }
.panel-lateral.derecha { right: 0; transform: translateX(100%); }
.panel-lateral.izquierda { left: 0; transform: translateX(-100%); }
.panel-lateral.abierto.derecha, .panel-lateral.abierto.izquierda { transform: none; }
.panel-lateral .cab-panel { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.panel-lateral .cab-panel h2 { font-size: 1.6rem; margin: 0; }
.panel-lateral .cuerpo { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.panel-lateral .pie-panel { border-top: 1px solid var(--border); padding: 1rem 1.2rem 1.2rem; display: grid; gap: .7rem; }
.menu-lista { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.menu-lista a { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; text-decoration: none; font-family: var(--display); font-size: 1.5rem; border-bottom: 1px solid var(--border); }
.menu-titulo { font-size: .85rem; color: var(--text-muted); margin: 0 0 .2rem; }
.linea { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.linea img { width: 4.5rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); }
.linea .n { display: block; font-weight: 500; line-height: 1.3; }
.linea .v { font-size: .85rem; color: var(--text-muted); }
.linea .p { font-weight: 500; font-variant-numeric: tabular-nums; }
.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-md); margin-top: .5rem; }
.cantidad button { width: 2.25rem; height: 2.25rem; border: 0; background: none; cursor: pointer; }
.cantidad output { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.quitar { border: 0; background: none; padding: 0; margin-top: .4rem; font-size: .82rem; color: var(--text-muted); text-decoration: underline; cursor: pointer; display: block; }
.totales { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; font-variant-numeric: tabular-nums; }
.totales .total { font-weight: 500; font-size: 1.1rem; }
.nota-bolsa { font-size: .85rem; color: var(--text-muted); margin: 0; }
.bolsa-vacia { text-align: center; padding: 3rem 0; }

/* Texto largo */
.texto .seccion { padding-block: clamp(2rem, 5vw, 3.5rem); }
.texto .seccion + .seccion { border-top: 1px solid var(--border); }
.texto .contenedor { max-width: 46rem; margin-inline: auto; padding-inline: var(--pad); }
.texto ul, .texto ol { padding-left: 1.2rem; }
.texto li { margin-bottom: .45rem; }
.texto h3 { margin-top: 1.4rem; }
.fondo-lino { background: var(--surface); }
.destacado { background: var(--surface); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.pendiente { background: #f6d8d2; color: #7a1f12; padding: 0 .35rem; border-radius: 3px; font-weight: 500; }
.pasos { list-style: none; padding: 0 !important; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem 1rem; }
.pasos li::before { content: counter(paso); grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--announce); display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.pasos h3 { margin: .2rem 0 0; font-size: 1.3rem; }
.pasos p { margin: 0; color: var(--text-muted); }

/* Pie */
.pie { background: var(--surface); margin-top: 0; padding-block: 3rem 2rem; font-size: .95rem; }
.pie .columnas { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.pie .firma { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; max-width: 16ch; }
.pie h2 { font: 500 .95rem/1.4 var(--sans); margin-bottom: .6rem; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .35rem; }
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie .legal { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: var(--text-muted); }
@media (max-width: 760px) { .pie .columnas { grid-template-columns: 1fr 1fr; } .pie .firma { grid-column: 1 / -1; } }

/* Aviso al añadir */
.aviso-flotante { position: fixed; left: 50%; bottom: 1.2rem; z-index: 60; transform: translate(-50%, 150%); opacity: 0; visibility: hidden; background: var(--text); color: var(--bg); padding: .7rem 1.2rem; border-radius: var(--r-md); font-size: .92rem; transition: transform .4s var(--ease), opacity .3s ease, visibility .4s; }
.aviso-flotante.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Pago */
.aviso-pago { margin: .6rem 0 0; padding: .6rem .75rem; border-radius: var(--r-sm); background: #f7e9e4; color: #7a2e1d; font-size: .88rem; line-height: 1.4; }
.aviso-pago[hidden] { display: none; }
[data-pagar][aria-busy="true"], [data-comprar][aria-busy="true"] { opacity: .7; cursor: progress; }
.pie-panel .nota-bolsa a { color: inherit; }

/* Test «¿Qué universo eres?» */
.test { padding-block: clamp(2.5rem, 7vw, 5rem); scroll-margin-top: 6rem; }
.test-paso { max-width: 40rem; margin-inline: auto; }
.test-paso[hidden] { display: none; }
.test-intro { text-align: center; }
.test-intro h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); }
.test-entradilla { font-size: 1.12rem; color: var(--text-muted); max-width: 32rem; margin: 0 auto 2rem; text-wrap: pretty; }
.test-universos { list-style: none; padding: 0; margin: 0 0 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.test-universos li { border-radius: var(--r-md); padding: 1.3rem .8rem; display: grid; gap: .3rem; }
.test-universos span { font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1; }
.test-universos em { font-size: .82rem; color: var(--text-muted); font-style: normal; line-height: 1.35; }
.u-sol { background: var(--sol); } .u-tierra { background: var(--tierra); } .u-luna { background: var(--luna); }
.test-nota { font-size: .85rem; color: var(--text-muted); margin-top: 1rem; }
.test-progreso { display: flex; align-items: center; gap: 1rem; font-size: .88rem; color: var(--text-muted); margin-bottom: 2rem; }
.test-progreso .pista { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.test-progreso .lleno { display: block; height: 100%; width: 0; background: var(--text); transition: width .45s var(--ease); }
.test-tema { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--text-muted); margin: 0 0 .3rem; }
.test-pregunta h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 1.6rem; }
.test-pregunta h2:focus, .test-intro h1:focus, .test-nombre:focus { outline: none; }
.test-opciones { display: grid; gap: .65rem; }
.test-opcion { display: grid; gap: .15rem; text-align: left; width: 100%; padding: 1rem 1.15rem; min-height: 3.5rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .15s ease; }
.test-opcion .t { font-weight: 500; font-size: 1.05rem; }
.test-opcion .d { font-size: .9rem; color: var(--text-muted); }
.test-opcion:hover { border-color: var(--text); }
.test-opcion:active { transform: scale(.99); }
.test-opcion[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.test-opcion[aria-pressed="true"] .d { color: rgba(255, 255, 255, .78); }
.enlace-atras { margin-top: 1.4rem; background: none; border: 0; padding: .4rem 0; font: inherit; font-size: .92rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.enlace-atras:hover { color: var(--text); }
.test-tarjeta { border-radius: var(--r-md); padding: clamp(1.8rem, 5vw, 3rem); text-align: center; background: var(--surface); }
.test-resultado[data-u="sol"] .test-tarjeta { background: var(--sol); }
.test-resultado[data-u="tierra"] .test-tarjeta { background: var(--tierra); }
.test-resultado[data-u="luna"] .test-tarjeta { background: var(--luna); }
.test-soy { margin: 0; font-size: .95rem; }
.test-nombre { font-size: clamp(4rem, 13vw, 6rem); line-height: .95; margin: .2rem 0 .3rem; }
.test-frase { font-family: var(--display); font-style: italic; font-size: 1.35rem; margin: 0 0 1rem; }
.test-texto { max-width: 30rem; margin: 0 auto 1.8rem; text-wrap: pretty; }
.reparto { display: grid; gap: .8rem; max-width: 24rem; margin-inline: auto; text-align: left; }
.reparto-fila { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; font-size: .95rem; }
.reparto-fila output { font-variant-numeric: tabular-nums; }
.reparto-fila .pista { grid-column: 1 / -1; height: 4px; background: rgba(8, 6, 14, .12); border-radius: 2px; overflow: hidden; }
.reparto-fila .lleno { display: block; height: 100%; width: 0; background: rgba(8, 6, 14, .45); transition: width .8s var(--ease) .15s; }
.test-resultado[data-u="sol"] [data-reparto="sol"], .test-resultado[data-u="tierra"] [data-reparto="tierra"], .test-resultado[data-u="luna"] [data-reparto="luna"] { font-weight: 500; }
.test-resultado[data-u="sol"] [data-reparto="sol"] .lleno, .test-resultado[data-u="tierra"] [data-reparto="tierra"] .lleno, .test-resultado[data-u="luna"] [data-reparto="luna"] .lleno { background: var(--text); }
.test-acciones { display: grid; gap: .65rem; margin-top: 1.4rem; justify-items: stretch; }
.test-acciones .enlace-atras { justify-self: center; margin-top: .4rem; }
.test-acciones [aria-busy="true"] { opacity: .65; cursor: progress; }
.aviso-test { margin: 0; padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--surface); font-size: .9rem; }
.aviso-test[hidden] { display: none; }
.test-piezas { margin-top: 3.5rem; }
.test-piezas > p { color: var(--text-muted); margin-bottom: 1.4rem; }
.test-resultado { max-width: 40rem; }
.test-resultado .test-piezas .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .test-universos { grid-template-columns: 1fr; } .test-universos li { grid-template-columns: auto 1fr; align-items: baseline; gap: .8rem; text-align: left; padding: 1rem 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .test-progreso .lleno, .reparto-fila .lleno, .test-opcion { transition: none; } }

/* ——— Rebaja temporal (Black Week) ——— */
.precio.rebajado { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.precio.rebajado del { color: #8a8378; font-weight: 400; font-size: .85em; }
.precio.rebajado .insignia { background: var(--ink, #08060e); color: #f7f3ed; font-size: .68rem; font-weight: 500; letter-spacing: .04em; padding: .15rem .45rem; border-radius: 2px; }
.promo-banda { background: var(--ink, #08060e); color: #f7f3ed; text-align: center; padding: 2.2rem 1.25rem; display: grid; justify-items: center; gap: .6rem; }
.promo-banda .promo-tit { font-family: "Cormorant Garamond", serif; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }
.promo-banda .promo-txt { max-width: 36rem; margin: 0; opacity: .85; }
.promo-banda .promo-reloj { color: #b8965a; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.promo-banda .boton { margin-top: .4rem; }
