/* Escribir y florecer · estilos de la web
   Línea gráfica de la cubierta: fondo crema, verde bosque, flores de colores
   y luz amarilla. Todo en Literata, la letra del libro. */

@font-face { font-family: "Literata"; src: url("fuentes/Literata-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fuentes/Literata-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fuentes/Literata-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Diseño: una sola página que alterna fondo crema y crema cálido, como la luz de la portada. */
:root {
  /* Colores tomados de la cubierta */
  --crema: #fffdf5;
  --crema-calido: #fff7e0;
  --luz: #fff1b6;
  --verde: #396656;
  --verde-tinta: #1e5e4c;
  --verde-hoja: #58c16c;
  --rosa: #f1517e;
  --coral: #fc7f5a;
  --violeta: #936bd5;
  --amarillo: #fec639;
  --texto: #2a3a34;
  --texto-suave: #5b6d66;
  --linea: #d9ddcf;
  --blanco: #ffffff;
  --error: #b3263e;

  --f-titulo: "Literata", Georgia, "Times New Roman", serif;
  --f-texto: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-tinta); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rosa); }
:focus-visible { outline: 2px solid var(--verde-tinta); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; color: var(--verde-tinta); }
cite { font-style: italic; }
h1, h2, h3 { font-family: var(--f-titulo); color: var(--verde); line-height: 1.15; margin: 0; text-wrap: balance; }

.saltar { position: absolute; left: -9999px; top: 0; background: var(--verde); color: var(--crema); padding: .6rem 1rem; z-index: 100; }
.saltar:focus { left: 1rem; top: 1rem; }

.ancho { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.angosto { max-width: 700px; }
@media (min-width: 720px) { .ancho { padding-left: 32px; padding-right: 32px; } }

/* La plumilla: símbolo de la web */
.pluma { width: .95em; height: 1.3em; flex: none; overflow: visible; }
.pluma__cuerpo { fill: var(--amarillo); stroke: var(--verde-tinta); stroke-width: 1.3; stroke-linejoin: round; }
.pluma__linea { fill: none; stroke: var(--verde-tinta); stroke-width: 1.2; stroke-linecap: round; }
.pluma__ojo { fill: var(--crema); stroke: var(--verde-tinta); stroke-width: 1.2; }
.tarjeta .pluma { width: 26px; height: 36px; margin-bottom: .8rem; }

/* La flor (solo en el lomo del libro) */
.flor { width: 1.3em; height: 1.3em; flex: none; overflow: visible; }
.flor__petalos { fill: var(--rosa); stroke: var(--verde-tinta); stroke-width: 1.3; }
.flor__sombra { fill: var(--rosa); opacity: .55; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 245, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem; color: var(--verde); white-space: nowrap; }
.menu { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--texto-suave); }
.menu a:hover { color: var(--verde-tinta); }
.menu .menu__boton { color: var(--crema); background: var(--verde); padding: .45rem 1rem; border-radius: 999px; font-weight: 400; }
.menu .menu__boton:hover { background: var(--verde-tinta); color: var(--crema); }
@media (max-width: 720px) { .menu li:not(:last-child) { display: none; } }

/* Inicio */
.portada { padding: 32px 0 56px; background: radial-gradient(ellipse 60% 70% at 78% 60%, var(--luz) 0%, rgba(255, 241, 182, 0) 70%), var(--crema); }
.portada__fila { display: grid; gap: 36px; align-items: center; }
.portada__texto { min-width: 0; }
@media (min-width: 820px) { .portada { padding: 56px 0 72px; } .portada__fila { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
h1 { font-weight: 700; font-size: clamp(2.8rem, 10vw, 5rem); line-height: 1; letter-spacing: -.01em; }
.subtitulo { font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.2rem, 3.6vw, 1.55rem); color: var(--verde); margin: .9rem 0 1.6rem; }
.entrada { font-size: 1.15rem; max-width: 36ch; margin: 0 0 1rem; }
/* Firma de la autora en el inicio */
.firma-autora { display: inline-flex; align-items: center; gap: 1.2rem; text-decoration: none; margin: 0 0 1.4rem; }
.firma-autora img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blanco); box-shadow: 0 0 0 2px var(--rosa), 0 10px 24px -12px rgba(57, 102, 86, .55); flex: none; }
.firma-autora > span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.firma-autora__antes { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--rosa); }
.firma-autora__nombre { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.35rem, 4.2vw, 1.7rem); color: var(--verde); margin-top: .15rem; }
.firma-autora__oficio { font-size: .92rem; color: var(--texto-suave); margin-top: .15rem; }
.firma-autora:hover .firma-autora__nombre { color: var(--verde-tinta); }
.voz { margin: 0 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--rosa); max-width: 30rem; }
.voz p { margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.15rem, 3.2vw, 1.35rem); line-height: 1.45; color: var(--verde); }
.voz strong { font-style: normal; font-weight: 700; }
.prologo-linea { margin: 1.4rem 0 0; font-size: .9rem; color: var(--texto-suave); }
.prologo-linea a { color: var(--texto-suave); }

