/* =========================================================================
   Conecta Coronel 2026 — hoja de estilos única
   Marca: #FF4002 (naranja) · #14243B (navy) · tipografía Archivo
   ========================================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --navy:        #14243B;
  --navy-deep:   #0d1826;
  --navy-soft:   #1e3352;
  --ink:         #14243B;
  --ink-soft:    #45566d;
  --ink-mute:    #6b7a90;
  --line:        #dde3ec;
  --line-soft:   #eef1f5;
  --bg:          #ffffff;
  --bg-warm:     #f7f5f2;
  --bg-cool:     #eceff4;
  --orange:      #FF4002;
  --orange-600:  #dd3702;
  --orange-tint: #fff1ec;
  --ok-bg:       #e7f6ed;
  --ok-ink:      #10683a;
  --err-bg:      #fdecec;
  --err-ink:     #b3261e;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.06rem);
  --step-1:  clamp(1.13rem, 1.04rem + 0.45vw, 1.35rem);
  --step-2:  clamp(1.40rem, 1.18rem + 1.05vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.45rem + 2.00vw, 2.95rem);
  --step-4:  clamp(2.30rem, 1.65rem + 3.20vw, 3.90rem);
  --step-5:  clamp(2.90rem, 1.90rem + 5.00vw, 5.40rem);

  --wrap: 1160px;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  --countbar-h: 42px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -28px rgba(16, 30, 54, 0.30);
  --shadow-sm: 0 10px 28px -16px rgba(16, 30, 54, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--countbar-h);
}

img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
strong { font-weight: 700; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ----------------------------------------------------------------- countbar (cuenta regresiva, arriba de todo) */
.countbar {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--countbar-h);
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  padding-inline: var(--gutter);
  font-size: 0.78rem; letter-spacing: 0.04em;
}
.countbar__ev { font-weight: 600; text-transform: uppercase; letter-spacing: 0.11em; opacity: 0.92; }
.countbar__clock { display: flex; gap: 0.85rem; }
.countbar__clock span { display: inline-flex; align-items: baseline; gap: 0.22rem; }
.countbar__clock b {
  font-weight: 800; font-size: 0.98rem; font-variant-numeric: tabular-nums;
  min-width: 1.1ch; text-align: right;
}
.countbar__clock i { font-style: normal; opacity: 0.72; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; }
.countbar.is-live .countbar__clock { display: none; }
.countbar.is-live::after { content: "¡Es hoy!"; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
@media (max-width: 680px) {
  .countbar__ev { display: none; }
  .countbar { justify-content: center; }
}

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 640px; }

