/* Plan Familiar Seguro · revista digital de finanzas familiares.
   Fondo blanco, tinta azul marino, acento cobalto. Títulos en Source Serif 4, texto en Inter. */
:root {
  --fondo: #FFFFFF;
  --superficie: #FFFFFF;
  --tinta: #0F1D3A;
  --tinta-2: #3D4A63;
  --tinta-3: #66718A;
  --borde: #E1E6EF;
  --marca: #2350E6;
  --marca-osc: #1A3DB8;
  --marca-suave: #EDF2FF;
  --llamar: #0B7A55;
  --llamar-osc: #08603F;
  --papel: #F5F8FD;
  --fuente-titulo: "Source Serif 4", "Newsreader", Georgia, "Times New Roman", serif;
  --fuente: "Inter", "Segoe UI", system-ui, sans-serif;
  --radio: 12px;
  --sombra: 0 1px 2px rgba(15, 29, 58, .05), 0 10px 30px rgba(15, 29, 58, .07);
}
body { background: var(--fondo); }
.contenedor { max-width: 660px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
main { padding-block: 26px 48px; }

/* ---------- Cabecera de publicación ---------- */
.cabecera { background: #fff; border-bottom: 1px solid var(--borde); position: relative; }
.cabecera::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--tinta); opacity: .9; }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca-icono { width: 30px; height: 30px; flex: 0 0 30px; }
.marca-texto { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.marca-texto em { font-style: italic; font-weight: 500; color: var(--marca); }
.seccion-cab { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--tinta-3); }
@media (max-width: 400px) { .seccion-cab { display: none; } }

/* ---------- Nota ---------- */
.nota { display: flex; flex-direction: column; gap: 26px; }
.nota-cab { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marca); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--marca); }
.titular { font-family: var(--fuente-titulo); font-weight: 700; font-size: clamp(1.9rem, 7.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; color: var(--tinta); }
.bajada { font-family: var(--fuente-titulo); font-size: 1.2rem; line-height: 1.5; color: var(--tinta-2); font-weight: 500; }
.firma { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--borde); }
.firma > div { display: flex; flex-direction: column; line-height: 1.3; }
.firma b { font-size: .92rem; }
.firma span { font-size: .84rem; color: var(--tinta-3); }
.firma-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; flex: 0 0 38px; }
.etiqueta-ilustrativa { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--tinta-2); background: var(--papel); border: 1px solid var(--borde); border-radius: 999px; padding: 6px 12px; }
.etiqueta-ilustrativa svg { color: var(--marca); flex: 0 0 14px; }

.figura { margin: 6px 0; display: flex; flex-direction: column; gap: 10px; }
.figura svg { width: 100%; height: auto; border-radius: 16px; }
.figura figcaption { font-size: .82rem; color: var(--tinta-3); line-height: 1.45; padding-left: 12px; border-left: 2px solid var(--borde); }
.figura-hero { margin: 0; }

.cuerpo { display: flex; flex-direction: column; gap: 18px; }
.cuerpo p, .cuerpo li { font-size: 1.1rem; line-height: 1.72; color: #1F2B45; }
.cuerpo h2 { font-family: var(--fuente-titulo); font-weight: 700; font-size: clamp(1.4rem, 5.4vw, 1.7rem); line-height: 1.2; margin-top: 14px; color: var(--tinta); }
.entrada::first-letter { font-family: var(--fuente-titulo); font-weight: 700; float: left; font-size: 3.4em; line-height: .86; padding: 6px 8px 0 0; color: var(--marca); }
.cita { margin: 4px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--marca); font-family: var(--fuente-titulo); font-style: italic; font-weight: 500; font-size: 1.28rem; line-height: 1.5; color: var(--tinta); }

