/* ============================================================
   VOLUNTARIAT ESPORTIU DE VALÈNCIA — main.css
   ============================================================ */

/* ── Design tokens — Brand Book 2026 ───────────────────────── */
:root {
  /* Paleta oficial */
  --brand:          #C9231D;   /* Roig Energia — Principal */
  --brand-light:    rgba(201, 35, 29, 0.09);
  --brand-dark:     #9E1B16;
  --blue:           #1B57A0;   /* Blau Compromís — Institucional */
  --blue-light:     rgba(27, 87, 160, 0.09);
  --orange:         #F5A100;   /* Taronja Comunitat — Accentuació */
  --orange-dark:    #D08900;
  --orange-light:   rgba(245, 161, 0, 0.12);
  --dark:           #0B1929;   /* Negre Nit */
  --navy:           #0F2240;
  --light:          #F4F3EF;   /* Blanc Sorra */
  --text:           #1A1A1A;
  --text-muted:     #6B7280;
  --gray:           #90909A;
  --bg:             #F4F3EF;
  --bg-secondary:   #E9E8E3;
  --border:         rgba(0, 0, 0, 0.08);
  --border-strong:  rgba(0, 0, 0, 0.14);
  --r:              10px;
  --r-sm:           6px;
  --topbar-h:       54px;
  --header-h:       64px;
  --font-display:   'Barlow Condensed', system-ui, sans-serif;
  --font-body:      'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,.08);
  --transition:     150ms ease;
}

/* ── Reset mínimo ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html {
  scroll-padding-top: var(--header-h); /* 64px — altura de la navbar sticky */
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   BARRA TRICOLOR — sistema gràfic del brand book
   ══════════════════════════════════════════════════════════════ */
.header-colorbar {
  display: flex;
  height: 4px;
  width: 100%;
}
.header-colorbar__r { flex: 3; background: var(--brand); }
.header-colorbar__b { flex: 3; background: var(--blue); }
.header-colorbar__o { flex: 2; background: var(--orange); }

/* ══════════════════════════════════════════════════════════════
   SITE HEADER — wrapper full-width
   ══════════════════════════════════════════════════════════════ */
.site-header {
  width: 100%;
  /* El header completo NO es sticky: topbar + logo se desplazan.
     Solo la barra de navegación queda fija. */
}

/* Padding horizontal compartido para las tres capas */
.header-topbar__inner,
.header-brand__inner,
.header-navbar__inner {
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}

/* ══════════════════════════════════════════════════════════════
   BARRA SUPERIOR (topbar) — logos | social + idioma
   ══════════════════════════════════════════════════════════════ */
.header-topbar {
  background: var(--bg-secondary);
  border-bottom: 0.5px solid var(--border);
  height: var(--topbar-h);
}

.header-topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* — Logos institucionales (izquierda) — */
.header-topbar__logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-logo-link {
  display: flex;
  align-items: center;
  opacity: .82;
  transition: opacity var(--transition);
}
.topbar-logo-link:hover { opacity: 1; }

.topbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Separador vertical entre logos */
.header-topbar__logos .topbar-logo-link + .topbar-logo-link::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin-right: 1.25rem;
}

/* Placeholder cuando no hay logos subidos */
.topbar-logo-placeholder {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--r-sm);
}

/* — Derecha: redes + idioma — */
.header-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-divider {
  display: block;
  width: 1px;
  height: 16px;
  background: var(--border-strong);
}

/* — Redes sociales — */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 15px;
  transition: color var(--transition), background var(--transition);
}
.topbar-social__link:hover {
  color: var(--blue);
  background: var(--blue-light);
}

/* — Selector de idioma — */
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  line-height: 1;
}
.topbar-lang__btn:hover {
  color: var(--brand);
  background: var(--brand-light);
  border-color: var(--brand);
}
.topbar-lang__sep { font-size: 10px; color: var(--border-strong); user-select: none; padding-inline: 2px; }


/* ══════════════════════════════════════════════════════════════
   ÁREA DEL LOGO PRINCIPAL — centrado, fondo blanco
   ══════════════════════════════════════════════════════════════ */
/* Logo dentro de la navbar */
.header-navbar__logo {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  flex-shrink: 0;
}

