/* Taller en Casa: primero el celular, letra grande y mucho aire.
   La marca es crema + ciruela. Cada categoría trae sus colores (--cat…):
   Navidad usa rojo y verde; si una página no tiene categoría, se usa la marca. */
:root {
  --fondo: #fbf6ee;
  --papel: #ffffff;
  --texto: #2b2522;
  --suave: #463c35;          /* textos chicos: oscuro para vista cansada */
  --marca: #5a3d6e;          /* ciruela de Taller en Casa (propuesta, a aprobar) */
  --marca-oscuro: #432c53;
  --marca-claro: #efe8f3;
  --borde: #e6dccd;
  --cat: var(--marca);
  --cat-oscuro: var(--marca-oscuro);
  --cat-2: var(--marca);
  --cat-claro: var(--marca-claro);
  --cat-suave: var(--marca-claro);
  --amarillo: #ffe14d;
  --wa: #1f8f4e;
  --ancho: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 19px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cat); }
.barra a, .pie a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; color: var(--cat); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
main { max-width: var(--ancho); margin: 0 auto; }

/* Marcadores de lo que falta: bien visibles. */
mark.falta {
  background: var(--amarillo);
  color: #3a2f00;
  font-weight: 700;
  padding: .1em .35em;
  border-radius: 4px;
  outline: 2px dashed #b38f00;
  outline-offset: 1px;
}
.aviso-prueba {
  background: var(--amarillo);
  color: #3a2f00;
  padding: 10px 16px;
  font-size: .85rem;
  border-bottom: 3px dashed #b38f00;
}
.aviso-prueba summary { cursor: pointer; }
.aviso-prueba ul { margin: .2em 0 .6em; padding-left: 1.2em; }
.aviso-prueba p { margin: .4em 0 0; }

/* Barra de arriba */
.barra {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  padding: 10px 16px 8px;
  background: var(--papel);
  border-bottom: 1px solid var(--borde);
}
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.arrep-arriba {
  flex-basis: 100%; text-align: right;
  font-size: .88rem; font-weight: 700; color: var(--marca) !important; text-decoration: underline;
}
.barra .dudas {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--wa); font-weight: 700; text-decoration: none; font-size: .9rem;
}

/* Bloques */
.presentacion, .bloque { padding: 24px 16px; }
.bloque { border-top: 1px solid var(--borde); }
.bajada { font-size: 1.05rem; color: var(--suave); }
.chico, .aclaracion { font-size: .95rem; color: var(--suave); }
.aclaracion { font-style: italic; }
.link { font-weight: 700; }

/* Portada del producto: todo en la primera pantalla del celular. */
.portada { padding: 12px 16px 20px; text-align: center; }
.portada-foto { margin: 0 0 12px; }
.portada-foto img {
  width: 100%; max-height: 30vh; object-fit: cover; object-position: center 55%;
  border-radius: 14px;
}
.portada-foto figcaption { font-size: .88rem; color: var(--suave); margin-top: 4px; }
/* Rótulos: "Ilustración con IA" y "Foto real". Chicos pero siempre visibles. */
.rotulo {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .01em;
  background: rgba(255,255,255,.93); color: var(--texto); padding: 2px 9px; border-radius: 99px;
}
.rotulo-real { background: var(--cat-claro); color: var(--cat-2); }
/* Rótulo de IA, igual en todas las imágenes (Migue, 2026-11-02): texto chico y gris, abajo a la
   derecha, sobre una franjita clara para que se lea en cualquier foto. */
