/* Propuesta 17/11: comparación foto-cuento, botón grande de WhatsApp, precios y envío gratis. */
.boton-hero { min-height: 4.5rem; padding-inline: 1.75rem; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); border-radius: 1rem; box-shadow: 0 .45rem 0 var(--terracota-oscuro); margin-top: .5rem; }
.boton-hero:hover { box-shadow: 0 .3rem 0 var(--terracota-oscuro); transform: translateY(.15rem); }
.boton-hero .icono { width: 1.6em; height: 1.6em; }
.envio-grande { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; padding: .85rem 1.1rem; background: var(--verde); color: #fff; border-radius: .9rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.2; width: fit-content; max-width: 100%; }
.envio-grande strong { font-family: var(--f-display); font-size: 1.25em; }
.icono-envio { width: 2.2rem; height: 2.2rem; flex: none; }
.enlace-suave { display: inline-block; margin-top: 1rem; color: var(--ambar-texto); font-weight: 600; }

.comparacion { margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.comparacion-par { display: grid; grid-template-columns: minmax(0,1fr) 2.5rem minmax(0,1fr); gap: .5rem; align-items: center; }
.comparacion-foto, .comparacion-tapa { position: relative; }
.comparacion-foto img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 1rem; box-shadow: var(--sombra-lg); border: .4rem solid var(--superficie); }
.comparacion-tapa img { display: block; width: 100%; aspect-ratio: 1824/2560; object-fit: cover; border-radius: .3rem 1rem 1rem .3rem; box-shadow: -.45rem 0 0 var(--lacre), var(--sombra-lg); }
.comparacion-flecha { width: 2.5rem; height: 2.5rem; color: var(--terracota); }
.comparacion-etiqueta { position: absolute; left: .75rem; bottom: .75rem; background: var(--tinta); color: var(--papel); font-weight: 700; font-size: .95rem; padding: .25rem .7rem; border-radius: 999px; }
.comparacion-etiqueta-lacre { background: var(--terracota); color: #fff; }
.comparacion figcaption { font-size: .95rem; color: var(--tinta-suave); }

.precios { background: var(--papel-usado); padding-block: 3.5rem; }
.precios h2 { font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.precios-grilla { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.precio-tarjeta { position: relative; background: var(--superficie); border: 1px solid var(--borde); border-radius: 1.1rem; padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--sombra-md); }
.precio-tarjeta h3 { font-family: var(--f-display); font-size: 1.5rem; }
.precio-monto { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--tinta); }
.precio-destacado { border: 3px solid var(--ambar); }
.precio-sello { position: absolute; top: -.9rem; right: 1.25rem; background: var(--ambar); color: var(--tinta); font-weight: 700; font-size: .9rem; padding: .2rem .8rem; border-radius: 999px; }
.precio-envio { display: flex; align-items: center; gap: .8rem; background: var(--verde); color: #fff; border-radius: .9rem; padding: .9rem 1.1rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.05; }
.precio-envio small { font-family: var(--f-texto); font-weight: 600; font-size: 1rem; }
.precio-envio .icono-envio { width: 2.8rem; height: 2.8rem; }
.precios-nota { margin-top: 1rem; color: var(--tinta-suave); font-weight: 600; }

.tipos-cuento { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.tipo-chip { background: var(--ambar-sobre-tinta); color: var(--tinta); font-weight: 700; padding: .35rem .9rem; border-radius: 999px; }
.tipo-chip-medida { background: transparent; color: var(--texto-sobre-tinta); border: 2px solid var(--texto-sobre-tinta); }
.camino-medida { border: 2px dashed var(--ambar-sobre-tinta); border-radius: 1rem; padding: 1.5rem; }
.medida-sello { display: inline-block; background: var(--ambar-sobre-tinta); color: var(--tinta); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .6rem; border-radius: .4rem; margin-bottom: .35rem; }

/* Tapas reales */
.tapa-real { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--texto-sobre-tinta); width: 100%; transition: transform var(--rapido); }
.tapa-real img { display: block; width: 100%; aspect-ratio: 540/766; object-fit: cover; border-radius: .25rem .7rem .7rem .25rem; box-shadow: -.3rem 0 0 rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.35); }
.tapa-real:hover { transform: translateY(-.35rem) rotate(-1deg); }
.tapa-real:focus-visible { outline: 3px solid var(--ambar-sobre-tinta); outline-offset: 4px; }
.tapa-real .tapa-titulo { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--texto-sobre-tinta); position: static; }
.tapa-real .tapa-etiqueta { position: static; align-self: flex-start; }
.camino-familia { margin-top: 2.5rem; }
.camino-familia h3 { font-family: var(--f-display); color: var(--ambar-sobre-tinta); font-size: 1.4rem; }
.estante-real { margin-top: 1.25rem; }

/* Cómo funciona, estilo motion graphics de los anuncios */
.pasos-mg { padding-block: 4rem; background: var(--papel); overflow: hidden; }
.pasos-mg h2 { font-family: 'Grandstander', var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem); color: var(--terracota); }
.mg-lista { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem 1.5rem; }
.mg-paso { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; animation: mg-entra .7s cubic-bezier(.2,1.4,.4,1) both; }
.mg-paso:nth-child(2) { animation-delay: .15s; } .mg-paso:nth-child(3) { animation-delay: .3s; } .mg-paso:nth-child(4) { animation-delay: .45s; }
.mg-num { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ambar); color: var(--tinta); font-family: 'Grandstander', var(--f-display); font-weight: 900; font-size: 1.9rem; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.12); position: relative; z-index: 2; }
.mg-rotulo { background: #fff; border-radius: .7rem; padding: .45rem .9rem; font-family: 'Grandstander', var(--f-display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; color: var(--tinta); box-shadow: 0 4px 12px rgba(74,48,24,.12); margin-top: -.4rem; position: relative; z-index: 2; }
.mg-rotulo em { font-style: normal; color: var(--terracota); }
.mg-circulo { position: relative; width: min(15rem, 80vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin-top: -.6rem; box-shadow: .6rem .6rem 0 rgba(27,43,58,.08); }
.mg-verde { background: var(--verde); } .mg-ambar { background: var(--ambar); } .mg-terracota { background: var(--terracota); }
.mg-foto { width: 58%; aspect-ratio: 3/4; object-fit: cover; border: .35rem solid #fff; border-radius: .5rem; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.25); animation: mg-flota 4s ease-in-out infinite; }
.mg-carta { position: absolute; width: 40%; aspect-ratio: 540/766; object-fit: cover; border: .25rem solid #fff; border-radius: .35rem; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.mg-carta-izq { transform: translateX(-62%) rotate(-12deg) scale(.88); }
.mg-carta-der { transform: translateX(62%) rotate(12deg) scale(.88); }
.mg-carta-centro { width: 46%; z-index: 1; animation: mg-flota 4s ease-in-out infinite; }
.mg-muestra-a { transform: translateX(-30%) rotate(-5deg); }
.mg-muestra-b { transform: translateX(30%) rotate(5deg); }
.mg-frase { font-family: 'Grandstander', var(--f-display); font-weight: 900; color: #fff; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.05; padding: 0 1.2rem; }
.mg-check { position: absolute; right: 12%; bottom: 10%; width: 3rem; height: 3rem; }
.mg-check circle { fill: var(--verde); } .mg-check path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mg-texto { max-width: 17rem; color: var(--tinta-suave); font-size: 1.02rem; }
@keyframes mg-entra { from { transform: translateY(1.2rem) scale(.94); } to { transform: none; } }
@keyframes mg-flota { 0%,100% { translate: 0 0; } 50% { translate: 0 -.4rem; } }
@media (prefers-reduced-motion: reduce) { .mg-paso, .mg-foto, .mg-carta-centro { animation: none; } .tapa-real { transition: none; } }
@media (min-width: 1100px) { .estante { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Portada con escena de fondo que cambia con cada tapa */
.portada-escena { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 1.5rem; }
.escena-fondo { position: absolute; inset: 0; z-index: -1; }
.escena-capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 6s ease; }
.escena-capa.escena-visible { opacity: 1; transform: scale(1); }
.escena-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,247,236,.94) 0%, rgba(255,247,236,.86) 42%, rgba(255,247,236,.35) 70%, rgba(255,247,236,.15) 100%), linear-gradient(0deg, rgba(27,43,58,.55) 0%, rgba(27,43,58,0) 32%); }
.portada-escena .portada-texto { background: rgba(255,247,236,.72); border-radius: 1.25rem; padding: 1.25rem 1.25rem 1.5rem; backdrop-filter: blur(3px); }
.portada-escena .comparacion figcaption { background: rgba(255,253,248,.9); border-radius: .5rem; padding: .3rem .6rem; width: fit-content; }
.repisa { margin-top: 2rem; }
.repisa-titulo { color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.repisa-titulo strong { color: var(--ambar-sobre-tinta); }
.repisa-lista { list-style: none; margin: .75rem 0 0; padding: .5rem .25rem 1rem; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.repisa-lista li { flex: 0 0 auto; scroll-snap-align: start; }
.repisa-tapa { display: block; width: 5.5rem; border-radius: .2rem .5rem .5rem .2rem; transition: transform var(--rapido), box-shadow var(--rapido); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.repisa-tapa img { display: block; width: 100%; aspect-ratio: 540/766; object-fit: cover; border-radius: inherit; }
.repisa-tapa:hover, .repisa-tapa:focus-visible, .repisa-activa { transform: translateY(-.6rem) scale(1.08); box-shadow: 0 0 0 3px var(--ambar), 0 12px 22px rgba(0,0,0,.45); outline: none; }
@media (min-width: 1100px) { .repisa-lista { flex-wrap: wrap; overflow: visible; } .repisa-tapa { width: 4.6rem; } }
@media (prefers-reduced-motion: reduce) { .escena-capa { transition: opacity .2s; transform: none; } .repisa-tapa { transition: none; } }

/* Repisa legible sobre la escena */
.repisa { background: rgba(27,43,58,.84); border-radius: 1rem; padding: .9rem 1rem .4rem; backdrop-filter: blur(4px); }
.repisa-titulo { text-shadow: none; }
@media (min-width: 1100px) { .repisa-lista { flex-wrap: nowrap; overflow-x: auto; } .repisa-tapa { width: 3.55rem; } }

/* Cómo funciona como chats de WhatsApp */
.wa-chat { width: min(17.5rem, 86vw); background: #EFE7DD; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 14px 30px rgba(27,43,58,.18); text-align: left; margin-top: -.3rem; border: 1px solid #E2D6C6; }
.wa-cabeza { display: flex; align-items: center; gap: .55rem; background: #075E54; color: #fff; padding: .55rem .8rem; }
.wa-cabeza img { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--papel); object-fit: contain; }
.wa-cabeza span { display: flex; flex-direction: column; line-height: 1.1; }
.wa-cabeza small { opacity: .85; font-size: .78rem; }
.wa-cuerpo { padding: .8rem .65rem; display: flex; flex-direction: column; gap: .45rem; min-height: 15rem; justify-content: flex-end; }
.wa-b { margin: 0; max-width: 86%; padding: .45rem .6rem 1.1rem; border-radius: .7rem; font-size: .92rem; line-height: 1.3; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: wa-entra .5s ease both; }
.wa-b:nth-child(2) { animation-delay: .5s; } .wa-b:nth-child(3) { animation-delay: 1s; }
.wa-mari { align-self: flex-start; background: #fff; border-top-left-radius: .2rem; }
.wa-yo { align-self: flex-end; background: #D9FDD3; border-top-right-radius: .2rem; }
.wa-hora { position: absolute; right: .5rem; bottom: .2rem; font-style: normal; font-size: .68rem; color: #667781; }
.wa-tilde { color: #53BDEB; font-weight: 700; }
.wa-b img { display: block; border-radius: .45rem; }
.wa-foto { padding: .25rem .25rem 1.1rem; } .wa-foto img { width: 8.5rem; aspect-ratio: 3/4; object-fit: cover; }
.wa-tapas { display: flex; flex-wrap: wrap; gap: .3rem; } .wa-tapas img { width: calc(33% - .2rem); aspect-ratio: 540/766; object-fit: cover; } .wa-tapas span { flex-basis: 100%; }
.wa-muestra { display: flex; flex-wrap: wrap; gap: .3rem; } .wa-muestra img { width: calc(50% - .15rem); aspect-ratio: 1824/2560; object-fit: cover; } .wa-muestra span { flex-basis: 100%; }
@keyframes wa-entra { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-b { animation: none; } }

/* Vitrina: página vertical del cuento a la derecha, la foto y su tapa encima, y 5 cuentos para cambiar */
.vitrina { position: relative; margin: 0; min-height: 36rem; border-radius: 1.4rem; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; box-shadow: var(--sombra-lg); }
.vitrina-pagina { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -1; transition: opacity .25s ease; }
.vitrina::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,247,236,.55) 0%, rgba(255,247,236,0) 45%, rgba(255,247,236,0) 62%, rgba(27,43,58,.55) 100%); }
.vitrina-par { display: grid; grid-template-columns: minmax(0,.8fr) 2rem minmax(0,1fr); gap: .4rem; align-items: center; width: min(100%, 26rem); }
.vitrina .comparacion-foto img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: .9rem; border: .35rem solid var(--superficie); box-shadow: var(--sombra-lg); }
.vitrina .comparacion-tapa img { display: block; width: 100%; aspect-ratio: 1824/2560; object-fit: cover; border-radius: .3rem .9rem .9rem .3rem; box-shadow: -.4rem 0 0 var(--lacre), var(--sombra-lg); transition: opacity .18s ease, transform .18s ease; }
.cambiando { opacity: 0; }
.vitrina .comparacion-tapa img.cambiando { transform: scale(.96); }
.vitrina .comparacion-flecha { width: 2rem; height: 2rem; color: var(--terracota); filter: drop-shadow(0 1px 2px rgba(255,255,255,.8)); }
.elige { align-self: flex-start; background: rgba(27,43,58,.82); backdrop-filter: blur(4px); border-radius: .9rem; padding: .6rem .7rem .7rem; max-width: 100%; }
.elige-titulo { color: var(--texto-sobre-tinta); font-size: .95rem; font-weight: 600; margin: 0 0 .45rem; }
.elige-titulo strong { color: var(--ambar-sobre-tinta); }
.elige-lista { list-style: none; margin: 0; padding: 0; display: flex; gap: .45rem; flex-wrap: wrap; }
.elige-tapa { display: block; width: 3.6rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: .2rem .45rem .45rem .2rem; transition: transform var(--rapido), box-shadow var(--rapido); }
.elige-tapa img { display: block; width: 100%; aspect-ratio: 540/766; object-fit: cover; border-radius: inherit; }
.elige-tapa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.elige-tapa:hover, .elige-tapa:focus-visible, .elige-activa { transform: translateY(-.3rem) scale(1.06); box-shadow: 0 0 0 3px var(--ambar); outline: none; }
.vitrina figcaption { position: absolute; right: .75rem; bottom: .75rem; max-width: 13rem; font-size: .8rem; color: #fff; text-align: right; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@media (max-width: 899px) { .vitrina { min-height: 30rem; } .vitrina figcaption { position: static; text-align: left; margin-top: .5rem; } }
@media (prefers-reduced-motion: reduce) { .vitrina .comparacion-tapa img, .vitrina-pagina, .elige-tapa { transition: none; } }
/* v3 (Juan): mismo tamaño que antes, los cuentos abajo de la foto y la tapa, y la página del cuento de fondo */
.vitrina { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1.25rem 1rem; min-height: 0; border-radius: 1.4rem; overflow: hidden; box-shadow: var(--sombra-lg); isolation: isolate; }
.vitrina::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,247,236,.25) 0%, rgba(255,247,236,0) 40%, rgba(27,43,58,.35) 100%); }
.vitrina-izq { display: flex; flex-direction: column; gap: 1rem; }
.vitrina-par { width: 100%; grid-template-columns: minmax(0,1fr) 2.5rem minmax(0,1fr); }
.vitrina-der { position: absolute; inset: 0; z-index: -2; }
.vitrina-der .vitrina-pagina { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; border-radius: 0; box-shadow: none; }
.vitrina-der .comparacion-etiqueta { display: none; }
.elige { align-self: flex-start; }
.elige-lista { display: flex; gap: .45rem; }
.elige-tapa { width: 3.4rem; }
.vitrina figcaption { position: absolute; right: .9rem; bottom: .8rem; max-width: 12rem; text-align: right; color: #fff; font-size: .8rem; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
@media (max-width: 560px) { .vitrina figcaption { position: static; text-align: left; color: var(--tinta-suave); text-shadow: none; } }
/* v4 (Juan): la página de fondo ocupa todo el lado derecho de la portada, de arriba abajo, sin recuadro */
.portada { position: relative; overflow: hidden; isolation: isolate; }
.portada .envase, .portada-grilla { position: static; }
.vitrina { position: static; background: none; box-shadow: none; border-radius: 0; overflow: visible; padding: 0; }
.vitrina::before { content: none; }
.vitrina-der { position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 50%; z-index: -1; }
.vitrina-der::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--papel) 0%, rgba(255,247,236,.55) 18%, rgba(255,247,236,0) 40%), linear-gradient(0deg, rgba(27,43,58,.35) 0%, rgba(27,43,58,0) 35%); }
.vitrina-der .vitrina-pagina { object-position: center 60%; }
.vitrina figcaption { position: static; text-align: left; max-width: none; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.75); }
@media (max-width: 899px) { .vitrina-der { width: 100%; top: auto; height: 60%; } }
/* v5: más transparente, encuadre que deja ver la escena alrededor de las tarjetas */
.vitrina-der .vitrina-pagina { opacity: .55; object-position: center 22%; }
.vitrina-der::after { background: linear-gradient(90deg, var(--papel) 0%, rgba(255,247,236,.35) 16%, rgba(255,247,236,0) 34%); }
.vitrina figcaption { color: var(--tinta-suave); text-shadow: none; }
/* la línea de cuentos para elegir, más larga: todo el ancho de la foto y la tapa */
.elige { align-self: stretch; }
.elige-lista { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.elige-tapa { width: 100%; }
/* cambio de tapa y de página fundido, sin parpadeo */
.comparacion-tapa { position: relative; }
.tapa-capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: .3rem .9rem .9rem .3rem; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.pagina-capa { opacity: 0; transition: opacity .7s ease; }
.vitrina-der .pagina-capa { opacity: 0; }
.cambiando { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tapa-capa, .pagina-capa { transition: opacity .15s; } }
.tapa-capa.visible { opacity: 1; }
.vitrina-der .pagina-capa.visible { opacity: .55; }
/* v6 (Juan): la página de fondo en toda la portada, con fundido hacia el texto */
.vitrina-der { width: 100%; left: 0; right: 0; }
.vitrina-der .vitrina-pagina { object-position: center 30%; opacity: .5; }
.vitrina-der::after { background:
  linear-gradient(90deg, rgba(255,247,236,.92) 0%, rgba(255,247,236,.75) 30%, rgba(255,247,236,.15) 60%, rgba(255,247,236,0) 100%),
  linear-gradient(180deg, rgba(255,247,236,.6) 0%, rgba(255,247,236,0) 18%, rgba(255,247,236,0) 80%, var(--papel) 100%); }
@media (max-width: 899px) { .vitrina-der { height: 100%; top: 0; } }
/* v7: la página entera (sin recortar), a la derecha de punta a punta en alto, con fundido; el texto siempre por encima */
.vitrina { isolation: auto; }
.vitrina-der { left: auto; right: 0; width: 55%; }
.vitrina-der .vitrina-pagina { object-fit: contain; object-position: right center; opacity: .6; }
.vitrina-der::after { background:
  linear-gradient(90deg, var(--papel) 0%, var(--papel) 18%, rgba(255,247,236,.4) 32%, rgba(255,247,236,0) 48%),
  linear-gradient(180deg, rgba(255,247,236,.35) 0%, rgba(255,247,236,0) 15%, rgba(255,247,236,0) 85%, rgba(255,247,236,.35) 100%); }
/* fundido con máscara: sin borde duro a la izquierda ni arriba/abajo */
.vitrina-der::after { content: none; }
.vitrina-der .vitrina-pagina {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%); mask-composite: intersect; }
/* la caja mide lo mismo que la página: el fundido empieza donde empieza el dibujo */
.vitrina-der { width: auto; height: 100%; aspect-ratio: 1824 / 2560; max-width: 70%; }
.vitrina-der .vitrina-pagina { object-fit: cover; object-position: center; }

/* Digital: del celu a la imprenta, en la tarjeta del precio */
.digital-camino { margin-top: auto; display: grid; grid-template-columns: minmax(0,1fr) 1.4rem minmax(0,1fr) 1.4rem minmax(0,1fr); align-items: start; gap: .3rem; background: var(--papel-usado); border-radius: .9rem; padding: .9rem .7rem .7rem; }
.dc-paso { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; font-size: .82rem; font-weight: 600; color: var(--tinta-suave); line-height: 1.2; }
.dc-flecha { width: 1.4rem; height: 1.4rem; color: var(--terracota); margin-top: 2.2rem; }
.dc-celu { width: 3.4rem; height: 5.6rem; border: .3rem solid var(--tinta); border-radius: .7rem; background: var(--tinta); overflow: hidden; display: grid; place-items: center; box-shadow: var(--sombra-md); }
.dc-celu img { width: 100%; height: 100%; object-fit: cover; border-radius: .35rem; }
.dc-hoja { width: 4.4rem; height: 5.6rem; background: #fff; border: 1px solid var(--borde); border-radius: .25rem; box-shadow: var(--sombra-md); padding: .35rem .3rem; display: flex; flex-direction: column; gap: .2rem; text-align: left; transform: rotate(-3deg); }
.dc-hoja strong { font-family: var(--f-display); font-size: .62rem; color: var(--tinta); line-height: 1.1; margin-bottom: .1rem; }
.dc-hoja i { font-style: normal; font-size: .55rem; color: var(--tinta-suave); line-height: 1.15; }
.dc-hoja b { color: var(--verde); }
.dc-librito { position: relative; width: 4rem; height: 5.6rem; border-radius: .15rem .4rem .4rem .15rem; overflow: hidden; box-shadow: -.25rem 0 0 #e8dccb, -.45rem .1rem 0 #d9c7ae, var(--sombra-md); }
.dc-librito img { width: 100%; height: 100%; object-fit: cover; }
.dc-ganchos { position: absolute; left: .15rem; top: 1.6rem; width: .2rem; height: 2.4rem; background: linear-gradient(180deg, #9aa3ab 0 .5rem, transparent .5rem 1.9rem, #9aa3ab 1.9rem); border-radius: .1rem; }
/* v8 (Juan): el fondo en todo el ancho, como antes (escena doble), con fundido hacia el texto */
.vitrina-der { left: 0; right: 0; width: 100%; height: 100%; aspect-ratio: auto; max-width: none; }
.vitrina-der .vitrina-pagina { object-fit: cover; object-position: center 40%; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.25) 30%, #000 62%), linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.25) 30%, #000 62%), linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%); }
/* más fundido a la izquierda, detrás del texto */
.vitrina-der .vitrina-pagina {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 22%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.6) 52%, #000 66%), linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 22%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.6) 52%, #000 66%), linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%); }
/* fundido cruzado sin restos: las dos capas se turnan */
.comparacion-tapa img[data-tapa-grande], .tapa-capa { transition: opacity .55s ease; }
.tapa-capa { opacity: 1; }
.vitrina-der .vitrina-pagina { transition: opacity .7s ease; }
.vitrina-der .pagina-capa { position: absolute; inset: 0; opacity: .5; }
.capa-off, .vitrina-der .capa-off, .tapa-capa.capa-off { opacity: 0 !important; }
.tapa-capa { box-shadow: -.4rem 0 0 var(--lacre), var(--sombra-lg); }
.elige-lista { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.elige-medida { box-shadow: 0 0 0 2px var(--ambar-sobre-tinta); }

/* Testimonios como mensajes de WhatsApp */
.testimonios { background: #EFE7DD; padding-block: 4rem; }
.testimonios h2 { font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
.testi-lista { list-style: none; margin: 1.75rem 0 0; padding: 0; columns: 3 17rem; column-gap: 1.25rem; }
.testi { break-inside: avoid; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.testi-burbuja { margin: 0; background: #fff; border-radius: .2rem 1rem 1rem 1rem; padding: .9rem 1rem; font-size: 1.05rem; line-height: 1.45; color: var(--tinta); box-shadow: 0 1px 2px rgba(0,0,0,.08); position: relative; }
.testi-burbuja::before { content: ""; position: absolute; left: -.45rem; top: 0; border-top: .7rem solid #fff; border-left: .5rem solid transparent; }
.testi-audio { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--verde); border-radius: .3rem; padding: .05rem .4rem; vertical-align: .15em; }
.testi-quien { margin: 0 0 0 .4rem; font-size: .92rem; color: var(--tinta-suave); }

/* Testimonios como capturas de WhatsApp, con audios que se escuchan */
.testi-lista { columns: 3 18rem; column-gap: 1.25rem; }
.wa-shot { break-inside: avoid; margin-bottom: 1.4rem; border-radius: 1rem; overflow: hidden; background: #EFEAE2; box-shadow: 0 10px 24px rgba(27,43,58,.14); border: 1px solid #ddd3c4; }
.wa-top { display: flex; align-items: center; gap: .6rem; background: #F0F2F5; padding: .6rem .8rem; border-bottom: 1px solid #e3ddd3; }
.wa-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: #DFE5E7; color: #54656F; font-weight: 700; }
.wa-nombre { font-weight: 600; color: #111B21; }
.wa-fondo { padding: .8rem .65rem; display: flex; flex-direction: column; gap: .4rem;
  background-color: #EFEAE2; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.4px); background-size: 14px 14px; }
.wa-txt { align-self: flex-start; max-width: 88%; margin: 0; background: #fff; border-radius: 0 .55rem .55rem .55rem; padding: .4rem .55rem 1.05rem; font-size: .95rem; line-height: 1.35; color: #111B21; position: relative; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-mio { align-self: flex-end; background: #D9FDD3; border-radius: .55rem 0 .55rem .55rem; }
.wa-hora { position: absolute; right: .45rem; bottom: .15rem; font-style: normal; font-size: .66rem; color: #667781; }
.wa-hora b { color: #53BDEB; }
.wa-audio { align-self: flex-start; width: min(100%, 16rem); background: #fff; border-radius: 0 .55rem .55rem .55rem; padding: .45rem .55rem 1.05rem .45rem; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem; align-items: center; position: relative; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-play { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: #00A884; display: grid; place-items: center; cursor: pointer; padding: 0; }
.wa-play svg { width: 1.1rem; height: 1.1rem; fill: #fff; }
.wa-play .i-pausa, .wa-play.sonando .i-play { display: none; }
.wa-play.sonando .i-pausa { display: inline; }
.wa-play:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
.wa-onda { display: flex; align-items: center; gap: 2px; height: 1.6rem; }
.wa-onda i { flex: 1; background: #8696A0; border-radius: 2px; min-height: 3px; }
.wa-play.sonando + .wa-onda i { background: #00A884; }
.wa-dur { font-size: .72rem; color: #667781; }
.wa-pie { margin: 0; padding: .5rem .8rem .65rem; font-size: .85rem; color: var(--tinta-suave); background: #fff; }

/* Botón de WhatsApp al final de cada sección */
.seccion-wa { margin-top: 2rem; display: flex; justify-content: center; }
.seccion-wa .boton { min-height: 3.5rem; padding-inline: 1.5rem; font-size: 1.15rem; border-radius: .9rem; }

/* Foto dentro del chat (el libro impreso de Ramón) */
.wa-foto-msj { align-self: flex-start; max-width: 80%; margin: 0; background: #fff; border-radius: 0 .55rem .55rem .55rem; padding: .25rem .25rem 1.1rem; position: relative; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-foto-msj img { display: block; width: 100%; border-radius: .4rem; }
.wa-foto-msj figcaption { font-size: .95rem; padding: .35rem .3rem 0; color: #111B21; }

/* Fondo de la lista de cuentos: la escena del cuento que tenés con el mouse */
.biblioteca { position: relative; isolation: isolate; overflow: hidden; }
.biblio-fondo { position: absolute; inset: 0; z-index: -1; }
.bf-capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.bf-capa.bf-on { opacity: .32; }
.biblio-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,43,58,.55), rgba(27,43,58,.35) 40%, rgba(27,43,58,.6)); }
.biblioteca .tapa-real .tapa-titulo { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { .bf-capa { transition: opacity .2s; } }

/* v9 (17/11): el fondo de la lista de cuentos se ve entero (las dos páginas), sin zoom */
.bf-capa { object-fit: contain; object-position: center 30%; }
.biblio-fondo { background: #1b2b3a; }

/* v10 (17/11): Qué recibís con el video del tapa dura y el PDF que se vuelve librito */
.maqueta-video { display: flex; justify-content: center; }
.recibis-video { width: min(100%, 15rem); aspect-ratio: 464 / 832; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 30px rgba(27,43,58,.22); background: #2a2a2a; }
.maqueta-pdf { display: flex; align-items: center; justify-content: center; gap: .9rem; min-height: 15rem; flex-wrap: wrap; }
.pdf-archivo { display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 12px; padding: .7rem .9rem; box-shadow: 0 8px 20px rgba(27,43,58,.15); max-width: 15rem; text-align: left; }
.pdf-icono { flex: none; width: 2.6rem; height: 3.2rem; border-radius: 4px 12px 4px 4px; background: #d9443b; color: #fff; font: 700 .75rem/3.2rem system-ui, sans-serif; text-align: center; letter-spacing: .04em; }
.pdf-nombre { font-size: .85rem; font-weight: 600; line-height: 1.25; color: #1b2b3a; word-break: break-word; }
.pdf-nombre small { display: block; font-weight: 400; color: #5b6b78; margin-top: .2rem; }
.pdf-flecha { font-size: 1.8rem; color: #c8862a; }
.pdf-librito { position: relative; width: 13rem; aspect-ratio: 3408 / 2432; border-radius: 3px; box-shadow: 0 12px 26px rgba(27,43,58,.25); transform: perspective(600px) rotateX(8deg); overflow: hidden; }
.pdf-librito img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdf-librito::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 14%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0,0,0,.18) 45%, rgba(255,255,255,.25) 50%, rgba(0,0,0,.18) 55%, transparent); }
.grapa { position: absolute; left: 50%; width: 3px; height: 14%; transform: translateX(-50%); background: linear-gradient(#ddd, #888); border-radius: 2px; z-index: 1; }
.grapa.g1 { top: 22%; }
.grapa.g2 { bottom: 22%; }
.maqueta.maqueta-video, .maqueta.maqueta-pdf { height: auto; min-height: 13.5rem; }
.recibis-video { width: min(100%, 13rem); }
@media (min-width: 48rem) { .recibis-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } .maqueta-pdf { flex-wrap: nowrap; } }

/* v11 (17/11): hojear el cuento completo desde la lista de tapas */
.tapa-real { position: relative; }
.tapa-hojear { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(27,43,58,.85); color: #fff; font-size: .8rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.tapa-real:hover .tapa-hojear, .tapa-real:focus-visible .tapa-hojear { opacity: 1; }
@media (hover: none) { .tapa-hojear { opacity: 1; top: auto; bottom: 34%; font-size: .7rem; } }
html.hojeando { overflow: hidden; }
.hojear { position: fixed; inset: 0; z-index: 1000; background: rgba(15,24,33,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hojear[hidden] { display: none; }
.hojear-panel { width: min(100%, 60rem); max-height: 100%; display: flex; flex-direction: column; gap: .6rem; color: #fff; }
.hojear-arriba { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hojear-titulo { font: 700 1.25rem/1.2 var(--f-titulo, Georgia, serif); }
.hojear-cerrar { background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.hojear-hoja { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.hojear-img { max-width: 100%; max-height: calc(100vh - 12rem); object-fit: contain; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.45); background: #fff8ee; }
.hojear-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1b2b3a; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.hojear-flecha:disabled { opacity: .25; cursor: default; }
.hojear-ant { left: -.5rem; } .hojear-sig { right: -.5rem; }
.hojear-abajo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hojear-num { font-size: .95rem; opacity: .85; }
.hojear-nota { font-size: .85rem; opacity: .75; margin: 0; }
@media (max-width: 40rem) { .hojear-img { max-height: calc(100vh - 14rem); } .hojear-flecha { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; } .hojear-wa { width: 100%; justify-content: center; } }

/* v12 (17/11): Qué recibís, el digital primero: las hojas con indicaciones → el librito que entregó la imprenta */
.maqueta.maqueta-digital { height: auto; min-height: 13.5rem; display: flex; align-items: center; justify-content: center; gap: .8rem; }
.dg-paso { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; }
.dg-rotulo { margin: 0; font: 700 .9rem/1.2 var(--f-texto); color: var(--tinta, #1b2b3a); text-align: center; }
.dg-hojas { position: relative; width: 10.5rem; height: 13rem; }
.dg-hoja { position: absolute; inset: 0; background: #fffdf8; border-radius: 3px; box-shadow: 0 6px 16px rgba(27,43,58,.18); overflow: hidden; }
.dg-hoja-3 { transform: rotate(-7deg) translate(-10px, 6px); }
.dg-hoja-2 { transform: rotate(4deg) translate(10px, 2px); display: flex; align-items: center; }
.dg-hoja-2 img { width: 100%; }
.dg-hoja-1 { transform: rotate(-1.5deg); padding: .9rem .75rem; display: flex; flex-direction: column; gap: .45rem; border-top: 5px solid #e9a23b; }
.dg-hoja-1 b { font: 700 .85rem/1.2 var(--f-display, Georgia, serif); color: #1b2b3a; margin-bottom: .2rem; }
.dg-hoja-1 i { font-style: normal; font-size: .72rem; line-height: 1.25; color: #4c5f70; padding-left: 1rem; position: relative; }
.dg-hoja-1 i::before { content: "✓"; position: absolute; left: 0; color: #2e6b57; font-weight: 700; }
.dg-flecha { font-size: 1.8rem; color: #c8862a; flex: none; }
.dg-foto img { width: 10.5rem; height: 13rem; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 24px rgba(27,43,58,.25); }
@media (max-width: 30rem) { .dg-hojas, .dg-foto img { width: 8.5rem; height: 10.5rem; } .dg-hoja-1 i { font-size: .65rem; } }
.recibis-lista .maqueta.maqueta-digital, .recibis-lista .maqueta.maqueta-video { min-height: 17rem; }

/* v13 (17/11): Qué recibís, tapa dura a la izquierda y digital a la derecha, cada uno con su título grande arriba */
.recibis-item.rc-tapa, .recibis-item.rc-digital { display: flex; flex-direction: column; align-items: center; text-align: center; }
.recibis-item .rc-titulo { margin: 0 0 1rem; font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.15 var(--f-display); color: var(--tinta, #1b2b3a); }
.recibis-item.rc-tapa p, .recibis-item.rc-digital p { margin: 1rem auto 0; max-width: 24rem; }
.recibis-lista .maqueta.maqueta-digital, .recibis-lista .maqueta.maqueta-video { min-height: 19rem; }
.dg-pdf { position: relative; width: 10.5rem; height: 14rem; }
.dg-pdf-pag { position: absolute; width: 8.6rem; height: 12rem; background: #fffdf8; border-radius: 3px; box-shadow: 0 6px 16px rgba(27,43,58,.2); overflow: hidden; }
.dg-pdf-pag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-pdf-a { left: 0; top: 0; transform: rotate(-6deg); }
.dg-pdf-b { left: .9rem; top: .5rem; transform: rotate(3deg); }
.dg-indic { left: 1.9rem; top: 1.6rem; transform: rotate(-1deg); padding: .8rem .7rem; display: flex; flex-direction: column; gap: .55rem; border-top: 5px solid #e9a23b; text-align: left; }
.dg-indic b { font: 700 .8rem/1.2 var(--f-display, Georgia, serif); color: #1b2b3a; margin-bottom: .15rem; }
.dg-indic i { display: block; height: 4px; border-radius: 2px; background: #d8cfc2; }
.dg-indic i.corta { width: 65%; }
.dg-pdf-etiqueta { position: absolute; right: -.4rem; bottom: -.2rem; background: #d9443b; color: #fff; font: 700 .7rem/1 system-ui, sans-serif; padding: .35rem .5rem; border-radius: 4px; box-shadow: 0 3px 8px rgba(0,0,0,.2); letter-spacing: .05em; }
.dg-wa { gap: .55rem; }
.dg-wa-chat { background: #efeae2; border-radius: 12px; padding: .5rem; box-shadow: 0 10px 24px rgba(27,43,58,.22); }
.dg-wa-burbuja { background: #fff; border-radius: 0 8px 8px 8px; padding: .25rem; width: 9.5rem; text-align: left; }
.dg-wa-burbuja img { display: block; width: 100%; height: 11rem; object-fit: cover; border-radius: 6px; }
.dg-wa-burbuja span { display: block; font-size: .78rem; color: #111b21; padding: .3rem .2rem .05rem; }
.dg-wa-burbuja span i { float: right; font-style: normal; font-size: .62rem; color: #667781; margin-top: .15rem; }
@media (max-width: 30rem) { .dg-pdf { width: 8.4rem; height: 11.5rem; } .dg-pdf-pag { width: 6.8rem; height: 9.6rem; } .dg-indic { left: 1.4rem; top: 1.3rem; } .dg-wa-burbuja { width: 7.6rem; } .dg-wa-burbuja img { height: 8.8rem; } }

/* v14 (17/11): el librito del cliente, dentro de su chat de WhatsApp */
.dg-wa-chat { display: flex; flex-direction: column; gap: .35rem; width: 11rem; padding: 0 .45rem .5rem; overflow: hidden; }
.dg-wa-cabeza { display: flex; align-items: center; gap: .4rem; margin: 0 -.45rem .1rem; padding: .4rem .55rem; background: #075e54; color: #fff; font: 600 .78rem/1 var(--f-texto); }
.dg-wa-av { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #d0d7db; color: #3b4a54; display: grid; place-items: center; font-size: .7rem; }
.dg-wa-txt { align-self: flex-start; margin: 0; background: #fff; border-radius: 0 7px 7px 7px; padding: .3rem .45rem; font-size: .74rem; line-height: 1.25; color: #111b21; text-align: left; max-width: 95%; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.dg-wa-txt i { font-style: normal; font-size: .58rem; color: #667781; margin-left: .4rem; }
.dg-wa-chat .dg-wa-burbuja { width: 100%; box-sizing: border-box; }
.dg-wa-chat .dg-wa-burbuja img { height: 9.5rem; }
