:root {
  --azul: #2e3b9e;
  --azul-claro: #3d9be0;
  --dorado-logo: #fccf83;
  --amarillo: #ffcc73;
  --violeta-barra: #8a36af;
  --texto: #222;
  --suave: #666;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--texto); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--azul); }
.contenedor { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- Barra superior ---------- */
.barra-top {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--violeta-barra); color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 600; padding: 8px 16px; min-height: 58px; text-align: left;
}
.barra-top img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; flex: none; }
.barra-top .flecha { color: var(--amarillo); font-size: 1.4rem; line-height: 1; }
.barra-top:hover span:not(.flecha) { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--azul); }
.site-header .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { color: var(--dorado-logo); text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 1.9rem; letter-spacing: .01em; }
.logo i { text-transform: none; font-weight: 400; font-size: .85em; }

/* ---------- Botón ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--amarillo); color: var(--texto); font: 600 1.15rem var(--sans);
  padding: 14px 40px; border-radius: 100px; box-shadow: 2px 2px 4px rgba(0,0,0,.35);
  transition: transform .15s, background .15s;
}
.btn:hover { background: #ffc254; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-full { width: 100%; }
.btn-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 6px; opacity: .85; }

/* ---------- Hero ---------- */
.hero {
  background: #fff url(img/hero-angeles.jpg) center top / cover no-repeat;
  text-align: center; padding: 120px 0 150px;
}
.hero .contenedor { max-width: 760px; }
.hero-hd { color: var(--azul); text-transform: uppercase; font-weight: 700; line-height: 1; margin: 0 0 18px; font-size: clamp(3.4rem, 10vw, 6.6rem); }
.hero-hd span { display: block; font-size: .5em; margin-bottom: .1em; }
.hero p { font-size: 1.35rem; margin: 0 auto 30px; max-width: 640px; }

/* ---------- Secciones ---------- */
.feature { padding: 70px 0; }
.feature .contenedor { display: flex; gap: 48px; align-items: center; }
.feature .col-texto { flex: 1 1 50%; }
.feature .col-img, .feature .col-vacia { flex: 1 1 50%; }
.feature-hd { color: var(--azul); font-size: clamp(1.9rem, 4.2vw, 2.45rem); font-weight: 600; line-height: 1.15; margin: 0 0 6px; }
.feature-sub { color: var(--azul-claro); font-size: 1.35rem; margin: 0 0 24px; }
.feature p { margin: 0 0 1.1em; }
.cursiva p { font-style: italic; }
.feature .btn { margin-top: 10px; }

