/* Sitios de captura: DailyPerkFinder (dpf) y MoneyMatchHub (mmh). Light mode, sin recursos externos.
 * v9 (2026-10-21): rediseño "marca de consumo": Plus Jakarta Sans autoalojada, fondo con tinte,
 * hero con foto a sangre, quiz por pasos con progreso, ofertas con foto. Tokens arriba; nada de hex
 * sueltos en los componentes salvo los estados de error. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  /* marca (DPF por defecto) */
  --acento: #c2410c; --acento-2: #9a3412; --acento-suave: #fff1e6; --acento-borde: #f6c9a8;
  --fondo: #fbf6f0; --fondo-fuerte: #f6ece1;
  /* neutros */
  --texto: #1f2328; --texto-2: #424a53; --muted: #57606a; --borde: #e3ddd5; --borde-campo: #8c959f;
  --fondo-alt: #f6f8fa; --blanco: #fff; --ok: #1a7f37; --ok-suave: #dafbe1; --ok-borde: #4ac26b; --ok-2: #116329;
  --error: #cf222e;
  /* forma */
  --radio: 20px; --radio-m: 14px; --radio-s: 10px;
  --sombra: 0 1px 2px rgba(31,35,40,.04), 0 8px 24px rgba(31,35,40,.07);
  --sombra-alta: 0 2px 4px rgba(31,35,40,.05), 0 18px 40px rgba(31,35,40,.12);
  --fuente: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-titulo: var(--fuente);
  color-scheme: light;
}
.sitio-mmh {
  --acento: #1652c8; --acento-2: #0f3d99; --acento-suave: #ecf2fd; --acento-borde: #b7cdf3;
  --fondo: #f4f7fc; --fondo-fuerte: #e9eff9; --borde: #dbe2ec;
}
.sitio-neutro { --acento: #424a53; --acento-2: #1f2328; --fondo: #f6f8fa; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.55 var(--fuente); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--acento); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.trampa { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; }

/* ---------- Cabecera ---------- */
.top { position: relative; z-index: 3; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--borde); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
body:has(.main-ancho) .top .wrap { max-width: 1200px; }
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--texto); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: 0 0 auto; }
.logo b { color: var(--acento); font-weight: 800; }
.top-nota { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------- Tipografía de titulares ---------- */
.hero h1, .titular { font-family: var(--fuente-titulo); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; font-size: 34px; color: var(--texto); }
.hero .sub { color: var(--texto-2); margin: 0 0 16px; font-size: 18px; line-height: 1.5; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 7px; color: var(--texto); font-size: 15px; font-weight: 700; }
.chips svg { width: 20px; height: 20px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; }

/* ---------- Inicio: hero con foto + quiz ---------- */
.main-ancho { max-width: none; padding: 0; overflow-x: clip; }
.hq { position: relative; }
.hq-foto { position: relative; margin: 0; height: 230px; overflow: hidden; background: var(--fondo-fuerte); }
.hq-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 22%; }
.hq-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, var(--fondo) 98%); }
.hq-col { position: relative; z-index: 1; max-width: 680px; margin: -46px auto 0; padding: 0 20px; }
.hq-txt { margin-bottom: 20px; }

.quiz { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px 18px 22px; box-shadow: var(--sombra-alta); }
.prog { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.prog-label { font-size: 14px; font-weight: 800; color: var(--acento-2); letter-spacing: .01em; }
.prog-pct { font-size: 13px; font-weight: 700; color: var(--muted); }
.progreso { height: 8px; background: var(--fondo-fuerte); border-radius: 99px; margin-bottom: 22px; overflow: hidden; }
.barra { height: 100%; width: 0; background: var(--acento); transition: width .35s ease; border-radius: 99px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 25px; line-height: 1.2; font-weight: 800; margin-bottom: 6px; padding: 0; letter-spacing: -.025em; }
.ayuda { color: var(--muted); margin: 0 0 4px; font-size: 16px; }
.opciones { display: grid; gap: 10px; margin: 16px 0 4px; }

.opcion { position: relative; display: flex; align-items: center; gap: 14px; min-height: 62px; margin: 0; padding: 14px 16px; border: 2px solid var(--borde); border-radius: var(--radio-m); background: var(--blanco); cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1.3; transition: border-color .15s, background .15s, box-shadow .15s; }
.opcion:hover { border-color: var(--acento-borde); box-shadow: 0 2px 10px rgba(31,35,40,.06); }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opcion .marca { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--borde-campo); border-radius: 8px; background: var(--blanco); color: transparent; transition: background .15s, border-color .15s; }
.opcion input[type=radio] + .marca { border-radius: 50%; }
.opcion .marca svg { width: 16px; height: 16px; }
.opcion:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); }
.opcion:has(input:checked) .marca { background: var(--acento); border-color: var(--acento); color: #fff; }
.opcion:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 2px; }