.header-navbar__logo .custom-logo {
  height: clamp(56px, 7vw, 84px);
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 300ms ease;
}

/* Logo de texto de respaldo */
.header-brand__logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-text__top {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.logo-text__bot {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text);
}


/* ══════════════════════════════════════════════════════════════
   BARRA DE NAVEGACIÓN — full-width, sticky
   ══════════════════════════════════════════════════════════════ */
.header-navbar {
  background: #ffffff;
  position: relative; /* sin sticky en escritorio */
  top: auto;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-bottom: 1px solid var(--border);
}

/* Móvil: en flujo normal hasta que JS añade is-sticky */
@media (max-width: 1024px) {
  .header-navbar {
    position: relative;
    top: auto;
  }
  .header-navbar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
}

.header-navbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 84px;
  transition: min-height 300ms ease;
}

/* — Menú principal (columna central, centrada) — */
.header-navbar__nav {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  height: 100%;
}

.nav-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 16px;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
  border-right: 1px solid var(--border);
}

.nav-menu > li:first-child > a { border-left: 1px solid var(--border); }

/* Indicador de línea inferior */
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.nav-menu > li > a:hover { color: var(--brand); }
.nav-menu > li > a:hover::after { transform: scaleX(1); }

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--brand);
}
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Submenú dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: white;
  border: 0.5px solid var(--border);
  border-top: 3px solid var(--dark);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 300;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 11px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-menu .sub-menu a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

/* — Extras: zona privada + CTA + hamburguesa — */
.header-navbar__extras {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1.25rem;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

/* Botón Zona Voluntario */
.navbar-zone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 14px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.navbar-zone-btn:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand);
}

/* Botón CTA (hazte voluntario) */
.navbar-cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--brand);
  padding: 0 20px;
  height: 40px;
  border-radius: var(--r-sm);
  border: none;
  box-shadow: 0 2px 8px rgba(201, 35, 29, 0.30);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.navbar-cta-btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(201, 35, 29, 0.40);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ── Hamburguesa ────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 52px;
  height: 100%;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  cursor: pointer;
  padding: 14px;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}

/* Estado abierto */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay móvil ──────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 190;
  opacity: 0;
  transition: opacity 250ms ease;
}
.nav-overlay.is-visible { opacity: 1; }


/* ── Elementos del drawer (ocultos en desktop) ─────────────── */
.drawer-header  { display: none; }
.drawer-actions { display: none; }

/* ── Wrappers de menú desktop / móvil ──────────────────────── */
/* Desktop: el wrapper ocupa toda la altura del nav y permite que
   .nav-menu se extienda correctamente en grid de 3 columnas.   */