/* Precio en el inicio */
.precio-inicio { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0 0 1.6rem; color: var(--texto-suave); max-width: 30rem; }
.precio-inicio__valor { font-family: var(--f-titulo); font-weight: 700; font-size: 2rem; color: var(--verde); line-height: 1; font-variant-numeric: tabular-nums; }

/* Sticker de preventa pegado al libro */
.sticker { position: relative; z-index: 3; flex: none; width: 172px; aspect-ratio: 1; max-width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='o' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe08a'/%3E%3Cstop offset='.45' stop-color='%23fec639'/%3E%3Cstop offset='1' stop-color='%23e0a419'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='50.00,0.00 55.09,4.79 61.13,1.25 65.03,7.05 71.69,4.95 74.21,11.47 81.17,10.91 82.17,17.83 89.09,18.83 88.53,25.79 95.05,28.31 92.95,34.97 98.75,38.87 95.21,44.91 100.00,50.00 95.21,55.09 98.75,61.13 92.95,65.03 95.05,71.69 88.53,74.21 89.09,81.17 82.17,82.17 81.17,89.09 74.21,88.53 71.69,95.05 65.03,92.95 61.13,98.75 55.09,95.21 50.00,100.00 44.91,95.21 38.87,98.75 34.97,92.95 28.31,95.05 25.79,88.53 18.83,89.09 17.83,82.17 10.91,81.17 11.47,74.21 4.95,71.69 7.05,65.03 1.25,61.13 4.79,55.09 0.00,50.00 4.79,44.91 1.25,38.87 7.05,34.97 4.95,28.31 11.47,25.79 10.91,18.83 17.83,17.83 18.83,10.91 25.79,11.47 28.31,4.95 34.97,7.05 38.87,1.25 44.91,4.79' fill='url(%23o)'/%3E%3Ccircle cx='50' cy='50' r='40.5' fill='none' stroke='%231e5e4c' stroke-opacity='.55' stroke-width='.7' stroke-dasharray='2 1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 19%;
  color: var(--verde-tinta); text-decoration: none; transform: rotate(12deg); filter: drop-shadow(0 8px 14px rgba(160, 110, 10, .35));
  transition: transform .4s cubic-bezier(.2, .7, .2, 1); line-height: 1.1; }
