/* Quantum Exaltaciones · v2 «Tu cielo» (13/11/2026)
   Noche violeta, luz hecha de líneas finas, lavanda y oro; Didot + Avenir.
   El recorrido es una constelación que la persona va encendiendo. */

:root {
  --noche: #06030d;
  --noche-2: #110922;
  --violeta: #6c4fc4;
  --lavanda: #cbb9f4;
  --lavanda-suave: #a99bcb;
  --oro: #f2dcae;
  --oro-vivo: #ffe3a8;
  --texto: #f1ecfb;
  --linea: rgba(203, 185, 244, .18);
  --vidrio: rgba(20, 12, 40, .62);
  --serif: "Didot", "Bodoni Moda", "Bodoni 72", Georgia, serif;
  --sans: "Avenir Next", "Jost", "Avenir", system-ui, sans-serif;
  --radio: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--noche); color: var(--texto);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.quieto { overflow: hidden; }
button { font: inherit; color: inherit; }

/* Fondo: nebulosa + estrellas fijas + polvo que se mueve (canvas) */
.cielo {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 12%, rgba(108, 79, 196, .28), transparent 70%),
    radial-gradient(50% 40% at 88% 30%, rgba(150, 90, 190, .18), transparent 70%),
    radial-gradient(70% 50% at 50% 105%, rgba(242, 220, 174, .08), transparent 70%),
    linear-gradient(180deg, var(--noche) 0%, var(--noche-2) 55%, var(--noche) 100%);
}
.cielo::before, .cielo::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 72% 9%, #e9defc, transparent),
    radial-gradient(1.4px 1.4px at 38% 32%, #fff, transparent),
    radial-gradient(1px 1px at 84% 52%, #d8c9fa, transparent),
    radial-gradient(1px 1px at 22% 68%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 58% 78%, #f2dcae, transparent),
    radial-gradient(1px 1px at 93% 86%, #fff, transparent),
    radial-gradient(1px 1px at 6% 92%, #cbb9f4, transparent);
  background-size: 420px 420px; opacity: .5;
}
.cielo::after { background-size: 680px 680px; background-position: 140px 90px; opacity: .3; }
q { quotes: "«" "»"; }
body.en-llegada .firmamento * { animation-play-state: paused !important; }
.polvo { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

.marca {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: max(26px, env(safe-area-inset-top)) 16px 4px;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--lavanda-suave);
}
.esfera {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, var(--lavanda) 60%, transparent 72%);
  box-shadow: 0 0 10px 2px rgba(203, 185, 244, .55);
}
.sonido {
  position: fixed; z-index: 20; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px;
  height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--linea);
  background: rgba(10, 6, 20, .6); display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; letter-spacing: .08em; color: var(--lavanda);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sonido svg { width: 18px; height: 18px; stroke: var(--lavanda); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.sonido .s-off { display: none; }
.sonido[aria-pressed="false"] .s-on { display: none; }
.sonido[aria-pressed="false"] .s-off { display: inline; }
.sonido[aria-pressed="true"] .s-on { animation: ondas 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes ondas { 50% { transform: scaleY(.6); } }

main { width: min(1040px, 100%); margin: 0 auto; padding: 0 16px 40px; }

/* ---------- Llegada ---------- */
.llegada {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 42%, #140a2a 0%, #05020b 70%);
  transition: opacity 1.6s ease, visibility 1.6s;
}
.llegada.fuera { opacity: 0; visibility: hidden; pointer-events: none; }
.llegada[hidden] { display: none; }
.ll-esfera {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 14%, var(--lavanda) 38%, rgba(108, 79, 196, .45) 62%, transparent 72%);
  box-shadow: 0 0 60px 18px rgba(203, 185, 244, .25);
  animation: latido 6s ease-in-out infinite;
}
@keyframes latido { 0%, 100% { transform: scale(.86); opacity: .8; } 45% { transform: scale(1.08); opacity: 1; } }
.ll-texto { min-height: 132px; max-width: 560px; }
.ll-texto p {
  margin: 0 0 10px; font-family: var(--serif); font-size: clamp(24px, 5.6vw, 36px); line-height: 1.25;
  opacity: 0; filter: blur(6px); transform: translateY(6px); transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease;
}
.ll-texto p.visible { opacity: 1; filter: blur(0); transform: none; }
.ll-texto p.suave { font-size: clamp(17px, 3.8vw, 21px); color: var(--lavanda); }
.ll-entrar { align-self: center; min-width: 180px; animation: aparecer 1.4s ease both; }
.ll-nota { margin: -10px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--lavanda-suave); animation: aparecer 1.4s .3s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Saludo ---------- */
.saludo { text-align: center; padding: 22px 0 0; }
.saludo h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 6.6vw, 50px); line-height: 1.1; margin: 0 0 8px; }
.saludo p { margin: 0; color: var(--lavanda-suave); font-size: 15px; letter-spacing: .04em; }

/* ---------- Portal: lo de hoy, arriba y con aire ---------- */
.portal {
  min-height: calc(100dvh - 70px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px 0 18px;
}
.hola { font-family: var(--serif); font-size: clamp(40px, 9vw, 60px); line-height: 1.05; margin: 0; }
.dia { margin: 10px 0 38px; color: var(--lavanda-suave); font-size: 17px; letter-spacing: .06em; }
.circulo {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: default;
  width: min(230px, 58vw); aspect-ratio: 1; border-radius: 50%; margin: 0 0 34px;
}
button.circulo { cursor: pointer; }
.circulo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; position: relative; z-index: 1; }
.circulo::before, .circulo::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(242, 220, 174, .35);
}
.circulo::after { inset: -32px; border-color: rgba(203, 185, 244, .16); }
.circulo.vivo::before { animation: aura 6s ease-in-out infinite; }
.circulo.vivo::after { animation: aura 6s 1.2s ease-in-out infinite; }
.circulo.vivo { box-shadow: 0 0 90px 10px rgba(203, 185, 244, .25); }
.circulo.velado img { filter: blur(10px) brightness(.45) saturate(.7); }
@keyframes aura { 0%, 100% { transform: scale(.97); opacity: .5; } 50% { transform: scale(1.05); opacity: 1; } }
.portal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 8vw, 54px); line-height: 1.1; margin: 0 0 16px; max-width: 16ch; }
.portal .boton { margin-top: 6px; }
.antetitulo { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); margin: 0 0 14px; }
.cita { font-family: var(--serif); font-size: clamp(21px, 4.6vw, 24px); color: var(--lavanda); margin: 0 auto 30px; line-height: 1.45; max-width: 26ch; }
.meta { font-size: 15px; color: var(--lavanda-suave); letter-spacing: .04em; margin: 18px 0 0; }
.cuenta { font-variant-numeric: tabular-nums; color: var(--oro); white-space: nowrap; }
.bajar {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 56px;
  color: var(--lavanda-suave); text-decoration: none; font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
}
.bajar svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.4; fill: none; animation: flotar 2.6s ease-in-out infinite; }
@keyframes flotar { 50% { transform: translateY(5px); } }