.section { padding-block: clamp(3.6rem, 9vw, 7rem); }
.section--intro   { background: var(--bg); }
.section--stats   { background: var(--navy); color: #fff; }
.section--gallery { background: var(--bg-warm); }
.section--memoria { background: var(--navy-deep); color: #fff; }
.section--std     { background: var(--bg-cool); }
.section--orgs    { background: var(--bg); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #ff7d52; }

.h2 {
  font-size: var(--step-3);
  max-width: 20ch;
  margin-bottom: 1rem;
}
.h2--light { color: #fff; }
.lead-2 {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}
.lead-2--light { color: #c4d0e0; }

/* ----------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--step-0); letter-spacing: 0.005em;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 64, 2, 0.55); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.10); box-shadow: none; }
.btn--dark { color: var(--navy); border-color: var(--line); background: #fff; }
.btn--dark:hover { background: var(--bg-cool); box-shadow: none; }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed; top: var(--countbar-h); left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.nav__mark { width: 34px; height: 34px; flex: none; }
.nav__mark--dark { display: none; }
.nav.is-solid .nav__mark--light,
.nav--solid  .nav__mark--light { display: none; }
.nav.is-solid .nav__mark--dark,
.nav--solid  .nav__mark--dark { display: block; }
.nav__word {
  font-size: 0.98rem; letter-spacing: 0.09em; color: #fff;
  transition: color 0.3s var(--ease);
}
.nav__word strong { font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: clamp(0.6rem, 2.4vw, 1.7rem); flex: none; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  background: var(--orange); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--orange-600); }

/* estado sólido (con scroll) */
.nav.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(16, 30, 54, 0.5);
}
.nav.is-solid .nav__word { color: var(--navy); }
.nav.is-solid .nav__links a { color: var(--ink-soft); }
.nav.is-solid .nav__links a:hover { color: var(--navy); }
.nav--solid {
  position: sticky; top: var(--countbar-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav--solid .nav__word { color: var(--navy); }
.nav--solid .nav__links a { color: var(--ink-soft); }

@media (max-width: 620px) {
  .nav__word { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__inner { padding-block: 0.7rem; }
  .nav__cta { padding: 0.45rem 0.95rem; font-size: 0.85rem; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--countbar-h));
  display: flex; align-items: center;
  /* espacio arriba: separa el contenido de la barra fija.
     espacio abajo: deja sitio para la franja de datos. */
  padding: clamp(7rem, 15vh, 9.5rem) var(--gutter) clamp(6rem, 13vh, 8rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--navy-deep); }
.hero__poster,
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero__video { opacity: 0; transition: opacity 0.9s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 24, 38, 0.58) 0%, rgba(13, 24, 38, 0.40) 34%, rgba(13, 24, 38, 0.88) 100%),
    linear-gradient(90deg, rgba(20, 36, 59, 0.66) 0%, rgba(20, 36, 59, 0.14) 66%);
}

.hero__inner {
  position: relative;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr minmax(330px, 380px); gap: clamp(2.5rem, 5vw, 4rem); }
}

.hero__body { min-width: 0; max-width: 42rem; }
.hero__kicker {
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #ffb59c;
  margin-bottom: 1.1rem;
}
.hero__title {
  font-size: var(--step-5);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
  display: grid;
}
.hero__title span { font-weight: 700; }
.hero__title em { font-style: normal; color: var(--orange); font-weight: 700; }
.hero__lead {
  margin-top: 1.3rem;
  font-size: var(--step-1);
  font-weight: 500;
  max-width: 34ch;
  color: #eaf0f7;
}
.hero__actions {
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
@media (max-width: 420px) { .hero__actions .btn { flex: 1 1 100%; } }

/* --- franja de datos (borde inferior del hero) --- */
.hero__strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(6, 12, 20, 0) 0%, rgba(6, 12, 20, 0.55) 65%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.hero__strip-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 0.95rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem 1.7rem;
  font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}
.hero__strip-item { position: relative; white-space: nowrap; }
.hero__strip-item b { font-weight: 700; color: #fff; }
.hero__strip-item + .hero__strip-item::before {
  content: ""; position: absolute; left: -0.9rem; top: 50%;
  width: 1px; height: 1.05em; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
}
.hero__strip-item[data-soft] { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 640px) {
  .hero { padding-bottom: 11rem; }
  .hero__strip {
    background: linear-gradient(180deg, rgba(6, 12, 20, 0) 0%, rgba(6, 12, 20, 0.72) 40%);
  }
  .hero__strip-inner {
    flex-direction: column; align-items: center;
    gap: 0.55rem; letter-spacing: 0.1em;
    padding-block: 1.1rem;
  }
  .hero__strip-item + .hero__strip-item::before { display: none; }
}

/* --- tarjeta de registro: vidrio esmerilado sobre el video --- */
.hero__aside { min-width: 0; }
.signup {
  position: relative;
  background: rgba(10, 18, 30, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: clamp(1.5rem, 4.5vw, 2rem);
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.65);
  display: grid; gap: 1.05rem;
  color: #fff;
}
.signup__t { font-size: var(--step-1); font-weight: 700; color: #fff; line-height: 1.15; }
.signup__d { font-size: var(--step--1); color: rgba(255, 255, 255, 0.68); margin-top: -0.55rem; }
.signup .field { display: grid; gap: 0.3rem; }
.signup .field label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
.signup .field input {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  padding: 0.55rem 0.15rem;
  font: inherit; color: #fff;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.signup .field input::placeholder { color: rgba(255, 255, 255, 0.42); }
.signup .field input:focus {
  outline: none;
  border-bottom-color: var(--orange);
  box-shadow: 0 1px 0 0 var(--orange);
}
.signup .field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s;
}
.signup .btn { margin-top: 0.35rem; }
.signup__note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); line-height: 1.45; }
.signup__note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.signup .form-msg { margin-top: 0; }
.signup--done { gap: 0.7rem; }
.signup--done .signup__d { color: rgba(255, 255, 255, 0.78); }
.signup--done .btn { margin-top: 0.6rem; }

@media (max-width: 380px) {
  .hero__kicker { letter-spacing: 0.1em; }
}

/* ----------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-stagger] .reveal { transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__video { transition: none; }
}

/* ----------------------------------------------------------------- intro / pillars */
.section--intro .lead-2 { margin-top: 0.4rem; }
.pillars {
  list-style: none; padding: 0;
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.pillar {
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.pillar__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--orange-tint); color: var(--orange-600);
  margin-bottom: 1rem;
}
.pillar__ico svg { width: 24px; height: 24px; }
.pillar__t { font-size: var(--step-1); margin-bottom: 0.35rem; }
.pillar__d { font-size: var(--step-0); color: var(--ink-soft); }

@media (min-width: 620px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }

/* ----------------------------------------------------------------- stats */
.section--stats {
  position: relative; overflow: hidden;
  text-align: center;
}
.section--stats::before {
  content: ""; position: absolute; left: 50%; top: -20%;
  width: min(760px, 120%); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 64, 2, 0.18) 0%, rgba(255, 64, 2, 0) 62%);
  pointer-events: none;
}
.section--stats .wrap { position: relative; }
.section--stats .eyebrow { display: block; }
.stats__title {
  font-size: var(--step-3);
  max-width: 22ch; margin: 0.2rem auto 0;
}
.stats {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid; gap: 2.6rem 0;
  grid-template-columns: 1fr;
  justify-items: center;
}
.stat {
  display: grid; justify-items: center; align-content: start;
  padding: 0 1.4rem;
  width: 100%;
}
.stat::before {
  content: ""; width: 30px; height: 3px; border-radius: 2px;
  background: var(--orange); margin-bottom: 1.1rem;
}
.stat__n {
  display: block;
  font-size: clamp(2.9rem, 2rem + 4vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: #fff; line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.stat__n::first-letter { color: var(--orange); }
.stat__l {
  display: block; margin-top: 0.7rem;
  color: #aebfd2; font-weight: 600;
  font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.stats__foot {
  margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
  color: #9fb0c6; max-width: 54ch; font-size: var(--step-0);
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.16); }
}

/* ----------------------------------------------------------------- gallery (mosaico sin recorte) */
.section--gallery .wrap { margin-bottom: 1.8rem; }
.gallery {
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter);
  column-count: 2;
  column-gap: clamp(0.5rem, 1.4vw, 0.9rem);
}
@media (min-width: 720px) { .gallery { column-count: 3; } }
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(0.5rem, 1.4vw, 0.9rem);
  overflow: hidden; border-radius: var(--radius-sm);
  background: var(--bg-cool);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9, 16, 27, 0.92);
  display: grid; place-items: center; padding: 4vmin;
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox__close {
  position: absolute; top: 3vmin; right: 3vmin;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 0;
  font-size: 22px; line-height: 1;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

/* ----------------------------------------------------------------- memoria */
.memoria__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .memoria__grid { grid-template-columns: 0.95fr 1.05fr; } }

