/* ==========================================================================
   Versión B · «Cuento mágico nocturno»
   Profundidad y brillo: cielos navy con estrellas que titilan, resplandor
   ámbar en tarjetas y tapas, movimiento suave. Va encima de estilos.css y
   v2.css; no cambia textos, imágenes ni tamaños.
   ========================================================================== */

:root {
  --b-noche: #14212E;
  --b-noche-2: #1B2B3A;
  --b-noche-3: #223B52;
  --b-brillo: rgba(240, 180, 92, .55);
  --b-estrellas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%23FFF7EC'%3E%3Ccircle cx='20' cy='30' r='1.1' opacity='.8'/%3E%3Ccircle cx='92' cy='72' r='.8' opacity='.55'/%3E%3Ccircle cx='160' cy='18' r='1.3'/%3E%3Ccircle cx='232' cy='94' r='.9' opacity='.7'/%3E%3Ccircle cx='292' cy='40' r='1' opacity='.5'/%3E%3Ccircle cx='48' cy='152' r='.9' opacity='.6'/%3E%3Ccircle cx='132' cy='196' r='1.2' opacity='.8'/%3E%3Ccircle cx='212' cy='170' r='.7' opacity='.5'/%3E%3Ccircle cx='282' cy='236' r='1.1' opacity='.7'/%3E%3Ccircle cx='30' cy='266' r='1' opacity='.6'/%3E%3Ccircle cx='112' cy='292' r='.8'/%3E%3Ccircle cx='196' cy='258' r='1.2' opacity='.6'/%3E%3C/g%3E%3Cg fill='%23F0B45C'%3E%3Cpath d='M76 120l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M252 146l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z' opacity='.8'/%3E%3C/g%3E%3C/svg%3E");
  --b-estrellas-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='460'%3E%3Cg fill='%23FFF7EC'%3E%3Ccircle cx='60' cy='80' r='1.4'/%3E%3Ccircle cx='210' cy='40' r='1' opacity='.7'/%3E%3Ccircle cx='390' cy='120' r='1.5'/%3E%3Ccircle cx='140' cy='260' r='1.1' opacity='.8'/%3E%3Ccircle cx='320' cy='330' r='1.3'/%3E%3Ccircle cx='40' cy='400' r='1' opacity='.7'/%3E%3C/g%3E%3Cg fill='%23F0B45C'%3E%3Cpath d='M300 210l2.5 7.5 7.5 2.5-7.5 2.5-2.5 7.5-2.5-7.5-7.5-2.5 7.5-2.5z'/%3E%3Cpath d='M110 150l1.6 4.8 4.8 1.6-4.8 1.6-1.6 4.8-1.6-4.8-4.8-1.6 4.8-1.6z' opacity='.85'/%3E%3C/g%3E%3C/svg%3E");
  /* destellos ámbar para fondos claros */
  --b-destellos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='%23E9A23B'%3E%3Cpath d='M60 70l2.2 6.6 6.6 2.2-6.6 2.2-2.2 6.6-2.2-6.6-6.6-2.2 6.6-2.2z' opacity='.55'/%3E%3Cpath d='M300 40l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z' opacity='.45'/%3E%3Cpath d='M220 260l2.6 7.8 7.8 2.6-7.8 2.6-2.6 7.8-2.6-7.8-7.8-2.6 7.8-2.6z' opacity='.4'/%3E%3Cpath d='M380 340l1.4 4.2 4.2 1.4-4.2 1.4-1.4 4.2-1.4-4.2-4.2-1.4 4.2-1.4z' opacity='.5'/%3E%3C/g%3E%3Cg fill='%23E9A23B' opacity='.4'%3E%3Ccircle cx='140' cy='180' r='1.6'/%3E%3Ccircle cx='350' cy='190' r='1.2'/%3E%3Ccircle cx='40' cy='330' r='1.4'/%3E%3Ccircle cx='260' cy='130' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

html, body { overflow-x: clip; }

/* Cabecera: línea de luz ámbar abajo */
.cabecera { background: rgba(255,247,236,.94); backdrop-filter: blur(8px); border-bottom: 0; box-shadow: 0 1px 0 rgba(233,162,59,.55), 0 6px 22px -8px rgba(233,162,59,.45); }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ambar), transparent); transform: scaleX(0); transition: transform .3s ease; }
.menu a:hover { text-decoration: none; }
.menu a:hover::after { transform: scaleX(1); }