.nav-desktop {
  display: flex;
  height: 100%;
  overflow: visible;
}
.nav-mobile { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 1024px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* ── Navbar: colapsar, ocultar nav desktop, mostrar toggle ── */
  .header-navbar__inner        { grid-template-columns: auto auto; justify-content: space-between; }
  .header-navbar__nav          { display: none; }
  .nav-toggle                  { display: flex; }
  .navbar-zone-btn .navbar-zone-btn__label { display: none; }
  .navbar-cta-btn              { display: none; }
  .header-navbar__logo         { padding-inline: 0; }
  .header-navbar__extras       { padding-inline: 0; gap: 0.5rem; }
  .header-navbar__logo .custom-logo { height: 62px; }
  .nav-toggle { border: none; width: 36px; padding: 8px 0 8px 8px; }

  /* ── Overlay ── */
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.is-visible { pointer-events: auto; }

  /* ══ DRAWER ════════════════════════════════════════════════ */

  /* Contenedor: columna flex, el scroll lo gestiona nav-mobile */
  .header-navbar__nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -360px;
    width: min(360px, 92vw);
    height: 100dvh;
    background: #fff;
    z-index: 201;
    overflow: hidden;
    border-left: 1px solid var(--border);
    transition: right 320ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 320ms ease;
  }
  .header-navbar__nav.is-open {
    right: 0;
    box-shadow: -20px 0 60px rgba(0,0,0,.16);
  }

  /* ── Cabecera del drawer ── */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 0 1.5rem;
    height: 58px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
  }
  .drawer-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .drawer-header__bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
  }
  .drawer-header__bars span        { display: block; width: 3px; border-radius: 2px; }
  .drawer-header__bars span:nth-child(1) { height: 16px; background: var(--brand); }
  .drawer-header__bars span:nth-child(2) { height: 11px; background: var(--blue); }
  .drawer-header__bars span:nth-child(3) { height: 7px;  background: var(--orange); }
  .drawer-header__title {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
  }
  .drawer-close:hover {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--text-muted);
  }

  /* ── Zona de scroll: solo nav-mobile se desplaza ── */
  .nav-desktop { display: none; }
  .nav-mobile {
    display: block;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* ── Items del menú ── */
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 0.5rem 0 0.75rem;
    margin-top: 0;
  }
  .nav-menu > li          { border: none; display: block; }
  .nav-menu > li > a {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0 1.5rem;
    min-height: 54px;
    display: flex;
    align-items: center;
    border-right: none;
    border-left: none;
    border-bottom: 0.5px solid var(--border);
    background: none;
    justify-content: space-between;
    transition: background var(--transition), color var(--transition);
  }
  .nav-menu > li > a::after        { display: none; }
  .nav-menu > li:first-child > a   { border-left: none; }
  .nav-menu > li > a:hover         { background: var(--brand-light); color: var(--brand); }
  .nav-menu > li.current-menu-item > a {
    color: var(--brand);
    background: var(--brand-light);
    box-shadow: inset 3px 0 0 var(--brand);
  }

  /* ── Chevron de submenú ── */
  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
                background var(--transition), border-color var(--transition),
                color var(--transition);
  }
  .nav-menu > li.is-open > a .submenu-toggle {
    transform: rotate(180deg);
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
  }

  /* ── Submenús ── */
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    background: var(--bg-secondary);
    padding: 0.375rem 0;
    margin-top: 0;
    display: none;
    border-bottom: 0.5px solid var(--border);
  }
  .nav-menu li.is-open > .sub-menu { display: block; }
  .nav-menu .sub-menu a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0 1.5rem 0 2.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 0.5px solid var(--border);
    transition: color var(--transition), background var(--transition);
  }
  .nav-menu .sub-menu li:last-child > a { border-bottom: none; }
  .nav-menu .sub-menu a:hover { background: #fff; color: var(--brand); }

  /* ── Acciones rápidas — pie fijo del drawer ── */
  .drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(0,0,0,.05);
  }
  .drawer-actions__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    height: 48px;
    border-radius: var(--r-sm);
    box-shadow: 0 2px 10px rgba(201,35,29,.28);
    transition: background var(--transition), box-shadow var(--transition),
                transform var(--transition);
  }
  .drawer-actions__cta:hover {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(201,35,29,.38);
    transform: translateY(-1px);
  }
  .drawer-actions__zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    height: 44px;
    border-radius: var(--r-sm);
    background: transparent;
    transition: color var(--transition), background var(--transition),
                border-color var(--transition);
  }
  .drawer-actions__zone:hover {
    color: var(--blue);
    background: var(--blue-light);
    border-color: var(--blue);
  }
}

/* ── Topbar responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --topbar-h: auto; }
  .header-topbar { height: auto; padding-block: 6px; }
  .header-topbar__inner { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  .header-topbar__logos { gap: 0.75rem; }
  .topbar-logo { height: 30px; }
  .topbar-logo-placeholder { font-size: 9px; }
  .topbar-social__link { width: 26px; height: 26px; font-size: 14px; }

  /* En móvil pequeño el logo principal */
  .header-navbar__logo .custom-logo { height: 58px; }
  .header-navbar__inner { min-height: 68px; }
}


/* ── Navbar al hacer scroll: sombra + logo reducido (solo móvil) ─── */
@media (max-width: 1024px) {
  .header-navbar.is-scrolled {
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
  }
  .header-navbar.is-scrolled .header-navbar__inner {
    min-height: 58px;
  }
  .header-navbar.is-scrolled .header-navbar__logo .custom-logo {
    height: 44px;
  }
}