label { display: block; font-weight: 700; font-size: 16px; margin: 12px 0; }
.campo { display: block; width: 100%; min-height: 56px; margin-top: 6px; padding: 12px 16px; font: inherit; font-size: 18px; font-weight: 500; color: var(--texto); background: var(--blanco); border: 2px solid var(--borde-campo); border-radius: var(--radio-m); }
.campo:focus { outline: 3px solid var(--acento-borde); border-color: var(--acento); }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Consentimiento: visible, sin tildar, texto completo, 14px y contraste alto. No tocar a la baja. */
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--texto); background: var(--fondo-alt); border: 1px solid var(--borde-campo); border-radius: var(--radio-s); padding: 12px; margin: 12px 0; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--acento); }
.consent span { display: block; }
.consent a { color: var(--acento-2); }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 14px 20px; margin-top: 18px; background: var(--acento); color: #fff; border: 0; border-radius: var(--radio-m); font: inherit; font-size: 19px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; text-align: center; text-decoration: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--acento) 28%, transparent); transition: background .15s, transform .15s; }
.btn:hover { background: var(--acento-2); }
.btn svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.tranqui { display: block; margin: 14px 0 0; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--muted); text-align: center; text-wrap: balance; }
.tranqui svg { display: inline-block; width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; color: var(--ok); }
.atras { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: 0; color: var(--texto-2); margin: 8px 0 0; padding: 8px 4px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-envio { font-size: 13px; color: var(--texto-2); margin: 12px 0 0; }

/* Errores */
.error { color: var(--error); font-weight: 700; margin: 8px 0; }
.aviso-falta { display: none; margin: 10px 0 0; padding: 10px 12px; font-size: 15px; font-weight: 700; color: #82071e; background: #ffebe9; border: 1px solid #ff8182; border-left: 5px solid var(--error); border-radius: 8px; }
.falta .aviso-falta { display: block; }
.falta legend { color: #82071e; }
.falta .opciones .opcion { border-color: #ff8182; }
.falta .opciones .opcion:has(input:checked) { border-color: var(--acento); }
.falta .campo:invalid, .falta .campo[name="r[zip]"] { border-color: var(--error); background: #fff8f8; }
.alerta { background: #ffebe9; border: 1px solid #ff8182; border-left: 5px solid var(--error); border-radius: 8px; padding: 10px 12px; color: #82071e; font-size: 15px; margin: 0 0 12px; }
.alerta ul { margin: 6px 0 0; padding-left: 20px; font-weight: 600; }

/* Cómo funciona */
.como { max-width: 680px; margin: 48px auto 0; padding: 0 20px; }
.como h2 { font-family: var(--fuente-titulo); font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pasos li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra); }
.pasos .n { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--acento-suave); color: var(--acento-2); font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.pasos strong { display: block; font-size: 17px; line-height: 1.3; margin-bottom: 3px; }
.pasos span.d { color: var(--texto-2); font-size: 16px; }
.confianza { margin: 18px 0 0; font-size: 14px; color: var(--texto-2); background: var(--blanco); border: 1px solid var(--borde); border-left: 4px solid var(--acento); padding: 12px 14px; border-radius: 0 var(--radio-s) var(--radio-s) 0; }

/* ---------- Resultados ---------- */
.wrap-res { max-width: 720px; }
.resultado { padding-top: 30px; }
.res-ok { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.sello { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; flex: 0 0 auto; }
.sello svg { width: 24px; height: 24px; }
.resultado h1 { margin-bottom: 10px; }
.resultado .sub { margin-bottom: 4px; }
.paso-siguiente { background: var(--blanco); border: 1px solid var(--borde); border-left: 4px solid var(--ok); border-radius: var(--radio-m); padding: 14px 16px; margin: 18px 0 0; font-size: 16px; box-shadow: var(--sombra); }
.paso-siguiente p { margin: 4px 0 0; color: var(--texto-2); }
.aviso-comp { font-size: 14px; line-height: 1.5; color: var(--texto); background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio-m); padding: 12px 16px; margin: 22px 0 18px; }
.ofertas { display: grid; gap: 0; }
.of-grupo { font-family: var(--fuente-titulo); font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--texto); margin: 34px 0 4px; }

.tarjeta { display: block; border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; margin: 12px 0; color: inherit; text-decoration: none; background: var(--blanco); box-shadow: var(--sombra); }
.oferta { position: relative; overflow: hidden; margin: 14px 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.oferta:hover { border-color: var(--acento-borde); box-shadow: var(--sombra-alta); transform: translateY(-2px); }
.of-txt { display: block; position: relative; z-index: 1; min-width: 0; }
.of-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.of-tags:empty { display: none; }
.etiqueta { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acento-2); background: var(--acento-suave); border-radius: 999px; padding: 5px 12px; margin: 0; }
.etiqueta.suave { background: var(--fondo-alt); color: var(--texto-2); }
.etiqueta.ok { background: var(--ok-suave); color: var(--ok-2); }
.oferta h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.of-det { display: block; color: var(--texto-2); font-size: 16.5px; line-height: 1.5; margin-top: 6px; }
.of-cta { margin-top: 16px; min-height: 54px; font-size: 18px; }
.of-cta.sec { background: var(--blanco); color: var(--acento); border: 2px solid var(--acento); box-shadow: none; }
.oferta:hover .of-cta.sec { background: var(--acento); color: #fff; }
.oferta:hover .of-cta svg { transform: translateX(3px); }

/* destacada: cinta, foto a todo el ancho, botón lleno */
.oferta.top { border: 2px solid var(--acento); padding: 0; box-shadow: var(--sombra-alta); }
.cinta { display: flex; align-items: center; gap: 8px; padding: 11px 18px; background: var(--acento); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cinta svg { width: 18px; height: 18px; }
.oferta.top .of-img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 74%; background: var(--fondo-alt); }
.oferta.top .of-txt { padding: 18px 18px 20px; }
.oferta.top h2 { font-size: 27px; }
.oferta.top .of-det { color: var(--texto); }

/* resto: mobile = foto arriba que se funde; desde 560 = texto izq + foto der a sangre */
.oferta:not(.top) { padding: 0 18px 18px; }
.oferta:not(.top) .of-foto { position: relative; display: block; height: 150px; margin: 0 -18px 14px; background: var(--fondo-alt); }
.oferta:not(.top) .of-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.oferta:not(.top) .of-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, #fff 100%); }
.vacio-res h2 { margin: 0 0 6px; font-size: 22px; }
.vacio-res p { margin: 0; color: var(--texto-2); }
.nota { font-size: 13px; color: var(--texto-2); }

/* ---------- Legales, baja, 404 ---------- */
.legal { max-width: 42rem; padding-bottom: 8px; }
.legal h1 { font-family: var(--fuente-titulo); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 32px 0 6px; }
.legal h2 { font-size: 20px; margin-top: 26px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--texto); }
.legal .texto { font-size: 17px; line-height: 1.7; }
.legal .texto h2 { font-size: 20px; margin: 30px 0 8px; scroll-margin-top: 16px; }
.legal .texto ul { padding-left: 22px; }
.legal .texto li { margin: 6px 0; }
.actualizado { color: var(--muted); font-size: 14px; }
.indice { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio-m); padding: 12px 16px; margin: 14px 0 6px; }
.indice-t { margin: 0 0 4px; font-weight: 800; font-size: 15px; }
.indice ol { margin: 0; padding-left: 22px; }
.indice a { display: inline-block; padding: 6px 0; font-size: 16px; }

.vacio { text-align: center; padding: 56px 0 24px; }
.vacio .codigo { font-family: var(--fuente-titulo); font-size: 80px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; color: var(--acento); }
.vacio h1 { font-size: 28px; letter-spacing: -.025em; margin: 10px 0; }
.vacio .btn { max-width: 340px; margin-left: auto; margin-right: auto; }

.baja { margin: 32px 0 0; padding: 26px 20px 26px; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra-alta); }
.baja h1 { font-family: var(--fuente-titulo); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; }
.baja p { margin: 0 0 12px; color: var(--texto-2); }
.baja .email-baja { display: block; margin: 4px 0 14px; padding: 12px 14px; background: var(--fondo-alt); border: 1px solid var(--borde); border-radius: var(--radio-s); font-weight: 700; color: var(--texto); overflow-wrap: anywhere; }
.baja .btn-sec { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 16px; border: 2px solid var(--acento); border-radius: var(--radio-m); color: var(--acento-2); font-weight: 800; text-decoration: none; }
.baja .btn-sec:hover { background: var(--acento-suave); }
.baja .sello { margin: 0 0 14px; background: var(--acento); }

/* ---------- Pie ---------- */
.pie { margin-top: 56px; border-top: 1px solid var(--borde); background: var(--blanco); padding: 26px 0 34px; font-size: 14px; color: var(--texto-2); }
.pie nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.pie nav a { color: var(--texto); font-weight: 600; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.pie p { margin: 0 0 10px; }
.aviso { font-size: 13.5px; line-height: 1.5; color: var(--texto); background: var(--fondo-alt); border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .fila { grid-template-columns: 1fr; }
  .top-nota { display: none; }
  .hero h1, .titular { font-size: 32px; }
  .hero .sub { font-size: 17px; margin-bottom: 12px; }
  .chips { gap: 6px 12px; }
  .chips li { font-size: 14px; }
  .quiz { padding: 20px 16px; }
  legend { font-size: 23px; }
  .oferta.top .of-img { height: 170px; }
  .oferta.top h2 { font-size: 24px; }
  .aviso-comp { font-size: 13px; padding: 10px 12px; }
}
/* Mobile: la pregunta tiene que entrar arriba del fold. Hero compacto y sin chips (la misma
   tranquilidad ya va en la línea .tranqui dentro de la card). */
@media (max-width: 699px) {
  .hq-foto { height: 150px; }
  .hq-foto img { object-position: 68% 18%; }
  .hq-col { margin-top: -34px; }
  .hq-txt { margin-bottom: 14px; }
  .hero h1 { font-size: 28px; margin-bottom: 8px; }
  .hero .sub { font-size: 16px; margin-bottom: 0; line-height: 1.4; }
  .hq-txt .chips { display: none; }
  .quiz { padding: 18px 16px; }
  .progreso { margin-bottom: 16px; }
  legend { font-size: 22px; }
}
@media (min-width: 560px) {
  .opciones.muchas { grid-template-columns: 1fr 1fr; }
  .oferta.top .of-img { height: 260px; }
  .oferta.top .of-txt { padding: 22px 26px 26px; }
  .cinta { padding: 12px 26px; }
  .oferta:not(.top) { display: flex; align-items: center; min-height: 220px; padding: 24px 0 24px 26px; }
  .oferta:not(.top) .of-txt { width: 58%; padding-right: 8px; }
  .oferta:not(.top) .of-foto { position: absolute; top: 0; right: 0; bottom: 0; height: auto; width: 50%; margin: 0; }
  .oferta:not(.top) .of-foto::after { background: linear-gradient(90deg, #fff 0, rgba(255,255,255,.88) 16%, rgba(255,255,255,0) 60%); }
  .oferta:not(.top) .of-cta { display: inline-flex; width: auto; min-height: 50px; padding: 0 22px; font-size: 17px; }
}
@media (min-width: 700px) {
  body { font-size: 18px; }
  .hero h1, .titular { font-size: 48px; }
  .hero .sub { font-size: 20px; }
  .hq-foto { height: 360px; }
  .hq-col { margin-top: -70px; }
  .quiz { padding: 30px 32px 30px; }
  legend { font-size: 28px; }
  .resultado { padding-top: 44px; }
  .baja { padding: 32px; }
}
@media (min-width: 1024px) {
  /* desktop: quiz a la izquierda, foto a sangre a la derecha hasta el borde */
  .hq { max-width: 1200px; margin: 0 auto; min-height: 700px; }
  .hq-foto { position: absolute; top: 0; left: 560px; right: calc(50% - 50vw); height: 700px; background: transparent; }
  .hq-foto img { object-position: 72% 30%; }
  .hq-foto::after { background: linear-gradient(90deg, var(--fondo) 0, rgba(255,255,255,0) 30%), linear-gradient(180deg, rgba(255,255,255,0) 72%, var(--fondo) 100%); }
  .hq-col { margin: 0; max-width: 640px; padding: 36px 20px 0 20px; }
  .hero h1 { font-size: 54px; }
  .hq-txt { margin-bottom: 18px; }
  .quiz legend { font-size: 26px; }
  .como { margin-top: 72px; max-width: 1200px; }
  main.main-ancho + .pie .wrap { max-width: 1200px; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .pasos li { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .oferta:hover, .btn:hover svg, .oferta:hover .of-cta svg { transform: none; }
}
