/* ===== XVIII Premios FOPA · Premio del Público =====
   Colores sacados de la gráfica del evento (Premios Fopa 2026 V6.ai).
   Tipografía del evento: Tomato Grotesk Light y Black (ficheros del diseñador, servidos desde esta web).
   ⚠ Confirmar con el diseñador que la licencia cubre uso web. */
@font-face { font-family: "Tomato Grotesk"; src: url("fonts/TomatoGrotesk-Light.woff2") format("woff2"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Tomato Grotesk"; src: url("fonts/TomatoGrotesk-Black.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
:root {
  --navy-900: #000d4e;
  --navy-800: #001058;
  --navy-700: #001971;
  --blue-600: #0d4ba5;
  --blue-500: #3175b8;
  --cyan: #00b3df;
  --sky: #a6d9ff;
  --purple: #643878;
  --magenta: #ff39e3;
  --paper: #f4f4f3;
  --surface: #ffffff;
  --ink: #0b1446;
  --muted: #545b78;
  --line: #dfe2ea;
  --ok: #157347;
  --err: #b42318;
  --radius: 16px;
  --font: "Tomato Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); font-stretch: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 900; font-stretch: 115%; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--blue-600); margin-bottom: .6em; }

/* ---- Lockup de la marca ---- */
.lockup { display: inline-flex; flex-direction: column; line-height: .92; font-stretch: 115%; }
.lk-ed { color: var(--magenta); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; margin-bottom: 6px; }
.lk-pr { color: #fff; font-weight: 400; text-transform: uppercase; font-size: 30px; letter-spacing: .02em; }
.lk-fopa { color: var(--sky); font-weight: 900; font-size: 56px; letter-spacing: -.01em; }
.lockup-sm { flex-direction: row; align-items: baseline; gap: 8px; }
.lockup-sm .lk-ed { display: none; }
.lockup-sm .lk-pr { font-size: 15px; }
.lockup-sm .lk-fopa { font-size: 22px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding-top: 44px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(40px, 9vw, 84px); margin: 28px 0 16px; color: #fff; }
.intro { max-width: 640px; font-size: 18px; color: rgba(255,255,255,.92); }
.period { display: inline-block; border-radius: 14px !important; background: rgba(0, 13, 78, .55); border: 1px solid rgba(166, 217, 255, .45); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; margin: 4px 0 22px; backdrop-filter: blur(4px); }
@media (min-width: 900px) { .hero-inner { padding-top: 64px; padding-bottom: 84px; } .lk-fopa { font-size: 72px; } .lk-pr { font-size: 36px; } }

/* Barra superior (páginas internas) */
.topbar { background: var(--navy-900); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.topbar-home { text-decoration: none; }
.topbar-cat { font-size: 14px; font-weight: 700; color: var(--sky); }

.notice { text-align: center; padding: 40px 16px 8px; }

/* ---- Candidaturas ---- */
.projects-sec { padding-top: 48px; }
.sec-title { font-size: clamp(28px, 5vw, 40px); }
.howto { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; gap: 10px; }
.howto li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 500; }
.howto span { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
@media (min-width: 760px) { .howto { grid-template-columns: repeat(3, 1fr); } }

.projects { display: grid; gap: 20px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { background: var(--surface); border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,13,78,.06), 0 8px 24px rgba(0,13,78,.06); transition: border-color .15s, box-shadow .15s, transform .15s; }
.project.is-selected { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(255, 57, 227, .18), 0 12px 30px rgba(0,13,78,.12); }
.project-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--navy-900); -webkit-tap-highlight-color: transparent; }
.project-media.show-full { cursor: zoom-out; }
.project-media.show-full img { object-fit: contain; transform: none; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-media:hover img { transform: scale(1.03); }
.project-media { overflow: hidden; }
.num { position: absolute; left: 12px; top: 12px; background: var(--navy-900); color: var(--sky); font-weight: 900; font-stretch: 115%; font-size: 18px; padding: 4px 10px; border-radius: 8px; }
.zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(0,13,78,.8); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.z-on { display: none; }
.show-full .z-on { display: inline; }
.show-full .z-off { display: none; }
.project-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.project h3 { font-size: 17px; font-weight: 800; font-stretch: 105%; line-height: 1.25; text-transform: none; }
.meta { margin: 0 0 18px; flex: 1; font-size: 15px; }
.meta div { margin-bottom: 8px; }
.meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.meta dd { margin: 0; }

.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-ui { display: flex; justify-content: center; align-items: center; min-height: 54px; border-radius: 12px; background: var(--navy-700); color: #fff; font-weight: 800; font-size: 17px; transition: background .15s, transform .1s; box-shadow: 0 4px 14px rgba(0,25,113,.25); }
.pick-ui svg { width: 20px; height: 20px; margin-right: 8px; flex: 0 0 auto; }
.pick:hover .pick-ui { background: var(--blue-600); }
.pick:active .pick-ui { transform: scale(.98); }
.pick-on { display: none; }
.pick input:checked + .pick-ui { background: var(--magenta); color: #fff; box-shadow: 0 4px 14px rgba(255,57,227,.35); }
.pick input:checked + .pick-ui .pick-off { display: none; }
.pick input:checked + .pick-ui .pick-on { display: inline; }
.pick input:checked + .pick-ui .pick-on::before { content: "✓ "; }
.pick input:focus-visible + .pick-ui { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pick-off { display: inline-flex; align-items: center; }

/* ---- Formulario ---- */
/* Sin JS: formulario debajo de las obras */
.voter { margin: 48px auto 0; max-width: 640px; padding: 0 16px; }
.voter-inner { background: var(--surface); border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 8px 30px rgba(0,13,78,.10); }
.voter-head { position: relative; margin-bottom: 16px; }
.voter-step { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.voter h2 { font-size: 28px; margin: 0; }
.grab, .sheet-close { display: none; }
.chosen-card { display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: 16px; padding: 12px; margin-bottom: 18px; }
.chosen-img { width: 92px; height: 69px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.chosen-txt { display: flex; flex-direction: column; min-width: 0; }
.chosen-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--sky); }
.chosen-name { font-weight: 800; font-size: 16px; line-height: 1.25; margin: 2px 0 4px; }
.chosen-change { color: #fff; font-size: 14px; align-self: flex-start; opacity: .9; }
.btn-vote { min-height: 58px; font-size: 18px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,25,113,.3); }
.mail-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.mail-note svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--blue-600); }

/* Con JS: hoja que sube desde abajo (móvil) o ventana centrada (escritorio) */
.js .voter { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; max-width: none; padding: 0; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s; }
.js .voter.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.js .voter-inner { border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,8,40,.35); }
.js .grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: #cfd3df; margin: 4px auto 14px; }
.js .sheet-close { display: grid; place-items: center; position: absolute; right: -4px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eef0f6; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0, 8, 40, .6); backdrop-filter: blur(2px); }
.sheet-backdrop[hidden] { display: none; }
body.sheet-open { overflow: hidden; }
@media (min-width: 768px) {
  .js .voter { left: 50%; right: auto; bottom: auto; top: 50%; width: 540px; transform: translate(-50%, -46%); opacity: 0; transition: opacity .2s, transform .25s, visibility 0s .25s; }
  .js .voter.is-open { transform: translate(-50%, -50%); opacity: 1; transition: opacity .2s, transform .25s; }
  .js .voter-inner { border-radius: 22px; padding: 26px 28px 24px; }
  .js .grab { display: none; }
  .js .sheet-close { top: 0; right: 0; }
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=email], input[type=text], input[type=password], input[type=search], select {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid #c3c8d6; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 3px solid rgba(0, 179, 223, .35); border-color: var(--blue-600); }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-700); flex: 0 0 auto; }
.cf-turnstile { margin-bottom: 14px; min-height: 65px; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 2px solid var(--navy-700); border-radius: 12px; background: var(--navy-700); color: #fff; font: 800 17px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--sky); border-color: var(--sky); }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.danger { color: var(--err); }

.alert { background: #fdecea; color: var(--err); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.ok { background: #e8f5ee; color: var(--ok); border-radius: 10px; padding: 12px 14px; font-weight: 600; }

/* Patrocinadores */
.sponsors { margin-top: 72px; background: var(--surface); padding: 40px 0 24px; border-top: 1px solid var(--line); }
.sp-title { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--muted); text-align: center; margin: 0 0 18px; font-stretch: 100%; }
.sp-row { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; }
.sp-row img { height: 50px; width: auto; max-width: 170px; object-fit: contain; }
.sp-patrocinadores img { height: 56px; max-width: 210px; }

/* Pie */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-footer p { margin: 0 0 6px; }
.page-message .site-footer, .page-legal .site-footer, .page-admin .site-footer { margin-top: 64px; }

/* Páginas de mensaje */
.message { padding-top: 56px; }
.message h1 { font-size: clamp(32px, 6vw, 48px); }
.message-body { font-size: 18px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 24px; }
.confirm-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 14px; margin: 20px 0 24px; box-shadow: 0 6px 20px rgba(0,13,78,.08); }
.confirm-card img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.confirm-card p { margin: 0; }
.confirm-name { font-weight: 800; font-size: 18px; line-height: 1.25; }
.debug { margin-top: 32px; padding: 12px 14px; border: 2px dashed #d39e00; border-radius: 10px; background: #fff8e1; font-size: 15px; }

.legal { padding-top: 40px; }
.legal h2 { font-size: 20px; margin-top: 1.6em; }

/* Panel */
.admin { padding-top: 32px; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin h2 { margin-top: 36px; font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; color: var(--muted); font-size: 14px; }
.stat .n { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 1.4fr) 2fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy-700); border-radius: 7px; }
.bar-n { font-weight: 800; white-space: nowrap; }
.bar-n small { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr auto; } .bar { grid-column: 1 / -1; order: 3; } }
.days span { display: inline-block; margin: 0 14px 6px 0; }
.flags { padding-left: 20px; }
.flags li { margin-bottom: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters select { width: auto; }
.filters input { flex: 1 1 220px; width: auto; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.votes { width: 100%; border-collapse: collapse; font-size: 14px; }
.votes th, .votes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.votes th { font-size: 13px; color: var(--muted); font-weight: 700; }
.votes tr.st-annulled td { color: var(--muted); text-decoration: line-through; }
.votes tr.st-annulled td:last-child { text-decoration: none; }
.votes tr.st-pending td:nth-child(6) { color: #9a6700; }
.row-act { margin: 0; }

/* Pasos */
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.st-done::before, .stepper li.st-current::before { background: var(--navy-700); }
.st-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.st-done .st-dot { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.st-current .st-dot { background: var(--magenta); border-color: var(--magenta); color: #fff; box-shadow: 0 0 0 5px rgba(255,57,227,.18); }
.st-current { color: var(--ink); }
.st-done { color: var(--navy-700); }
.stepper-lg li { font-size: 15px; color: var(--ink); }
.stepper-lg .st-dot { width: 44px; height: 44px; font-size: 19px; background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.stepper-lg li::before { top: 21px; background: var(--navy-700); left: calc(-50% + 26px); right: calc(50% + 26px); }
.howto-box { background: var(--surface); border-radius: var(--radius); padding: 20px 16px 16px; margin: 4px 0 28px; box-shadow: 0 6px 20px rgba(0,13,78,.07); border-top: 5px solid var(--magenta); }
.howto-title { text-align: center; font-weight: 900; font-stretch: 115%; font-size: 20px; margin: 0 0 16px; }
.howto-note { text-align: center; font-size: 15px; font-weight: 600; color: var(--navy-700); background: #eef2fb; border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }
.voter-head .stepper { margin: 0 44px 14px 0; }
.mail-hero { display: flex; gap: 14px; align-items: center; margin: 8px 0 18px; color: var(--navy-700); }
.mail-hero svg { width: 64px; height: 64px; flex: 0 0 auto; }
.mail-hero h1 { margin: 0; font-size: clamp(26px, 6vw, 38px); }
.warn-box { background: #fff4d6; border-left: 5px solid #f2a900; border-radius: 10px; padding: 12px 14px; font-size: 16px; }
.todo-list { padding-left: 22px; margin: 0 0 8px; }
.todo-list li { margin-bottom: 10px; padding-left: 4px; }
.todo-list li::marker { font-weight: 900; color: var(--magenta); }
.ok.big { font-size: 20px; padding: 16px 18px; }
.center { text-align: center; margin-top: 10px; }
.mail-note { background: #eef2fb; border-left: 5px solid var(--navy-700); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; color: var(--ink); }
.mail-note svg { color: var(--navy-700); }

/* ===== Repaso visual ===== */
.hero-inner { padding-top: 36px; padding-bottom: 40px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } .hero-inner { padding-top: 64px; padding-bottom: 80px; } }
.hero h1 { margin: 22px 0 14px; text-wrap: balance; }
.intro { text-wrap: pretty; }
.period { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px !important; padding: 10px 14px; margin: 6px 0 0; line-height: 1.35; }
.period svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--sky); }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: 22px 18px 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,5,40,.35); }
.hero-card-title { text-align: center; font-weight: 900; font-stretch: 115%; font-size: 22px; margin: 0 0 18px; }
.hero-card-note { text-align: center; font-size: 15px; color: rgba(255,255,255,.9); margin: 4px 0 16px; text-wrap: balance; }
.stepper-hero li { color: #fff; font-size: 14px; }
.stepper-hero .st-dot { width: 46px; height: 46px; font-size: 19px; background: #fff; border-color: #fff; color: var(--navy-900); }
.stepper-hero li:nth-child(3) .st-dot { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.stepper-hero li::before { top: 22px; left: calc(-50% + 28px); right: calc(50% + 28px); background: rgba(255,255,255,.45); }
.btn-magenta { background: var(--magenta); border-color: var(--magenta); color: #fff; min-height: 56px; font-size: 18px; box-shadow: 0 8px 24px rgba(255,57,227,.4); }
.btn-magenta:hover { background: #e62ccc; border-color: #e62ccc; }
.btn svg { width: 20px; height: 20px; }

.projects-sec { padding-top: 44px; }
.sec-head { margin-bottom: 22px; }
.sec-head .eyebrow { color: var(--magenta); }
.sec-title { margin-bottom: 8px; }
.sec-sub { font-size: 17px; color: var(--muted); margin: 0; }

/* Tarjetas más limpias y con entrada suave */
.project { border-radius: 20px; }
.project-body { padding: 16px 16px 18px; }
.project h3 { font-size: 16.5px; }
.meta { display: grid; gap: 8px; font-size: 14.5px; }
.meta div { margin: 0; }
.anim .project { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease, border-color .15s, box-shadow .15s; }
.anim .project.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .anim .project { opacity: 1; transform: none; transition: none; } }
.num { font-size: 20px; padding: 5px 11px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.project.is-selected .num { background: var(--magenta); color: #fff; }

/* Fotos de las obras: nítidas y con buen encuadre */
.project-media img { image-rendering: auto; }
.project-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0,13,78,.25), transparent); pointer-events: none; }

/* ===== Rejilla ordenada: filas alineadas y última fila centrada ===== */
.meta { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; margin: 0 0 18px; }
.pick { margin-top: auto; }
@supports (grid-template-rows: subgrid) {
  .projects { row-gap: 22px; }
  .project { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .project-body { display: contents; }
  .project h3 { padding: 16px 16px 0; margin: 0 0 12px; align-self: start; }
  .project .meta { padding: 0 16px; margin: 0 0 16px; align-self: start; }
  .project .pick { padding: 0 16px 16px; align-self: end; }
}
@media (min-width: 1040px) {
  .projects { grid-template-columns: repeat(6, 1fr); }
  .project { grid-column: span 2; }
  /* Si sobran 2 en la última fila, se centran */
  .project:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
  /* Si sobra 1, se centra */
  .project:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
}

/* ===== Periodo: dos fechas + cuenta atrás ===== */
.period-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 8px 0 0; }
.pt { display: flex; flex-direction: column; min-width: 104px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pt-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.pt-day { font-size: 24px; font-weight: 900; font-stretch: 115%; line-height: 1.1; color: #fff; }
.pt-time { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.pt:last-of-type { border-color: rgba(255,57,227,.6); }
.pt:last-of-type .pt-label { color: var(--magenta); }
.pt-arrow { font-size: 22px; color: rgba(255,255,255,.6); }
.pt-count { flex-basis: 100%; font-size: 15px; font-weight: 700; color: #fff; }
.pt-count:empty { display: none; }
.pt-count b { color: var(--magenta); }

/* ===== Pie ===== */
.site-footer { background: none; padding: 0; color: rgba(255,255,255,.82); }
.footer-wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }
.footer-body { background: var(--navy-900); padding: 20px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; align-items: end; } .footer-info { text-align: right; } }
.footer-brand .lk-fopa { font-size: 44px; }
.footer-brand .lk-pr { font-size: 22px; }
.footer-slogan { margin: 12px 0 0; font-size: 18px; font-weight: 300; font-stretch: 112%; color: var(--sky); }
.footer-cat { font-weight: 900; font-stretch: 115%; font-size: 20px; color: #fff; margin-bottom: 6px; }
.footer-info p { margin: 0 0 8px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px !important; }
@media (min-width: 760px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--magenta); padding-bottom: 2px; }
.footer-links a:hover { color: var(--sky); }
.sponsors { margin-top: 64px; padding-bottom: 8px; border-top: 0; }
.page-message .site-footer, .page-legal .site-footer, .page-admin .site-footer { margin-top: 56px; }

/* Sin palabras huérfanas (además de los &nbsp; del servidor) */
h1, h2, h3, .confirm-name, .chosen-name, .hero-card-title { text-wrap: balance; }
p, li, dd, .st-label, .mail-note span { text-wrap: pretty; }

/* Iconos de promotor y constructora */
.meta div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; }
.meta dt { display: contents; }
.meta .ic { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #eef2fb; color: var(--navy-700); }
.meta dt { font-size: 11.5px; }
.meta div > dd { grid-column: 2; }
.sec-head { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }

/* Aviso de confirmación por correo: que no se pase por alto */
.confirm-alert { border: 2px solid var(--magenta); background: #fff0fc; border-radius: 16px; padding: 14px 16px 12px; margin: 2px 0 16px; color: var(--ink); }
.ca-head { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.25; margin-bottom: 8px; }
.ca-head svg { width: 28px; height: 28px; flex: 0 0 auto; color: #fff; background: var(--magenta); border-radius: 8px; padding: 4px; }
.confirm-alert ol { margin: 0 0 8px; padding-left: 22px; font-size: 15.5px; }
.confirm-alert li { margin-bottom: 4px; }
.confirm-alert li::marker { font-weight: 900; color: var(--magenta); }
.ca-to { display: none; }
.ca-to.on { display: inline; }
.ca-email { overflow-wrap: anywhere; word-break: normal; }
.ca-warn { margin: 0; font-size: 15px; font-weight: 600; color: #a1127f; }

/* Ampliar foto: visor que encaja en la pantalla */
.project-media { cursor: zoom-in; }
.zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(0,13,78,.75); color: #fff; display: grid; place-items: center; }
.zoom svg { width: 100%; height: 100%; }
.project-media:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 6, 34, .94); display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; place-items: center; padding: 56px 12px calc(16px + env(safe-area-inset-bottom)); }
.viewer[hidden] { display: none; }
.vw-fig { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vw-fig img { max-width: 100%; max-height: calc(100dvh - 210px); max-height: calc(100vh - 210px); border-radius: 12px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); touch-action: pan-y; }
.vw-fig figcaption { color: #fff; text-align: center; font-weight: 800; font-size: 16px; line-height: 1.3; max-width: 640px; text-wrap: balance; }
.vw-num { color: var(--magenta); margin-right: 8px; }
.vw-actions { padding-top: 14px; width: min(420px, 100%); }
.vw-actions .btn { width: 100%; }
.vw-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-900); font-size: 28px; line-height: 1; cursor: pointer; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.vw-prev { left: 8px; } .vw-next { right: 8px; }
.vw-nav:hover { background: rgba(255,255,255,.3); }
@media (max-width: 640px) { .vw-nav { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); transform: none; } }
body.viewer-open { overflow: hidden; }

/* Visor: foto, nombre y botón juntos y centrados */
.viewer { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 16px calc(20px + env(safe-area-inset-bottom)); background: rgba(0, 6, 34, .97); }
.vw-fig { width: 100%; max-width: 1100px; gap: 14px; }
.vw-fig img { width: auto; max-width: 100%; max-height: calc(100dvh - 250px); max-height: calc(100vh - 250px); }
.vw-actions { padding-top: 2px; width: min(380px, 100%); }
.vw-nav { z-index: 2; }
@media (min-width: 641px) { .vw-prev { left: 16px; } .vw-next { right: 16px; } }
@media (max-width: 640px) { .vw-nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 38px; height: 38px; background: rgba(0,0,0,.35); } .vw-prev { left: 4px; } .vw-next { right: 4px; } }
.viewer { background: #000a38; }
.page-home .site-footer { background: var(--surface); }
.sponsors { padding-bottom: 0; }
.sp-row:last-child { margin-bottom: 8px; }

/* Un voto por persona */
.one-vote { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 14px; border-radius: 999px; background: var(--navy-700); color: #fff; font-size: 15px; line-height: 1.3; text-align: left; }
.one-vote svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--magenta); }
.one-vote b { font-weight: 900; }
.one-vote-hero { display: flex; justify-content: center; background: rgba(255,57,227,.18); border: 1px solid rgba(255,57,227,.6); border-radius: 14px; margin: -6px 0 18px; }
.one-vote-hero svg { color: #fff; }
.one-vote-sm { display: inline-block; margin: 8px 0 0; padding: 6px 12px; font-size: 14px; background: #fff0fc; color: #a1127f; border: 1px solid rgba(255,57,227,.5); }
.sponsors { padding-bottom: 16px; display: flow-root; }
.sponsors .sp-row:last-child { margin-bottom: 0; }
.page-home .site-footer { margin-top: 0; }

/* Tipografía del evento: Light para texto, Black para titulares y énfasis */
body { font-weight: 300; letter-spacing: .01em; }
h1, h2, h3, b, strong, .btn, .pick-ui, .num, .lk-fopa, .lk-ed, .pt-day, .st-dot, .eyebrow, .meta dt, .chosen-name, .confirm-name, .field label, .footer-cat, .hero-card-title, .howto-title, .sp-title, .voter-step, .chosen-label, .pt-label { font-weight: 900; }
.lk-pr, .footer-slogan { font-weight: 300; }
.meta dd, .intro, .message-body, .hint, .sec-sub, .pt-time, .footer-info p { font-weight: 300; }
.legal-before { font-size: 14.5px; margin: 0 0 14px; color: var(--muted); }
.legal-before a { color: var(--navy-700); font-weight: 900; }