/* ── Franja tricolor en el borde superior del drawer ────────── */
@media (max-width: 1024px) {
  .header-navbar__nav::before {
    content: '';
    display: block;
    flex-shrink: 0;
    height: 3px;
    background: linear-gradient(
      to right,
      var(--brand)  37.5%,
      var(--blue)   37.5% 75%,
      var(--orange) 75%
    );
  }
}


/* ══════════════════════════════════════════════════════════════
   UTILIDADES GLOBALES
   ══════════════════════════════════════════════════════════════ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.screen-reader-text:focus {
  background: white;
  clip: auto;
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}

/* Skip link */
/* ══════════════════════════════════════════════════════════════
   SECCIONES — layout base
   ══════════════════════════════════════════════════════════════ */
.section { padding-block: 4rem; }
.section--secondary { background: var(--bg-secondary); }
.section--dark {
  background: var(--dark);
}
.section--dark .sec-title  { color: white; }
.section--dark .sec-desc   { color: rgba(255,255,255,.45); }
.section--dark .eyebrow    { color: var(--brand); }

.section__more {
  text-align: center;
  margin-top: 1.5rem;
}
.section__more a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section__more a:hover { gap: 8px; }

/* ── Eyebrow / títulos de sección ──────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}
.syne { font-family: var(--font-display); }

.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.sec-desc {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ── Grids ─────────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }


/* ══════════════════════════════════════════════════════════════
   CARDS base
   ══════════════════════════════════════════════════════════════ */
.card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__body { padding: 1.25rem; }