/* ---------- Recorrido: un sistema solar ---------- */
.recorrido { padding-top: 40px; }
.titulo-seccion { text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 7vw, 42px); margin: 0 0 10px; }
.sub { text-align: center; color: var(--lavanda-suave); font-size: 17px; margin: 0 auto 30px; max-width: 32ch; }
.sistema { width: min(640px, 100% + 24px); margin: 0 -12px; margin-inline: auto; }
.sistema svg { display: block; width: 100%; height: auto; overflow: visible; }
.orbita { fill: none; stroke: rgba(203, 185, 244, .13); stroke-width: .8; }
.tramo { fill: none; stroke: rgba(203, 185, 244, .28); stroke-width: 1; stroke-dasharray: 1.5 5; stroke-linecap: round; }
.tramo.viva { stroke: url(#g-hilo); stroke-width: 2; stroke-dasharray: none; filter: drop-shadow(0 0 3px rgba(242, 220, 174, .7)); }
.tramo.nueva { stroke-dasharray: var(--largo); stroke-dashoffset: var(--largo); animation: trazar 3s .8s ease-in-out forwards; }
@keyframes trazar { to { stroke-dashoffset: 0; } }

.astro { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.astro .toque { fill: transparent; }
.astro .aura { fill: url(#g-aura); opacity: 0; transition: opacity .6s ease; }
.astro .velo { fill: rgba(6, 3, 13, 0); }
.astro .borde { fill: none; stroke: rgba(203, 185, 244, .35); stroke-width: 1; }
.astro .num { font-family: var(--serif); font-size: 14px; fill: #fff; opacity: 0; pointer-events: none; }
.astro.cerrada .velo { fill: rgba(6, 3, 13, .72); }
.astro.cerrada .num { opacity: .85; }
.astro.cerrada image { opacity: .5; }
.astro.vista .borde { stroke: var(--oro-vivo); stroke-width: 1.4; }
.astro.vista .aura { opacity: .5; }
.astro.hoy .aura { opacity: 1; animation: latir 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.astro.hoy .borde { stroke: var(--oro); stroke-width: 1.6; animation: latir 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.astro.recien .aura { animation: brotar 2.6s 3.4s ease-out both; transform-box: fill-box; transform-origin: center; }
.astro.sol .corona { fill: url(#g-corona); opacity: var(--brillo, .4); animation: latir 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.astro.sol .disco { fill: url(#g-sol); opacity: calc(.55 + var(--brillo, .4) * .45); }
.astro.sol.encendido .corona { opacity: 1; }
.libro-icono path { fill: none; stroke: #6b4a1e; stroke-width: 1.3; stroke-linejoin: round; }
.astro.sol:hover .disco, .astro.sol:focus-visible .disco { stroke: #fff; stroke-width: 1.5; }
.l-libro .l-num { border-color: rgba(242, 220, 174, .6); background: rgba(242, 220, 174, .12); }
.l-libro .l-num svg { width: 24px; height: 24px; }
.l-libro .l-num svg path { fill: none; stroke: var(--oro); stroke-width: 1.4; stroke-linejoin: round; }
.l-libro .l-tit { color: var(--oro); }
.pa-texto.pa-sol { margin-top: 0; padding-top: 40px; }
.pa-sol-icono { width: 76px; height: 76px; display: block; margin: 0 auto 16px; filter: drop-shadow(0 0 24px rgba(255, 227, 168, .55)); }
.astro:hover .borde, .astro:focus-visible .borde { stroke: var(--oro); stroke-width: 2; }
@keyframes latir { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.1); } }
@keyframes brotar { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.6); } 100% { opacity: .5; transform: scale(1); } }
.completo .orbita { stroke: rgba(242, 220, 174, .18); }

/* Leyenda bajo el sistema: grande y con aire */
.leyenda { list-style: none; padding: 0; margin: 34px auto 0; width: min(520px, 100%); }
.leyenda li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 6px; border-bottom: 1px solid rgba(203, 185, 244, .1); cursor: pointer; border-radius: 14px;
}
.leyenda li:hover, .leyenda li:focus-visible { background: rgba(203, 185, 244, .06); outline: none; }
.l-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--linea); font-family: var(--serif); font-size: 17px; color: var(--lavanda);
}
.l-tit { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.l-est { font-size: 15px; color: var(--lavanda-suave); text-align: right; white-space: nowrap; }
.leyenda li.vista .l-num { border-color: rgba(242, 220, 174, .7); color: var(--oro); }
.leyenda li.vista .l-est { color: var(--oro); }
.leyenda li.hoy .l-num { border-color: var(--oro); background: rgba(242, 220, 174, .14); color: var(--oro); }
.leyenda li.hoy .l-est { color: var(--oro); font-weight: 500; }
.leyenda li.cerrada .l-tit { color: rgba(203, 185, 244, .5); }
.boton-espacio { margin-top: 14px !important; }
.pa-nota { color: var(--lavanda-suave); font-size: 15px; margin: 16px 0 0; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans); letter-spacing: .08em; color: #1a1030;
  background: linear-gradient(135deg, #fff 0%, var(--oro) 45%, var(--lavanda) 100%);
  box-shadow: 0 10px 30px -10px rgba(242, 220, 174, .6); transition: transform .2s ease, box-shadow .2s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(242, 220, 174, .75); }
.boton:focus-visible, .rep-cerrar:focus-visible, .sonido:focus-visible, .u-saltar:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.boton svg { width: 14px; height: 14px; fill: currentColor; }
.boton-suave { background: transparent; color: var(--texto); border: 1px solid var(--linea); box-shadow: none; }
.boton-suave:hover { box-shadow: none; border-color: var(--lavanda-suave); }

/* Secciones */
.seccion { margin-top: 110px; }
.consejos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.consejo { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--linea); border-radius: 28px; background: var(--vidrio); }
.consejo svg { flex: none; width: 28px; height: 28px; stroke: var(--lavanda); fill: none; stroke-width: 1.3; margin-top: 2px; }
.consejo h4 { margin: 0 0 6px; font-weight: 500; font-size: 18px; }
.consejo p { margin: 0; font-size: 16px; color: var(--lavanda-suave); }
.cierre { text-align: center; padding-bottom: 40px; }
.cierre p { font-family: var(--serif); font-size: 26px; color: var(--lavanda); margin: 0; }
.invitacion-libro {
  margin: 34px auto 0; max-width: 520px; text-align: center; padding: 26px 22px; border-radius: calc(var(--radio) + 6px);
  border: 1px solid rgba(242, 220, 174, .35); background: radial-gradient(circle at 50% 0%, rgba(242, 220, 174, .12), transparent 70%), var(--vidrio);
}
.invitacion-libro h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.invitacion-libro p { color: var(--lavanda-suave); margin: 0 0 20px; }
.pie { text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(169, 155, 203, .5); padding: 0 16px max(84px, env(safe-area-inset-bottom)); }

/* Aviso (index.html y enlace no válido) */
.aviso { max-width: 480px; margin: 0 auto; text-align: center; padding-top: 30px; }
.aviso-portada { width: min(280px, 70vw); border-radius: var(--radio); border: 1px solid var(--linea); box-shadow: 0 30px 80px -30px rgba(108, 79, 196, .7); }
.aviso h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 28px 0 10px; }
.aviso p { color: var(--lavanda-suave); margin: 0; }

/* ---------- Panel de una estrella ---------- */
.panel { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.panel[hidden] { display: none; }
.panel-fondo { position: absolute; inset: 0; background: rgba(4, 2, 10, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fundido .4s ease both; }
.panel-caja {
  position: relative; width: min(520px, 100%); max-height: 92dvh; overflow-y: auto;
  border-radius: 26px 26px 0 0; border: 1px solid var(--linea); border-bottom: 0;
  background: linear-gradient(180deg, rgba(26, 15, 50, .96), rgba(10, 6, 20, .98));
  padding: 0 0 max(24px, env(safe-area-inset-bottom)); animation: subir .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
@keyframes fundido { from { opacity: 0; } }
.pa-imagen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 26px 26px 0 0; }
.pa-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-imagen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(16, 9, 32, 1)); }
.pa-imagen.velada img { filter: blur(14px) brightness(.4) saturate(.6); transform: scale(1.15); }
.pa-cerrar { position: absolute; z-index: 2; top: 12px; right: 12px; }
.pa-texto { padding: 0 24px; margin-top: -26px; position: relative; text-align: center; }
.pa-texto h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 10px; }
.pa-susurro { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--lavanda-suave); margin: 18px 0 6px; }
.pa-tuya { margin: 18px 0 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(242, 220, 174, .3); background: rgba(242, 220, 174, .06); }
.pa-tuya span { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--oro); margin-bottom: 6px; }
.pa-tuya q { font-family: var(--serif); font-size: 18px; }
.pa-botones { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.pa-cuenta { font-family: var(--serif); font-size: 26px; margin: 4px 0 0; }

/* ---------- Reproductor: umbral, vídeo, después ---------- */
.reproductor { position: fixed; inset: 0; z-index: 50; background: #030108; overflow: hidden; }
.reproductor[hidden] { display: none; }
.rep-fondo { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.28) saturate(1.2); opacity: 0; transition: opacity 2s ease; }
.reproductor.en-video .rep-fondo { opacity: 1; }
.rep-cerrar {
  position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); right: 14px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea);
  background: rgba(10, 6, 20, .5); display: grid; place-items: center; cursor: pointer;
}
.rep-cerrar svg { width: 18px; height: 18px; stroke: var(--texto); stroke-width: 1.6; fill: none; }

