/* Regalos — dirección de arte «Estuche».
   La web es el estuche: sobria, precisa, gris de piedra y negro, líneas de 1 px a la vista, esquinas rectas, sin
   sombras, un solo acento naranja. Lo cálido es lo de dentro (las plantillas). Host Grotesk muy grande y apretada;
   Spline Sans Mono solo para la «ficha técnica» de cada regalo. El kit queda debajo como fontanería. */

@font-face { font-family: 'Host Grotesk'; src: url('/fuentes/host-grotesk.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Host Grotesk'; src: url('/fuentes/host-grotesk-cursiva.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Spline Sans Mono'; src: url('/fuentes/spline-sans-mono.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --f-texto: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-titulos: var(--f-texto);
  --f-datos: 'Spline Sans Mono', ui-monospace, 'Cascadia Mono', monospace;
  --peso-titulos: 720;
  --tracking-titulos: -0.035em;
  --radio-s: 0; --radio: 0; --radio-l: 0; --radio-xl: 0;
  --fondo: #e4e4e1;
  --superficie: #f4f4f2;
  --superficie-2: #ecece9;
  --hundido: #d8d8d4;
  --linea: #c9c9c4;
  --linea-fuerte: #9e9e98;
  --texto: #121212;
  --texto-2: #4b4b45;
  --texto-3: #66665f;
  --acento: #ff4f00;
  --acento-hover: #e64700;
  --acento-suave: #ffdccb;
  --acento-texto: #a83300;
  --sobre-acento: #121212;
  --tinta: #121212;
  --papel: #f4f4f2;
  --negro: #121212;
  --ok: #1f6b3f; --ok-suave: #d7ebdd;
  --error: #b3261e; --error-suave: #f6dbd8;
  --atencion: #8a5300; --atencion-suave: #f6e6c8;
  --sombra-1: none; --sombra-2: none; --sombra-3: 0 30px 60px -30px rgb(0 0 0 / 0.45);
  --velo: rgb(18 18 18 / 0.55);
  --foco: 0 0 0 2px var(--fondo), 0 0 0 4px var(--acento);
  --ancho: 1280px;
  --barra-alto: 56px;
  --curva: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema='claro']) {
    --fondo: #111111; --superficie: #1b1b1a; --superficie-2: #222220; --hundido: #0a0a0a; --linea: #2c2c2a; --linea-fuerte: #4a4a45;
    --texto: #ededea; --texto-2: #b4b4ad; --texto-3: #8f8f88; --acento: #ff6a26; --acento-hover: #ff8248; --acento-suave: #3a1b0c;
    --acento-texto: #ff8a55; --sobre-acento: #111111; --tinta: #ededea; --papel: #1b1b1a;
    --ok: #5cc98a; --ok-suave: #12301f; --error: #ff7b6e; --error-suave: #3a1714; --atencion: #f0b14a; --atencion-suave: #33260f;
    --velo: rgb(0 0 0 / 0.7);
  }
}
:root[data-tema='oscuro'] {
  --fondo: #111111; --superficie: #1b1b1a; --superficie-2: #222220; --hundido: #0a0a0a; --linea: #2c2c2a; --linea-fuerte: #4a4a45;
  --texto: #ededea; --texto-2: #b4b4ad; --texto-3: #8f8f88; --acento: #ff6a26; --acento-hover: #ff8248; --acento-suave: #3a1b0c;
  --acento-texto: #ff8a55; --sobre-acento: #111111; --tinta: #ededea; --papel: #1b1b1a;
  --ok: #5cc98a; --ok-suave: #12301f; --error: #ff7b6e; --error-suave: #3a1714; --atencion: #f0b14a; --atencion-suave: #33260f;
  --velo: rgb(0 0 0 / 0.7);
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────────────────── */
body { font-size: 16px; line-height: 1.5; font-feature-settings: 'ss01'; }
h1, h2, h3 { line-height: 0.98; }
a { color: var(--texto); text-decoration-color: var(--acento); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--acento-texto); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 0; }
::selection { background: var(--acento); color: #121212; }
.mono, code, kbd { font-family: var(--f-datos); }
.principal { padding: 0; }
.contenedor { max-width: var(--ancho); padding-inline: clamp(16px, 3.4vw, 40px); }
.tenue { color: var(--texto-3); }
.suave { color: var(--texto-2); }

/* ── Barra ────────────────────────────────────────────────────────────────────────────────────────────── */
.barra { background: var(--fondo); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--texto); }
.marca { gap: 10px; font-weight: 760; font-size: 1.12rem; letter-spacing: -0.03em; }
.marca-caja { width: 22px; height: 22px; background: var(--negro); position: relative; flex-shrink: 0; }
:root[data-tema='oscuro'] .marca-caja { background: #ededea; }
.marca-caja::before, .marca-caja::after { content: ''; position: absolute; background: var(--acento); }
.marca-caja::before { left: 9px; top: 0; bottom: 0; width: 4px; }
.marca-caja::after { left: 0; right: 0; top: 6px; height: 4px; }
.navegacion { gap: 0; margin-left: clamp(16px, 3vw, 40px); height: 100%; }
.navegacion a { height: 100%; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 0; color: var(--texto-2); font-size: 15px; font-weight: 520; border-left: 1px solid transparent; }
.navegacion a:hover { background: transparent; color: var(--texto); }
.navegacion a[aria-current='page'] { background: transparent; color: var(--texto); box-shadow: inset 0 -3px 0 var(--acento); }
.boton-menu { display: none; }
@media (max-width: 760px) { .boton-menu { display: inline-flex; } }
.cuenta-boton { border-radius: 0; border-color: var(--texto); background: transparent; }
.cuenta-boton .avatar { border-radius: 0; background: var(--negro); color: var(--acento); }

/* ── Botones y campos ─────────────────────────────────────────────────────────────────────────────────── */
.boton {
  --b-fondo: transparent; --b-texto: var(--texto); --b-borde: var(--texto); --b-hover: var(--texto);
  min-height: 44px; padding: 10px 18px; border-radius: 0; box-shadow: none; font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  transition: background 120ms, color 120ms, border-color 120ms, transform 120ms;
}
.boton:hover { background: var(--texto); color: var(--fondo); }
.boton.primario { --b-fondo: var(--acento); --b-texto: #121212; --b-borde: var(--acento); }
.boton.primario:hover { background: var(--texto); color: var(--acento); border-color: var(--texto); }
.boton.fantasma { --b-borde: transparent; }
.boton.fantasma:hover { background: var(--superficie-2); color: var(--texto); }
.boton.peligro { --b-fondo: transparent; --b-texto: var(--error); --b-borde: var(--error); }
.boton.peligro:hover { background: var(--error); color: #fff; }
.boton.grande { min-height: 56px; padding: 14px 26px; font-size: 17px; border-radius: 0; }
.boton.pequeno { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 0; }
.boton.cargando::after { border-radius: 50%; }
.boton .flecha { transition: transform 160ms var(--curva); }
.boton:hover .flecha { transform: translateX(4px); }
.entrada, .campo input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']), .campo select, .campo textarea {
  border-radius: 0; border-color: var(--linea-fuerte); background: var(--superficie); min-height: 46px;
}
.entrada:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); }
.campo > label, .campo > .rotulo { font-weight: 600; font-size: 14px; }
label.casilla input { border-radius: 0; }
label.casilla input[type='radio'] { border-radius: 50%; }
.interruptor input { border-radius: 0; }
.interruptor input::after { border-radius: 0; }
.interruptor input:checked { background: var(--acento); }
.segmentado { border-radius: 0; padding: 0; gap: 0; background: transparent; border-color: var(--texto); }
.segmentado button, .segmentado label { border-radius: 0; }
.segmentado button[aria-pressed='true'], .segmentado label:has(input:checked) { background: var(--texto); color: var(--fondo); box-shadow: none; }
.tarjeta { border-radius: 0; box-shadow: none; border-color: var(--linea); background: var(--superficie); }
.lista { border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--texto); }
.lista > li, .lista > .elemento { border-top-color: var(--linea); padding-inline: 0; }
.etiqueta { border-radius: 0; font-family: var(--f-datos); font-weight: 500; font-size: 11.5px; letter-spacing: 0; text-transform: none; padding: 2px 7px; }
.dialogo { border-radius: 0; border: 1px solid var(--texto); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.5); }
.dialogo header { border-bottom: 1px solid var(--linea); }
.tostada { border-radius: 0; background: var(--negro); color: #ededea; }
.menu { border-radius: 0; border-color: var(--texto); box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.4); }
.menu button, .menu a { border-radius: 0; }
.vacio { border-radius: 0; border: 1px solid var(--linea); background: transparent; }
.qr { border-radius: 0; border: 0; padding: 10px; }
.pasos li { border-top-width: 2px; }
.esqueleto { border-radius: 0; }