.portada-ia, .regalo-imagen, .pieza-imagen, .tarjeta-imagen { position: relative; }
.portada-ia, .regalo-imagen { margin: 0 0 8px; }
.rotulo-ia {
  position: absolute; right: 4px; bottom: 4px;
  font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: 0; text-align: right;
  max-width: calc(100% - 8px); /* en las fichas chicas (96 px) pasa a dos renglones en vez de salirse */
  color: #5f5f5f; background: rgba(255,255,255,.78); padding: 1px 4px; border-radius: 4px;
  pointer-events: none;
}
.portada-ia img { width: 100%; aspect-ratio: 1000 / 625; object-fit: cover; border-radius: 14px; }
.regalo-imagen { margin-top: 10px; }
.regalo-imagen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
/* "Foto real" en las fichas va abajo de la imagen, en letra chica. */
.pieza-imagen, .tarjeta-imagen { margin: 0; }
.tarjeta-imagen { align-self: flex-start; line-height: 0; }
.pieza-imagen .rotulo-real {
  font-size: .64rem; line-height: 1.2; font-weight: 400; color: var(--cat-2); margin-top: 3px; background: none; padding: 0;
}
/* Foto real de la esfera, grande, en "Probado por nuestras tejedoras". */
.foto-real-grande img { max-height: 440px; object-position: center 60%; }
.portada h1 { font-size: 1.5rem; margin-bottom: .3em; }
.portada .bajada { font-size: .95rem; margin-bottom: .4em; }
.es-pdf { font-size: .92rem; color: var(--cat-2); font-weight: 700; margin-bottom: .3em; }
.precio-portada { font-size: 1.6rem; font-weight: 800; margin: .1em 0 .4em; }
.lanzamiento { display: inline-block; margin: 0 0 .6em; padding: .25em .7em; border-radius: 8px; background: var(--marca-claro); color: var(--texto); font-weight: 700; font-size: .95rem; }
.lanzamiento.chico-lanz { display: block; font-size: .85rem; margin: .1em 0 .4em; padding: .2em .5em; }
.precio-portada span { font-size: .9rem; font-weight: 400; color: var(--suave); }