.video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; padding: 0; }
.video__poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.3s var(--ease), transform 0.6s var(--ease); }
.video__play:hover .video__poster { opacity: 0.7; transform: scale(1.03); }
.video__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 40px -8px rgba(255, 64, 2, 0.7);
  transition: transform 0.2s var(--ease);
}
.video__btn svg { margin-left: 3px; }
.video__play:hover .video__btn { transform: translate(-50%, -50%) scale(1.08); }
.video video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ----------------------------------------------------------------- save the date */
.std-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.std-card .h2 { font-size: var(--step-2); max-width: 22ch; }
.std-card .lead-2 { font-size: var(--step-0); margin-top: 0.6rem; }
.std-card--done { text-align: left; }
.std-card--done .btn { margin-top: 1.4rem; }
.std-back { margin-top: 1.1rem; text-align: center; font-size: var(--step--1); }
.std-back a { color: var(--ink-soft); font-weight: 600; }
.std-back a:hover { color: var(--navy); }

/* recordatorio (el formulario vive en el hero) */
.std-recall { text-align: center; }
.std-recall .eyebrow { display: block; }
.std-recall .h2 { margin-inline: auto; }
.std-recall .lead-2 { margin: 0 auto 1.6rem; }
.std-recall .form-msg { max-width: 34rem; margin: 0 auto 1.6rem; text-align: left; }

