@font-face { font-family: Alineado; src: url('../fonts/regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Alineado; src: url('../fonts/bold.ttf') format('truetype'); font-weight: 700 900; font-display: swap; }

:root {
  --azul: #092653;
  --azul2: #123e7a;
  --rojo: #c51635;
  --dorado: #d2a62b;
  --blanco: #fff;
  --fondo: #f4f6fa;
  --tinta: #10233f;
  --gris: #5f6f86;
  --linea: #dce3ed;
  --verde: #16804b;
  --sombra: 0 14px 42px rgba(9, 38, 83, .09);
  --radio: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--tinta); background: var(--fondo); font-family: Alineado, system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.bot-field { position:absolute !important; left:-10000px !important; width:1px; height:1px; overflow:hidden; }
.question-category { margin-bottom:8px; color:var(--rojo); font-size:.74rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.public-social { display:flex; justify-content:center; gap:14px; margin-top:8px; }
.public-social a { font-weight:800; text-decoration:none; }

.contenedor { width: min(100% - 36px, 1040px); margin-inline: auto; }
.topbar { min-height: 64px; display: flex; align-items: center; background: var(--azul); color: #fff; position: relative; z-index: 10; }
.topbar .contenedor { display: flex; align-items: center; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.08rem; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.marca span { color: #fff; }
.brand-photo { width: 40px; height: 40px; object-fit: cover; object-position: center top; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; }
.cinta { height: 4px; background: linear-gradient(90deg, var(--azul) 0 42%, #fff 42% 58%, var(--rojo) 58%); }

.hero { padding: clamp(54px, 8vw, 92px) 0 88px; background:
  radial-gradient(circle at 82% 18%, rgba(197,22,53,.08), transparent 32%),
  linear-gradient(135deg,#fff 0%,#fff 58%,#f4f6fa 58%,#f4f6fa 100%);
  overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.hero-copy { max-width: 620px; }
.hero-kicker { display:inline-flex; align-items:center; gap:8px; margin-bottom:18px; padding:8px 12px; color:var(--rojo); background:#fff1f3; border:1px solid #ffd3db; border-radius:999px; font-size:.78rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.hero h1 { margin: 0; max-width: 650px; color: var(--azul); font-size: clamp(2.45rem, 5.8vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 em { color: var(--rojo); font-style: normal; }
.hero .sub { max-width: 580px; margin: 24px 0 0; color: var(--gris); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero .stat { margin: 16px 0 0; color: var(--gris); font-size: .85rem; }
.hero-visual { min-height: 320px; display: grid; place-items: center; }
.candidate-card { width:min(100%,370px); padding:18px; background:#fff; border:1px solid var(--linea); border-radius:30px; box-shadow:0 24px 70px rgba(9,38,83,.14); }
.candidate-portrait { width: min(100%, 330px); aspect-ratio: 4 / 5; position: relative; overflow: hidden; border-radius: 42% 42% 18px 18px; background: #edf1f7; box-shadow: 20px 22px 0 rgba(197,22,53,.08); }
.candidate-portrait::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg,var(--azul) 0 42%,#fff 42% 58%,var(--rojo) 58%); }
.candidate-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.candidate-info { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; padding:14px 4px 2px; }
.candidate-info span { color:var(--gris); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.candidate-info strong { color:var(--azul); font-size:1.05rem; text-align:right; }
.rd-map { width: min(100%, 350px); overflow: visible; filter: drop-shadow(15px 18px 0 rgba(197, 22, 53, .08)); }
.rd-outline { fill: #fff; stroke: var(--azul); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rd-divider { fill: none; stroke: var(--linea); stroke-width: 3; stroke-dasharray: 5 7; }
.rd-marker path { fill: #fff; stroke: var(--azul); stroke-width: 5; }
.rd-marker circle { fill: #fff; stroke: var(--rojo); stroke-width: 5; }

.quick-panel { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:-42px; position:relative; z-index:3; }
.quick-card { padding:20px; background:#fff; border:1px solid var(--linea); border-radius:18px; box-shadow:var(--sombra); }
.quick-card strong { display:block; color:var(--azul); font-size:clamp(1.4rem,3vw,2.1rem); line-height:1; }
.quick-card span { display:block; margin-top:7px; color:var(--gris); font-size:.82rem; font-weight:800; }
.como-funciona { padding: 68px 0 80px; }
.encuestas-home { padding-top: 0; }
.titulo { margin: 0; color: var(--azul); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; }
.section-head p { max-width:420px; margin:0; color:var(--gris); }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid var(--linea); }
.paso { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 28px 30px 0 0; }
.paso + .paso { padding-left: 30px; border-left: 1px solid var(--linea); }
.paso .n { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--azul); border-radius: 50%; color: var(--azul); font-weight: 800; }
.paso h3 { margin: 4px 0 7px; color: var(--azul); font-size: 1rem; }
.paso p { margin: 0; color: var(--gris); font-size: .9rem; }
.feature-band { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; padding-bottom:70px; }
.feature-band article { padding:24px; background:#fff; border:1px solid var(--linea); border-radius:20px; box-shadow:var(--sombra); }
.feature-icon { width:42px; height:42px; display:grid; place-items:center; margin-bottom:16px; color:#fff; background:var(--azul); border-radius:14px; font-weight:900; }
.feature-band h3 { margin:0 0 8px; color:var(--azul); }
.feature-band p { margin:0; color:var(--gris); font-size:.92rem; }
.final-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:72px; padding:30px; color:#fff; background:var(--azul); border-radius:24px; box-shadow:0 24px 60px rgba(9,38,83,.2); }
.final-cta h2 { margin:0 0 6px; font-size:clamp(1.4rem,3vw,2.1rem); }
.final-cta p { margin:0; color:#cbd7e8; }

.card { padding: clamp(24px, 4vw, 42px); background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); }
.test-shell { max-width: 760px; padding: 48px 0 70px; }
.paso-indicador { margin-bottom: 10px; color: var(--gris); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.intro-form, .section-copy { margin: 10px 0 26px; color: var(--gris); }
.campo { margin-bottom: 18px; }
.campo label { display: block; margin-bottom: 7px; color: var(--tinta); font-size: .9rem; font-weight: 700; }
.select-nativo { width: 100%; min-height: 52px; padding: 12px 46px 12px 15px; border: 1.5px solid var(--linea); border-radius: 12px; color: var(--tinta); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f6f86' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; }
.select-nativo:focus { outline: 3px solid rgba(9, 38, 83, .12); border-color: var(--azul); }
.select-nativo:disabled { color: #8b98aa; background-color: #eef1f5; cursor: not-allowed; }
.ubicacion-info { margin: 24px 0 0; padding: 14px 16px; color: var(--gris); background: #f7f9fc; border: 1px solid var(--linea); border-radius: 12px; font-size: .85rem; }
.alert-err { margin-top: 14px; padding: 12px 14px; color: #991b1b; background: #fff1f3; border: 1px solid #fecdd3; border-radius: 10px; font-size: .88rem; }

.btn { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1.5px solid transparent; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(9, 38, 83, .14); }
.btn:focus-visible { outline: 3px solid rgba(210, 166, 43, .45); outline-offset: 2px; }
.btn:disabled { color: #7d8998; background: #dfe4eb; cursor: not-allowed; }
.btn-azul { background: var(--azul); }
.btn-rojo { background: var(--rojo); }
.btn-dorado { color: #1d2530; background: var(--dorado); }
.btn-wa { background: #16804b; }
.btn-ghost { color: var(--azul); background: #fff; border-color: var(--azul); }
.btn-link { min-height: 42px; color: var(--azul); background: transparent; border-color: transparent; }
.btn-inline { width: auto; min-width: 220px; }
.cta-wrap { margin-top: 24px; }

#paso-test { padding-top: 30px; }
.progreso { height: 7px; margin-bottom: 10px; overflow: hidden; background: #e4e8ef; border-radius: 99px; }
.progreso .barra { height: 100%; width: 0; background: var(--azul); border-radius: inherit; transition: width .25s ease; }
.progreso-txt { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; color: var(--gris); font-size: .85rem; }
.pregunta { display: none; }
.pregunta.activa { display: block; animation: aparecer .2s ease; }
.pregunta h3 { min-height: 76px; margin: 0 0 28px; color: var(--azul); font-size: clamp(1.35rem, 3.7vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.yn-wrap { display: grid; gap: 12px; }
.yn-btn { min-height: 74px; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px 20px; border: 2px solid var(--linea); border-radius: 13px; background: #fff; cursor: pointer; transition: border .15s, background .15s; }
.yn-btn input { position: absolute; opacity: 0; }
.yn-icono { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #b9c3d1; border-radius: 50%; color: transparent; font-size: 0; }
.yn-label { color: var(--azul); font-size: 1.12rem; font-weight: 800; }
.yn-btn.elegido-si, .yn-btn.elegido-no { border-color: var(--azul); background: #f2f6fc; }
.yn-btn.elegido-si .yn-icono, .yn-btn.elegido-no .yn-icono { border: 7px solid var(--azul); }
.nav-test { display: flex; gap: 12px; margin-top: 28px; }
.nav-test .btn { flex: 1; }
@keyframes aparecer { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.result-shell { display: grid; gap: 24px; padding: 48px 0 72px; }
.result-summary h1, .positions-card h2, .share-card h2 { margin: 0; color: var(--azul); font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; }
.result-grid { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: clamp(28px, 6vw, 70px); margin-top: 28px; }
.aro { --p: 0; width: 220px; aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--color-aro, var(--azul)) calc(var(--p) * 1%), var(--rojo) 0); }
.aro::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #fff; }
.aro.alto { --color-aro: var(--azul); }
.aro.medio { --color-aro: #19569a; }
.aro.bajo { --color-aro: var(--dorado); }
.aro.muy-bajo { --color-aro: var(--rojo); }
.aro .val { position: relative; text-align: center; }
.aro .val strong { display: block; color: var(--azul); font-size: 3rem; line-height: 1; }
.aro .val small { color: var(--dorado); font-weight: 800; }
.result-copy h2 { margin: 0 0 9px; color: var(--azul); font-size: 1.45rem; }
.result-copy p { margin: 0; color: var(--gris); }
.result-location { margin-top: 10px !important; font-size: .86rem; }
.result-legend { display: grid; gap: 8px; margin-top: 20px; }
.result-legend span { display: flex; align-items: center; gap: 9px; color: var(--gris); }
.result-legend strong { margin-left: auto; color: var(--tinta); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-si { background: var(--azul); }
.dot-no { background: var(--rojo); }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--linea); overflow-x: auto; }
.tab { padding: 12px 14px; border: 0; border-bottom: 3px solid transparent; color: var(--gris); background: transparent; font-weight: 800; white-space: nowrap; cursor: pointer; }
.tab.activo { color: var(--rojo); border-bottom-color: var(--rojo); }
.tab-panel { display: none; }
.tab-panel.activo { display: block; }
.lista-preguntas { display: grid; gap: 9px; }
.preg-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.preg-num { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--azul); font-size: .78rem; font-weight: 800; }
.preg-item.no .preg-num { background: var(--rojo); }
.preg-texto { color: var(--tinta); font-size: .92rem; line-height: 1.45; }
.preg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 3px 9px; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.tag-tu-si, .tag-fer-si { color: var(--azul); background: #e8f0fb; }
.tag-tu-no, .tag-fer-no { color: #9f1239; background: #ffe4e8; }
.vacio { padding: 26px; color: var(--gris); text-align: center; }
.category-results { display:grid; gap:13px; margin-top:22px; }
.category-results > div { display:grid; grid-template-columns:minmax(120px,220px) 1fr 60px; align-items:center; gap:14px; }
.category-results span { color:var(--tinta); font-weight:800; }
.category-results strong { color:var(--azul); text-align:right; }
.category-track { height:9px; overflow:hidden; background:#e7ebf2; border-radius:20px; }
.category-track i { display:block; height:100%; background:var(--rojo); }

.share-card { display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: clamp(30px, 7vw, 80px); }
.share-copy > p { margin: 12px 0 20px; color: var(--gris); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.social-links a { padding: 8px 12px; color: var(--azul); border: 1px solid var(--linea); border-radius: 9px; text-decoration: none; font-size: .82rem; font-weight: 800; }
.social-links a:hover { border-color: var(--azul); }
.story-frame { width: 240px; padding: 7px; justify-self: center; border-radius: 16px; background: var(--azul); box-shadow: 0 18px 35px rgba(9, 38, 83, .2); }
.story-frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 11px; }

.eyebrow { color: var(--rojo); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.nota { color: var(--gris); font-size: .92rem; }
.text-center { text-align: center; }
.mt { margin-top: 12px; }
.mt-lg { margin-top: 24px; }

footer { padding: 26px 0; color: #aab8cb; background: var(--azul); text-align: center; font-size: .82rem; }
footer p { margin: 0; }
footer a { color: #fff; }

@media (max-width: 760px) {
  .topbar { min-height: 58px; }
  .hero { padding: 48px 0 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: grid; min-height: 0; order: -1; margin-bottom: 8px; }
  .candidate-card { width:min(82vw,280px); padding:12px; border-radius:24px; }
  .candidate-portrait { width: min(70vw, 230px); border-radius: 42% 42% 16px 16px; box-shadow: 12px 14px 0 rgba(197,22,53,.08); }
  .candidate-info { display:block; text-align:center; padding-top:12px; }
  .candidate-info strong { display:block; margin-top:2px; text-align:center; }
  .rd-map { width: min(70vw, 240px); }
  .hero-copy { text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .cta-wrap { display: flex; justify-content: center; }
  .quick-panel, .feature-band { grid-template-columns:1fr; }
  .quick-panel { margin-top:-28px; }
  .section-head { display:block; }
  .section-head p { margin-top:10px; }
  .pasos { grid-template-columns: 1fr; }
  .paso, .paso + .paso { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--linea); }
  .test-shell, .result-shell { padding-top: 28px; }
  .result-grid { grid-template-columns: 1fr; text-align: center; }
  .aro { margin-inline: auto; }
  .result-legend { max-width: 300px; margin-inline: auto; margin-top: 20px; text-align: left; }
  .share-card { grid-template-columns: 1fr; }
  .story-frame { order: -1; width: min(230px, 75vw); }
  .final-cta { display:block; text-align:center; }
  .final-cta .btn { margin-top:18px; }
}

@media (max-width: 480px) {
  .contenedor { width: min(100% - 24px, 1040px); }
  .card { padding: 22px 18px; border-radius: 15px; }
  .hero h1 { font-size: 2.65rem; }
  .btn-inline { width: 100%; }
  .progreso-txt { font-size: .78rem; }
  .pregunta h3 { min-height: 100px; }
  .nav-test { flex-direction: column-reverse; }
  .social-links a { flex: 1; text-align: center; }
  .category-results > div { grid-template-columns:1fr 52px; }
  .category-track { grid-column:1/-1; grid-row:2; }
}

/* Formularios avanzados */
.scale-options { display:grid; grid-template-columns:repeat(10,1fr); gap:7px; margin:22px 0; }
.scale-options label input { position:absolute; opacity:0; }
.scale-options span { min-height:46px; display:grid; place-items:center; border:2px solid #dce3ed; border-radius:10px; font-weight:900; cursor:pointer; }
.scale-options input:checked + span { color:#fff; background:var(--azul); border-color:var(--azul); }
.choice-list { display:grid; gap:9px; margin:20px 0; padding:14px; color:var(--tinta); background:#f7f9fc; border:1px solid #dce3ed; border-radius:12px; }
.choice-list label { display:flex; gap:9px; align-items:center; padding:7px; }
.choice-list input { width:19px; height:19px; }
@media(max-width:600px){.scale-options{grid-template-columns:repeat(5,1fr)}}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
