/* Talleres «Yo digo sí» — colores de packages/ysy-tokens (copiados: esta web se publica sola). */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("/fuentes/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/fuentes/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/fuentes/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-weight: 400; font-display: swap; src: url("/fuentes/allura-latin-400-normal.woff2") format("woff2"); }

:root {
  --crema: #F6F0E9; --papel: #FFFCF8; --rubor: #FFF2E6; --arena: #D8D2C8; --topo: #CDC6B6;
  --tinta: #2A2323; --tinta-suave: #564D47; --barra: #443B3B; --granate: #741C03; --granate-hondo: #5A1602; --linea: #DDD6CB;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Montserrat", system-ui, -apple-system, sans-serif; --script: "Allura", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: var(--granate); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--granate); outline-offset: 2px; }

.pantalla { max-width: 460px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.relleno { flex-grow: 1; }
.marca { text-align: center; }
.marca .logo { font-family: var(--script); font-size: 54px; line-height: 1; color: var(--granate); }
.marca .sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta-suave); }

.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; padding: 18px; }
.etiqueta-alta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--granate); font-weight: 600; }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
h1.grande { font-size: 40px; }
.subtitulo { font-family: var(--script); font-size: 30px; line-height: 1.1; color: var(--granate); }
.suave { color: var(--tinta-suave); }
.peque { font-size: 13px; }

.progreso-cab { display: flex; justify-content: space-between; font-size: 12px; color: var(--tinta-suave); }
.progreso { height: 6px; border-radius: 999px; background: var(--arena); overflow: hidden; }
.progreso > span { display: block; height: 100%; background: var(--granate); border-radius: 999px; }

.pasos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pasos li { display: flex; align-items: center; gap: 12px; }
.pasos .num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--granate); color: var(--granate); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span:first-child { font-size: 13px; font-weight: 600; }
.entrada { width: 100%; padding: 13px 14px; border: 1px solid var(--topo); border-radius: 12px; background: #fff; }
.entrada.mal { border: 2px solid var(--granate); padding: 12px 13px; }
.con-unidad { display: flex; align-items: center; border: 1px solid var(--topo); border-radius: 12px; background: #fff; padding: 0 12px; }
.con-unidad.mal { border: 2px solid var(--granate); padding: 0 11px; }
.con-unidad input { border: 0; outline: none; padding: 12px 0; width: 100%; background: transparent; }
.rejilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }

.opcion { min-height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--topo); background: #fff; font-size: 13px; cursor: pointer; }
.opcion[aria-pressed="true"] { border: 2px solid var(--granate); background: var(--rubor); color: var(--granate); font-weight: 600; }
.fila-opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.fila-opciones .opcion { padding: 0 14px; }

.aviso { background: var(--rubor); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--granate-hondo); }
.error { background: var(--rubor); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--granate-hondo); font-weight: 600; }

.botonera { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--granate); background: transparent; color: var(--granate); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.lleno { background: var(--granate); color: var(--papel); flex: 1 1 auto; font-size: 16px; }
.btn.lleno:hover { background: var(--granate-hondo); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-texto { min-height: 44px; border: 0; background: transparent; color: var(--granate); text-decoration: underline; cursor: pointer; font-size: 14px; }

.consentimiento { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--tinta-suave); }
.consentimiento input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--granate); }