/* Botones */
.boton-pago {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 24px;
  background: var(--cat); color: #fff;
  font: inherit; font-weight: 800; font-size: 1.1rem;
  border: 0; border-radius: 12px; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--cat-oscuro);
}
.portada .boton-pago, .boton-pago.grande, .cierre .boton-pago { width: 100%; }
.boton-pago:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cat-oscuro); }
.boton-wa { background: var(--wa); box-shadow: 0 3px 0 #146b39; }

.sellos {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  font-size: .92rem; color: var(--cat-2); font-weight: 700;
}
.sellos li::before { content: "✓ "; }

/* Listas */
.dolores, .tildes { list-style: none; padding: 0; }
.dolores li, .tildes li { padding-left: 1.6em; position: relative; margin-bottom: .6em; }
.dolores li::before { content: "?"; position: absolute; left: 0; color: var(--cat); font-weight: 800; }
.tildes li::before { content: "✓"; position: absolute; left: 0; color: var(--cat-2); font-weight: 800; }
.pasos { padding-left: 1.4em; }
.pasos li { margin-bottom: .6em; }

/* Piezas del pack */
.piezas { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.pieza {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start;
  background: var(--papel); border: 1px solid var(--borde); border-radius: 12px; padding: 10px;
}
.pieza img, .pieza .foto-falta { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.pieza-nombre { font-weight: 800; margin: 0; }
.numero {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .4em;
  background: var(--cat); color: #fff; border-radius: 50%; font-size: .8rem;
}
.pieza-nivel { font-size: .92rem; color: var(--suave); margin: 0 0 .3em; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; margin: 0; font-size: .92rem; }
.ficha dt { color: var(--suave); }
.ficha dd { margin: 0; font-weight: 600; }
.ficha-falta { font-size: .82rem; color: var(--suave); margin: 0; }
.foto-falta {
  display: grid; place-items: center; text-align: center; padding: 8px;
  min-height: 96px; background: #f3ecdf; border: 2px dashed #c9b99f; border-radius: 10px;
  font-size: .88rem; color: var(--suave); font-weight: 700;
}
.bloque > .foto-falta { margin-bottom: 12px; }

.recuadro { border-radius: 12px; padding: 14px; margin-top: 12px; }
.recuadro-titulo { font-weight: 800; }
.recuadro-guia { background: var(--cat-claro); }
.recuadro-guia .chico, .recuadro-regalo .chico { margin: .3em 0 0; }
/* "¿Qué quiere decir Aprox.?": se explica una sola vez, arriba de las fichas. */
.recuadro-aprox { background: var(--papel); border: 1px solid var(--borde); margin-bottom: 4px; }
.recuadro-aprox p { margin: .35em 0; font-size: .95rem; }
.recuadro-aprox .recuadro-titulo { margin-top: 0; font-size: 1rem; }
.aprox-actualizacion { background: var(--cat-claro); border-radius: 8px; padding: 8px 10px; font-weight: 700; }

/* Tabla de materiales. En el celular cada adorno es una tarjetita (sin deslizar de costado). */
.tabla-materiales-caja { margin: 12px 0; border: 1px solid var(--borde); border-radius: 12px; background: var(--papel); overflow: hidden; }
.tabla-materiales { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla-materiales th, .tabla-materiales td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--borde); }
.tabla-materiales thead th { background: var(--cat-claro); color: var(--cat-2); font-size: .85rem; }
.tabla-materiales tbody th { font-weight: 800; white-space: nowrap; }
.tabla-materiales tbody tr:last-child th, .tabla-materiales tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .tabla-materiales thead { display: none; }
  .tabla-materiales tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--borde); }
  .tabla-materiales tbody tr:last-child { border-bottom: 0; }
  .tabla-materiales th, .tabla-materiales td { display: block; padding: 1px 0; border: 0; white-space: normal; }
  .tabla-materiales tbody th { font-size: 1rem; margin-bottom: 2px; }
  .tabla-materiales td::before { content: attr(data-titulo) ": "; color: var(--suave); }
}
.materiales-comunes { padding-left: 1.2em; font-size: .95rem; }
.materiales-comunes li { margin-bottom: .4em; }
/* Regalo: como un paquete, con una cinta fina arriba y otra al costado. */
.recuadro-regalo {
  position: relative; overflow: hidden; background: var(--cat-suave);
  border: 1.5px solid color-mix(in srgb, var(--cat) 30%, transparent);
  padding-top: 20px;
}
.recuadro-regalo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; pointer-events: none;
  background: color-mix(in srgb, var(--cat) 45%, transparent);
}
.recuadro-regalo .mono { position: absolute; top: -1px; right: 14px; width: 40px; height: 26px; color: var(--cat); opacity: .8; }
.recuadro-regalo .recuadro-titulo { padding-right: 44px; color: var(--cat-oscuro); }

/* Muestras del PDF */
.muestras { list-style: none; padding: 0; display: grid; gap: 16px; }
.muestras img { border: 1px solid var(--borde); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); background: #fff; }
.muestras p { font-size: .92rem; margin-top: 6px; }
.agrandar { position: relative; display: block; color: inherit; text-decoration: none; }
.agrandar-aviso {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(43,37,34,.82); color: #fff; font-size: .88rem; font-weight: 700;
  padding: 5px 10px; border-radius: 99px;
}

/* Visor para ver grande una página del PDF */
.visor { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; overflow: auto; background: #fff; }
.visor::backdrop { background: rgba(0,0,0,.6); }
.visor-barra {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--papel); border-bottom: 1px solid var(--borde);
}
.visor-barra p { margin: 0; font-size: .88rem; color: var(--suave); }
.visor-cerrar {
  flex: none; min-height: 44px; padding: 8px 16px; border: 2px solid var(--marca); border-radius: 99px;
  background: var(--papel); color: var(--marca); font: inherit; font-weight: 800; cursor: pointer;
}
.visor-imagen { overflow: auto; }
.visor img { width: 100%; max-width: 720px; margin: 0 auto; cursor: zoom-in; }
.visor img.cerca { width: 180%; max-width: none; cursor: zoom-out; }