.umbral, .despues {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center; transition: opacity 1.4s ease;
}
.umbral.fuera { opacity: 0; pointer-events: none; }
.u-etiqueta { margin: 0 0 8px; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--oro); animation: aparecer 1.6s .3s ease both; }
.u-titulo { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 8vw, 54px); line-height: 1.1; animation: aparecer 1.8s .8s ease both; }
.u-respira { width: 220px; height: 220px; display: grid; place-items: center; margin: 34px 0 18px; }
.u-esfera {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12%, var(--lavanda) 36%, rgba(108, 79, 196, .4) 62%, transparent 72%);
  box-shadow: 0 0 50px 10px rgba(203, 185, 244, .22);
  transform: scale(.9); transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.u-esfera.inhala { transform: scale(2.6); box-shadow: 0 0 90px 30px rgba(242, 220, 174, .25); }
.u-esfera.exhala { transform: scale(.9); transition-duration: 6s; }
.u-respira.lento .u-esfera { animation: latido 8s ease-in-out infinite; }
.u-guia { min-height: 32px; margin: 0; font-family: var(--serif); font-size: 22px; color: var(--lavanda); transition: opacity .8s ease; }
.u-saltar {
  position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); background: none; border: 0; cursor: pointer;
  color: var(--lavanda-suave); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 12px;
}