.card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: gap var(--transition);
}
.card-link:hover { gap: 9px; }
.card-link--teal  { color: #0B7A74; }
.card-link--muted { color: var(--text-muted); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--brand-light);
  color: var(--brand);
}
.badge--purple { background: rgba(92,51,178,.09); color: #5C33B2; }
.badge--teal   { background: rgba(14,122,116,.09); color: #0B7A74; }


/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: white;
  padding-block: 4rem 3rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn--lg { font-size: .9rem; padding: 10px 22px; border-radius: 9px; }
.btn--outline {
  font-size: .9rem;
  padding: 9px 18px;
  border-radius: 9px;
  border: 0.5px solid #D1D5DB;
  color: var(--text-muted);
  background: transparent;
}
.btn--outline:hover { border-color: var(--text-muted); color: var(--text); background: var(--bg-secondary); }

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__stat-num  { display: block; font-size: 1.5rem; font-weight: 800; }
.hero__stat-label { display: block; font-size: .8rem; color: var(--text-muted); }

/* Hero aside */
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero__event-card {
  display: block;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.hero__event-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.hero__event-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: var(--brand-light);
  border-radius: 0 var(--r) 0 80px;
}
.hero__event-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.hero__event-name  { font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; }
.hero__event-date  { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.hero__event-status {
  margin-top: .875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot--green { background: #22c55e; }

.hero__anniversary {
  background: var(--brand);
  border-radius: var(--r);
  padding: .875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: rgba(255,255,255,.7);
}

/* ── Barra institucional ────────────────────────────────────── */
.inst-bar {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: .875rem 0;
  background: var(--bg-secondary);
}
.inst-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.inst-bar__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.inst-bar__pills { display: flex; gap: .75rem; flex-wrap: wrap; }
.inst-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 5px;
  border: 0.5px solid var(--border);
}


/* ══════════════════════════════════════════════════════════════
   CARDS — audiencias
   ══════════════════════════════════════════════════════════════ */
.card--audience { display: flex; flex-direction: column; }
.aud-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: .875rem;
}
.aud-icon--orange { background: var(--brand-light); color: var(--brand); }
.aud-icon--teal   { background: rgba(14,122,116,.09); color: #0B7A74; }
.aud-icon--gray   { background: var(--bg-secondary); color: var(--text-muted); }
.card--audience h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.card--audience p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .875rem; }


/* ══════════════════════════════════════════════════════════════
   CARDS — eventos
   ══════════════════════════════════════════════════════════════ */
.card--event { padding: 0; overflow: hidden; }
.event-top-bar { height: 4px; background: var(--brand); }
.card--event-purple .event-top-bar { background: #5C33B2; }

.event-date {
  font-size: .75rem; font-weight: 600;
  color: var(--brand);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .4rem;
  display: flex; align-items: center; gap: 4px;
}
.event-date--purple { color: #5C33B2; }
.event-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.25; }
.event-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: .875rem; margin-bottom: .875rem; flex-wrap: wrap; }
.event-meta span { display: flex; align-items: center; gap: 3px; }
.event-link {
  font-size: .85rem; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.event-link:hover { gap: 8px; }
.event-link--purple { color: #5C33B2; }


/* ══════════════════════════════════════════════════════════════
   CARDS — beneficios
   ══════════════════════════════════════════════════════════════ */
.ben-icon { font-size: 20px; color: var(--brand); margin-bottom: .75rem; }
.card--benefit h4 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.card--benefit p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.card--benefit-highlight {
  border-color: var(--brand);
  background: var(--brand-light);
}
.card--benefit-highlight h4 { color: #993C1D; }
.card--benefit-highlight p  { color: #993C1D; opacity: .8; }
.card--benefit-highlight .ben-icon { color: var(--brand); }


/* ══════════════════════════════════════════════════════════════
   STEPS (proceso inscripción) — sección oscura
   ══════════════════════════════════════════════════════════════ */
.step-card {
  border: 0.5px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 1.25rem;
  background: rgba(255,255,255,.03);
}
.step-card--highlight {
  border-color: var(--brand);
  background: var(--brand-light);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  opacity: .2; color: var(--brand);
  line-height: 1; margin-bottom: .5rem;
}
.step-card--highlight .step-num { opacity: 1; }
.step-icon { font-size: 20px; color: var(--brand); margin-bottom: .5rem; }
.step-card h4 { font-size: .95rem; font-weight: 700; color: white; margin-bottom: .35rem; }
.step-card p  { font-size: .825rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.step-card--highlight h4 { color: var(--brand); }
.step-card--highlight p  { color: #993C1D; opacity: .85; }


/* ══════════════════════════════════════════════════════════════
   BICI-VOLUNTARIOS
   ══════════════════════════════════════════════════════════════ */
.bici-block {
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--bg-secondary);
}
.bici-perks { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1.25rem; }
.bici-perk {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 500;
  padding: 4px 10px; border-radius: 6px;
  border: 0.5px solid #D1D5DB; color: var(--text-muted);
}
.bici-block__icon { font-size: 4rem; opacity: .2; color: var(--text-muted); padding: 1rem; }
.btn--teal {
  font-size: .875rem; font-weight: 500;
  padding: 8px 18px; border-radius: 8px;
  border: 0.5px solid #0B7A74; color: #0B7A74;
  background: rgba(14,122,116,.06);
  font-family: var(--font-body);
  cursor: pointer; display: inline-flex; align-items: center;
  transition: background var(--transition);
}
.btn--teal:hover { background: rgba(14,122,116,.12); }


/* ══════════════════════════════════════════════════════════════
   CTA + FORMULARIO
   ══════════════════════════════════════════════════════════════ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.cta-steps {
  display: flex; flex-direction: column; gap: .75rem;
  list-style: none; counter-reset: cta-step;
}
.cta-steps li {
  counter-increment: cta-step;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: var(--text-muted);
}
.cta-steps li::before {
  content: counter(cta-step);
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.cta-form-card { background: white; }

/* Formulario */
.form-label {
  display: block;
  font-size: .8rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 5px;
}
.form-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 0.5px solid #D1D5DB;
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-secondary);
  margin-bottom: .875rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-input:focus { outline: none; border-color: var(--brand); background: white; }

/* Barra de progreso del formulario */
.step-bar { display: flex; gap: 5px; margin-bottom: 1.25rem; }
.step-seg { height: 3px; border-radius: 2px; flex: 1; background: var(--border); }
.step-seg--on { background: var(--brand); }


/* ══════════════════════════════════════════════════════════════
   FOOTER — full width, brand book
   ══════════════════════════════════════════════════════════════ */

/* Franja tricolor — idèntica a la del brand book */
.footer-stripe {
  display: flex;
  height: 4px;
  width: 100%;
}
.footer-stripe__r { flex: 3; background: var(--brand); }
.footer-stripe__b { flex: 3; background: var(--blue); }
.footer-stripe__o { flex: 2; background: var(--orange); }

.footer-dark {
  background: var(--dark);
  color: rgba(255,255,255,.42);
  font-family: var(--font-body);
}

/* Wrapper interior: padding lateral fluid, sense max-width */
.footer-inner {
  padding: 4rem clamp(1.25rem, 8vw, 7rem) 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

/* ── Col brand ── */
.footer-col--brand {
  padding-right: 2rem;
  border-right: 1px solid rgba(255,255,255,.07);
}
.footer-logo { margin-bottom: 1.5rem; }
.footer-logo .custom-logo { height: 80px; width: auto; filter: brightness(0) invert(1); opacity: 1; }

/* Logo de texto de respaldo (igual que el header pero invertido) */
.footer-logo .header-main__logo-fallback .logo-mark {
  background: var(--brand);
}
.footer-logo .header-main__logo-fallback .logo-text__top {
  color: rgba(255,255,255,.35);
}
.footer-logo .header-main__logo-fallback .logo-text__bot {
  color: white;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

.footer-inst-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  padding: 3px 8px;
  border: 0.5px solid rgba(255,255,255,.1);
  border-radius: 2px;
}

.footer-social { display: flex; gap: 6px; margin-top: .25rem; }
.footer-social__link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9px;
  color: rgba(255,255,255,.55); font-size: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.footer-social__link:hover {
  color: var(--orange);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.15);
}

/* ── Columnes de navegació ── */
.footer-col__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-menu { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-menu a {
  font-size: .875rem;
  color: rgba(255,255,255,.52);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-menu a:hover { color: var(--orange); padding-left: 4px; }

.footer-contact-list {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}
.footer-contact-item__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  color: var(--orange);
  font-size: 1rem;
  margin-top: .05rem;
}
.footer-contact-item__label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.3);
  line-height: 1.2;
  margin-bottom: .1rem;
}
.footer-contact-item a { color: var(--orange); transition: opacity var(--transition); }
.footer-contact-item a:hover { opacity: .75; }

/* ── Barra inferior — full width ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem clamp(1.25rem, 8vw, 7rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

.footer-legal { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-legal a {
  color: rgba(255,255,255,.2);
  letter-spacing: .12em;
  transition: color var(--transition);
}
.footer-legal a:hover,
.footer-legal a.is-active { color: var(--orange); }
.footer-legal__sep { color: rgba(255,255,255,.1); }
.footer-lang a.is-active { display: none; }


/* ── Bloque Colaboradors ─────────────────────────────────────── */
.footer-colabs {
  padding: 2rem clamp(1.25rem, 8vw, 7rem);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-colabs__heading {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 1.5rem;
}

.footer-colabs__groups {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.footer-colabs__group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-inline: 2.5rem;
}

/* Primer grupo sin padding izquierdo */
.footer-colabs__group:first-child { padding-left: 0; }

/* Separador vertical entre grupos */
.footer-colabs__group + .footer-colabs__group {
  border-left: 1px solid rgba(255,255,255,.07);
}

.footer-colabs__label {
  font-family: var(--font-display);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  display: block;
  white-space: nowrap;
}

.footer-colabs__logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Logo: blanco filtrado, opacidad reducida → hover a opacidad plena */
.footer-colabs__link {
  display: inline-flex;
  align-items: center;
  filter: brightness(0) invert(1);
  opacity: .38;
  transition: opacity 200ms ease;
}

.footer-colabs__link:hover { opacity: .85; }

.footer-colabs__link--static { cursor: default; }
.footer-colabs__link--static:hover { opacity: .38; }

.footer-colabs__img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 700px) {
  .footer-colabs { padding: 1.75rem 1.25rem; }
  .footer-colabs__groups { flex-direction: column; gap: 1.5rem; }
  .footer-colabs__group {
    padding-inline: 0;
    border-left: none !important;
    align-items: center;
  }
  .footer-colabs__group + .footer-colabs__group {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .footer-colabs__logos { justify-content: center; }
  .footer-colabs__img { height: 34px; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — HOMEPAGE + FOOTER
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .bici-block { grid-template-columns: 1fr; }
  .bici-block__icon { display: none; }
}
@media (max-width: 560px) {
  /* ── Layout general ── */
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { padding: 2.5rem 1.5rem 2rem; }
  .footer-colabs__img { height: 38px; }

  /* ── Col brand: todo centrado ── */
  .footer-col--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding-bottom: 2rem;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.25rem;
  }
  .footer-logo .custom-logo { height: 72px; }
  .footer-tagline { text-align: center; }
  .footer-inst-badges {
    justify-content: center;
    width: 100%;
  }
  .footer-social {
    justify-content: center;
    width: 100%;
  }

  /* ── Barra inferior: centrada ── */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem;
  }
  .footer-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
  }
  .footer-copy__sep { display: none; }

  /* ── Menú legal: vertical, centrado, touch targets 44px ── */
  .footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .footer-legal a {
    font-size: .875rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-block: 4px;
    letter-spacing: .08em;
  }
  .footer-legal__sep { display: none; }

  /* ── Idioma: botones grandes, centrados ── */
  .footer-lang {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    width: 100%;
  }
  .footer-lang a {
    min-height: 44px;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    padding-inline: 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    letter-spacing: .12em;
  }
  .footer-lang a.is-active {
    color: var(--orange);
    border-color: var(--orange);
  }

  /* ── Resto de secciones ── */
  .section { padding-block: 2.5rem; }
  .hero    { padding-block: 2.5rem 2rem; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .inst-bar__inner { gap: .5rem; }
}

/* ══════════════════════════════════════════════════════════════
   ACCESIBILIDAD — Skip link + Focus visible
   ══════════════════════════════════════════════════════════════ */

/* Skip to content — solo visible al recibir foco */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 99999;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  white-space: normal;
  padding: .625rem 1.25rem;
  background: var(--dark);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
  outline: 3px solid var(--orange);
  outline-offset: 0;
}

/* Focus visible global — anillo de foco accesible en todos los elementos */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Botones y links: quitar outline en click, mantener en teclado */
:focus:not(:focus-visible) {
  outline: none;
}

/* Asegurar contraste en enlaces dentro de párrafos */
p a, li a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
p a:hover, li a:hover {
  color: var(--brand);
}


/* ══════════════════════════════════════════════════════════════
   ENTRY CONTENT — tipografía estándar para page.php (subpáginas)
   Iguala el prose standard del resto del sitio: 1rem / 1.75 / --text
   ══════════════════════════════════════════════════════════════ */
.page-entry {
  padding-block: 3rem 4rem;
  max-width: 780px;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.entry-content p { margin: 0 0 1.25rem; }
.entry-content p:last-child { margin-bottom: 0; }

.entry-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
}
.entry-content h2:first-child { margin-top: 0; }

.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.entry-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}
.entry-content li { margin-bottom: 0.45rem; }
.entry-content ul li::marker { color: var(--brand); }
.entry-content ol li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}

.entry-content strong { font-weight: 700; color: var(--text); }
.entry-content em { font-style: italic; }

.entry-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity var(--transition);
}
.entry-content a:hover { opacity: 0.75; }

.entry-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 0.8rem 1.25rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  margin: 1.75rem 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.entry-content blockquote p { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   WORDPRESS ADMIN BAR — offset para barras de anclas sticky
   WP añade clase admin-bar a <body> y margin-top: 32px a <html>
   ══════════════════════════════════════════════════════════════ */
body.admin-bar .vol-anchors,
body.admin-bar .frm-anchors,
body.admin-bar .bici-anchors,
body.admin-bar .of-anchors,
body.admin-bar .ins-anchors {
  top: 32px;
}

@media (max-width: 1024px) {
  body.admin-bar .vol-anchors,
  body.admin-bar .frm-anchors,
  body.admin-bar .bici-anchors,
  body.admin-bar .of-anchors,
  body.admin-bar .ins-anchors {
    top: calc(58px + 32px);
  }
}

@media (max-width: 782px) {
  body.admin-bar .vol-anchors,
  body.admin-bar .frm-anchors,
  body.admin-bar .bici-anchors,
  body.admin-bar .of-anchors,
  body.admin-bar .ins-anchors {
    top: calc(58px + 46px);
  }
}