.foto-texto { margin: 12px 0; }
.foto-texto img { border-radius: 12px; max-height: 360px; object-fit: cover; width: 100%; }
.foto-texto figcaption { font-size: .88rem; color: var(--suave); margin-top: 4px; }

/* Caja de compra */
.caja-precio {
  background: var(--papel); border: 2px solid var(--cat); border-radius: 16px; padding: 18px;
}
.caja-nombre { font-weight: 700; }
.caja-precio-num { font-size: 2rem; font-weight: 800; margin: .1em 0; }
.agregado {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  margin: 14px 0; padding: 12px; background: var(--fondo); border: 1px dashed var(--borde); border-radius: 10px;
  font-size: .92rem; cursor: pointer;
}
.agregado input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--cat); }
.garantia { font-size: .9rem; color: var(--cat-2); font-weight: 700; margin-top: 10px; text-align: center; }
.falta-pago { margin-top: 10px; }

/* Descargas: aviso de uso personal y descargas que quedan */
.aviso-uso { background: var(--marca-claro); border-left: 4px solid var(--marca); border-radius: 8px; padding: 12px 14px; }
.boton-descarga-quedan { display: block; font-size: 15px; color: var(--suave); font-weight: 400; }
.boton-descarga.agotada { border-color: var(--borde); }
/* Dónde queda el archivo según el aparato (iPhone, Android o compu) y el botón ya descargado (2026-11-04) */
.ayuda-dispositivo { background: #eef7f0; border-left: 4px solid #1f7a45; border-radius: 8px; padding: 12px 14px; font-size: 1.05rem; }
.boton-descarga.descargado { border-color: #1f7a45; background: #f3faf5; }
.boton-descarga.descargado .boton-descarga-accion { background: #1f7a45; }
.boton-descarga.descargado .boton-descarga-quedan { color: #1a5c35; font-weight: 700; }
.boton-descarga.agotada .boton-descarga-accion { background: var(--suave); }

/* Preguntas */
.pregunta { background: var(--papel); border: 1px solid var(--borde); border-radius: 10px; margin-bottom: 8px; }
.pregunta summary { padding: 14px; font-weight: 700; cursor: pointer; }
.pregunta p { padding: 0 14px 14px; margin: 0; }

/* Cierre */
.cierre { text-align: center; }
.cierre-frase { font-size: 1.4rem; font-weight: 800; color: var(--cat); }

/* Tarjetas de producto */
.tarjeta {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  background: var(--papel); border: 1px solid var(--borde); border-radius: 14px; padding: 12px;
  color: inherit; text-decoration: none; margin: 12px 0;
}
.tarjeta img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; }
.tarjeta h3 { margin-bottom: .2em; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .3em; }
.etiquetas span { font-size: .82rem; background: var(--cat-claro); color: var(--cat-2); padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.precio-chico { font-weight: 800; font-size: 1.15rem; margin: 0 0 .2em; }
.tiempo { font-size: .88rem; margin: 0 0 .4em; }
.ver-mas { color: var(--cat); font-weight: 800; }

/* Barra fija abajo (solo celular) y WhatsApp flotante */
.barra-fija {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--papel); border-top: 1px solid var(--borde); box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  transform: translateY(110%); transition: transform .25s ease;
}
.barra-fija.visible { transform: none; }
.barra-precio { font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.barra-fija .boton-pago { flex: 1; min-height: 50px; font-size: 1rem; }

/* Burbuja de WhatsApp (Migue, 2026-10-26): redonda, abajo a la derecha, en celular y compu.
   Con la barra fija visible sube arriba de la barra (71 px = alto de la barra).
   "apartada": se esconde mientras tapa un botón de compra (sitio.js).
   El cartelito "¿Dudas? Escribinos" sale una sola vez por visitante ("mostrar-cartel", sitio.js). */
.burbuja-contacto {
  --wa: #25d366;
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 21;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.12);
  transition: bottom .25s ease, opacity .2s ease, transform .2s ease;
}
.burbuja-contacto.por-mail { --wa: var(--marca); }
.burbuja-contacto svg { width: 30px; height: 30px; }
.burbuja-contacto.latido { animation: latido 5s ease-in-out infinite 2.5s; }
body.barra-visible .burbuja-contacto { bottom: calc(71px + 12px + env(safe-area-inset-bottom)); }
.burbuja-contacto.apartada { opacity: 0; transform: scale(.6); pointer-events: none; }
.burbuja-cartel {
  position: absolute; right: calc(100% + 10px); top: 50%;
  background: #fff; color: var(--texto); font-size: .9rem; font-weight: 700; white-space: nowrap;
  padding: 7px 12px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.15);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.burbuja-contacto.mostrar-cartel .burbuja-cartel { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 760px) {
  .barra-fija { display: none; }
  .burbuja-contacto, body.barra-visible .burbuja-contacto { right: 24px; bottom: 24px; }
}

/* Gracias */
.gracias { text-align: center; }
.gracias .boton-pago { margin: 12px 0; }
.boton-pago[aria-disabled="true"] { opacity: .75; cursor: progress; }

/* Descargas: un botón grande por PDF */
.lista-descargas { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.boton-descarga {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 12px 14px;
  background: var(--papel); color: var(--texto); text-decoration: none; font-weight: 700;
  border: 2px solid var(--marca); border-radius: 12px;
}
.boton-descarga:active { background: var(--marca-claro); }
.boton-descarga-accion {
  flex: none; padding: 6px 12px; border-radius: 99px;
  background: var(--marca); color: #fff; font-size: .9rem;
}
.boton-descarga-nueva {
  display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px;
  background: var(--marca); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: 2px;
}
.mensaje-previo { font-size: .95rem; color: var(--suave); background: var(--papel); border: 1px solid var(--borde); border-radius: 10px; padding: 10px; }

/* Legales */
.legal h2 { font-size: 1.15rem; margin-top: 1.2em; }
.borrador {
  background: var(--amarillo); color: #3a2f00; font-weight: 800; padding: 10px; border-radius: 8px;
  outline: 2px dashed #b38f00;
}
.nota-revisar { background: #fff4c2; border-left: 4px solid #b38f00; padding: 10px; font-size: .9rem; }
.form-arrepentimiento { display: grid; gap: 12px; margin: 16px 0; }
.form-arrepentimiento[hidden] { display: none; }
.form-arrepentimiento label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
.form-arrepentimiento input {
  font: inherit; padding: 12px; border: 1px solid #bfb2a1; border-radius: 10px; background: #fff; min-height: 50px;
}

/* Pie */
.pie { background: var(--marca-oscuro); color: #fbf6ee; padding: 28px 16px calc(20px + env(safe-area-inset-bottom)); font-size: .9rem; }
/* Abajo del pie, solo el lugar justo (20 px), también en las páginas con barra fija: la barra se esconde
   antes de llegar al pie (sitio.js), así que no hace falta reservarle lugar (Migue, 2026-10-27).
   La burbuja (56 px, a la derecha) no tapa las últimas líneas porque esas dejan libre la columna de la derecha. */
.pie > :last-child { margin-bottom: 0; }
.pie-chico { padding-right: 76px; }
/* Desde 840 px la burbuja queda fuera de la columna del pie. */
@media (min-width: 840px) { .pie-chico { padding-right: 0; } .pie { padding-bottom: 28px; } }
.pie > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.pie a { color: #ffd9d4; }
.pie-marca { font-weight: 800; font-size: 1.1rem; }
.pie-contacto, .pie-links { list-style: none; padding: 0; }
.pie-links li, .pie-contacto li { margin-bottom: 6px; }
.arrepentimiento {
  display: inline-block; background: #fff; color: var(--marca-oscuro) !important; font-weight: 800;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.pie-chico { font-size: .88rem; }
.sin-corte { white-space: nowrap; }
/* Medios de pago: banner oficial horizontal de Mercado Pago (468 × 60 en celular, 575 × 40 en compu),
   sobre fondo blanco, y abajo la línea de efectivo (el horizontal no muestra Pago Fácil). */
.pie-pagos { margin: 18px auto; }
.pie-pagos p { font-weight: 700; margin: 0 0 6px; }
.pie-pagos picture { display: block; }
.pie-pagos img { display: block; width: 100%; max-width: 468px; height: auto; border-radius: 6px; background: #fff; }
.pie-pagos .pie-efectivo { font-weight: 400; font-size: .85rem; margin: 6px 0 0; opacity: .9; }
@media (min-width: 640px) { .pie-pagos img { max-width: 575px; } }
.medios-pago { font-size: .95rem; text-align: center; margin: 8px 0 4px; font-weight: 600; }
.mail-entrega { font-size: .92rem; text-align: center; margin: 4px 0; }

/* Marcador de la foto que va en ese lugar (sesión de fotos). */
mark.falta.foto { background: #ffe9a8; outline-color: #b38f00; }
.foto-marca { font-size: .85rem; margin: 6px 0 0; line-height: 1.35; }

/* Latido suave de los botones de compra y de WhatsApp: dos pulsitos cada 5 segundos, quieto el resto.
   Usa "scale" (no "transform") para no pisar el efecto de apretar el botón. */
@keyframes latido {
  0%, 82%, 100% { scale: 1; }
  86% { scale: 1.04; }
  90% { scale: 1; }
  94% { scale: 1.025; }
}
.latido { animation: latido 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .latido, .burbuja-contacto.latido { animation: none !important; }
  .barra-fija, .burbuja-contacto, .burbuja-cartel { transition: none; }
}
.portada .foto-marca, .cierre .foto-marca { text-align: center; }

/* Contacto por mail mientras no haya número de WhatsApp: mismos botones, con el color de la marca. */
.por-mail { --wa: var(--marca); }

/* ---------- Actividades para chicos (2026-11-01) ---------- */
.sello-maestra { display: inline-block; margin: .2em 0 .6em; padding: 4px 12px; border-radius: 999px; background: var(--cat-claro); color: var(--cat-oscuro); font-weight: 700; font-size: .95rem; }
.por-separado { font-size: .95rem; color: var(--suave); margin: 0 0 .6em; }
.trae { margin: 12px 0; }
.pregunta .trae { margin: 0; padding: 0 14px 14px; }
.pregunta .trae dt:first-child { margin-top: 0; }
.trae dt { font-weight: 800; margin-top: 10px; }
.trae dd { margin: 2px 0 0; }
.indice-categorias { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.indice-categorias a { padding: 8px 16px; border-radius: 999px; background: var(--cat-claro); color: var(--cat-oscuro); font-weight: 700; text-decoration: none; }
/* Aclaración general de IA (Migue, 2026-11-02): una línea chica y gris, en lugar del rótulo en cada imagen chica. */
.aclaracion-ia { font-size: .8rem; color: #6b6b6b; margin: .2em 0 .5em; }
.regalo-imagen + .aclaracion-ia { margin-top: -2px; }
/* Bloque de datos de los cuadernillos (Migue, 2026-11-02, rediseño): sin título, 3 × 2, compacto.
   Las 6 casillas iguales: ícono chico + texto corto en negrita, mismo tamaño y misma altura. */
.vistazo { margin: 12px 0 2px; padding: 8px; background: var(--cat-claro); border-radius: 14px; }
.vistazo ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.vistazo li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; padding: 7px 4px; text-align: center;
  background: var(--papel); border-radius: 10px; box-shadow: 0 1px 0 var(--borde);
}
.vistazo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--cat-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vistazo span { font-size: .8rem; line-height: 1.2; font-weight: 700; color: var(--cat-oscuro); hyphens: none; overflow-wrap: normal; word-break: normal; }
@media (min-width: 560px) { .vistazo li { padding: 9px 6px; } .vistazo span { font-size: .88rem; } }

/* Regalo de temporada cerca de los botones de pago (Migue, 2026-11-03). */
.regalo-temporada { margin: .5em 0 0; font-weight: bold; color: #2f6f78; text-align: center; }

/* Página de descargas en el celular (Migue, 2026-11-04): sin burbuja flotante, para que no tape
   ninguna tarjeta ni el "✓ Descargado". WhatsApp sigue arriba ("¿Dudas? Escribinos") y en "¿Dudas?",
   abajo de la lista. La clase la pone sitio.js. En la compu la burbuja queda fuera de la columna. */
@media (max-width: 839px) { body.pagina-descargas .burbuja-contacto { display: none; } }

/* Descargas (Migue, 2026-11-04): aviso de navegador interno (Facebook, Instagram, WhatsApp, Gmail…) y
   estados del botón en iPhone ("Preparando tu PDF…" y "Guardar en Archivos"). */
.aviso-app { background: #fff4e0; border: 2px solid #c77700; border-radius: 12px; padding: 14px; margin: 14px 0; font-size: 1.05rem; }
.aviso-app p { margin: 0 0 10px; }
.aviso-app.resaltar { animation: resaltar-aviso 1.2s ease-in-out 2; }
@keyframes resaltar-aviso { 50% { box-shadow: 0 0 0 6px rgba(199,119,0,.35); } }
.boton-copiar { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 99px; border: 2px solid #c77700; background: #fff; color: #7a4800; cursor: pointer; min-height: 44px; }
.link-para-copiar[hidden] { display: none; }
.link-para-copiar { display: block; width: 100%; margin-top: 10px; font: inherit; font-size: .95rem; padding: 8px; border: 1px solid var(--borde); border-radius: 8px; }
.aviso-app #link-copiado { margin: 10px 0 0; color: #1a5c35; font-weight: 700; }
.boton-descarga.preparando { cursor: progress; }
.boton-descarga.preparando .boton-descarga-accion { background: var(--suave); }
.boton-descarga.listo-guardar { border-color: #1f7a45; }
.boton-descarga.listo-guardar .boton-descarga-accion { background: #1f7a45; }
@media (prefers-reduced-motion: reduce) { .aviso-app.resaltar { animation: none; } }

/* Componente "tarjetas de frases" (plantilla de producto, Migue 2026-11-09): dolores en rojo, beneficios en verde. */
.tarjetas-frases { --tono: #c94a4a; --tono-claro: #fbe3e3; border-top: 0; }
.tarjetas-beneficios { --tono: #2e8b4f; --tono-claro: #dcf1e3; }
.tarjetas-frases h2 { text-align: center; color: var(--texto); margin-bottom: 18px; }
.tarjetas-frases h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--tono); margin: 10px auto 0; }
.tarjetas-frases ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tarjetas-frases li {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px;
  border-left: 5px solid var(--tono); box-shadow: 0 2px 10px rgba(43,37,34,.08); padding: 12px 14px;
}
.tarjetas-dolores li { border-left-color: #e6a0a0; }
.tarjeta-icono {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tono-claro); color: var(--tono);
}
.tarjeta-icono svg { width: 16px; height: 16px; display: block; }
.tarjetas-frases p { margin: 0; line-height: 1.35; }
.tarjetas-frases strong { color: var(--tono); }
.tarjetas-beneficios + .bloque { border-top: 0; }
.caja-regalos {
  margin: .6em 0 .7em; padding: 8px 12px; border-radius: 10px; text-align: center;
  background: var(--cat-suave); color: var(--cat-oscuro); font-size: .95rem; font-weight: 700;
}
