/* Research SMA · hoja de estilos del sitio */
:root {
  --navy: #064d79;
  --navy-2: #073f67;
  --blue: #0b72a8;
  --blue-2: #0886b9;
  --cyan: #21a9bd;
  --cyan-pale: #c9f2f6;
  --cyan-soft: #effbfc;
  --ink: #16324a;
  --ink-2: #225a76;
  --muted: #5f7787;
  --line: #d8e3e8;
  --paper: #ffffff;
  --backdrop: #eef5f8;
  --amber: #c9791a;
  --amber-soft: #fff5e3;
  --amber-line: #f2d7a6;
  --danger: #b42318;
  --success: #137a57;
  --shadow: 0 18px 48px rgba(10, 58, 86, .11);
  --shadow-sm: 0 9px 25px rgba(18, 72, 101, .07);
  --radius: 20px;
  /* gráficos */
  --s1: #0b72a8;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #4a3aa7;
  --pos-2: #1c5cab;
  --pos-1: #6da7ec;
  --neu: #cfcec7;
  --neg-1: #ec835a;
  --neg-2: #c9302c;
  --ns: #e8e7e1;
  --track: #e6eef3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 0 0, rgba(18, 133, 185, .12), transparent 28rem), var(--backdrop);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(19, 143, 194, .45); outline-offset: 3px; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 24px, 800px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(5, 78, 123, .12); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; padding: 7px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--blue-2)); box-shadow: 0 6px 14px rgba(7, 84, 128, .22); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-word { display: block; height: 40px; width: auto; }
.hero-logo { display: block; width: min(210px, 62%); height: auto; margin: 0 auto 16px; }
.footer-logo { display: block; height: 82px; width: auto; margin: 0 0 12px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.site-nav a { color: var(--ink-2); font-size: .9rem; font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--cyan); }
.site-nav a.cta { padding: 8px 14px; border-radius: 9px; color: white; background: linear-gradient(135deg, var(--navy), var(--blue-2)); border: 0; }
.site-nav a.cta:hover { filter: brightness(1.06); }

/* Portada */
.hero { position: relative; overflow: hidden; margin: 28px 0 22px; padding: clamp(28px, 6vw, 56px); border-radius: 26px; color: white; background: linear-gradient(135deg, #053f69, #087bb0 68%, #21a9bd); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 242, 246, .28), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 10px; border-radius: 7px; color: var(--navy-2); background: white; font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.hero .lema { margin: 18px 0 0; max-width: 620px; color: rgba(255, 255, 255, .94); font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.5; }
.hero .lema strong { color: var(--cyan-pale); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 10px; font-weight: 800; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--navy), var(--blue-2)); box-shadow: 0 8px 18px rgba(7, 84, 128, .2); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { cursor: wait; opacity: .6; }
.btn-secondary { color: var(--navy); background: #eaf4f7; }
.btn-secondary:hover { background: #dcedf3; }
.hero .btn-light, .survey-hero .btn-light { color: var(--navy-2); background: white; }
.hero .btn-ghost, .survey-hero .btn-ghost { color: white; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover, .survey-hero .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-panel { position: relative; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.hero-panel h2 { margin: 0 0 12px; font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-pale); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-stat { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.hero-stat .value { display: block; font-size: 1.7rem; font-weight: 850; letter-spacing: -.03em; line-height: 1.05; }
.hero-stat .label { display: block; margin-top: 4px; color: rgba(255, 255, 255, .85); font-size: .78rem; font-weight: 600; }
.hero-note { margin: 14px 0 0; color: rgba(255, 255, 255, .8); font-size: .78rem; }

/* Secciones */
.section { margin: 44px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; color: var(--navy-2); font-size: clamp(1.5rem, 3.4vw, 2.05rem); line-height: 1.12; letter-spacing: -.03em; }
.section-head p { margin: 6px 0 0; max-width: 680px; color: var(--muted); font-size: .96rem; }
.section-kicker { margin: 0 0 4px; color: var(--blue); font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.updated { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* Tarjetas de encuestas */
.survey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.survey-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(7, 79, 125, .1); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.survey-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(11, 114, 168, .35); }
.survey-card .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--cyan-soft); border: 1px solid #cfe9ef; color: var(--navy); }
.survey-card .icon svg { width: 28px; height: 28px; }
.survey-card .kicker { margin: 0; color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.survey-card h3 { margin: 0; color: var(--navy-2); font-size: 1.28rem; line-height: 1.2; letter-spacing: -.02em; }
.survey-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.survey-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .8rem; font-weight: 650; }
.survey-card .highlight { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f3f9fb; border: 1px solid #d9ebf1; }
.survey-card .highlight .big { font-size: 1.5rem; font-weight: 850; color: var(--navy); letter-spacing: -.03em; }
.survey-card .highlight .txt { color: var(--ink-2); font-size: .8rem; line-height: 1.3; }
.survey-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 800; font-size: .92rem; }
.survey-card .go svg { width: 18px; height: 18px; transition: transform .15s ease; }
.survey-card:hover .go svg { transform: translateX(3px); }
.survey-card .new-badge { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: #c9791a; color: #fff; font-size: .72rem; font-weight: 850; letter-spacing: .08em; box-shadow: 0 4px 12px rgba(201, 121, 26, .35); animation: new-badge-pulse 2.2s ease-in-out infinite; }
@keyframes new-badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .survey-card .new-badge { animation: none; } }

/* Tiles y gráficos */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid rgba(7, 79, 125, .1); box-shadow: var(--shadow-sm); }
.tile .value { display: block; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }
.tile .label { display: block; margin-top: 6px; color: var(--ink-2); font-size: .86rem; line-height: 1.35; }
.tile .source { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 18px; align-items: start; }
.chart-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(7, 79, 125, .1); box-shadow: var(--shadow-sm); min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card h3 { margin: 0; color: var(--navy-2); font-size: 1.08rem; line-height: 1.3; letter-spacing: -.015em; }
.chart-card .sub { margin: -4px 0 4px; color: var(--muted); font-size: .84rem; }
.chart-card .base { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }
.chart-card .link { margin-top: 4px; font-size: .84rem; font-weight: 700; }
.chart { min-width: 0; }
/* barras horizontales */
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 36%) 1fr 44px; gap: 10px; align-items: center; font-size: .86rem; }
.bar-row .lbl { color: var(--ink-2); line-height: 1.25; }
.bar-row .track { position: relative; height: 18px; border-radius: 0 4px 4px 0; background: var(--track); }
.bar-row .fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; background: var(--s1); transition: width .5s ease; }
.bar-row .val { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
/* apiladas / divergentes */
.stack-rows { display: grid; gap: 10px; }
.stack-row { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 10px; align-items: center; font-size: .86rem; }
.stack-row.single { grid-template-columns: 1fr; }
.stack-row.single .stack { height: 32px; }
.stack-row .lbl { color: var(--ink-2); line-height: 1.25; }
.stack { display: flex; gap: 2px; height: 26px; border-radius: 6px; overflow: hidden; }
.seg { position: relative; display: grid; place-items: center; min-width: 0; height: 100%; color: white; font-size: .74rem; font-weight: 750; }
.seg.ink { color: var(--ink); }
.seg span { padding: 0 4px; white-space: nowrap; }
.seg.hide span { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .78rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(11, 11, 11, .08); }
/* anillo */
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.donut { position: relative; width: 170px; height: 170px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .center .v { color: var(--navy); font-size: 1.9rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.donut .center .l { margin-top: 4px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.donut-legend { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: .84rem; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; color: var(--ink-2); }
.donut-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.donut-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* tabla de datos */
.data-table { margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
.data-table summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.data-table table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table td.n, .data-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
/* tooltip */
.tip { position: fixed; z-index: 60; max-width: 260px; padding: 8px 11px; border-radius: 8px; background: #163f55; color: white; font-size: .78rem; line-height: 1.35; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.tip.show { opacity: 1; }

/* Sorteo */
.sorteo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 26px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: linear-gradient(135deg, #fffaf0, #fff3dc); border: 1px solid var(--amber-line); box-shadow: var(--shadow-sm); }
.sorteo h2 { margin: 0 0 8px; color: #7a4a0c; font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -.03em; line-height: 1.12; }
.sorteo p { margin: 0 0 12px; color: #5d4a2c; }
.sorteo .prize { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: white; border: 1px solid var(--amber-line); }
.sorteo .prize .amount { color: var(--amber); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.sorteo .prize .detail { color: #5d4a2c; font-size: .86rem; line-height: 1.35; }
.sorteo ul { margin: 12px 0 0; padding-left: 18px; color: #5d4a2c; font-size: .9rem; }
.sorteo li + li { margin-top: 4px; }
.sorteo .next { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 999px; background: white; border: 1px solid var(--amber-line); color: #7a4a0c; font-size: .82rem; font-weight: 750; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(7, 79, 125, .1); box-shadow: var(--shadow-sm); }
.step .num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--navy), var(--blue-2)); font-weight: 850; }
.step h3 { margin: 0 0 6px; color: var(--navy-2); font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.principle { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--cyan-soft); border: 1px solid #cfe9ef; color: var(--ink-2); font-size: .88rem; }
.principle svg { flex: 0 0 20px; margin-top: 2px; color: var(--navy); }

/* Pie */
.site-footer { margin-top: 60px; padding: 34px 0 40px; border-top: 1px solid rgba(5, 78, 123, .12); background: white; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; color: var(--muted); font-size: .86rem; }
.footer-inner h4 { margin: 0 0 8px; color: var(--navy-2); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-inner a { color: var(--blue); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner ul { margin: 0; padding: 0; list-style: none; }
.footer-inner li + li { margin-top: 4px; }
.footer-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

/* Página de encuesta */
.survey-hero { position: relative; overflow: hidden; margin: 24px 0 22px; padding: clamp(24px, 5vw, 44px); border-radius: 24px; color: white; background: linear-gradient(135deg, #053f69, #087bb0 68%, #21a9bd); box-shadow: var(--shadow); }
.survey-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 242, 246, .28), transparent 70%); }
.survey-hero .head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.survey-hero .icon { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.survey-hero .icon svg { width: 34px; height: 34px; }
.survey-hero h1 { position: relative; z-index: 1; margin: 0; max-width: 620px; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.survey-hero p { position: relative; z-index: 1; margin: 14px 0 0; max-width: 620px; color: rgba(255, 255, 255, .92); font-size: .98rem; }
.survey-hero .pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.survey-hero .pill { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; font-weight: 700; }
.survey-hero .actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.crumbs { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 700; }
.results { margin: 0 0 30px; }
.results .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }

.form-intro { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #bddde8; border-radius: 13px; background: #f7fdff; color: #315f74; font-size: .9rem; }
.form-intro svg { flex: 0 0 20px; margin-top: 2px; }
.progress-bar { position: sticky; top: 63px; z-index: 20; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.progress-copy { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 6px; color: var(--navy); font-size: .8rem; font-weight: 750; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #dce9ef; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #28b7cb); transition: width .25s ease; }
.step-status { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }

.section-card { margin: 16px 0; padding: clamp(20px, 5vw, 34px); border: 1px solid rgba(7, 79, 125, .1); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.section-title { margin: 0 0 6px; color: var(--navy-2); font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.section-description { margin: 0 0 26px; color: var(--muted); font-size: .92rem; }
fieldset.question { min-width: 0; margin: 0; padding: 0; border: 0; scroll-margin-top: 130px; }
fieldset.question + fieldset.question { margin-top: 40px; }
fieldset.question.invalid { margin-inline: -10px; padding: 10px; border: 2px solid rgba(180, 35, 24, .34); border-radius: 14px; background: #fff8f7; }
legend { width: 100%; margin: 0 0 15px; padding: 0; color: var(--navy); font-size: clamp(1.08rem, 3.6vw, 1.32rem); font-weight: 790; line-height: 1.32; letter-spacing: -.018em; }
.required-mark { color: var(--danger); }
.optional { color: var(--muted); font-size: .82rem; font-weight: 500; }
.hint { display: block; margin: -8px 0 14px; color: var(--muted); font-size: .84rem; }
.hint.strong { color: var(--blue); font-weight: 750; }
.options { display: grid; gap: 7px; }
.options.cols { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.form-column { max-width: 800px; margin-inline: auto; }
.option { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; min-height: 50px; padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.option:hover { background: var(--cyan-soft); }
.option:has(input:focus-visible) { outline: 3px solid rgba(19, 143, 194, .28); outline-offset: 2px; }
.option:has(input:checked) { border-color: var(--navy); background: var(--cyan-pale); color: var(--navy-2); font-weight: 740; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.radio-mark { display: grid; width: 26px; height: 26px; margin-top: 1px; place-items: center; border: 1.8px solid var(--navy); border-radius: 50%; background: white; }
.option input[type="checkbox"] + .radio-mark { border-radius: 7px; }
.option input:checked + .radio-mark { border-color: var(--navy-2); background: var(--navy-2); }
.option input:checked + .radio-mark::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-bottom: 2px solid white; border-left: 2px solid white; transform: rotate(-45deg); }
.option-text { padding-top: 1px; }
.text-input { width: 100%; min-height: 50px; margin-top: 10px; padding: 11px 13px; border: 1px solid #81a5b5; border-radius: 8px; color: var(--navy-2); background: white; outline: none; }
.text-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 141, 190, .15); }
.text-input[disabled] { background: #edf2f4; opacity: .65; }
textarea.text-input { min-height: 130px; resize: vertical; }
.matrix { display: grid; gap: 12px; }
.matrix-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 8px; background: #fbfdfe; }
.matrix-row:has(input:checked) { border-color: #9fcbdb; }
.matrix-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--navy-2); font-size: .96rem; font-weight: 800; }
.matrix-title .tag { font-size: .72rem; font-weight: 700; color: var(--muted); background: #eef3f5; padding: 3px 8px; border-radius: 6px; }
.pills-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-opt { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid #c3d8e2; border-radius: 999px; background: white; font-size: .86rem; cursor: pointer; }
.pill-opt:hover { background: var(--cyan-soft); }
.pill-opt:has(input:focus-visible) { outline: 3px solid rgba(19, 143, 194, .28); outline-offset: 2px; }
.pill-opt:has(input:checked) { background: var(--navy); border-color: var(--navy); color: white; font-weight: 700; }
.pill-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-block { margin-top: 8px; padding: 22px; border-radius: 16px; background: var(--amber-soft); border: 1px solid var(--amber-line); }
.contact-block .section-kicker { color: var(--amber); }
.contact-block .section-title { color: #7a4a0c; font-size: 1.35rem; }
.contact-block .section-description { margin-bottom: 8px; color: #5d4a2c; }
.contact-block .text-input { border-color: #d9b77a; }
.privacy-copy { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.form-error { display: none; margin: 20px 0 0; padding: 13px 15px; border-left: 4px solid var(--danger); border-radius: 8px; color: #7b241c; background: #fff2f0; font-weight: 650; }
.form-error.show { display: block; }
.step-navigation { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.step-navigation .btn-primary { flex: 1; }
.save-progress { width: 100%; margin-top: 10px; }
.success-card { display: none; padding: clamp(28px, 8vw, 56px); border-radius: 22px; text-align: center; background: white; box-shadow: var(--shadow); }
.success-card.show { display: block; }
.success-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 2rem; font-weight: 900; }
.success-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.9rem; letter-spacing: -.03em; }
.success-card p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.toast { position: fixed; z-index: 70; right: 18px; bottom: 18px; max-width: min(390px, calc(100% - 36px)); padding: 12px 15px; border-radius: 10px; color: white; background: #163f55; box-shadow: 0 12px 28px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.other-surveys { margin-top: 36px; }
.other-surveys .survey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.other-surveys .survey-card { padding: 18px; gap: 8px; }
.other-surveys .survey-card h3 { font-size: 1.05rem; }

@media (max-width: 960px) {
  .survey-grid, .other-surveys .survey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .steps, .principles { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, 1120px); }
  .wrap-narrow { width: min(100% - 32px, 800px); }
  .header-inner { flex-wrap: wrap; justify-content: center; }
  .site-nav { justify-content: center; gap: 2px 14px; }
  .site-nav a { font-size: .84rem; }
  .site-nav a.cta { display: none; }
  .options.cols { grid-template-columns: 1fr; }
  .brand-mark { width: 38px; height: 38px; padding: 6px; }
  .brand-word { height: 34px; }
  .hero-logo { width: 170px; }
  .hero { margin-top: 16px; padding: 24px 20px; border-radius: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .survey-grid, .chart-grid, .other-surveys .survey-grid { grid-template-columns: 1fr; }
  .results .tiles { grid-template-columns: 1fr; }
  .sorteo { grid-template-columns: 1fr; padding: 22px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .bar-row { grid-template-columns: minmax(96px, 40%) 1fr 40px; gap: 8px; }
  .stack-row { grid-template-columns: 1fr; gap: 4px; }
  .survey-hero { border-radius: 16px; padding: 22px 18px; }
  .section-card { padding: 20px 16px; border-radius: 15px; }
  .option { grid-template-columns: 26px 1fr; gap: 10px; padding-inline: 10px; }
  .progress-bar { top: 58px; }
  .btn-secondary { order: 2; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Encuestas cerradas (22/10/2026) */
.survey-card .closed-badge { position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px; background: #5f7787; color: #fff; font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.survey-card.is-closed .icon { background: #eef2f5; border-color: #dbe3e8; color: #5f7787; }
.survey-card.is-closed .go { color: var(--ink-2); }
.survey-hero .pill.pill-closed { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .92); color: var(--navy-2); }
.closed-card { padding: clamp(20px, 5vw, 34px); border: 1px solid rgba(7, 79, 125, .1); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.closed-card h2 { margin: 0 0 10px; color: var(--navy-2); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.15; letter-spacing: -.02em; }
.closed-card p { margin: 0; color: var(--ink-2); }
.closed-card .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* 24/10/2026: aviso de resultados, resultados por encuesta en la portada y ganadores del sorteo */
.results-notice { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--amber-line); color: #5d4a2c; font-size: .95rem; }
.results-notice .rn-icon { font-size: 1.3rem; line-height: 1; }
.results-notice p { margin: 0; }
.results-notice strong { color: #7a4a0c; }
.results-notice a { font-weight: 800; color: var(--navy); }
.sr-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sr-nav a { padding: 7px 13px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 750; text-decoration: none; }
.sr-nav a:hover { border-color: var(--blue); color: var(--blue); }
.results-by-survey { display: grid; gap: 22px; }
.survey-results { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--backdrop); border: 1px solid rgba(7, 79, 125, .1); scroll-margin-top: 80px; }
.survey-results .sr-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.survey-results .sr-head h3 { margin: 0; color: var(--navy); font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.survey-results .sr-link { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.survey-results .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.survey-results .tile .value { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.survey-results .sr-more { margin: 16px 0 0; color: var(--ink-2); font-size: .9rem; }
.survey-results .sr-more a { font-weight: 800; }
.sorteo-result { grid-column: 1 / -1; padding: 18px 20px; border-radius: 16px; background: white; border: 1px solid var(--amber-line); }
.sorteo-winners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 14px; }
.sorteo-winners .winner { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); border: 1px solid var(--amber-line); }
.sorteo-winners .winner.alt { background: #fffdf8; }
.sorteo-winners .winner .role { display: block; color: #7a4a0c; font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.sorteo-winners .winner .mail { display: block; margin-top: 4px; color: var(--navy); font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; word-break: break-all; }
.sorteo-result p:last-child { margin-bottom: 0; }
.hero-note.sorteo-note { color: #fff; font-size: .84rem; }
.hero-note.sorteo-note a { color: #c9f2f6; font-weight: 800; }
@media (max-width: 960px) { .survey-results .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .survey-results .tiles, .sorteo-winners { grid-template-columns: 1fr; } .survey-results .sr-link { white-space: normal; } }