.sticker:hover { transform: rotate(4deg) scale(1.05); color: var(--verde-tinta); }
.sticker__sello { background: var(--verde); color: var(--crema); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(.58rem, 1.6vw, .7rem); padding: .15rem .5rem; border-radius: 999px; margin-bottom: .35rem; }
.sticker__titulo { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(.74rem, 2.1vw, .95rem); white-space: nowrap; }
.sticker__fecha { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(.8rem, 2.3vw, 1.02rem); color: var(--verde-tinta); white-space: nowrap; }
.sticker__linea { width: 40%; height: 1px; background: rgba(30, 94, 76, .5); margin: .35rem 0; }
.sticker__texto { font-size: clamp(.58rem, 1.6vw, .72rem); line-height: 1.2; }
.sticker__texto strong { color: var(--verde-tinta); font-weight: 700; }
.libro-zona { --w: min(420px, 72vw); position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; min-width: 0; }
/* En pantallas anchas el sticker va a la izquierda del libro, sin moverlo ni taparlo */
@media (min-width: 820px) { .libro-zona { --w: min(420px, 38vw); } }
@media (min-width: 1080px) {
  .libro-zona { display: block; }
  .sticker { position: absolute; width: 184px; left: calc(50% - var(--w) / 2 - 190px); bottom: -10%; }
  .sticker__sello { font-size: .7rem; }
  .sticker__titulo { font-size: .98rem; }
  .sticker__fecha { font-size: 1.1rem; }
  .sticker__texto { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .sticker, .sticker:hover { transition: none; transform: rotate(12deg); } }
.acciones { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-bottom: 1.2rem; }

.boton { display: inline-block; background: var(--verde); color: var(--crema); text-decoration: none; font: inherit; font-weight: 400; font-size: 1rem; padding: .85rem 1.7rem; border-radius: 999px; border: 1.5px solid var(--verde); cursor: pointer; text-align: center; }
.boton:hover { background: var(--verde-tinta); border-color: var(--verde-tinta); color: var(--crema); }
.boton--borde { background: transparent; color: var(--verde); padding: .5rem 1.2rem; font-size: .92rem; }
.boton--borde:hover { background: var(--verde); color: var(--crema); }
.boton--borde[aria-disabled=true] { opacity: .55; cursor: default; }
.boton--borde[aria-disabled=true]:hover { background: transparent; color: var(--verde); }
.boton--ancho { width: 100%; margin-top: .5rem; }
.boton[disabled] { opacity: .6; cursor: wait; }
.enlace { color: var(--verde-tinta); font-weight: 400; }

/* Libro en 3D: portada, lomo (como el archivo del lomo) y cantos de las páginas.
   Grosor aproximado: unas 309 páginas en 14 x 21 cm, cerca de 2 cm de lomo. */
.libro3d { --h: calc(var(--w) * 1.5); --t: calc(var(--w) * .15);
  margin: 0 auto; width: var(--w); height: var(--h); perspective: 1600px; position: relative; }
.libro3d::after { content: ""; position: absolute; left: 4%; right: -6%; bottom: -26px; height: 34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(57, 102, 86, .38), rgba(57, 102, 86, 0)); filter: blur(6px); z-index: -1; }
.libro3d__cuerpo { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(32deg); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.libro3d:hover .libro3d__cuerpo { transform: rotateX(2deg) rotateY(14deg); }
.cara { position: absolute; top: 0; backface-visibility: hidden; }
.frente { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; }
.frente img { width: 100%; height: 100%; object-fit: cover; }
.frente::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(30, 94, 76, .18) 0, rgba(255, 255, 255, .35) 1.6%, rgba(30, 94, 76, .06) 3.5%, rgba(0, 0, 0, 0) 7%),
              linear-gradient(115deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 40%); }
