/* Elecciones MAGNA 2026 — mismo lenguaje visual que los emails de campaña.
   Montserrat · granate #6D0D1D · negros #0E0E0E/#161616 · gris #222 · amarillo #FFD43B · rosa #E6B7BF */
:root {
  --granate: #6d0d1d;
  --granate-2: #8a1328;
  --negro: #0e0e0e;
  --negro-2: #161616;
  --gris: #222222;
  --gris-2: #2c2c2c;
  --amarillo: #ffd43b;
  --rosa: #e6b7bf;
  --texto: #e9e4e5;
  --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ele-body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.ele-body img { max-width: 100%; height: auto; display: block; }
.ele-body a { color: inherit; text-decoration: none; }
.ele-body button { font: inherit; }
.ele-body :focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
.ele-body h1, .ele-body h2, .ele-body h3 { font-weight: 900; line-height: 1.05; margin: 0; color: #fff; letter-spacing: -.01em; }
.ele-body p { margin: 0 0 14px; }
.ele-container { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.ele-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.ele-yellow, .ele-body .ele-yellow { color: var(--amarillo); }
.ele-rosa { color: var(--rosa); }

/* Cabecera */
.ele-header { position: sticky; top: 0; z-index: 40; background: rgba(14,14,14,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff14; }
.ele-nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ele-brand { display: inline-flex; align-items: center; gap: 12px; }
.ele-brand img { height: 36px; width: auto; }
.ele-brand-name { display: block; font-weight: 900; font-size: .95rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.ele-brand-tagline { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .2em; color: var(--amarillo); line-height: 1.2; }
.ele-nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); font-size: .88rem; font-weight: 600; }
.ele-nav-links a { color: #cfc8c9; transition: color .15s; }
.ele-nav-links a:hover, .ele-nav-links a[aria-current="page"] { color: #fff; }
.ele-nav-links .ele-nav-current { color: #fff; font-weight: 800; }
.ele-nav-links .ele-nav-join { color: #fff; background: var(--granate); padding: 9px 18px; border-radius: 40px; font-weight: 800; }
.ele-nav-links .ele-nav-join:hover { background: var(--granate-2); }
.ele-mobile-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.ele-mobile-toggle svg { width: 26px; height: 26px; }
.ele-mobile-menu { display: none; }
.ele-mobile-menu[hidden] { display: none !important; }
.ele-logo { height: 36px; width: auto; }

/* Botones (píldora, nunca texto oscuro sobre granate) */
.ele-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 26px; border-radius: 40px; font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; text-align: center; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s, border-color .15s; background: #fff; color: var(--granate) !important; }
.ele-btn:hover { transform: translateY(-1px); }
.ele-btn-primary { background: var(--granate); color: #fff !important; border-color: var(--granate); }
.ele-btn-primary:hover { background: var(--granate-2); border-color: var(--granate-2); }
.ele-btn-yellow { background: var(--amarillo); color: var(--negro) !important; }
.ele-btn-ghost { background: transparent; color: #fff !important; border-color: #ffffff55; }
.ele-btn-ghost:hover { border-color: #fff; }
.ele-btn-block { display: flex; width: 100%; }
.ele-stack { display: grid; gap: 10px; }

/* Hero */
.ele-hero { background: var(--granate); color: #fff; padding: clamp(44px, 7vw, 84px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.ele-hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: #ffffff0d; pointer-events: none; }
.ele-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ele-hero-top { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.ele-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--amarillo); margin: 0 0 14px; }
.ele-date { display: inline-flex; align-items: flex-end; gap: 8px; line-height: 1; }
.ele-date b { font-weight: 900; font-size: 1.15rem; line-height: 1.05; }
.ele-date span { font-weight: 300; font-size: 3.6rem; letter-spacing: -.02em; line-height: .8; }
.ele-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); text-transform: uppercase; margin-bottom: 18px; }
.ele-lead { font-size: 1.05rem; color: #fff; max-width: 34em; }
.ele-lead strong { font-weight: 800; }
.ele-headline { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: #fff; margin: 4px 0 22px; line-height: 1.15; }
.ele-panel-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--rosa); margin: 0 0 6px; }
.ele-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Panel de cuenta atrás */
.ele-hero-panel { background: var(--negro); border-radius: 22px; padding: 26px 24px 24px; box-shadow: 0 24px 60px #00000055; }
.ele-count-label { font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rosa); text-align: center; margin: 0 0 14px; }
.ele-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 20px; }
.ele-count-box { background: var(--gris); border: 2px solid var(--granate); border-radius: 14px; padding: 12px 4px 10px; text-align: center; }
.ele-count-box b { display: block; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ele-count-box small { display: block; margin-top: 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa); }
.ele-count-msg { text-align: center; font-weight: 900; font-size: 1.25rem; color: #fff; margin: 0 0 18px; }
.ele-count-msg.is-open { color: var(--amarillo); }

/* Calendario desplegable */
.ele-calendar { position: relative; }
.ele-calendar summary { list-style: none; }
.ele-calendar summary::-webkit-details-marker { display: none; }
.ele-calendar-menu { margin-top: 8px; display: grid; gap: 6px; background: var(--gris); border-radius: 14px; padding: 8px; }
.ele-calendar-menu a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 700; color: #fff; }
.ele-calendar-menu a:hover { background: var(--granate); }

/* Secciones */
.ele-section { padding: clamp(56px, 8vw, 92px) 0; background: var(--negro-2); }
.ele-section-dark { background: var(--negro); }
.ele-section-vino { background: var(--granate); color: #fff; }
.ele-section-white { background: #fff; color: #1d1d1d; }
.ele-section-white h2, .ele-section-white h3 { color: var(--granate); }
.ele-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #a8a2a3; margin: 0 0 8px; }
.ele-section-vino .ele-kicker { color: var(--rosa); }
.ele-section-white .ele-kicker { color: #8a8a8a; }
.ele-section h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); text-transform: uppercase; margin-bottom: 18px; }
.ele-section-head { margin-bottom: 28px; }
.ele-section-head p:last-child { margin-bottom: 0; }
.ele-muted { color: var(--rosa); }
.ele-section-white .ele-muted { color: #444; font-weight: 700; }
.ele-quote { border-left: 5px solid var(--amarillo); padding: 4px 0 4px 20px; margin: 22px 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; color: #fff; }
.ele-big-text { font-size: 1.08rem; color: #ddd6d7; }
.ele-big-text strong { color: #fff; }

/* Rejillas y tarjetas */
.ele-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ele-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ele-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ele-card { background: var(--gris); border: 2px solid var(--granate); border-radius: var(--r); padding: 24px 22px; position: relative; }
.ele-card h3 { font-size: 1.12rem; text-transform: uppercase; margin-bottom: 8px; }
.ele-card p { color: #d8d1d2; margin: 0; }
.ele-card ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ele-card li { position: relative; padding-left: 20px; color: #e6e0e1; font-weight: 600; font-size: .95rem; line-height: 1.45; }
.ele-card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--amarillo); }
.ele-card-vino { background: var(--granate); border-color: var(--granate); }
.ele-card-vino p { color: #f1dfe2; }
.ele-card-icon { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.ele-tag { display: inline-block; background: var(--amarillo); color: var(--negro); font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; border-radius: 20px; padding: 4px 10px; margin-bottom: 12px; }
.ele-card-star { border-color: var(--amarillo); box-shadow: 0 0 0 1px var(--amarillo) inset; }
.ele-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amarillo); color: var(--negro); font-weight: 900; margin-bottom: 12px; }
.ele-section-vino .ele-card { background: #ffffff12; border-color: #ffffff2e; }

/* Facultades */
.ele-faculty { display: flex; flex-direction: column; gap: 4px; min-height: 150px; transition: transform .15s, background .15s; }
.ele-faculty:hover { transform: translateY(-3px); background: var(--granate); }
.ele-card-title { font-size: 1.45rem; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.1; padding-right: 30px; }
.ele-card-arrow { position: absolute; right: 20px; top: 20px; font-size: 1.4rem; color: var(--amarillo); font-weight: 900; }
.ele-card-caption { margin-top: auto; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rosa); }
.ele-faculty .ele-muted { color: #fff; font-weight: 700; }

/* Papeleta y equipo */
.ele-ballot { background: var(--negro); border: 2px solid var(--amarillo); border-radius: 18px; padding: 18px 22px; display: inline-block; margin: 0 0 24px; }
.ele-ballot small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .2em; color: var(--rosa); margin-bottom: 4px; }
.ele-ballot strong { display: block; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 900; color: var(--amarillo); line-height: 1.2; }
.ele-team { list-style: none; counter-reset: team 1; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ele-team li { counter-increment: team; background: var(--gris); border-radius: 14px; padding: 14px 16px 14px 56px; position: relative; font-weight: 800; color: #fff; }
.ele-team li::before { content: counter(team); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--granate); display: grid; place-items: center; font-weight: 900; font-size: .9rem; }

/* Cómo votar */
.ele-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 30px; }
.ele-step { text-align: center; }
.ele-step-ico { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: var(--granate); display: grid; place-items: center; font-size: 2rem; }
.ele-step small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .16em; color: #8a8a8a; }
.ele-step strong { display: block; font-size: 1.3rem; font-weight: 900; text-transform: uppercase; color: var(--granate); line-height: 1.2; }
.ele-step span { display: block; font-size: .92rem; font-weight: 600; color: #333; margin-top: 2px; }

/* Recordatorio */
.ele-form { background: var(--gris); border-radius: 18px; padding: 24px; margin-top: 18px; }
.ele-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.ele-field label { display: block; font-size: .8rem; font-weight: 800; margin-bottom: 6px; color: #fff; }
.ele-field input, .ele-field select { width: 100%; min-height: 46px; border-radius: 12px; border: 2px solid #ffffff22; background: var(--negro); color: #fff; padding: 10px 12px; font: inherit; }
.ele-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: .92rem; }
.ele-status { background: #ffd43b1a; border: 1px solid #ffd43b66; color: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
.ele-remind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.ele-remind { background: var(--gris); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ele-remind h3 { font-size: 1.05rem; text-transform: uppercase; }
.ele-remind p { color: #cfc8c9; font-size: .93rem; margin: 0 0 6px; flex: 1; }

/* Pato y cierre */
.ele-duck { background: var(--amarillo); color: var(--negro); text-align: center; padding: clamp(30px, 5vw, 44px) 20px; }
.ele-duck-ico { font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1; display: block; margin-bottom: 8px; }
.ele-duck p { margin: 0; font-weight: 900; font-size: clamp(1.25rem, 3.4vw, 1.9rem); text-transform: uppercase; line-height: 1.15; }
.ele-footer { background: var(--granate); color: #fff; text-align: center; padding: clamp(56px, 8vw, 84px) 0 40px; }
.ele-footer .ele-kicker { color: var(--rosa); }
.ele-footer h2 { font-size: clamp(3.2rem, 10vw, 6rem); margin: 6px 0 12px; }
.ele-footer-date { font-weight: 800; font-size: 1.05rem; margin: 0 0 22px !important; }
.ele-footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 0; }
.ele-footer-links a { padding: 10px 18px; border-radius: 40px; border: 2px solid #ffffff44; font-weight: 800; font-size: .88rem; }
.ele-footer-links a:hover { border-color: #fff; }
.ele-separator { border: 0; border-top: 1px solid #ffffff2e; margin: 32px auto 22px; max-width: 640px; }
.ele-small { font-size: .85rem; color: #f1dfe2; }
.ele-error { text-align: center; padding: 40px 0; }
.ele-error a { color: var(--amarillo); }

/* Página /votar */
.ele-vote { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 48px 0; background: var(--granate); position: relative; overflow: hidden; text-align: center; }
.ele-vote::after { content: ""; position: absolute; left: -180px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%; background: #ffffff0b; }
.ele-vote-card { position: relative; z-index: 1; width: min(640px, calc(100% - 40px)); }
.ele-vote-card h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); text-transform: uppercase; margin-bottom: 14px; }
.ele-vote-card .ele-lead { margin: 0 auto 26px; }
.ele-vote-panel { background: var(--negro); border-radius: 22px; padding: 24px; margin-bottom: 18px; }
.ele-vote-panel .ele-count { margin-bottom: 0; }
.ele-vote-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ele-body .ele-vote-note { font-size: .88rem; color: #f1dfe2; margin: 18px 0 0; }
.ele-vote-note a { color: var(--amarillo); font-weight: 800; }

/* Privacidad y textos largos */
.ele-prose h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; margin-bottom: 20px; }
.ele-prose h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.ele-prose a { color: var(--amarillo); }

/* Responsive */
@media (max-width: 900px) {
  .ele-hero-grid { grid-template-columns: 1fr; }
  .ele-grid { grid-template-columns: repeat(2, 1fr); }
  .ele-grid-4, .ele-remind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ele-nav-links { display: none; }
  .ele-mobile-toggle { display: inline-flex; }
  .ele-mobile-menu { display: grid; background: var(--negro); border-top: 1px solid #ffffff14; padding: 8px 20px 16px; }
  .ele-mobile-menu a { padding: 13px 4px; font-weight: 700; color: #fff; border-bottom: 1px solid #ffffff10; }
  .ele-mobile-menu a[aria-current="page"] { color: var(--amarillo); }
}
@media (max-width: 640px) {
  .ele-container, .ele-narrow { width: calc(100% - 36px); }
  .ele-grid, .ele-grid-2, .ele-grid-4, .ele-team, .ele-fields, .ele-remind-grid, .ele-vote-links { grid-template-columns: 1fr; }
  .ele-steps { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .ele-date span { font-size: 2.8rem; }
  .ele-count { gap: 6px; }
  .ele-count-box { padding: 10px 2px 8px; border-radius: 12px; }
  .ele-actions .ele-btn { width: 100%; }
  .ele-hero-panel { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ele-btn, .ele-faculty { transition: none; } }
.ele-section, .ele-hero, #inicio-elecciones { scroll-margin-top: 72px; }

/* Valenciano (Letras): debajo del castellano, en cursiva, como en el correo */
.ele-va { display: block; font-style: italic; font-weight: 500; font-size: .86em; line-height: 1.35; color: #E6B7BF; opacity: .95; text-transform: none; letter-spacing: 0; margin-top: 3px; }
.ele-va-h { font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600; margin-top: 6px; }
.ele-section-white .ele-va, .ele-duck .ele-va { color: #8A4E59; }
.ele-btn:has(.ele-va) { flex-direction: column; gap: 0; line-height: 1.15; }
.ele-btn .ele-va { color: inherit !important; font-size: .72em; font-weight: 600; margin-top: 2px; opacity: .85; }
.ele-count-label .ele-va { font-size: .8em; }

/* Delegaciones (portada) */
.ele-dele { display: flex; flex-direction: column; gap: 14px; }
.ele-dele-top { display: flex; gap: 14px; align-items: center; }
.ele-dele-top img { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.ele-dele-top .ele-card-title { display: block; }
.ele-dele ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-weight: 600; }

/* Vídeo «Cómo votar» */
.ele-howto-video { display: flex; gap: 28px; align-items: center; margin: 28px 0 8px; flex-wrap: wrap; }
.ele-howto-video video { width: 260px; max-width: 70vw; aspect-ratio: 9 / 16; border-radius: 22px; background: #111; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.ele-howto-video p { flex: 1; min-width: 220px; font-size: 1.05rem; line-height: 1.5; }
.ele-howto-video p strong { display: block; font-size: 1.4rem; margin-bottom: 6px; }

/* Derecho → Alternativa · EPS → Agrupación */
.ele-faculty-alt { background: linear-gradient(135deg, #038245, #10200a) !important; border-color: rgba(255,255,255,.18) !important; }
.ele-faculty-eps { background: linear-gradient(135deg, #2f8fd8, #0b2a4a) !important; border-color: rgba(255,255,255,.18) !important; }
.ele-ult { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ele-ult-card { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ele-ult-card iframe { display: block; width: 100%; height: 600px; border: 0; background: #fff; }
.ele-ult-card figcaption { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ele-ult-card .ele-card-text { font-size: .92rem; opacity: .85; margin-top: 4px; line-height: 1.45; }