.form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.field input {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder { color: #9aa7ba; }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.field.has-error input { border-color: var(--err-ink); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: var(--step--1); color: var(--ink-soft); }
.check input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--orange); }
.check a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-size: var(--step--1); color: var(--ink-mute); margin-top: 0.2rem; }

.form-msg {
  border-radius: var(--radius-sm); padding: 0.9rem 1.1rem;
  font-size: var(--step-0); font-weight: 500; margin-top: 1.2rem;
}
.form-msg[data-kind="ok"]  { background: var(--ok-bg);  color: var(--ok-ink); }
.form-msg[data-kind="err"] { background: var(--err-bg); color: var(--err-ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------------- orgs (muro de logos) */
.orgs {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid; gap: clamp(1.8rem, 4vw, 2.6rem);
  align-items: start;
}
.orgs__group { display: grid; gap: 0.9rem; align-content: start; justify-items: center; text-align: center; }
.orgs__rol {
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.orgs__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  align-items: flex-start; justify-content: center;
}
.orgs__item {
  flex: 0 1 auto; align-self: flex-start;
  display: grid; place-items: center;
  min-width: 7.5rem; min-height: 78px;
  padding: 0.9rem 1.35rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.orgs__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-soft); }
.orgs__item img {
  height: 34px; width: auto;
  max-width: min(190px, 44vw);
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.25s var(--ease);
}
.orgs__item:hover img { opacity: 1; }
.orgs__item--ph {
  background: var(--bg-warm);
  border-style: dashed;
  border-color: var(--line);
}
.orgs__ph {
  font-weight: 600; color: var(--ink-soft);
  font-size: 0.95rem; letter-spacing: 0.01em; text-align: center;
}
.orgs__note { margin-top: 1.8rem; font-size: var(--step--1); color: var(--ink-mute); }

@media (min-width: 760px) {
  .orgs { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 3rem; }
}

/* ----------------------------------------------------------------- franja foto (transición al pie) */
.photoband {
  height: clamp(240px, 40vw, 440px);
  background-image:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(255, 255, 255, 0.6) 7%,
      rgba(255, 255, 255, 0.1) 22%,
      rgba(13, 24, 38, 0) 44%,
      rgba(13, 24, 38, 0.5) 76%,
      var(--navy-deep) 100%),
    url("/assets/img/photoband.jpg");
  background-size: cover, cover;
  background-position: center, center 62%;
  background-repeat: no-repeat;
}