.rep-video {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: max(66px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  opacity: 0; pointer-events: none; transition: opacity 2s ease;
}
.reproductor.en-video .rep-video { opacity: 1; pointer-events: auto; }
.rep-video video {
  width: min(100%, calc((100dvh - 90px) * 9 / 16)); height: auto; max-height: 100%; aspect-ratio: 9 / 16; object-fit: contain;
  border-radius: 14px; background: #000; box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .9);
}
.u-play { position: absolute; }

.despues[hidden] { display: none; }
.despues { animation: fundido 2s ease both; }
.d-quedate { font-family: var(--serif); font-size: 24px; color: var(--lavanda); margin: 0; transition: opacity 1s ease; }
.d-form { width: min(560px, 100%); animation: aparecer 1.4s ease both; }
.d-form[hidden] { display: none; }
.d-pregunta { display: block; font-family: var(--serif); font-size: clamp(28px, 6.4vw, 36px); line-height: 1.25; margin: 0 0 22px; }
.d-form textarea {
  width: 100%; min-height: 150px; resize: vertical; border-radius: 22px; border: 1px solid rgba(203, 185, 244, .3);
  background: rgba(255, 255, 255, .06); color: var(--texto);
  font: 400 20px/1.7 var(--sans); letter-spacing: .01em; padding: 20px 22px; text-align: left;
}
.d-form textarea::placeholder { color: rgba(203, 185, 244, .55); }
.d-form textarea:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(242, 220, 174, .15); }
.d-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.d-gracias { font-family: var(--serif); font-size: 22px; color: var(--oro); margin: 18px 0 0; animation: aparecer 1.2s ease both; }