/* ── Piezas comunes ───────────────────────────────────────────────────────────────────────────────────── */
.ficha { font-family: var(--f-datos); font-size: 13px; color: var(--texto-2); letter-spacing: -0.01em; display: flex; flex-wrap: wrap; gap: 0 1.1em; }
.ficha span::before { content: '· '; color: var(--acento); }
.ficha span:first-child::before { content: none; }
.num { font-family: var(--f-datos); font-variant-numeric: tabular-nums; }
.raya { border: 0; border-top: 1px solid var(--texto); margin: 0; }
.titulo-seccion { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: end; padding: 18px 0 14px; border-bottom: 1px solid var(--texto); }
.titulo-seccion h2 { margin: 0; font-size: clamp(28px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 0.9; }
.titulo-seccion .cuenta-g { font-family: var(--f-datos); font-size: 13px; color: var(--texto-3); }
@media (max-width: 640px) {
  .titulo-seccion { grid-template-columns: 1fr auto; }
  .titulo-seccion .cuenta-g { grid-column: 1 / -1; grid-row: 2; }
}
/* Menú discreto del regalo (denunciar, pantalla completa): abajo a la izquierda, donde no tapa las plantillas */
.menu-regalo { position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.3); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.menu-regalo:hover, .menu-regalo:focus-visible { opacity: 1; }
.menu-regalo svg { width: 20px; height: 20px; }
.enlace-flecha { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; }
.enlace-flecha:hover .flecha { transform: translateX(4px); }
.flecha { display: inline-block; transition: transform 160ms var(--curva); }
.aparece { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--curva), transform 0.7s var(--curva); }
.aparece.visto { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .aparece { opacity: 1; transform: none; transition: none; animation: aparecer linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes aparecer { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* Miniaturas del catálogo (regalos de verdad, quietos, escalados) */
.mini { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: var(--hundido); }
.mini .escena-regalo, .marco-tel .escena-regalo { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.18) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat; animation: brillo-mini 1.4s infinite; }
.mini.lista::after, .mini.fallo::after { content: none; }
@keyframes brillo-mini { to { background-position: 200% 0; } }

/* Rejilla de plantillas: celdas separadas por líneas de 1 px */
.rejilla-pl { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1px; background: var(--texto); border: 1px solid var(--texto); }
@media (max-width: 1100px) { .rejilla-pl { --cols: 3; } }
@media (max-width: 760px) { .rejilla-pl { --cols: 2; } }
.celda-pl { background: var(--fondo); display: flex; flex-direction: column; text-decoration: none; color: var(--texto); position: relative; min-width: 0; }
.celda-pl .mini { transition: transform 300ms var(--curva); }
.celda-pl .pie-celda { padding: 12px 14px 16px; display: grid; gap: 4px; border-top: 1px solid var(--texto); }
.celda-pl .n { font-family: var(--f-datos); font-size: 12px; color: var(--texto-3); }
.celda-pl b { font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
.celda-pl small { color: var(--texto-2); font-size: 13.5px; line-height: 1.35; }
.celda-pl:hover { background: var(--superficie); }
.celda-pl:hover b { color: var(--acento-texto); }
.celda-pl:hover .mini { transform: scale(0.97); }
.celda-pl .toque { font-family: var(--f-datos); font-size: 11.5px; color: var(--texto-3); }
@media (max-width: 560px) { .celda-pl small { display: none; } .celda-pl .pie-celda { padding: 10px 10px 12px; } }

.filtros { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--linea); padding: 10px 0; }
.filtros button { border: 0; background: none; padding: 8px 12px 8px 0; margin-right: 6px; font: inherit; font-size: 15px; color: var(--texto-3); cursor: pointer; min-height: 40px; }
.filtros button:hover { color: var(--texto); }
.filtros button[aria-pressed='true'] { color: var(--texto); text-decoration: underline; text-decoration-color: var(--acento); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ── Portada ──────────────────────────────────────────────────────────────────────────────────────────── */
.portada-estuche { border-bottom: 1px solid var(--texto); overflow: hidden; }
.portada-estuche .contenedor { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: clamp(20px, 4vw, 48px); }
.para-gigante { grid-column: 1 / -1; margin: 0; font-size: clamp(64px, 13.5vw, 210px); font-weight: 780; letter-spacing: -0.065em; line-height: 0.82; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.18em; min-width: 0; }
.para-gigante .para-palabra { color: var(--texto-3); font-weight: 340; letter-spacing: -0.05em; }
.para-gigante input {
  font: inherit; letter-spacing: inherit; color: var(--texto); background: transparent; border: 0; border-bottom: 3px solid var(--acento); padding: 0 0 0.04em;
  width: var(--ancho-nombre, 4.2ch); min-width: 2.2ch; max-width: 100%; outline: none; caret-color: var(--acento);
}
.para-gigante input::placeholder { color: var(--texto); opacity: 0.26; }
.para-gigante input:focus-visible { border-bottom-color: var(--texto); }
.portada-estuche .dos-lineas { grid-column: 1 / span 4; margin: 28px 0 0; font-size: 17px; line-height: 1.45; color: var(--texto-2); max-width: 30ch; align-self: start; }
.portada-estuche .dos-lineas b { color: var(--texto); font-weight: 650; }
.portada-estuche .mesa-estuche { grid-column: 5 / span 4; display: grid; justify-items: center; padding: 28px 0 40px; }
.portada-estuche .lado { grid-column: 9 / span 4; align-self: start; padding: 28px 0 40px; display: grid; gap: 16px; justify-items: start; }
.portada-estuche .mesa-estuche .estuche { --w: clamp(240px, 22vw, 320px); }
.portada-estuche .lado .ficha { max-width: 34ch; }
@media (max-width: 980px) {
  .portada-estuche .mesa-estuche .estuche { --w: min(300px, 74vw); }
  .portada-estuche .dos-lineas { grid-column: 1 / -1; }
  .portada-estuche .mesa-estuche { grid-column: 1 / -1; }
  .portada-estuche .lado { grid-column: 1 / -1; padding-bottom: 28px; justify-items: stretch; }
}
.selector-dentro { display: flex; align-items: center; gap: 0; border: 1px solid var(--texto); width: 100%; }
.selector-dentro button { border: 0; background: transparent; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--texto); flex-shrink: 0; }
.selector-dentro button:hover { background: var(--texto); color: var(--fondo); }
.selector-dentro span { flex: 1; text-align: center; font-weight: 640; border-inline: 1px solid var(--texto); line-height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; }

/* El estuche: una caja de cantos biselados que se abre como un libro; dentro, el regalo de verdad */
.estuche { --w: min(360px, 78vw); width: var(--w); aspect-ratio: 9 / 16; position: relative; perspective: 1600px; }
.estuche .interior {
  position: absolute; inset: 0; background: #0b0b0b; padding: 10px; overflow: hidden;
  box-shadow: inset 0 0 0 1px #2a2a28, inset 0 0 0 9px #161615, inset 0 0 0 10px var(--acento), 0 40px 60px -35px rgb(0 0 0 / 0.55), 0 2px 0 #000;
}
.estuche .pantalla { position: absolute; inset: 10px; overflow: hidden; background: #000; }
.estuche .pantalla .escena-regalo { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.estuche .tapa {
  position: absolute; inset: -2px; transform-origin: 0 50%; transform-style: preserve-3d; cursor: grab; touch-action: pan-y; z-index: 3;
  transition: transform 900ms cubic-bezier(0.3, 0.9, 0.2, 1); transform: rotateY(calc(var(--giro, 0) * 1deg));
}
.estuche.arrastrando .tapa { transition: none; cursor: grabbing; }
.estuche .tapa .cara, .estuche .tapa .dorso { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.estuche .tapa .cara {
  background:
    radial-gradient(120% 70% at 30% 0%, rgb(255 255 255 / 0.09), transparent 60%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.012) 0 2px, transparent 2px 5px),
    #171716;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 -2px 0 rgb(0 0 0 / 0.6), inset 1px 0 0 rgb(255 255 255 / 0.06), inset -1px 0 0 rgb(0 0 0 / 0.5),
    inset 0 0 0 12px #171716, inset 0 0 0 13px rgb(0 0 0 / 0.55), inset 0 0 0 14px rgb(255 255 255 / 0.05);
  display: grid; grid-template-rows: 1fr auto auto; padding: 34px 28px 30px; color: #0d0d0d;
}
.estuche .tapa .dorso { transform: rotateY(180deg); background: linear-gradient(90deg, #1d1d1c, #121211); box-shadow: inset 0 0 0 10px var(--acento), inset 0 0 0 11px rgb(0 0 0 / 0.3); }
.estuche .grabado { align-self: center; text-align: center; overflow-wrap: anywhere; }
.estuche .grabado small { display: block; font-size: 13px; letter-spacing: 0.01em; color: #6f6f69; text-shadow: 0 -1px 0 rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.06); margin-bottom: 10px; font-weight: 600; }
/* El nombre, estampado en caliente con lámina naranja: hundido y con su brillo */
.estuche .grabado b {
  display: block; font-size: clamp(38px, calc(var(--w) * 0.17), 64px); font-weight: 780; letter-spacing: -0.05em; line-height: 0.9;
  background: linear-gradient(170deg, #ff9a5c 0%, var(--acento) 38%, #c43c00 62%, #ff7a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 -1px 0 rgb(0 0 0 / 0.85)) drop-shadow(0 1px 0 rgb(255 255 255 / 0.07));
}
.estuche .cinta-v { position: absolute; top: 0; bottom: 0; left: calc(50% - 9px); width: 18px; background: linear-gradient(90deg, #c53b00, var(--acento) 30%, #ff7a3d 50%, var(--acento) 70%, #c53b00); opacity: 0; }
.estuche .sello-e { justify-self: center; font-family: var(--f-datos); font-size: 11px; color: #3b3b38; text-shadow: 0 1px 0 rgb(0 0 0 / 0.6); }
.estuche .tirador { justify-self: end; align-self: center; position: absolute; right: 8px; top: 50%; width: 6px; height: 64px; translate: 0 -50%; background: var(--acento); }
.estuche .pista-estuche { justify-self: center; font-size: 13px; color: #8c8c86; display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.estuche .pista-estuche i { width: 8px; height: 8px; background: var(--acento); animation: pulso-estuche 1.6s infinite; }
@keyframes pulso-estuche { 50% { opacity: 0.2; } }
.estuche.abierto { --giro: -168; }
.estuche .boton-abrir { position: absolute; inset: 0; z-index: 4; opacity: 0; border: 0; cursor: pointer; pointer-events: none; }
.estuche:has(.boton-abrir:focus-visible) { outline: 3px solid var(--acento); outline-offset: 6px; }
.estuche.abierto .boton-abrir { display: none; }
.estuche .sombra-tapa { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / 0.6), transparent 60%); opacity: calc(var(--abierta, 0) * 0.9); }
.estuche.abierto .sombra-tapa { opacity: 0; transition: opacity 900ms; }
@media (prefers-reduced-motion: reduce) { .estuche .tapa { transition-duration: 1ms; } }

/* Dos maneras de darlo */
.maneras { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--texto); }
@media (max-width: 860px) { .maneras { grid-template-columns: 1fr; } }
.manera { padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 64px); display: grid; gap: 18px; align-content: start; min-height: 520px; position: relative; overflow: hidden; }
.manera.negra { background: #121212; color: #ededea; }
.manera.naranja { background: var(--acento); color: #121212; }
.manera .grande { font-size: clamp(84px, 12vw, 180px); font-weight: 780; letter-spacing: -0.07em; line-height: 0.8; margin: 0; }
.manera.negra .grande span { color: var(--acento); }
.manera h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; margin: 0; max-width: 18ch; }
.manera p { margin: 0; max-width: 42ch; font-size: 17px; line-height: 1.5; }
.manera.negra p { color: #b9b9b2; }
.manera .ficha { color: inherit; opacity: 0.8; }
.manera.naranja .ficha span::before { color: #121212; }
.manera .archivo { font-family: var(--f-datos); font-size: 14px; display: inline-flex; gap: 12px; align-items: center; border: 1px solid #3a3a37; padding: 12px 14px; width: fit-content; max-width: 100%; }
.manera .archivo i { width: 28px; height: 34px; background: linear-gradient(225deg, transparent 8px, #ededea 8px); position: relative; flex-shrink: 0; }
.manera .qr-portada { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(24px, 4vw, 48px); background: #fff; padding: 10px; width: clamp(110px, 14vw, 170px); }
.manera .qr-portada svg { width: 100%; height: auto; }
@media (max-width: 560px) { .manera .qr-portada { position: static; } }
.manera .boton { border-color: currentColor; color: inherit; }
.manera.negra .boton:hover { background: #ededea; color: #121212; }
.manera.naranja .boton:hover { background: #121212; color: var(--acento); }

/* Regalo de grupo en la portada */
.bloque-grupo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: clamp(36px, 6vw, 80px); border-bottom: 1px solid var(--texto); }
.bloque-grupo .texto-g { grid-column: 1 / span 6; display: grid; gap: 18px; align-content: start; }
.bloque-grupo .texto-g h2 { font-size: clamp(40px, 6.4vw, 96px); letter-spacing: -0.055em; line-height: 0.86; margin: 0; }
.bloque-grupo .texto-g p { margin: 0; font-size: 18px; max-width: 40ch; color: var(--texto-2); }
.bloque-grupo .vista-g { grid-column: 8 / span 5; }
.bloque-grupo .vista-g .mini { aspect-ratio: 9 / 13; border: 1px solid var(--texto); }
@media (max-width: 860px) { .bloque-grupo .texto-g, .bloque-grupo .vista-g { grid-column: 1 / -1; } .bloque-grupo .vista-g { margin-top: 28px; } }
.promesa { padding-block: clamp(40px, 7vw, 96px); border-bottom: 1px solid var(--texto); }
.promesa p { margin: 0; font-size: clamp(28px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 640; max-width: 22ch; }
.promesa p span { color: var(--texto-3); }

/* ── Ficha de plantilla (/plantillas/:id) ─────────────────────────────────────────────────────────────── */
.ficha-pl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); min-height: calc(100dvh - var(--barra-alto)); border-bottom: 1px solid var(--texto); }
.ficha-pl .escaparate { display: grid; place-items: center; padding: 24px; background: var(--hundido); border-right: 1px solid var(--texto); }
.marco-tel { position: relative; width: min(390px, 100%); aspect-ratio: 390 / 780; overflow: hidden; background: #000; box-shadow: 0 0 0 10px #121212, 0 0 0 11px #2a2a28, 0 40px 70px -30px rgb(0 0 0 / 0.5); }
.ficha-pl .marco-tel { width: min(390px, 100%, calc((100dvh - var(--barra-alto) - 56px) / 2)); }
.ficha-pl .datos-pl { padding: 28px clamp(16px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.ficha-pl .datos-pl h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.055em; margin: 0; }
.ficha-pl .datos-pl .lema { font-size: 19px; margin: 0; color: var(--texto-2); }
.paletas-muestra { display: flex; gap: 0; border: 1px solid var(--texto); width: fit-content; }
.paletas-muestra span { width: 34px; height: 34px; display: grid; grid-template-rows: 1fr 1fr; }
@media (max-width: 860px) {
  .ficha-pl { grid-template-columns: 1fr; }
  .ficha-pl .escaparate { border-right: 0; border-bottom: 1px solid var(--texto); padding: 16px; }
  .marco-tel { width: min(360px, 92vw); }
}

/* ── Editor ───────────────────────────────────────────────────────────────────────────────────────────── */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); min-height: calc(100dvh - var(--barra-alto)); }
.editor .lado-form { min-width: 0; border-right: 1px solid var(--texto); }
.editor .lado-previa { position: sticky; top: var(--barra-alto); height: calc(100dvh - var(--barra-alto)); display: grid; grid-template-rows: auto 1fr auto; background: var(--hundido); }
.editor .lado-previa .cabeza-previa { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--texto); font-size: 13px; }
.editor .lado-previa .hueco-previa { display: grid; place-items: center; padding: 18px; min-height: 0; }
.editor .lado-previa .marco-tel { height: 100%; width: auto; max-width: 100%; }
.editor .lado-previa .pie-previa { border-top: 1px solid var(--texto); padding: 10px 16px; }
.pestanas-editor { display: flex; overflow-x: auto; border-bottom: 1px solid var(--texto); position: sticky; top: var(--barra-alto); background: var(--fondo); z-index: 5; scrollbar-width: none; }
.pestanas-editor button { flex: 1 0 auto; min-height: 52px; border: 0; border-right: 1px solid var(--linea); background: transparent; font: inherit; font-size: 14px; padding: 0 16px; cursor: pointer; color: var(--texto-3); display: flex; gap: 8px; align-items: center; justify-content: center; }
.pestanas-editor button .n { font-family: var(--f-datos); font-size: 12px; }
.pestanas-editor button[aria-current='step'] { color: var(--texto); box-shadow: inset 0 -3px 0 var(--acento); font-weight: 650; }
.pestanas-editor button.hecho { color: var(--texto-2); }
.paso-editor { padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 40px) 120px; display: grid; gap: 28px; max-width: 860px; }
.paso-editor > header h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.05em; margin: 0 0 6px; }
.paso-editor > header p { margin: 0; color: var(--texto-2); max-width: 56ch; }
.bloque-ed { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--linea); }
.bloque-ed > h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bloque-ed > h3 small { font-family: var(--f-datos); font-weight: 400; font-size: 12px; color: var(--texto-3); }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .dos-campos { grid-template-columns: 1fr; } }
.barra-pasos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; align-items: center; padding: 10px clamp(16px, 3vw, 40px) calc(10px + env(safe-area-inset-bottom)); background: var(--fondo); border-top: 1px solid var(--texto); }
.barra-pasos .estado-guardado { font-family: var(--f-datos); font-size: 12px; color: var(--texto-3); margin-right: auto; }
@media (min-width: 1001px) { .barra-pasos { position: sticky; bottom: 0; } }
@media (max-width: 1000px) {
  .editor { grid-template-columns: 1fr; }
  .editor .lado-form { border-right: 0; }
  .editor .lado-previa { position: fixed; inset: 0; z-index: 70; height: auto; display: none; }
  .editor.previa-abierta .lado-previa { display: grid; }
}
.boton-previa-movil { display: none; }
@media (max-width: 1000px) { .boton-previa-movil { display: inline-flex; } }

/* Chips de ocasión y elección de plantilla */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--linea-fuerte); background: transparent; font: inherit; font-size: 15px; cursor: pointer; color: var(--texto); }
.chip:hover { border-color: var(--texto); }
.chip[aria-pressed='true'] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.elegir-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--texto); border: 1px solid var(--texto); }
.elegir-pl button { background: var(--fondo); border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; color: var(--texto); display: grid; position: relative; }
.elegir-pl button span { padding: 8px 10px 10px; font-size: 14px; font-weight: 640; line-height: 1.15; border-top: 1px solid var(--texto); }
.elegir-pl button[aria-pressed='true'] { outline: 4px solid var(--acento); outline-offset: -4px; z-index: 1; }
.elegir-pl button[aria-pressed='true'] span { background: var(--acento); color: #121212; }

/* Fotos del editor */
.fotos-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.foto-ed { position: relative; aspect-ratio: 1; background: var(--hundido); overflow: hidden; touch-action: none; cursor: grab; border: 1px solid var(--linea); }
.foto-ed img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.foto-ed .n-foto { position: absolute; left: 0; top: 0; background: var(--negro); color: #ededea; font-family: var(--f-datos); font-size: 11px; padding: 2px 6px; }
.foto-ed .acciones-foto { position: absolute; right: 0; bottom: 0; display: flex; }
.foto-ed .acciones-foto button { width: 32px; height: 32px; border: 0; background: rgb(18 18 18 / 0.85); color: #fff; display: grid; place-items: center; cursor: pointer; }
.foto-ed .acciones-foto button:hover { background: var(--acento); color: #121212; }
.foto-ed .acciones-foto svg { width: 16px; height: 16px; }
.foto-ed.arrastrada { opacity: 0.4; }
.foto-ed.destino { outline: 3px solid var(--acento); outline-offset: -3px; }
.foto-ed.subiendo::after { content: ''; position: absolute; inset: 0; background: rgb(255 255 255 / 0.5); animation: pulso-estuche 1s infinite; }
.anadir-foto { aspect-ratio: 1; border: 1px dashed var(--texto-3); background: transparent; display: grid; place-items: center; align-content: center; gap: 6px; font: inherit; font-size: 13px; cursor: pointer; color: var(--texto-2); }
.anadir-foto:hover { border-style: solid; border-color: var(--texto); color: var(--texto); }
.anadir-foto svg { width: 22px; height: 22px; }
.zona-soltar.encima { outline: 2px dashed var(--acento); outline-offset: 6px; }

/* Recorte */
.recorte { display: grid; gap: 14px; }
.recorte .ventana { position: relative; width: 100%; max-height: 60dvh; overflow: hidden; background: #000; touch-action: none; cursor: move; margin: 0 auto; }
.recorte .ventana img { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; pointer-events: none; max-width: none; }
.recorte .ventana::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--acento); background: linear-gradient(var(--acento), var(--acento)) 33.3% 0 / 1px 100% no-repeat, linear-gradient(var(--acento), var(--acento)) 66.6% 0 / 1px 100% no-repeat, linear-gradient(var(--acento), var(--acento)) 0 33.3% / 100% 1px no-repeat, linear-gradient(var(--acento), var(--acento)) 0 66.6% / 100% 1px no-repeat; opacity: 0.6; }

/* Música */
.onda { position: relative; height: 96px; background: var(--superficie); border: 1px solid var(--linea-fuerte); touch-action: none; user-select: none; overflow: hidden; }
.onda canvas { width: 100%; height: 100%; display: block; }
.onda .sel { position: absolute; top: 0; bottom: 0; background: color-mix(in oklab, var(--acento) 22%, transparent); border-inline: 2px solid var(--acento); cursor: grab; }
.onda .asa { position: absolute; top: 0; bottom: 0; width: 22px; margin-left: -11px; cursor: ew-resize; display: grid; place-items: center; }
.onda .asa::before { content: ''; width: 10px; height: 34px; background: var(--acento); }
.onda .cursor-play { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--texto); pointer-events: none; }
.musica-elegida { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--texto); background: var(--superficie); }
.musica-elegida .disco { width: 44px; height: 44px; border-radius: 50%; background: repeating-radial-gradient(circle, #121212 0 2px, #222 2px 4px); position: relative; flex-shrink: 0; }
.musica-elegida .disco::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--acento); }
.musica-elegida.sonando .disco { animation: girar 2.4s linear infinite; }
.progreso { height: 4px; background: var(--linea); overflow: hidden; }
.progreso i { display: block; height: 100%; width: 40%; background: var(--acento); animation: avanza 1.2s ease-in-out infinite; }
@keyframes avanza { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Detalles: paletas, letras, efectos, aperturas */
.opciones-vis { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.opcion-vis { border: 1px solid var(--linea-fuerte); background: var(--superficie); padding: 0; font: inherit; cursor: pointer; text-align: left; color: var(--texto); display: grid; }
.opcion-vis:hover { border-color: var(--texto); }
.opcion-vis[aria-pressed='true'] { outline: 3px solid var(--acento); outline-offset: -1px; border-color: var(--acento); }
.opcion-vis .muestra { height: 56px; display: grid; grid-template-columns: 2fr 1fr 1fr; }
.opcion-vis .muestra-letra { height: 64px; display: grid; place-items: center; font-size: 26px; overflow: hidden; background: var(--superficie-2); padding: 0 6px; white-space: nowrap; }
.opcion-vis span.nombre { padding: 8px 10px; font-size: 13.5px; font-weight: 600; border-top: 1px solid var(--linea); }

/* Entregar */
.entregas { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--texto); }
@media (max-width: 760px) { .entregas { grid-template-columns: 1fr; } }
.entrega { padding: 22px; display: grid; gap: 14px; align-content: start; }
.entrega + .entrega { border-left: 1px solid var(--texto); }
@media (max-width: 760px) { .entrega + .entrega { border-left: 0; border-top: 1px solid var(--texto); } }
.entrega h3 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.entrega p { margin: 0; color: var(--texto-2); }
.entrega.oscura { background: #121212; color: #ededea; }
.entrega.oscura p { color: #b4b4ad; }
.entrega.oscura .boton { border-color: #ededea; color: #ededea; }
.entrega.oscura .boton.primario { color: #121212; border-color: var(--acento); }
.entrega.oscura .boton:hover { background: #ededea; color: #121212; }
.resultado-enlace { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--texto); background: var(--superficie); }
.resultado-enlace .qr { background: #fff; }
.resultado-enlace .url { font-family: var(--f-datos); font-size: 13px; overflow-wrap: anywhere; padding: 10px; background: var(--fondo); border: 1px solid var(--linea); }
@media (max-width: 600px) { .resultado-enlace { grid-template-columns: 1fr; } }

/* Grupo / lista de campos repetidos */
.grupo-ed { display: grid; gap: 0; border-top: 1px solid var(--texto); }
.elemento-grupo { border-bottom: 1px solid var(--linea); }
.elemento-grupo > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; min-height: 48px; }
.elemento-grupo > summary::-webkit-details-marker { display: none; }
.elemento-grupo > summary .n { font-family: var(--f-datos); font-size: 12px; color: var(--texto-3); width: 2.4em; }
.elemento-grupo > summary b { flex: 1; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elemento-grupo[open] > summary b { color: var(--acento-texto); }
.elemento-grupo .cuerpo-grupo { display: grid; gap: 12px; padding: 0 0 16px 2.8em; }
@media (max-width: 600px) { .elemento-grupo .cuerpo-grupo { padding-left: 0; } }
.cantidades { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cantidad { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--linea-fuerte); padding: 4px 4px 4px 12px; }
.cantidad .mas-menos { display: flex; align-items: center; }
.cantidad .mas-menos button { width: 36px; height: 36px; border: 1px solid var(--linea-fuerte); background: transparent; cursor: pointer; font-size: 18px; color: var(--texto); }
.cantidad .mas-menos output { width: 2.2em; text-align: center; font-family: var(--f-datos); }
.foto-opcion { display: flex; gap: 6px; flex-wrap: wrap; }
.foto-opcion button { width: 56px; height: 56px; padding: 0; border: 1px solid var(--linea-fuerte); background: var(--hundido); cursor: pointer; overflow: hidden; display: grid; place-items: center; font-size: 11px; color: var(--texto-3); }
.foto-opcion button img { width: 100%; height: 100%; object-fit: cover; }
.foto-opcion button[aria-pressed='true'] { outline: 3px solid var(--acento); outline-offset: -1px; }

/* ── Ver un regalo (/r/<código>) ───────────────────────────────────────────────────────────────────────── */
body.solo-regalo .barra, body.solo-regalo #pie, body.solo-regalo .pestanas { display: none; }
body.solo-regalo { background: #000; }
.regalo-completo { position: fixed; inset: 0; background: #000; }
.regalo-completo .escena-regalo { position: absolute; inset: 0; width: 100%; height: 100%; }
.puerta { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--fondo); }
.puerta .caja-puerta { width: min(460px, 100%); display: grid; gap: 18px; }
.puerta h1 { font-size: clamp(40px, 9vw, 72px); letter-spacing: -0.06em; margin: 0; line-height: 0.88; }
.puerta .cuenta-atras { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--texto); }
.puerta .cuenta-atras div { padding: 14px 4px; text-align: center; border-right: 1px solid var(--texto); }
.puerta .cuenta-atras div:last-child { border-right: 0; }
.puerta .cuenta-atras b { display: block; font-family: var(--f-datos); font-size: clamp(28px, 8vw, 44px); font-weight: 500; letter-spacing: -0.04em; }
.puerta .cuenta-atras small { color: var(--texto-3); font-size: 12px; }
.puerta .pie-puerta { font-size: 13px; color: var(--texto-3); display: flex; gap: 16px; flex-wrap: wrap; }
.reacciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reacciones button { min-height: 56px; border: 1px solid var(--linea-fuerte); background: transparent; font: inherit; font-size: 14px; cursor: pointer; color: var(--texto); padding: 6px; }
.reacciones button[aria-pressed='true'] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }

/* ── Panel (Tus regalos) ───────────────────────────────────────────────────────────────────────────────── */
.panel-r { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100dvh - var(--barra-alto)); }
.panel-r .lateral-r { border-right: 1px solid var(--texto); padding: 18px 0; position: sticky; top: var(--barra-alto); height: calc(100dvh - var(--barra-alto)); display: flex; flex-direction: column; }
.panel-r .lateral-r a { padding: 12px clamp(16px, 2vw, 24px); text-decoration: none; color: var(--texto-2); font-weight: 560; display: flex; justify-content: space-between; border-bottom: 1px solid var(--linea); }
.panel-r .lateral-r a:first-child { border-top: 1px solid var(--linea); }
.panel-r .lateral-r a[aria-current='page'] { color: var(--texto); background: var(--superficie); box-shadow: inset 4px 0 0 var(--acento); }
.panel-r .lateral-r a .num { color: var(--texto-3); font-size: 12px; }
.panel-r .zona { padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 40px) 100px; min-width: 0; }
.panel-r .zona > header { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--texto); margin-bottom: 8px; }
.panel-r .zona > header h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.055em; margin: 0; }
.pestanas-panel { display: none; }
@media (max-width: 860px) {
  .panel-r { grid-template-columns: 1fr; }
  .panel-r .lateral-r { display: none; }
  .pestanas-panel { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--fondo); border-top: 1px solid var(--texto); padding-bottom: env(safe-area-inset-bottom); }
  .pestanas-panel a { flex: 1; min-height: 58px; display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--texto-3); font-size: 11.5px; font-weight: 600; }
  .pestanas-panel a svg { width: 20px; height: 20px; }
  .pestanas-panel a[aria-current='page'] { color: var(--texto); box-shadow: inset 0 3px 0 var(--acento); }
}
.fila-regalo { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.fila-regalo .mini { width: 64px; border: 1px solid var(--linea); }
.fila-regalo .que b { display: block; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-regalo .que .ficha { margin-top: 4px; }
.fila-regalo .acciones-r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .fila-regalo { grid-template-columns: 52px minmax(0, 1fr); } .fila-regalo .mini { width: 52px; } .fila-regalo .acciones-r { grid-column: 1 / -1; justify-content: flex-start; } }
.estado-r { font-family: var(--f-datos); font-size: 12px; padding: 1px 6px; border: 1px solid currentColor; }
.estado-r.publicado { color: var(--ok); }
.estado-r.abierto { background: var(--acento); color: #121212; border-color: var(--acento); }
.respuesta-r { padding: 14px 0; border-bottom: 1px solid var(--linea); display: grid; gap: 4px; }
.respuesta-r .que-r { font-size: 17px; }
.respuesta-r.aviso .que-r { font-family: var(--f-datos); font-size: 14px; }
.cifras-r { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--texto); margin: 16px 0 24px; }
.cifras-r div { padding: 14px 16px; border-right: 1px solid var(--linea); }
.cifras-r b { display: block; font-size: 34px; letter-spacing: -0.04em; font-weight: 700; line-height: 1; }
.cifras-r small { color: var(--texto-3); font-size: 13px; }

/* Vacíos con dibujo propio */
.vacio-r { padding: clamp(36px, 7vw, 80px) 0; display: grid; gap: 16px; justify-items: start; }
.vacio-r .caja-vacia { width: 120px; height: 88px; border: 2px solid var(--texto); position: relative; }
.vacio-r .caja-vacia::before { content: ''; position: absolute; left: -8px; right: -8px; top: -18px; height: 16px; border: 2px solid var(--texto); transform: rotate(-8deg); transform-origin: 0 100%; background: var(--fondo); }
.vacio-r .caja-vacia::after { content: ''; position: absolute; left: calc(50% - 6px); top: 0; bottom: 0; width: 12px; background: var(--acento); }
.vacio-r h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.04em; margin: 0; }
.vacio-r p { margin: 0; color: var(--texto-2); max-width: 46ch; }

/* ── Mural: escribir una nota ─────────────────────────────────────────────────────────────────────────── */
.nota-mural { max-width: 640px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) 16px 80px; display: grid; gap: 20px; }
.nota-mural h1 { font-size: clamp(40px, 8vw, 80px); letter-spacing: -0.06em; margin: 0; line-height: 0.88; }
.papeles { display: flex; gap: 8px; flex-wrap: wrap; }
.papeles button { width: 44px; height: 44px; border: 1px solid var(--linea-fuerte); cursor: pointer; }
.papeles button[aria-pressed='true'] { outline: 3px solid var(--texto); outline-offset: 2px; }
.nota-previa { padding: 22px; background: var(--papel-nota, #fff3b0); color: #2a2119; min-height: 140px; transform: rotate(-1deg); font-size: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nota-previa b { display: block; margin-top: 12px; text-align: right; font-weight: 700; }

/* ── Páginas de texto (privacidad, ayuda, novedades) ──────────────────────────────────────────────────── */
.texto-largo { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 32px) 80px; }
.texto-largo h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.06em; margin: 0 0 24px; line-height: 0.86; }
.texto-largo h2 { font-size: 24px; letter-spacing: -0.03em; margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--texto); }
.texto-largo p, .texto-largo li { font-size: 17px; line-height: 1.6; color: var(--texto-2); }
.texto-largo strong { color: var(--texto); }

/* ── Imprimir: tarjeta con QR ─────────────────────────────────────────────────────────────────────────── */
.tarjeta-imprimir { width: min(100%, 720px); margin: 24px auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--texto); background: #fff; color: #121212; aspect-ratio: 2 / 1.05; }
.tarjeta-imprimir .frente { background: #121212; color: #ededea; padding: 8%; display: grid; align-content: space-between; position: relative; overflow: hidden; }
.tarjeta-imprimir .frente::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - 12px); width: 24px; background: var(--acento); }
.tarjeta-imprimir .frente::after { content: ''; position: absolute; left: 0; right: 0; top: 34%; height: 24px; background: var(--acento); }
.tarjeta-imprimir .frente > * { position: relative; z-index: 1; }
.tarjeta-imprimir .frente b { font-size: clamp(26px, 5vw, 46px); letter-spacing: -0.05em; line-height: 0.9; background: #121212; padding: 4px 0; overflow-wrap: anywhere; }
.tarjeta-imprimir .dorso { padding: 7%; display: grid; gap: 10px; align-content: center; justify-items: center; text-align: center; }
.tarjeta-imprimir .dorso .qr { padding: 0; width: 60%; }
.tarjeta-imprimir .dorso .qr svg { width: 100%; height: auto; }
.tarjeta-imprimir .dorso p { margin: 0; font-size: 13px; }
.tarjeta-imprimir .dorso small { font-family: var(--f-datos); font-size: 9.5px; overflow-wrap: anywhere; }
@media print {
  body.solo-regalo { background: #fff; }
  .regalo-completo, .regalo-completo .escena-regalo { position: static; height: auto; }
  .menu-regalo { display: none; }
  body:has(.imprimible) * { visibility: hidden; }
  .imprimible, .imprimible * { visibility: visible; }
  .imprimible { position: absolute; left: 0; top: 0; width: 100%; }
  .no-imprimir { display: none !important; }
  .tarjeta-imprimir { border: 1px dashed #999; margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 600px) { .tarjeta-imprimir { grid-template-columns: 1fr; aspect-ratio: auto; } .tarjeta-imprimir .frente { min-height: 260px; } }

/* ── Pie ──────────────────────────────────────────────────────────────────────────────────────────────── */
.pie { border-top: 0; background: #121212; color: #8f8f88; padding-block: 28px; }
.pie a { color: #b4b4ad; }
.pie a:hover { color: var(--acento); }
@media (max-width: 860px) { body.con-pestanas .pie { padding-bottom: 90px; } }