.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lista li { position: relative; padding-left: 30px; }
.lista li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--marca-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' stroke='%232350E6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.lista b { color: var(--tinta); }
.lista-no li::before { background: #F1F3F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5h6' stroke='%230F1D3A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center; }

.nota-aviso { font-size: .82rem; color: var(--tinta-3); line-height: 1.5; border-top: 1px solid var(--borde); padding-top: 16px; }

/* ---------- Caja de pregunta ---------- */
.pregunta {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--papel); border: 1px solid #D6DFF0; border-radius: 18px; padding: 24px 20px 20px;
  box-shadow: var(--sombra); margin: 6px 0;
}
.pregunta::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--marca); }
.pregunta-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marca); }
.pregunta-titulo { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--tinta); }
.pregunta-sub { color: var(--tinta-2); font-size: 1rem; }
.pregunta-label { font-weight: 700; font-size: .95rem; margin-top: 6px; }
.pregunta .select { border-color: #B9C4D8; }
.pregunta .boton { margin-top: 4px; }
.pregunta-nota { font-size: .84rem; color: var(--tinta-3); text-align: center; }
.pregunta-compacta { padding-top: 20px; }

/* Botones con Inter (la serif queda para la lectura) */
.boton, .boton-llamar, .tel-numero { font-family: var(--fuente); letter-spacing: -.005em; }
.boton { background: var(--tinta); font-weight: 700; box-shadow: 0 8px 20px rgba(15, 29, 58, .18); }
.boton:hover { background: var(--marca); }
.boton-llamar { font-weight: 700; }
.tel-numero { font-weight: 700; }

/* ---------- B · Video y respuestas ---------- */
.video { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--tinta); box-shadow: var(--sombra); aspect-ratio: 4 / 5; }
.video video { width: 100%; height: 100%; object-fit: cover; background: var(--tinta); }
.sin-video svg { width: 100%; height: auto; border-radius: 18px; }

.respuestas-titulo { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.55rem; margin-top: 4px; }
.respuestas { list-style: none; margin: -10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.respuesta { position: relative; background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(15, 29, 58, .04); }
.respuesta-num { width: 34px; height: 34px; border-radius: 10px; background: var(--tinta); color: #fff; font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; }
.respuesta h3 { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.respuesta p, .respuesta li { font-size: 1.02rem; line-height: 1.65; color: #1F2B45; }
.respuesta b { color: var(--tinta); }
.lista-compacta { gap: 10px; }
.respuesta-no { font-size: .95rem !important; color: var(--tinta-2) !important; background: var(--papel); border-radius: 10px; padding: 10px 12px; }

.barra-pregunta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--borde); padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); animation: sube .3s cubic-bezier(.2,.8,.2,1); }
.barra-pregunta .boton { max-width: 620px; margin: 0 auto; display: flex; min-height: 56px; }
.barra-pregunta-sub { font-weight: 500; opacity: .75; }
@keyframes sube { from { transform: translateY(100%); } to { transform: none; } }
body[data-variante="B"][data-paso-actual="nota"] main { padding-bottom: 100px; }

/* ---------- Revisando / Calificas / Salida ---------- */
.paso-titulo { font-family: var(--fuente-titulo); font-weight: 700; }
.rueda { border-color: var(--marca-suave); border-top-color: var(--marca); }
.exito { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 8px; }
.exito-icono { width: 60px; height: 60px; border-radius: 50%; background: var(--llamar); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px color-mix(in srgb, var(--llamar) 14%, transparent); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.exito-titulo { font-family: var(--fuente-titulo); font-weight: 700; font-size: clamp(1.6rem, 6.4vw, 2rem); line-height: 1.15; }
.tarjeta { border-radius: 16px; }
.llamada { display: flex; flex-direction: column; gap: 14px; }
.esp-cab { display: flex; gap: 12px; align-items: center; }
.esp-cab > div { display: flex; flex-direction: column; gap: 2px; }
.esp-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--marca-suave); color: var(--marca); display: grid; place-items: center; flex: 0 0 46px; }
.mini-titulo { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.tener-mano { margin-top: 14px; font-size: .9rem; color: var(--tinta-2); border-top: 1px solid var(--borde); padding-top: 12px; font-weight: 600; }
.salida-icono { background: var(--papel); color: var(--tinta); }

.pie { background: var(--papel); }

@media (min-width: 700px) {
  main { padding-top: 40px; }
  .pregunta { padding: 28px 28px 24px; }
  .pregunta::before { left: 28px; right: 28px; }
}

/* Logo editorial */
.logo-txt b { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-txt small { font-family: var(--fuente-titulo); font-style: italic; font-weight: 500; font-size: .82rem; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.logo-marca { border-radius: 10px; }

/* Foto real en la portada de la nota */
.foto-hero { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; background: #E4E9F2; }
