/* Inocente Palomita — estilos compartidos */
@font-face { font-family: 'Playfair'; font-weight: 400; font-display: swap; src: url(/fonts/playfair-display-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair'; font-weight: 700; font-display: swap; src: url(/fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); }

:root {
  --papel: #FBF6EA;
  --papel-2: #F3EAD3;
  --tinta: #2B2140;
  --suave: #6B6280;
  --acento: #D6336C;
  --acento-2: #B8245A;
  --dorado: #C9A227;
  --blanco: #fff;
  --borde: #E4D9BF;
  --exito: #2F7D4F;
  --error: #B00020;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(43, 33, 64, .06), 0 10px 30px rgba(43, 33, 64, .10);
  --titulo: 'Playfair', Georgia, serif;
  --texto: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--texto); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--acento); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.contenedor { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.angosto { max-width: 560px; }
.suave { color: var(--suave); }
.chico { font-size: .88rem; }
.centro { text-align: center; }
.oculto { display: none !important; }

/* Encabezado */
.barra { padding: 14px 0; }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--titulo); font-weight: 700; font-size: 1.2rem; color: var(--tinta); text-decoration: none; white-space: nowrap; }
.logo span { font-size: 1.3rem; }
.nav { display: flex; gap: 16px; font-size: .92rem; font-weight: 600; }
.nav a { color: var(--tinta); text-decoration: none; }
.nav a:hover { color: var(--acento); }
@media (max-width: 560px) { .nav .solo-ancho { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 1rem/1.2 var(--texto); text-decoration: none; text-align: center;
  background: var(--acento); color: var(--blanco); transition: transform .12s, background .12s;
}
.btn:hover { background: var(--acento-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.secundario { background: var(--blanco); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.btn.secundario:hover { background: var(--papel-2); }
.btn.oscuro { background: var(--tinta); }
.btn.oscuro:hover { background: #1b1429; }
.btn.ancho { width: 100%; }
.btn:focus-visible, input:focus-visible, .opcion:focus-within { outline: 3px solid var(--dorado); outline-offset: 2px; }

/* Tarjetas y formularios */
.tarjeta { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 22px; }
label.campo { display: block; font-weight: 600; margin: 0 0 8px; }
input[type=text] {
  width: 100%; padding: 14px 16px; font: 400 1.05rem var(--texto); color: var(--tinta);
  border: 2px solid var(--borde); border-radius: 12px; background: var(--blanco);
}
input[type=text]:focus { border-color: var(--tinta); outline: none; }
.error { color: var(--error); font-weight: 600; min-height: 1.2em; margin-top: 10px; }
.aviso { background: #FFF3C4; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.sello {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; background: var(--tinta); color: var(--papel);
}
.sello.rosa { background: var(--acento); color: var(--blanco); }
.sello.dorado { background: var(--dorado); color: var(--tinta); }

/* Pie */
.pie { padding: 40px 0 48px; font-size: .88rem; color: var(--suave); }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--borde); padding-top: 20px; }
.pie a { color: var(--suave); }

/* Pantallas de trampa (una a la vez) */
.trampa-pagina { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.trampa-pagina main { flex: 1; display: flex; align-items: center; padding: 24px 0 40px; }
.pantalla { width: 100%; animation: aparecer .35s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.progreso { height: 8px; background: var(--papel-2); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progreso > div { height: 100%; width: 0; background: var(--acento); transition: width .3s; }
.respuestas { display: grid; gap: 10px; margin-top: 18px; }
.respuesta {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--borde);
  background: var(--blanco); font: 600 1rem/1.35 var(--texto); color: var(--tinta); cursor: pointer;
  transition: border-color .12s, transform .12s;
}
.respuesta:hover { border-color: var(--tinta); }
.respuesta:active { transform: scale(.99); }
.cargando { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--papel-2); border-top-color: var(--acento); margin: 0 auto 18px; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Revelación */
.revelacion { text-align: center; }
.revelacion .paloma { font-size: 4.5rem; line-height: 1; display: inline-block; animation: aletear 1.2s ease-in-out infinite; }
@keyframes aletear { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
.revelacion h1 { color: var(--acento); font-size: clamp(2.6rem, 11vw, 4.2rem); margin: 10px 0 12px; }
.revelacion .rima { font-family: var(--titulo); font-style: italic; font-size: 1.15rem; color: var(--suave); }
.resultado { margin: 22px auto; max-width: 420px; background: var(--blanco); border: 3px dashed var(--dorado); border-radius: var(--radio); padding: 18px; }
.resultado strong { display: block; font-family: var(--titulo); font-size: 1.7rem; color: var(--tinta); margin: 6px 0 4px; }
.acciones { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.confeti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confeti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: caer linear forwards; }
@keyframes caer { to { transform: translateY(110vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .confeti { display: none; }
}