/* Capas de estrellas reutilizables */
.testimonios, .final, .precios, .recibis { position: relative; isolation: isolate; }
.testimonios::before, .final::before, .biblioteca::after,
.testimonios::after, .final::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.testimonios::before, .final::before, .biblioteca::after { background: var(--b-estrellas) repeat 0 0 / 320px 320px; opacity: .85; }
.testimonios::after, .final::after { background: var(--b-estrellas-2) repeat 40px 90px / 460px 460px; animation: b-titila 5s ease-in-out infinite alternate; }
.biblioteca::after { z-index: -1; opacity: .7; }
@keyframes b-titila { from { opacity: .25; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Portada: atardecer cálido con destellos
   -------------------------------------------------------------------------- */
.portada { background:
  radial-gradient(ellipse 60% 70% at 8% 0%, rgba(233,162,59,.24), transparent 70%),
  radial-gradient(ellipse 50% 60% at 95% 100%, rgba(31,95,139,.14), transparent 70%),
  linear-gradient(180deg, #FFF7EC 0%, #FCEFDC 100%); }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: var(--b-destellos) repeat 0 0 / 420px 420px; animation: b-titila 6s ease-in-out infinite alternate; }
.portada h1 { background: linear-gradient(100deg, var(--tinta) 0%, var(--tinta) 55%, #2C4A66 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vitrina .comparacion-foto img { box-shadow: 0 0 0 1px rgba(233,162,59,.35), 0 18px 36px rgba(27,43,58,.22), 0 0 34px rgba(233,162,59,.25); }
.vitrina .comparacion-tapa img, .tapa-capa { box-shadow: -.4rem 0 0 var(--lacre), 0 0 0 1px rgba(240,180,92,.5), 0 20px 40px rgba(27,43,58,.28), 0 0 46px rgba(233,162,59,.42); }
.comparacion-tapa { animation: b-flota 6s ease-in-out infinite; }
@keyframes b-flota { 0%,100% { translate: 0 0; } 50% { translate: 0 -.35rem; } }
.elige { background: linear-gradient(160deg, rgba(34,59,82,.92), rgba(20,33,46,.92)); box-shadow: 0 0 0 1px rgba(240,180,92,.35), 0 14px 30px rgba(20,33,46,.35), 0 0 30px rgba(233,162,59,.18); }
.elige-tapa:hover, .elige-tapa:focus-visible, .elige-activa { box-shadow: 0 0 0 3px var(--ambar), 0 0 18px rgba(240,180,92,.75); }
.envio-grande { background: linear-gradient(135deg, #36806A, var(--verde)); box-shadow: 0 8px 20px rgba(46,107,87,.3), 0 0 0 1px rgba(255,255,255,.15) inset; }

/* Botones: brillo que cruza de vez en cuando y halo al pasar */
.boton { transition: background-color var(--rapido), color var(--rapido), border-color var(--rapido), transform var(--rapido), box-shadow .3s ease; }
.boton-wa { background: linear-gradient(180deg, #C9512B, var(--terracota)); box-shadow: 0 6px 18px rgba(184,67,31,.32); position: relative; overflow: hidden; }
.boton-wa:hover { background: linear-gradient(180deg, #B8431F, var(--terracota-oscuro)); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,67,31,.42), 0 0 22px rgba(233,162,59,.45); }
.boton-hero { box-shadow: 0 .45rem 0 var(--terracota-oscuro), 0 14px 30px rgba(184,67,31,.35), 0 0 36px rgba(233,162,59,.35); }
.boton-hero:hover { transform: translateY(.15rem); box-shadow: 0 .3rem 0 var(--terracota-oscuro), 0 12px 26px rgba(184,67,31,.4), 0 0 44px rgba(233,162,59,.5); }
.boton-wa::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,240,210,.45), transparent); transform: skewX(-18deg); animation: b-brillo 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes b-brillo { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.barra-wa .boton-wa::after { animation-delay: 1.5s; }

/* --------------------------------------------------------------------------
   Testimonios: cielo de noche, los chats brillan
   -------------------------------------------------------------------------- */
.testimonios { background:
  radial-gradient(ellipse 70% 40% at 50% 0%, rgba(233,162,59,.22), transparent 70%),
  radial-gradient(ellipse 50% 50% at 90% 80%, rgba(31,95,139,.35), transparent 70%),
  linear-gradient(180deg, var(--b-noche-2) 0%, var(--b-noche) 100%);
  color: var(--texto-sobre-tinta); box-shadow: 0 -1px 0 rgba(240,180,92,.6), 0 -18px 40px -14px rgba(233,162,59,.4); }
.testimonios h2 { color: var(--papel); text-shadow: 0 0 28px rgba(240,180,92,.45); }
.testimonios .seccion-intro { color: var(--texto-sobre-tinta); }
.wa-shot { border: 0; box-shadow: 0 0 0 1px rgba(240,180,92,.3), 0 18px 40px rgba(0,0,0,.4), 0 0 32px rgba(240,180,92,.14); transition: transform .35s ease, box-shadow .35s ease; }
.wa-shot:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(240,180,92,.6), 0 24px 46px rgba(0,0,0,.45), 0 0 44px rgba(240,180,92,.32); }

/* --------------------------------------------------------------------------
   Precios: luz cálida, la tarjeta elegida resplandece
   -------------------------------------------------------------------------- */
.precios { background:
  radial-gradient(ellipse 60% 55% at 75% 40%, rgba(233,162,59,.22), transparent 70%),
  linear-gradient(180deg, #F2E3CC 0%, var(--papel-usado) 100%); box-shadow: inset 0 1px 0 rgba(240,180,92,.6); }
.precios::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--b-destellos) repeat 120px 60px / 420px 420px; opacity: .7; }
.precio-tarjeta { border: 1px solid rgba(233,162,59,.35); box-shadow: 0 16px 36px rgba(27,43,58,.12), 0 0 0 6px rgba(255,253,248,.5); transition: transform .35s ease, box-shadow .35s ease; }
.precio-tarjeta:hover { transform: translateY(-4px); }
.precio-destacado { border: 2px solid var(--ambar); animation: b-resplandor 3.6s ease-in-out infinite; }
@keyframes b-resplandor { 0%,100% { box-shadow: 0 16px 36px rgba(27,43,58,.14), 0 0 22px rgba(233,162,59,.35); } 50% { box-shadow: 0 16px 36px rgba(27,43,58,.14), 0 0 46px rgba(233,162,59,.65); } }
.precio-sello { background: linear-gradient(90deg, #F0B45C, #F8D08A 50%, #F0B45C); background-size: 200% 100%; box-shadow: 0 4px 14px rgba(233,162,59,.55); animation: b-dorado 4s linear infinite; }
@keyframes b-dorado { from { background-position: 0 0; } to { background-position: 200% 0; } }
.precio-envio { background: linear-gradient(135deg, #36806A, var(--verde)); }
.digital-camino { background: linear-gradient(180deg, #FBF0DF, var(--papel-usado)); box-shadow: inset 0 0 0 1px rgba(233,162,59,.25); }

/* --------------------------------------------------------------------------
   Los cuentos: estrellas sobre la escena y tapas con halo
   -------------------------------------------------------------------------- */
.biblioteca { box-shadow: inset 0 1px 0 rgba(240,180,92,.5); }
.biblio-fondo::after { background: linear-gradient(180deg, rgba(20,33,46,.65), rgba(27,43,58,.35) 40%, rgba(20,33,46,.75)), radial-gradient(ellipse 60% 40% at 50% 0%, rgba(233,162,59,.18), transparent 70%); }
.tapa-real img { transition: box-shadow .35s ease; }
.tapa-real:hover img, .tapa-real:focus-visible img { box-shadow: -.3rem 0 0 rgba(0,0,0,.35), 0 0 0 2px rgba(240,180,92,.8), 0 14px 30px rgba(0,0,0,.45), 0 0 34px rgba(240,180,92,.6); }
.camino-familia h3 { text-shadow: 0 0 22px rgba(240,180,92,.5); }

/* --------------------------------------------------------------------------
   Cómo funciona: de noche, números que brillan
   -------------------------------------------------------------------------- */
/* Cómo funciona: liso, como la base (Juan, 17/11) */

/* --------------------------------------------------------------------------
   Qué recibís y preguntas: claro, con luz de vela
   -------------------------------------------------------------------------- */
.recibis { background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(233,162,59,.2), transparent 70%), linear-gradient(180deg, #F2E3CC, var(--papel-usado)); box-shadow: inset 0 1px 0 rgba(240,180,92,.6); }
.recibis::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--b-destellos) repeat 0 0 / 420px 420px; opacity: .6; }
.librito { filter: drop-shadow(0 14px 18px rgba(27,43,58,.25)) drop-shadow(0 0 22px rgba(233,162,59,.35)); }
.celu { box-shadow: 0 14px 22px -6px rgba(27,43,58,.4), 0 0 26px rgba(233,162,59,.35); }
.recibis-nota { border-left-color: var(--ambar); box-shadow: 0 10px 26px rgba(27,43,58,.08), -4px 0 18px rgba(233,162,59,.35); }

.preguntas summary { transition: color var(--rapido); }
.preguntas summary::after { transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.preguntas summary:hover::after { box-shadow: 0 0 14px rgba(233,162,59,.6); }
.preguntas details[open] summary::after { box-shadow: 0 0 16px rgba(233,162,59,.7); transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Cierre: la última página iluminada en la noche
   -------------------------------------------------------------------------- */
.final { background:
  radial-gradient(ellipse 50% 60% at 50% 55%, rgba(233,162,59,.28), transparent 70%),
  linear-gradient(180deg, var(--b-noche-3) 0%, var(--b-noche) 100%); padding-top: 3.5rem; }
.final-hoja { box-shadow:
    0 0 0 1px var(--borde),
    6px 6px 0 -1px var(--papel-usado), 6px 6px 0 0 var(--borde),
    12px 12px 0 -1px var(--papel-usado), 12px 12px 0 0 var(--borde),
    0 0 70px rgba(240,180,92,.45), 0 30px 60px rgba(0,0,0,.35); }
/* el pie queda del color de siempre: el titular y el CUIT van del mismo color que el fondo */
.pie { box-shadow: inset 0 1px 0 rgba(240,180,92,.35); }

/* --------------------------------------------------------------------------
   Aparecer al hacer scroll (lo activa el script de index-b.html)
   -------------------------------------------------------------------------- */
.rv-listo .rv { transition: opacity 1s ease, translate 1s cubic-bezier(.2,.7,.2,1), filter 1s ease; }
.rv-listo .rv:not(.rv-on) { opacity: 0; translate: 0 1.5rem; filter: blur(6px); }

@media (prefers-reduced-motion: reduce) {
  .testimonios::after, .final::after, .portada::before,
  .comparacion-tapa, .boton-wa::after, .precio-destacado, .precio-sello, .mg-num { animation: none !important; }
  .boton-wa::after { display: none; }
  .rv-listo .rv:not(.rv-on) { opacity: 1; translate: none; filter: none; }
  .wa-shot:hover, .precio-tarjeta:hover, .boton-wa:hover { transform: none; }
}

/* Logo de la marca actual (Pinocho con el grillito, 13/10) */
.marca img { width: 230px; height: auto; }
@media (min-width: 60rem) { .marca img { width: 260px; } }

/* ==========================================================================
   Pulido de abajo y de «Cómo funciona» (Juan, 17/11)
   «que esa parte por lo menos quede un poco más ordenadita» y
   «que estén [los chats] al mismo tamaño».
   ========================================================================== */

/* --- Cómo funciona: 4 chats iguales, alineados arriba --------------------- */
.mg-paso { gap: .6rem; }
.mg-rotulo { width: min(18rem, 100%); min-height: 3.6rem; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; column-gap: .3em; margin-top: -.55rem; }
.mg-paso .wa-chat { width: min(18rem, 100%); margin-top: 0; display: flex; flex-direction: column; }
.mg-paso .wa-cuerpo { justify-content: flex-start; min-height: 0; flex: 1; }
@media (min-width: 64rem) {
  .mg-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
  .mg-paso .wa-chat { flex: 1; width: 100%; }
  .mg-rotulo { width: 100%; }
  .mg-paso .wa-foto img { width: 7.5rem; }
}
@media (max-width: 63.99rem) {
  .mg-lista { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mg-rotulo { min-height: 0; }
}

/* --- Preguntas frecuentes: una lista en tarjeta, filas parejas ------------ */
.preguntas { padding-block: 4.5rem 5rem; }
.preguntas .envase-angosto { max-width: 46rem; }
.preguntas h2 { text-align: center; margin-bottom: 2rem; }
.preguntas details { background: var(--superficie); border: 1px solid var(--borde); border-bottom: 0; }
.preguntas details:first-of-type { border-radius: 14px 14px 0 0; }
.preguntas details:last-of-type { border-bottom: 1px solid var(--borde); border-radius: 0 0 14px 14px; box-shadow: 0 16px 34px -18px rgba(27,43,58,.25); }
.preguntas summary { padding: 1.05rem 4rem 1.05rem 1.5rem; font-size: 1.125rem; display: flex; align-items: center; }
.preguntas summary::after { right: 1.1rem; width: 2rem; height: 2rem; margin-top: -1rem; font-size: 1.3rem; }
.preguntas details[open] { background: #FFFBF3; box-shadow: inset 3px 0 0 var(--ambar); }
.preguntas details:last-of-type[open] { box-shadow: inset 3px 0 0 var(--ambar), 0 16px 34px -18px rgba(27,43,58,.25); }
.preguntas details[open] summary { color: var(--ambar-texto); }
.preguntas .respuesta { padding: 0 1.5rem 1.4rem; max-width: none; color: var(--tinta-suave); font-size: 1.0625rem; line-height: 1.55; }
.preguntas summary:focus-visible { outline-offset: -3px; border-radius: 12px; }

/* --- Cierre: una página iluminada, compuesta ----------------------------- */
.final { padding-block: 5rem 5.5rem; }
.final-hoja { max-width: 46rem; padding: 3.25rem 1.5rem 2.5rem; }
.final h2 { position: relative; padding-top: 2.1rem; }
.final h2::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.5rem; height: 1.5rem; translate: -50% 0;
  background: var(--ambar); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(233,162,59,.8)); }
.final-hoja > p:not(.final-nota) { margin: 1rem auto 2rem; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.35; color: var(--tinta-suave); max-width: 30rem; text-wrap: balance; }
.final-hoja > p:not(.final-nota)::after { content: ""; display: block; width: 4.5rem; height: 2px; margin: 1.6rem auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ambar), transparent); }
.final-nota { margin-top: 1.1rem; font-size: .975rem; text-wrap: balance; }
@media (min-width: 600px) { .final-hoja { padding: 3.75rem 3rem 3rem; } }

/* --- Pie: columnas alineadas y barra de abajo ---------------------------- */
.pie { padding-top: 3.5rem; }
.pie-grilla { position: relative; gap: 2rem; padding-bottom: 4.25rem; }
.pie-grilla::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 2.75rem; height: 1px; background: rgba(243,232,216,.14); }
.pie-copy { position: absolute; left: 1rem; bottom: 0; margin: 0; font-size: .9375rem; }
.pie-marca img { width: 130px; }
.pie-marca p { margin-top: .85rem; max-width: 16rem; font-size: 1rem; color: #C9D6E0; }
.pie-titulo { font: 700 .8125rem/1.3 var(--f-texto); letter-spacing: .12em; text-transform: uppercase; padding-bottom: .65rem; border-bottom: 1px solid rgba(240,180,92,.3); }
.pie-lista { margin-top: .55rem; }
.pie-lista a { min-height: 2.6rem; font-size: 1rem; text-decoration: none; }
.pie-lista a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pie-vendedor { margin-top: 0; font-size: .75rem; line-height: 1.2; }
@media (min-width: 600px) {
  .pie-grilla::after { left: 1.5rem; right: 1.5rem; }
  .pie-copy { left: 1.5rem; }
}
@media (min-width: 768px) { .pie-grilla { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }
@media (min-width: 1024px) {
  .pie-grilla::after { left: 2rem; right: 2rem; }
  .pie-copy { left: 2rem; }
}