.atras { inset: 0; background: var(--crema); transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); border-radius: 6px 2px 2px 6px; }
.lomo { left: 0; width: var(--t); height: 100%; transform: translateX(calc(var(--t) / -2)) rotateY(-90deg);
  background: linear-gradient(90deg, #efe9d8 0%, var(--crema) 22%, var(--crema) 70%, #f1ecdc 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--t) * .5) 0 calc(var(--t) * .4); color: var(--verde); border-radius: 3px 0 0 3px; }
.lomo__autora, .lomo__titulo { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; line-height: 1; }
.lomo__autora { font-family: var(--f-texto); font-size: calc(var(--t) * .27); }
.lomo__titulo { font-family: var(--f-titulo); font-weight: 700; font-size: calc(var(--t) * .44); flex: 1; display: flex; align-items: center; justify-content: center; }
.lomo__flor { width: calc(var(--t) * .5); height: calc(var(--t) * .5); margin: calc(var(--t) * .35) 0; }
.lomo__sello { width: calc(var(--t) * .52); height: auto; margin-top: calc(var(--t) * .3); }
.cantos { right: 0; top: 1.2%; width: calc(var(--t) - 2px); height: 97.6%; transform: translateX(calc(var(--t) / 2)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fbf8ee 0 1.5px, #e7e2d2 1.5px 2.5px), #f7f3e6;
  box-shadow: inset 0 0 8px rgba(57, 102, 86, .18); }
.arriba { left: 0; width: 100%; height: var(--t); transform: translateY(calc(var(--t) / -2)) rotateX(90deg);
  background: repeating-linear-gradient(0deg, #fbf8ee 0 1.5px, #e7e2d2 1.5px 2.5px); }
@media (prefers-reduced-motion: reduce) { .libro3d__cuerpo, .libro3d:hover .libro3d__cuerpo { transform: rotateX(4deg) rotateY(26deg); transition: none; } }

/* Secciones */
.seccion { padding-block: 64px; position: relative; }
.seccion--calida { background: var(--crema-calido); }
@media (min-width: 720px) { .seccion { padding-block: 92px; } }
.titulo { text-align: center; font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 2rem; }
.titulo--izq { text-align: left; }
.etiqueta { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--rosa); margin: 0 0 .8rem; }
.centro { text-align: center; }
p.centro:not(.etiqueta) { color: var(--texto-suave); margin-top: -1rem; }

.frase { font-weight: 400; text-align: center; font-size: clamp(1.5rem, 4.4vw, 2rem); line-height: 1.3; margin: 0 0 2rem; }
.frase strong { font-family: var(--f-titulo); font-weight: 700; color: var(--verde); }
#libro p { margin: 0 0 1.1rem; }
.flores-esquina { display: none; }
@media (min-width: 1000px) {
  .seccion--flores { overflow: hidden; }
  .flores-esquina { display: block; position: absolute; left: 0; bottom: 0; width: 170px; height: auto; pointer-events: none; }
}

.tarjetas { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tarjeta { background: var(--crema); border: 1px solid var(--linea); border-radius: 18px; padding: 1.5rem; }
.tarjeta h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.tarjeta p { margin: 0; color: var(--texto-suave); font-size: .98rem; }

.cita { margin: 48px auto 0; max-width: 660px; text-align: center; padding: 0 1rem; }
.cita p { margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.45; color: var(--verde); }

/* Prólogo */
.prologo { display: grid; gap: 32px; align-items: start; }
@media (min-width: 760px) { .prologo { grid-template-columns: 170px 1fr; gap: 48px; } }
.prologo__texto { min-width: 0; max-width: 660px; }
.prologo__texto p { margin: 0 0 1rem; }
.prologo__texto .titulo { margin-bottom: .6rem; }
.prologo__persona { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.prologo__persona figcaption { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.prologo__foto { width: 110px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 1.4rem; text-align: center; }
.prologo__nombre { font-family: var(--f-titulo); color: var(--verde); font-weight: 700; font-size: 1.15rem; }
.omision { color: var(--texto-suave); text-align: center; }
.firma { font-family: var(--f-titulo); font-style: italic; color: var(--verde); text-align: right; margin-top: 1.4rem !important; }

/* Formulario */
.formulario { background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; padding: 1.4rem; margin-top: 1.6rem; }
@media (min-width: 560px) { .formulario { padding: 2rem 2.2rem; } }
.campo { margin-bottom: 1.1rem; }
.campo--corto input { max-width: 8rem; }
.dos { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .dos { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: .95rem; font-weight: 400; color: var(--verde-tinta); margin-bottom: .35rem; }
.req { color: var(--rosa); }
.opc { color: var(--texto-suave); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texto);
  background: var(--crema); border: 1px solid var(--linea); border-radius: 12px; padding: .7rem .85rem; min-height: 48px;
}
input:focus, select:focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
input[aria-invalid=true] { border-color: var(--error); }
.error-campo { color: var(--error); font-size: .88rem; margin: .3rem 0 0; }
.casilla { display: flex; gap: .7rem; align-items: flex-start; margin: .9rem 0; }
.casilla input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--verde); flex: none; }
.casilla label { margin: 0; font-size: .93rem; font-weight: 400; color: var(--texto); }
.nota { font-size: .85rem; color: var(--texto-suave); margin: 1rem 0 .4rem; }
.aviso:empty { display: none; }
.aviso { background: var(--luz); border-radius: 12px; padding: .9rem 1rem; margin: .8rem 0; font-size: .95rem; color: var(--verde-tinta); }
.aviso--error { background: #fde8ec; color: var(--error); }

/* Autora */
.autora { display: grid; gap: 32px; align-items: start; }
@media (min-width: 820px) { .autora { grid-template-columns: 420px 1fr; gap: 56px; } }
.autora__foto { width: 100%; max-width: 496px; margin: 0 auto; border-radius: 4px; filter: grayscale(1); }
.autora__texto { min-width: 0; }
.autora__texto p { margin: 0 0 1rem; }
@media (min-width: 820px) { .autora__foto { position: sticky; top: 96px; } }

/* Otros libros */
.estante { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 640px) { .estante { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; } }
@media (min-width: 960px) { .estante { grid-template-columns: repeat(5, 1fr); } }
.obra { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.obra__tapa { aspect-ratio: 14 / 21; width: 100%; max-width: 170px; border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 rgba(0,0,0,.06), 0 14px 26px -16px rgba(57, 102, 86, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; margin-bottom: 1rem; color: var(--verde-tinta); }
.obra__tapa span { font-family: var(--f-titulo); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.t1 { background: #fcd3df; }
.t2 { background: #e4daf5; }
.t3 { background: #ffe9a8; }
.t4 { background: #d3efd9; }
.t5 { background: #ffd9cb; }
.obra h3 { font-size: 1.05rem; }
.anio { color: var(--texto-suave); font-size: .9rem; margin: .2rem 0 .8rem; }

/* Espacios pendientes: se ven a propósito para no olvidarlos */
.pendiente { border: 1.5px dashed var(--coral); color: #9a3b1f; background: rgba(252, 127, 90, .07); font-size: .8rem; font-weight: 400; letter-spacing: .03em; }
.pendiente--linea { display: inline-block; padding: .25rem .65rem; border-radius: 8px; margin: .4rem 0; }

/* Pie */
.pie { background: var(--verde); color: var(--crema); padding-block: 52px; font-size: .95rem; }
.pie a { color: var(--crema); }
.pie a:hover { color: var(--luz); }
.pie__fila { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.pie__texto { min-width: 0; flex: 1 1 280px; }
.pie p { margin: .2rem 0; }
.pie__titulo { font-family: var(--f-titulo); font-size: 1.2rem; }
.redes { list-style: none; padding: 0; margin: .8rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.redes a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: .45rem 1rem .45rem .75rem; font-weight: 400; min-height: 44px; }
.red { width: 20px; height: 20px; flex: none; }
.red__usuario { font-weight: 400; opacity: .8; }
.redes--autora a { color: var(--verde); background: var(--crema-calido); border-color: var(--linea); }
.redes--autora a:hover { border-color: var(--verde); color: var(--verde-tinta); }
.sigueme { font-family: var(--f-titulo); font-weight: 700; color: var(--verde); margin: 1.6rem 0 0 !important; }
@media (max-width: 520px) { .red__usuario { display: none; } }
.pie .pendiente { color: var(--crema); border-color: var(--luz); background: transparent; }
.pie__legal { font-size: .82rem; opacity: .85; margin-top: 1rem !important; }
.sello { width: 96px; height: 96px; }

/* Página de privacidad */
.documento { padding-block: 48px 72px; }
.documento h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 1.6rem; }
.documento h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.compras { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.compras .boton--borde { min-width: 9.5rem; }
.lanzamiento { display: inline-flex; align-items: center; line-height: 1.35; border-radius: 14px !important; gap: .5rem; margin: 0; font-weight: 400; color: var(--verde-tinta); background: var(--crema); border: 1px solid var(--linea); border-radius: 999px; padding: .35rem 1rem .35rem .6rem; }
.solo-colombia { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 auto 1rem; line-height: 1.4; width: fit-content; max-width: 100%; background: var(--luz); color: var(--verde-tinta); border-radius: 14px; padding: .55rem 1.1rem .55rem .8rem; font-size: .95rem; }
.envio { border: 1px solid var(--linea); border-radius: 14px; padding: 1rem 1rem .2rem; margin: 0 0 1.1rem; min-width: 0; }
.envio legend { font-family: var(--f-titulo); font-weight: 700; color: var(--verde); padding: 0 .4rem; font-size: 1rem; line-height: 1.3; max-width: 100%; }
input::placeholder { color: #8d9a94; }
.precio { text-align: center; margin: 0 0 1rem; color: var(--verde); }
.precio__valor { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.precio__moneda { display: block; font-size: .9rem; color: var(--texto-suave); margin-top: .3rem; }
.contacto { margin: .2rem 0 .6rem !important; }
.contacto a { font-weight: 400; }
.precio__envio { display: inline-block; background: var(--verde); color: var(--crema); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; font-weight: 400; }
.fuera { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px dashed var(--linea); text-align: center; }
.fuera h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.fuera > p { max-width: 54ch; margin: 0 auto; }
.formulario--corto { text-align: left; margin-top: 1.4rem; }
.boton--borde-grande { width: 100%; margin-top: .5rem; background: transparent; color: var(--verde); }
.boton--borde-grande:hover { background: var(--verde); color: var(--crema); }
.obra__tapa--foto { padding: 0; object-fit: cover; height: auto; background: var(--linea); }
img.prologo__foto { object-fit: cover; padding: 0; border: 4px solid var(--crema-calido); box-shadow: 0 12px 28px -14px rgba(57, 102, 86, .5); }
.editorial { margin: 2.6rem auto 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.editorial img { width: 120px; height: 120px; }
.editorial figcaption { color: var(--texto-suave); font-size: .95rem; }
.precio__extras { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .8rem; }
.precio__nota { display: block; margin-top: .5rem; font-size: .85rem; color: var(--texto-suave); }
.prologo__oficio { color: var(--texto-suave); font-size: .95rem; }
.prefijo { display: flex; align-items: stretch; }
.prefijo__codigo { display: flex; align-items: center; padding: 0 .85rem; background: var(--crema-calido); border: 1px solid var(--linea); border-right: 0; border-radius: 12px 0 0 12px; color: var(--verde-tinta); font-weight: 700; font-variant-numeric: tabular-nums; }
.prefijo input[type=tel] { border-radius: 0 12px 12px 0; min-width: 0; }

/* Franja de preventa: arriba de todo, siempre visible */
.franja { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .8rem; background: var(--amarillo); color: var(--verde-tinta); text-decoration: none; text-align: center; padding: .5rem max(16px, env(safe-area-inset-right, 0px)) .5rem max(16px, env(safe-area-inset-left, 0px)); font-size: .92rem; line-height: 1.35; }
.franja:hover { background: #f5b922; color: var(--verde-tinta); }
.franja__sello { background: var(--verde); color: var(--crema); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; padding: .15rem .6rem; border-radius: 999px; }
.franja__ir { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.franja .corto { display: none; }
@media (max-width: 640px) { .franja { font-size: .85rem; flex-wrap: nowrap; gap: .5rem; padding-top: .45rem; padding-bottom: .45rem; } .franja .largo { display: none; } .franja .corto { display: inline; } .franja__texto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .franja__ir { display: none; } }
.redes li { min-width: 0; max-width: 100%; }
.redes a { max-width: 100%; flex-wrap: wrap; }
.red__usuario { overflow-wrap: anywhere; }
@media (min-width: 820px) and (max-width: 1060px) { .autora { grid-template-columns: 300px 1fr; gap: 40px; } }
.dudas { display: flex; align-items: center; gap: .55rem; background: var(--crema-calido); border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0 .8rem; font-size: .93rem; color: var(--verde-tinta); }
.dudas .red { color: var(--rosa); }
.dudas a { font-weight: 700; }

/* Celular y tableta: primero el libro (con el sticker al lado) y luego el texto */
@media (max-width: 819px) {
  .portada { padding-top: 20px; }
  .portada__fila { gap: 22px; }
  .libro-zona { order: -1; --w: min(300px, 70vw); flex-direction: column; align-items: center; gap: 0; padding-bottom: 18px; }
  .libro-zona .sticker { width: 178px; margin-top: -6px; transform: rotate(-6deg); }
  .libro-zona .sticker__sello { font-size: .68rem; }
  .libro-zona .sticker__titulo { font-size: .92rem; }
  .libro-zona .sticker__fecha { font-size: 1.04rem; }
  .libro-zona .sticker__texto { font-size: .74rem; }
}
@media (max-width: 520px) { .firma-autora img { width: 128px; height: 128px; } }

/* Recuadro de preventa en el inicio */
.preventa-box { position: relative; background: var(--blanco); border: 2px solid var(--amarillo); border-radius: 18px; padding: 1.5rem 1.3rem 1.1rem; margin: .6rem 0 1.5rem; max-width: 30rem; box-shadow: 0 16px 34px -24px rgba(160, 110, 10, .55); }
.preventa-box__sello { position: absolute; top: -.8rem; left: 1.1rem; margin: 0; background: var(--amarillo); color: var(--verde-tinta); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; padding: .22rem .8rem; border-radius: 999px; }
.preventa-box__precio { margin: 0 0 .6rem; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.3rem); line-height: 1; color: var(--verde); font-variant-numeric: tabular-nums; }
.preventa-box__precio span { font-family: var(--f-texto); font-weight: 400; font-size: .92rem; color: var(--texto-suave); margin-left: .3rem; }
.preventa-box__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.preventa-box__lista li { display: flex; align-items: flex-start; gap: .55rem; }
.preventa-box__lista li > span { min-width: 0; }
.preventa-box__lista .pluma { width: .8em; height: 1.1em; margin-top: .2em; }
.preventa-box__tipo { margin: 0 0 .5rem; font-size: .92rem; font-weight: 700; color: var(--verde-tinta); }
.preventa-box__sello { white-space: nowrap; }

/* Celular: solo la franja amarilla arriba (sin la barra con el nombre y el botón verde) y aire antes del libro */
@media (max-width: 719px) {
  .cabecera { border-bottom: 0; background: transparent; backdrop-filter: none; }
  .cabecera__fila { display: none; }
  .portada { padding-top: 64px; }
}

/* Computador: solo el menú en la barra (sin repetir el título) */
.cabecera .marca { display: none; }
.cabecera__fila { justify-content: center; }

/* Lanzamiento y distribución dentro del recuadro de preventa */
.preventa-box__fecha { margin: 1rem -1.3rem -1.1rem; padding: .9rem 1.3rem 1rem; background: var(--luz); border-top: 1px solid rgba(254, 198, 57, .7); border-radius: 0 0 16px 16px; }
.preventa-box__fecha-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; color: var(--verde-tinta); }
.preventa-box__fecha-nota { margin: .25rem 0 0; font-size: .95rem; line-height: 1.45; color: var(--texto); }
.aviso-envio { max-width: 34rem; margin: 0 auto 1rem; background: var(--luz); border-radius: 12px; padding: .8rem 1rem; text-align: center; color: var(--verde-tinta); font-size: .97rem; }


/* Cierre: último llamado a la compra */
.cierre { padding-block: 64px; background: radial-gradient(ellipse 70% 80% at 30% 50%, var(--luz) 0%, rgba(255, 241, 182, 0) 70%), var(--crema); }
.cierre__fila { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cierre__libro { width: min(180px, 46vw); border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 rgba(0,0,0,.05), 0 22px 40px -20px rgba(57, 102, 86, .5); }
.cierre__texto { max-width: 34rem; min-width: 0; }
.cierre__texto h2 { font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: .8rem; }
.cierre__texto p { margin: 0 0 1.4rem; }
.boton--grande { font-size: 1.1rem; padding: 1rem 2.2rem; }
@media (min-width: 760px) {
  .cierre { padding-block: 88px; }
  .cierre__fila { flex-direction: row; justify-content: center; text-align: left; gap: 56px; }
  .cierre__libro { width: 210px; }
}

/* Prólogo: después de la frase de Cristina, como dato del libro */
.nota-prologo { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin: .4rem 0 1.6rem; text-decoration: none; }
.nota-prologo__etiqueta { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-suave); }
.nota-prologo__nombre { font-weight: 700; color: var(--verde); border-bottom: 2px solid var(--amarillo); padding-bottom: 1px; }

/* Menú del celular (botón ☰ a la derecha de la franja amarilla) */
.menu-movil__boton, .menu-movil { display: none; }
@media (max-width: 719px) {
  .cabecera { position: sticky; }
  .franja { padding-right: 56px; justify-content: flex-start; }
  .menu-movil__boton { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: max(4px, env(safe-area-inset-right, 0px)); width: 48px; height: 100%; max-height: 52px; background: transparent; border: 0; padding: 0; cursor: pointer; z-index: 2; }
  .menu-movil__barras { display: grid; gap: 4px; width: 22px; }
  .menu-movil__barras span { display: block; height: 2.5px; border-radius: 2px; background: var(--verde-tinta); transition: transform .25s, opacity .25s; }
  .menu-movil__boton[aria-expanded="true"] .menu-movil__barras span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-movil__boton[aria-expanded="true"] .menu-movil__barras span:nth-child(2) { opacity: 0; }
  .menu-movil__boton[aria-expanded="true"] .menu-movil__barras span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .menu-movil:not([hidden]) { display: block; background: var(--crema); border-bottom: 1px solid var(--linea); box-shadow: 0 18px 30px -20px rgba(57, 102, 86, .45); }
  .menu-movil ul { list-style: none; margin: 0; padding: .4rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .menu-movil li + li { border-top: 1px solid var(--linea); }
  .menu-movil a { display: block; padding: .85rem .2rem; font-size: 1.1rem; color: var(--verde); text-decoration: none; }
  .menu-movil a.menu-movil__reservar { margin-top: .6rem; text-align: center; background: var(--verde); color: var(--crema); border-radius: 999px; font-weight: 700; }
}
@media (max-width: 380px) {
  .franja { font-size: .8rem; gap: .4rem; padding-left: 12px; }
  .franja__sello { letter-spacing: .06em; font-size: .62rem; padding: .12rem .45rem; }
}