/* ---------- Libro de frases ---------- */
.libro { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: radial-gradient(circle at 50% 0%, #1a0f33 0%, #05020b 70%); animation: fundido .8s ease both; }
.libro[hidden] { display: none; }
.libro-caja { position: relative; width: min(620px, 100%); margin: 0 auto; padding: max(70px, env(safe-area-inset-top)) 22px 60px; text-align: center; }
.libro-cerrar { position: fixed; }
.li-ante { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--oro); margin: 0 0 10px; }
.libro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 8vw, 52px); margin: 0 0 8px; }
.li-sub { color: var(--lavanda-suave); margin: 0 0 40px; }
.li-hoja { padding: 26px 0; border-top: 1px solid var(--linea); animation: aparecer 1.2s ease both; animation-delay: var(--d); }
.li-hoja .li-etq { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--lavanda-suave); margin: 0 0 4px; }
.li-hoja h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 12px; color: var(--oro); }
.li-hoja q { font-family: var(--serif); font-size: clamp(20px, 4.6vw, 24px); line-height: 1.4; }
.li-hoja q.prestada { color: var(--lavanda-suave); font-size: 18px; }
.li-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

@media (min-width: 720px) {
  .consejos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { align-items: center; }
  .panel-caja { border-radius: 26px; border-bottom: 1px solid var(--linea); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