/* ----------------------------------------------------------------- footer */
.foot { background: var(--navy-deep); color: #cdd8e6; padding-block: clamp(3rem, 7vw, 4.5rem) 1.6rem; }
.foot__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: 2.4rem; justify-items: center; text-align: center;
}
.foot__brand { display: grid; justify-items: center; }
.foot__logo { width: 220px; max-width: 60vw; margin: 0 auto 1rem; }
.foot__meta { color: #8ea0b6; font-size: var(--step--1); }
.foot__cols {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.8rem 3.5rem;
}
.foot__col { display: grid; gap: 0.55rem; align-content: start; justify-items: center; }
.foot__h {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7d8fa6; margin-bottom: 0.2rem;
}
.foot__col a { color: #cdd8e6; font-size: 0.95rem; transition: color 0.15s var(--ease); }
.foot__col a:hover { color: #fff; }
.foot__legal {
  max-width: var(--wrap); margin: 2.6rem auto 0; padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.8rem; color: #7d8fa6; display: grid; gap: 0.4rem;
  text-align: center; justify-items: center;
}
.foot__legal a { color: #9fb0c6; text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------------------------------------------- plain / doc pages */
.plain { padding-block: clamp(6rem, 16vh, 9rem) clamp(3rem, 9vw, 6rem); background: var(--bg-cool); min-height: 70vh; }
.plain--doc { background: var(--bg); }
.doc { max-width: 720px; }
.doc h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.doc h2 { font-size: var(--step-1); margin: 1.8rem 0 0.5rem; color: var(--navy); }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.doc__upd { color: var(--ink-mute); font-size: var(--step--1); margin-bottom: 1rem; }
.doc__back { margin-top: 2.5rem; }
.doc__back a { color: var(--orange-600); font-weight: 600; }

/* ----------------------------------------------------------------- mi agenda */
.agenda { padding-block: clamp(6.5rem, 16vh, 9rem) clamp(3rem, 9vw, 6rem); background: var(--bg-cool); min-height: 80vh; }
.agenda__head { max-width: 60ch; margin-bottom: 2rem; }
.agenda__head .h2 { font-size: var(--step-3); }
.agenda__panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.agenda__h { font-size: var(--step-1); margin-bottom: 1.4rem; }
.timeline { list-style: none; padding: 0; display: grid; gap: 0.2rem; }
.timeline__row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.timeline__row:last-child { border-bottom: 0; }
.timeline__dot {
  width: 14px; height: 14px; border-radius: 50%; margin-top: 0.35rem;
  border: 3px solid var(--line); background: #fff;
}
.timeline--empty .timeline__row { opacity: 0.7; }
.timeline__tag {
  display: inline-block; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 0.2rem;
}
.timeline__row p { color: var(--ink-soft); font-size: var(--step-0); }
.agenda__empty {
  margin-top: 1.6rem; padding: 1.2rem 1.3rem;
  background: var(--orange-tint); border-radius: var(--radius-sm);
  color: #7a3417; font-size: var(--step-0);
}
.agenda__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; }
.agenda__foot p { color: var(--ink-mute); font-size: var(--step--1); }

/* ----------------------------------------------------------------- centrado en móvil (solo home) */
@media (max-width: 700px) {
  .page-home .hero__body,
  .page-home .section--intro .wrap,
  .page-home .section--gallery .wrap,
  .page-home .section--memoria .memoria__grid,
  .page-home .std-card,
  .page-home .hero__aside .signup { text-align: center; }

  .page-home .hero__actions { justify-content: center; }

  .page-home .hero__lead,
  .page-home .section--intro .h2,  .page-home .section--intro .lead-2,
  .page-home .section--gallery .h2,
  .page-home .section--memoria .h2, .page-home .section--memoria .lead-2,
  .page-home .std-card .h2,         .page-home .std-card .lead-2,
  .page-home .std-card .form-msg { margin-inline: auto; }

  .page-home .pillar { text-align: center; }
  .page-home .pillar__ico { margin-inline: auto; }

  .page-home .std-card .field label,
  .page-home .std-card .form-note,
  .page-home .hero__aside .signup .field label { text-align: center; }
}

/* ----------------------------------------------------------------- utils */
[hidden] { display: none !important; }