.estilos { padding: 4px 6px 4px 14px; }
.estilo { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid #EFE9E0; }
.estilo:last-child { border-bottom: 0; }
.estilo .nombre { font-size: 14px; }
.estilo .nombre.fuerte { font-weight: 600; }
.estrella { width: 40px; height: 44px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.estrella svg { width: 20px; height: 20px; }

.visor { position: relative; height: 320px; border-radius: 22px; background: var(--barra); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.visor img { width: 100%; height: 100%; object-fit: cover; }
.visor .pie { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; color: var(--papel); }
.consejos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.consejos li { display: flex; gap: 10px; align-items: center; }
.oculto { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.resumen .linea { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #EFE9E0; }
.resumen .linea:last-child { border-bottom: 0; }
.resumen .linea b { text-align: right; }
.resena { background: var(--rubor); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.resena .titulo { font-family: var(--serif); font-size: 26px; line-height: 1.15; }

.centrado { text-align: center; }
.circulo-ok { align-self: center; width: 76px; height: 76px; border-radius: 50%; background: var(--granate); display: flex; align-items: center; justify-content: center; }

/* Pantalla final: reseña y regalos */
.estrellas-grandes { display: flex; justify-content: center; gap: 6px; }
.estrellas-grandes span { width: 32px; height: 32px; display: inline-flex; }
.regalo { display: flex; flex-direction: column; gap: 10px; }
.regalo .titulo { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.regalo .portada { width: 100%; height: auto; border-radius: 14px; display: block; }
.grande-num { font-family: var(--sans); font-weight: 600; font-size: 44px; line-height: 1; color: var(--granate); }
.codigo { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px dashed var(--granate); border-radius: 14px; padding: 8px 8px 8px 16px; background: var(--rubor); }
.codigo b { font-size: 19px; letter-spacing: .1em; color: var(--granate); }
.codigo .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.enlaces { display: flex; flex-wrap: wrap; gap: 8px; }
.enlaces a { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--topo); border-radius: 12px; background: #fff; text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; }

/* Logo real (img/logo-ysy.png, el de ysy.es) */
.marca .logo-img { width: 112px; height: auto; display: block; margin: 4px auto 0; }
/* Gracias */
.hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 4px 0; }
.hero .circulo-ok { width: 64px; height: 64px; margin-bottom: 6px; }
.lema { font-family: var(--script); font-size: 34px; line-height: 1.05; color: var(--granate); margin: 0 0 6px; }
.firma { font-family: var(--script); font-size: 30px; color: var(--granate); line-height: 1; margin-top: 2px; }
.tinta { color: var(--tinta); }
.cuenta { display: flex; flex-direction: column; gap: 10px; }
.cuenta-num { display: flex; align-items: baseline; gap: 8px; color: var(--granate); }
.cuenta-num b { font-family: var(--serif); font-size: 64px; line-height: .9; font-weight: 500; }
.cuenta-num span { font-family: var(--serif); font-size: 26px; }
.resena { border: 1.5px solid var(--granate); }
.resena .titulo { font-size: 28px; }
.resena .btn.lleno { min-height: 56px; font-size: 17px; }
/* Libro */
.libro { background: var(--granate); color: var(--papel); border-radius: 24px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.libro .etiqueta-alta { color: var(--rubor); opacity: .9; }
.libro-titular { font-family: var(--serif); font-size: 32px; line-height: 1.08; }
.libro-img { width: 100%; height: auto; border-radius: 16px; display: block; }
.libro blockquote { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--rubor); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.25; }
.libro-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.libro-lista li { position: relative; padding-left: 20px; }
.libro-lista li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--rubor); }
.libro-datos { font-size: 13px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 252, 248, .12); text-align: center; }
.btn.claro { background: var(--papel); color: var(--granate); border-color: var(--papel); font-size: 17px; min-height: 56px; }
.libro a:not(.btn) { color: var(--papel); }

/* v3 (1/11): reseña más vistosa, libro resumido con el reto, cabecera de regalos */
.resena { background: linear-gradient(180deg, var(--rubor), var(--papel)); border: 1.5px solid var(--granate); box-shadow: 0 10px 28px rgba(116, 28, 3, .12); padding: 24px 20px; gap: 14px; }
.resena .titulo { font-size: 27px; line-height: 1.12; }
.resena .estrellas-grandes span { width: 36px; height: 36px; animation: brillo 2.4s ease-in-out infinite; }
.resena .estrellas-grandes span:nth-child(2) { animation-delay: .15s; }
.resena .estrellas-grandes span:nth-child(3) { animation-delay: .3s; }
.resena .estrellas-grandes span:nth-child(4) { animation-delay: .45s; }
.resena .estrellas-grandes span:nth-child(5) { animation-delay: .6s; }
@keyframes brillo { 0%, 70%, 100% { transform: scale(1); } 35% { transform: scale(1.18); } }
.pulso { animation: pulso 2.6s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(116, 28, 3, .35); } 50% { box-shadow: 0 0 0 10px rgba(116, 28, 3, 0); } }
@media (prefers-reduced-motion: reduce) { .resena .estrellas-grandes span, .pulso { animation: none; } }
.resena.hecha { box-shadow: none; }
.libro-reto { align-self: flex-start; display: flex; align-items: center; gap: 10px; background: var(--papel); color: var(--granate); border-radius: 14px; padding: 8px 14px 8px 12px; }
.libro-reto b { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 500; }
.libro-reto span { font-size: 12px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.libro-gancho { margin: 0; font-size: 15px; line-height: 1.5; }
.regalos-cab { margin-top: 10px; }
.regalo .titulo { text-align: center; }
.regalo .grande-num { text-align: center; }
.resena .btn.lleno, .btn.claro { width: 100%; padding: 0 16px; font-size: 16px; white-space: nowrap; }
.resena .btn.lleno svg { flex-shrink: 0; }

/* v4 (1/11): firma pequeña, reseña en rojo fuerte como el libro */
.firma { font-size: 22px; margin-top: 4px; }
.cuenta-num .pre { font-family: var(--serif); font-size: 26px; }
.resena { background: var(--granate); color: var(--papel); border: 0; box-shadow: 0 10px 28px rgba(116, 28, 3, .25); }
.resena .etiqueta-alta { color: var(--rubor); }
.resena .estrellas-grandes path { fill: var(--rubor); stroke: var(--rubor); }
.resena .btn.lleno { background: var(--papel); color: var(--granate); border-color: var(--papel); }
.resena .btn.lleno:hover { background: var(--rubor); }
.resena a { color: var(--papel); }
.resena .suave { color: var(--rubor); }
.pulso { animation-name: pulso-claro; }
@keyframes pulso-claro { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 252, 248, .45); } 50% { box-shadow: 0 0 0 10px rgba(255, 252, 248, 0); } }

/* v5 (1/11): libro en crema (el único rojo es la reseña); estrellas doradas que brillan */
.libro { background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); box-shadow: none; }
.libro .etiqueta-alta { color: var(--granate); opacity: 1; }
.libro-titular { color: var(--tinta); }
.libro-reto { background: var(--granate); color: var(--papel); }
.libro-datos { background: var(--rubor); }
.libro .btn.claro { background: var(--granate); color: var(--papel); border-color: var(--granate); }
.libro a:not(.btn) { color: var(--granate); }
.resena .estrellas-grandes path { fill: #FBBC04; stroke: #F5A800; }
.resena .estrellas-grandes span { filter: drop-shadow(0 0 0 rgba(251, 188, 4, 0)); animation: destello 2.4s ease-in-out infinite; }
@keyframes destello {
  0%, 70%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(251, 188, 4, 0)); }
  35% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(255, 214, 90, .95)); }
}
@media (prefers-reduced-motion: reduce) { .resena .estrellas-grandes span { animation: none; } }
/* Cifras con la sans: en Cormorant el 10 parece «IO» */
.cuenta-num b, .libro-reto b { font-family: var(--sans); font-weight: 600; }
.cuenta-num b { font-size: 52px; }
.libro-reto b { font-size: 32px; }
.familia { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--granate); margin: 6px 0 6px; }