.bienvenida { background: linear-gradient(#fff 70%, #fdf2f8); }
.bienvenida .col-texto { max-width: 720px; margin: 0 auto; }

.angel-guardian {
  background: #fdf3fa url(img/angel-guardian.jpg) left center / cover no-repeat;
  padding: 110px 0;
}

.beneficios { padding: 90px 0; }
ul.check { list-style: none; padding: 0; margin: 0 0 24px; }
ul.check li { position: relative; padding-left: 34px; margin: 0 0 12px; }
ul.check li::before { content: "✔"; position: absolute; left: 4px; top: 0; color: var(--azul-claro); font-size: 1.1rem; }
.grafico {
  display: flex; align-items: flex-end; gap: 4%; height: 300px; padding: 30px 30px 0;
  background: #fff url(img/hero-angeles.jpg) center / cover; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(46,59,158,.18); border: 10px solid #222;
}
.grafico span { flex: 1; height: var(--h); background: var(--c); border-radius: 4px 4px 0 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

.como-funciona { background: #dfeafb url(img/nubes.jpg) center / cover no-repeat; padding: 90px 0 130px; }
.como-funciona .col-img { text-align: center; }
.alas { width: 85%; }
.chevron { width: 100px; display: block; margin: 30px auto 0; }

/* ---------- Cuestionario ---------- */
.division { height: 70px; margin-top: -70px; position: relative; background: url(img/division.png) center bottom / 100% 100% no-repeat; z-index: 1; }
.test {
  color: #fff; padding: 70px 0 80px; scroll-margin-top: 0;
  background: linear-gradient(-45deg, #b75ba5, #8665ab, #1487ca, #14ae84);
  background-size: 400% 400%; animation: degrade 18s ease infinite;
}
@keyframes degrade { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.test .contenedor { max-width: 1140px; }
.partes { display: flex; list-style: none; margin: 0 auto 50px; padding: 4px; max-width: 1110px; background: rgba(255,255,255,.25); border-radius: 100px; }
.partes li { flex: 1; text-align: center; font-weight: 600; padding: 10px 4px; border-radius: 100px; color: rgba(255,255,255,.6); font-size: 1.05rem; }
.partes li.actual { background: rgba(255,255,255,.75); color: #555; }
.partes li.hecha { color: #fff; }
.consigna { text-align: center; font-size: 1.5rem; line-height: 1.3; margin: 0 auto 44px; max-width: 820px; }
.consigna b { font-weight: 600; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; max-width: 1110px; margin: 0 auto; }
.opcion {
  position: relative; text-align: left; font: 600 1.25rem var(--sans); color: var(--texto);
  background: #fff; border: 0; padding: 16px 20px 16px 50px; min-height: 64px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: background .12s, transform .12s;
}
.opcion::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #dde1e7; }
.opcion:hover { background: #f4f2fb; }
.opcion.elegida { background: #fff8e6; }
.opcion.elegida::before { background: var(--azul); box-shadow: inset 0 0 0 4px #dde1e7; }
.opciones .opcion:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
.contador { text-align: center; margin: 30px 0 0; font-size: .95rem; opacity: .9; }

/* ---------- Resultado ---------- */
.resultado-card { max-width: 760px; margin: 0 auto; background: #fff; color: var(--texto); border-radius: 18px; padding: 34px 26px 24px; text-align: center; box-shadow: 0 16px 50px rgba(0,0,0,.2); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 600; color: var(--azul-claro); margin: 0 0 10px; }
.retrato {
  width: 230px; height: 230px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  border: 5px solid #fff; box-shadow: 0 0 0 3px var(--amarillo), 0 12px 40px rgba(46,59,158,.25);
  display: grid; place-items: center; font-size: 5rem; font-weight: 700; color: #fff;
}
.retrato img { width: 100%; height: 100%; object-fit: cover; }
#res-nombre { color: var(--azul); font-size: clamp(2.1rem, 7vw, 3rem); text-transform: uppercase; line-height: 1.05; margin: 0 0 4px; }
.rayo { color: var(--azul-claro); font-weight: 600; font-size: 1.15rem; margin: 0 0 16px; }
.res-texto { max-width: 580px; margin: 0 auto 28px; font-size: 1.12rem; }
.oferta, .gracias { background: #fdf6e7; border: 1px solid #f3dfae; border-radius: 14px; padding: 26px 22px; text-align: left; }
.oferta h3, .gracias h3 { color: var(--azul); text-align: center; font-size: 1.8rem; line-height: 1.15; margin: 0 0 8px; }
.oferta h3 span { color: #e09a1a; }
.oferta > p, .gracias p { text-align: center; margin: 0 0 18px; }
.gracias { text-align: center; }
form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 14px; color: var(--azul); }
form label small { font-weight: 400; color: var(--suave); }
form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; font: 400 1.1rem var(--sans); color: var(--texto); padding: 12px 14px; border: 1.5px solid #d9cfb6; border-radius: 8px; background: #fff; }
form input:focus { outline: 3px solid rgba(255,204,115,.6); border-color: #e0b04f; }
.check-label { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; color: var(--texto) !important; }
.check-label input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--azul); }
.hp { position: absolute; left: -9999px; }
.error { color: #b3261e; font-size: .95rem; min-height: 1.2em; margin: 0 0 6px; }
#reiniciar { color: var(--suave); margin-top: 16px; }

.pie { text-align: center; font-size: .85rem; color: #888; padding: 14px 16px; background: #fff; }

/* ---------- Política ---------- */
.legal { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.legal h1 { color: var(--azul); font-size: 2.2rem; line-height: 1.15; }
.legal h2 { color: var(--azul); font-size: 1.3rem; margin-top: 1.4em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature .contenedor { flex-direction: column; gap: 32px; }
  .feature { padding: 56px 0; }
  .angel-guardian { background-position: 25% center; padding: 0 0 56px; }
  .angel-guardian .col-vacia { width: 100%; min-height: 300px; }
  .angel-guardian .col-texto { background: rgba(255,255,255,.82); padding: 22px 18px; border-radius: 12px; }
  .como-funciona .contenedor { flex-direction: column-reverse; }
  .alas { width: 70%; }
  .chevron { display: none; }
  .grafico { height: 220px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .barra-top { font-size: .85rem; }
  .logo { font-size: 1.35rem; }
  .site-header .contenedor { min-height: 60px; }
  .hero { padding: 70px 0 90px; background-size: 260% auto; background-position: center top; }
  .hero p { font-size: 1.15rem; background: rgba(255,255,255,.6); border-radius: 10px; padding: 4px 6px; }
  .opciones { grid-template-columns: 1fr; gap: 10px; }
  .opciones .opcion:last-child:nth-child(odd) { width: 100%; }
  .opcion { font-size: 1.1rem; min-height: 56px; }
  .partes li { font-size: .85rem; padding: 8px 2px; }
  .consigna { font-size: 1.25rem; margin-bottom: 28px; }
  .test { padding: 50px 0 60px; }
  .resultado-card { padding: 26px 16px 18px; }
  .retrato { width: 190px; height: 190px; }
}
