/* ============================================================
   POTENCIAL COMUNITARIO — styles.css
   Diseño completo: variables, reset, tipografía, componentes
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Colores institucionales */
  --color-primary:        #1A4B7A;   /* Azul profundo institucional */
  --color-primary-dark:   #0F3057;
  --color-primary-light:  #2E6BA8;
  --color-accent:         #E8A020;   /* Dorado cálido */
  --color-accent-dark:    #C6851A;

  /* Neutros */
  --color-white:          #FFFFFF;
  --color-off-white:      #F7F8FA;
  --color-surface:        #EEF2F7;
  --color-border:         #DDE4EE;
  --color-text:           #1C2B3A;
  --color-text-muted:     #5A6B7B;
  --color-text-light:     #8A9BAA;

  /* Tipografía */
  --font-display:         'Playfair Display', Georgia, serif;
  --font-body:            'Inter', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem, 1.5vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 0.9375rem);
  --text-base: clamp(1rem, 2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 2.5vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 3vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 4vw, 2rem);
  --text-3xl:  clamp(2rem, 5vw, 2.75rem);
  --text-4xl:  clamp(2.5rem, 6vw, 3.5rem);
  --text-hero: clamp(2.75rem, 7vw, 4.5rem);

  /* Espaciado */
  --space-xs:   0.375rem;
  --space-sm:   0.75rem;
  --space-md:   1.25rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  5rem;
  --space-3xl:  8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  /* Efectos */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 4px rgba(26,75,122,0.06);
  --shadow-md:  0 4px 20px rgba(26,75,122,0.10);
  --shadow-lg:  0 12px 40px rgba(26,75,122,0.14);
  --shadow-xl:  0 24px 64px rgba(26,75,122,0.18);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 74px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;    /* clip ≠ hidden: no crea scroll container, solo corta */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}


/* ============================================================
   3. TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin-bottom: 0; }


/* ============================================================
   4. CONTENEDOR
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}


/* ============================================================
   5. HEADER & NAVBAR — CONCEPTO A · GLASSMORPHISM PILL
   ============================================================ */

/* ── Variables del sistema pill ── */
:root {
  --ha-pill-h:   56px;
  --ha-top-gap:  14px;
  --ha-total-h:  calc(var(--ha-pill-h) + var(--ha-top-gap) * 2);
  --ha-dark:     #0a1e3a;
  --ha-radius:   999px;
  --header-height: var(--ha-total-h);
}

/* ── Reset del .header base ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--ha-total-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--ha-top-gap);
  overflow: visible;
  transition: none;
}

.header.scrolled {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

/* ── PILL flotante ── */
.ha__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 2 * clamp(1.25rem, 5vw, 3rem)));
  height: var(--ha-pill-h);
  background: rgba(10, 26, 54, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ha-radius);
  padding: 0 clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1001;
  transition:
    background   0.45s ease,
    border-color 0.45s ease,
    box-shadow   0.45s ease;
}

/* Solidifica al hacer scroll */
.header.scrolled .ha__pill {
  background: rgba(255,255,255,0.97);
  border-color: rgba(221,228,238,0.90);
  box-shadow:
    0 2px 8px  rgba(10,22,40,0.06),
    0 12px 40px rgba(10,22,40,0.10);
}

/* ── Lados izquierdo / derecho ── */
.ha__side {
  flex: 1;
  display: flex;
}

.ha__side--right {
  justify-content: flex-end;
}

.ha__nav-list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Links de navegación ── */
.ha__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.ha__link::after { display: none !important; }

.ha__link-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.22s ease;
  white-space: nowrap;
}

.ha__link:hover            { background: rgba(255,255,255,0.09); }
.ha__link:hover .ha__link-label { color: #fff; }
.ha__link.active           { background: rgba(255,255,255,0.13); }
.ha__link.active .ha__link-label { color: #fff; font-weight: 700; }

/* Scrolled — texto oscuro */
.header.scrolled .ha__link-label          { color: var(--color-text-muted); }
.header.scrolled .ha__link:hover          { background: #f0f5fb; }
.header.scrolled .ha__link:hover .ha__link-label { color: var(--color-primary); }
.header.scrolled .ha__link.active         { background: #eef3fb; }
.header.scrolled .ha__link.active .ha__link-label { color: var(--color-primary); }

/* ── CTA ── */
.ha__link--cta {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.20);
  padding: 0.4rem 1rem 0.4rem 0.875rem !important;
  gap: 0.35rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.22s ease !important;
}

.ha__link--cta .ha__link-label { color: #fff !important; }

.ha__cta-arrow {
  width: 11px;
  height: 11px;
  stroke: rgba(255,255,255,0.80);
  flex-shrink: 0;
  transition: transform 0.22s ease, stroke 0.22s ease;
}

.ha__link--cta:hover {
  background: rgba(255,255,255,0.20) !important;
  border-color: rgba(255,255,255,0.35) !important;
  transform: translateY(-1px);
}

.ha__link--cta:hover .ha__cta-arrow {
  transform: translate(2px,-2px);
  stroke: #fff;
}

/* CTA scrolled */
.header.scrolled .ha__link--cta {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.header.scrolled .ha__link--cta .ha__link-label { color: #fff !important; }
.header.scrolled .ha__link--cta .ha__cta-arrow  { stroke: rgba(255,255,255,0.85); }
.header.scrolled .ha__link--cta:hover {
  background: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

/* ── LOGO CENTRAL ── */
.ha__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem);
}

.ha__logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.ha__logo-wordmark {
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
  line-height: 1;
  transition: color 0.4s ease;
}

.ha__logo-wordmark strong { font-weight: 800; letter-spacing: 0.04em; }

/* Logo scrolled */
.header.scrolled .ha__logo-img     { filter: none; opacity: 1; }
.header.scrolled .ha__logo-wordmark { color: var(--color-text-muted); }

/* ── HAMBURGER ── */
.ha__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Anula estilos del .hamburger base para este concepto */
.header.ha .hamburger {
  border: none;
  background: transparent;
}

.ha__ham-bar {
  display: block;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.22,1,0.36,1),
    opacity   0.25s ease,
    width     0.30s ease;
}

.ha__ham-bar--1 { width: 20px; }
.ha__ham-bar--2 { width: 13px; }
.ha__ham-bar--3 { width: 20px; }

.ha__hamburger:hover .ha__ham-bar--2 { width: 20px; }

.ha__hamburger.open .ha__ham-bar--1 { transform: translateY(6.5px) rotate(45deg); width: 20px; }
.ha__hamburger.open .ha__ham-bar--2 { opacity: 0; transform: scaleX(0); }
.ha__hamburger.open .ha__ham-bar--3 { transform: translateY(-6.5px) rotate(-45deg); width: 20px; }

/* Barras oscuras en scrolled */
.header.scrolled .ha__ham-bar { background: var(--color-text); }

/* ── PANEL MÓVIL — clip-path desde arriba ── */
.ha__mobile-nav {
  display: none;
  position: absolute;
  top: calc(var(--ha-pill-h) + var(--ha-top-gap) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 2rem));
  background: rgba(10, 26, 54, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 1.25rem 1rem;
  z-index: 1000;
  clip-path: inset(0 0 100% 0 round 20px);
  transition: clip-path 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ha__mobile-nav.open {
  clip-path: inset(0 0 0% 0 round 20px);
  pointer-events: all;
}

.ha__mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.ha__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.20s ease, color 0.20s ease;
}

/* Anula estilos base del .nav__link en móvil */
.ha__mobile-nav .nav__link::after { display: none !important; }

.ha__mobile-link:hover  { background: rgba(255,255,255,0.07); color: #fff; }
.ha__mobile-link.active { background: rgba(255,255,255,0.10); color: #fff; font-weight: 700; }

.ha__mobile-link--cta {
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}

.ha__mobile-link--cta:hover { background: rgba(255,255,255,0.15) !important; color: #fff; }

.ha__mobile-link--cta svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255,255,255,0.60);
  transition: transform 0.20s ease;
}

.ha__mobile-link--cta:hover svg { transform: translate(2px,-2px); }

/* ── "Revista Científica" móvil: texto navega (izquierda), flecha despliega (derecha) ── */
.ha__mobile-link--split {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.ha__mobile-link--split-label {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ha__mobile-nav .ha__mobile-link--split-toggle {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex: 0 0 40px;
  flex-shrink: 0;
  margin-left: 2px;
  border-radius: 12px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s ease, color 0.2s ease;
}

.ha__mobile-link--split-toggle:hover,
.ha__mobile-link--split-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.ha__mobile-link--split-toggle .ha__dropdown-chevron {
  width: 9px;
  height: 9px;
}

.ha__mobile-tagline {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.20);
  text-align: center;
  margin: 1rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Clases base que ya no aplican en este concepto ── */
.logo, .nav__list, .nav__link, .hamburger { /* conservadas para otras páginas */ }

/* ── Compensación hero / page-hero ── */
.hero       { padding-top: calc(var(--ha-total-h) + 0.5rem); }
.page-hero  { padding-top: calc(var(--ha-total-h) + var(--space-2xl)); }

/* ── Responsive del sistema pill ── */
@media (max-width: 1023px) {
  .ha__hamburger { display: flex; }
  .ha__side      { display: none; }
  .ha__mobile-nav { display: block; }

  .ha__logo {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
    flex: 0 0 auto;
    max-width: fit-content;
  }

  .ha__logo-img { width: 26px; height: 26px; flex-shrink: 0; }

  .ha__logo-wordmark { font-size: 0.6rem; color: rgba(255,255,255,0.65); }
  .header.scrolled .ha__logo-wordmark { color: var(--color-text-muted); }
}

@media (max-width: 479px) {
  .ha__logo-wordmark { display: none; }

  .ha__pill {
    width: calc(100% - 2rem);
    padding: 0 1rem;
  }
}

/* ── Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
  .ha__pill, .ha__link, .ha__link-label, .ha__link--cta,
  .ha__cta-arrow, .ha__ham-bar, .ha__logo-img,
  .ha__logo-wordmark, .ha__mobile-nav, .ha__mobile-link {
    transition: none !important;
    animation: none !important;
  }
}




/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,75,122,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(232,160,32,0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--color-off-white) 0%, var(--color-white) 60%, var(--color-surface) 100%);
  z-index: -1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 5%;
  width: clamp(280px, 40vw, 560px);
  height: clamp(280px, 40vw, 560px);
  border-radius: 50%;
  border: 1px solid rgba(26,75,122,0.06);
  animation: hero-float 8s ease-in-out infinite;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 10%;
  width: clamp(200px, 28vw, 400px);
  height: clamp(200px, 28vw, 400px);
  border-radius: 50%;
  border: 1px solid rgba(232,160,32,0.08);
  animation: hero-float 8s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

.hero__content {
  padding-block: var(--space-3xl);
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.08;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scroll-fade 2s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 0.5; transform: scaleY(1); }
}


/* ============================================================
   7. SECCIONES BASE
   ============================================================ */
.section {
  padding-block: var(--space-3xl);
}

.section--light {
  background: var(--color-off-white);
}

.section--accent {
  background: var(--color-primary);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-eyebrow--light {
  color: rgba(232,160,32,0.9);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.section-title--light {
  color: var(--color-white);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.section-desc--light {
  color: rgba(255,255,255,0.75);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-xl);
}


/* ============================================================
   8. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-off-white);
}

.btn--ghost-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
}

.btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.625rem 1.375rem;
}


/* ============================================================
   9. FEATURE CARDS (Presentación)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26,75,122,0.12);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card:hover .feature-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.feature-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ============================================================
   10. COURSE CARDS
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}

.course-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.course-card__img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26,75,122,0.3));
}

.course-card__img--1 {
  background-color: #1A4B7A;
  background-image:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(46,107,168,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(232,160,32,0.3) 0%, transparent 60%);
}

.course-card__img--2 {
  background-color: #0F3057;
  background-image:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(46,107,168,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(232,160,32,0.25) 0%, transparent 60%);
}

.course-card__img--3 {
  background-color: #153d6e;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(46,107,168,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 20%, rgba(232,160,32,0.2) 0%, transparent 60%);
}

.course-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.course-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(232,160,32,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  width: fit-content;
}

.course-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.course-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.course-card__meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 500;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}


/* ============================================================
   11. BENEFICIOS
   ============================================================ */
.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.benefit-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-block: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  letter-spacing: -0.03em;
}

.benefit-item__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.benefit-item__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* Columna texto benefits */
.benefits-text {
  padding-right: var(--space-lg);
}

.benefits-text .section-title {
  margin-bottom: var(--space-lg);
}

.benefits-text .section-desc {
  margin-bottom: var(--space-xl);
}


/* ============================================================
   12. ESTADÍSTICAS
   ============================================================ */
.stats-section {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-2xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--color-border);
}

.stat-item__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-item__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 2px;
}

.stat-item__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: var(--space-sm);
}


/* ============================================================
   13. DIPLOMADOS CARDS
   ============================================================ */
.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.diploma-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.diploma-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.diploma-card--featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.diploma-card--featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.diploma-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(232,160,32,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  width: fit-content;
}

.diploma-card__tag--light {
  color: var(--color-white);
  background: rgba(255,255,255,0.15);
}

.diploma-card__title {
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.25;
}

.diploma-card--featured .diploma-card__title {
  color: var(--color-white);
}

.diploma-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
}

.diploma-card--featured .diploma-card__text {
  color: rgba(255,255,255,0.75);
}

.diploma-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diploma-card__list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.diploma-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.diploma-card--featured .diploma-card__list li {
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   14. CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  padding-block: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232,160,32,0.05);
  pointer-events: none;
}

.cta-section__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta-section__title {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.cta-section__text {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--space-xl);
  line-height: 1.65;
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.65);
  padding-top: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--space-2xl);
}

.footer__brand,
.footer__col {
  min-width: 0;
}

.footer__contact li span {
  word-break: break-word;
  overflow-wrap: break-word;
}

.logo--footer .logo__mark--footer {
  background: var(--color-accent);
}

.logo--footer .logo__text--footer {
  color: rgba(255,255,255,0.8);
}

.logo--footer .logo__text--footer strong {
  color: var(--color-white);
}

/* Imagen y wordmark del logo en el footer
   Escopado bajo .footer — no afecta al menú ha__ */
.footer .logo__image,
.footer .logo__image--footer {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.footer .logo__text,
.footer .logo__text--footer {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.2;
}

.footer .logo__text strong,
.footer .logo__text--footer strong {
  display: block;
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.9rem;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-md);
  line-height: 1.7;
  max-width: 240px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--transition), color var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-lg);
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  text-align: center;
}


/* ============================================================
   16. ANIMACIONES / REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }


/* ============================================================
   17. SCROLL TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent);
}


/* ============================================================
   18. PÁGINAS INTERNAS — HERO SECUNDARIO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero--light::after {
  background: var(--color-off-white);
}

.page-hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,160,32,0.9);
  margin-bottom: var(--space-sm);
}

.page-hero__title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}


/* ============================================================
   19. EQUIPO CARDS (nosotros.html)
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-lg);
}

.team-card {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-surface);
  margin-inline: auto;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  overflow: hidden;
}

.team-card__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: var(--text-xs);
  color: var(--color-accent-dark);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}


/* ============================================================
   20. VALORES (nosotros.html)
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-lg);
}

.value-card {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.value-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ============================================================
   21. MISIÓN / VISIÓN (nosotros.html)
   ============================================================ */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.mv-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
}

.mv-card--mission {
  background: var(--color-primary);
}

.mv-card--vision {
  background: var(--color-surface);
}

.mv-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.mv-card--vision .mv-card__label {
  color: var(--color-primary);
}

.mv-card__title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.mv-card--vision .mv-card__title {
  color: var(--color-text);
}

.mv-card__text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
}

.mv-card--vision .mv-card__text {
  color: var(--color-text-muted);
}


/* ============================================================
   22. FILTROS (cursos.html)
   ============================================================ */
.filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 99px;
  padding: 0.5rem 1.375rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}


/* ============================================================
   23. FORMULARIO CONTACTO
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-layout > * {
  min-width: 0;    /* elimina el min-width:auto predeterminado de los grid items */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(26,75,122,0.08);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form-error {
  font-size: var(--text-xs);
  color: #e53e3e;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: none;
  background: rgba(26,75,122,0.06);
  border: 1.5px solid rgba(26,75,122,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-base);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

.map-embed {
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 240px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(30%);
}


/* ============================================================
   24. UTILIDADES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-lg  { margin-bottom: var(--space-lg); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
  justify-content: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb span {
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   DROPDOWN "REVISTA" — vertical, integrado al pill del header
   Se abre al pasar el mouse (hover). El clic en "Revista" navega.
   ============================================================ */

/* ── Botones dropdown reseteados ── */
.ha__dropdown-btn,
.ha__dropdown__sub-btn,
.ha__mobile-dropdown-btn,
.ha__mobile-subdropdown-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.ha__dropdown-chevron {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.55);
  transition: transform 0.25s ease, stroke 0.22s ease;
}

.ha__dropdown-btn:hover .ha__dropdown-chevron,
.ha__dropdown-btn.active .ha__dropdown-chevron { stroke: #fff; }

.header.scrolled .ha__dropdown-chevron { stroke: var(--color-text-light); }
.header.scrolled .ha__dropdown-btn:hover .ha__dropdown-chevron,
.header.scrolled .ha__dropdown-btn.active .ha__dropdown-chevron { stroke: var(--color-primary); }

/* Mobile sigue controlado por JS con aria-expanded */
.ha__mobile-dropdown-btn[aria-expanded="true"] .ha__dropdown-chevron,
.ha__mobile-subdropdown-btn[aria-expanded="true"] .ha__dropdown-chevron {
  transform: rotate(180deg);
}

/* Desktop — chevron rota al pasar el mouse */
.ha__nav-item--dropdown:hover > .ha__dropdown-btn .ha__dropdown-chevron {
  transform: rotate(180deg);
}

/* ── Panel vertical (desktop) — mismo lenguaje visual del pill ── */
.ha__nav-item--dropdown { position: relative; }

.ha__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: rgba(15, 36, 68, 0.98);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(5,12,28,0.35);
  z-index: 1002;
}

/* Puente invisible: cubre el espacio entre "Revista" y el panel
   para que el hover no se pierda al bajar el cursor */
.ha__dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Se abre con hover sobre el item "Revista" */
.ha__nav-item--dropdown:hover > .ha__dropdown {
  display: block;
}

.ha__dropdown li { position: relative; }

.ha__dropdown > li > a,
.ha__dropdown__sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

.ha__dropdown > li > a:hover,
.ha__dropdown__sub-btn:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

.ha__dropdown__sub-btn .ha__dropdown-chevron {
  stroke: rgba(255,255,255,0.45);
  transform: rotate(-90deg);
}
.ha__dropdown > li:hover > .ha__dropdown__sub-btn {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

/* ── Submenú anidado "Acerca de" (desktop) — FLYOUT lateral, se abre con hover ── */
.ha__dropdown__sub {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin: 0 0 0 8px;
  min-width: 240px;
  list-style: none;
  padding: 0.5rem 0;
  background: rgba(15, 36, 68, 0.98);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(5,12,28,0.35);
  z-index: 1003;
}

/* Puente invisible: cubre el espacio entre "Acerca de" y su flyout
   para que el hover no se pierda al mover el cursor hacia el costado */
.ha__dropdown__sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
}

.ha__dropdown > li:hover > .ha__dropdown__sub {
  display: block;
}

.ha__dropdown__sub li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.ha__dropdown__sub li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

/* ── Header scrolled — versión clara ── */
.header.scrolled .ha__dropdown {
  background: rgba(255,255,255,0.98);
  border-color: rgba(221,228,238,0.9);
  box-shadow: var(--shadow-lg);
}
.header.scrolled .ha__dropdown > li > a,
.header.scrolled .ha__dropdown__sub-btn {
  color: var(--color-text-muted);
}
.header.scrolled .ha__dropdown > li > a:hover,
.header.scrolled .ha__dropdown__sub-btn:hover {
  color: var(--color-primary);
  background: #f0f5fb;
}
.header.scrolled .ha__dropdown > li:hover > .ha__dropdown__sub-btn {
  color: var(--color-primary);
  background: #f0f5fb;
}
.header.scrolled .ha__dropdown__sub {
  background: rgba(255,255,255,0.98);
  border-color: rgba(221,228,238,0.9);
  box-shadow: var(--shadow-lg);
}
.header.scrolled .ha__dropdown__sub li a {
  color: var(--color-text-muted);
}
.header.scrolled .ha__dropdown__sub li a:hover {
  color: var(--color-primary);
  background: #f0f5fb;
}
/* ============================================================
   ACORDEÓN "REVISTA" — versión móvil (dentro de .ha__mobile-nav)
   ============================================================ */
.ha__mobile-dropdown-btn,
.ha__mobile-subdropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.ha__mobile-submenu,
.ha__mobile-subsubmenu {
  display: none;
  list-style: none;
  margin: 0.125rem 0 0.25rem;
  padding: 0;
}

.ha__mobile-submenu.open,
.ha__mobile-subsubmenu.open { display: block; }

.ha__mobile-submenu > li > a,
.ha__mobile-subdropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem 0.7rem 1.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ha__mobile-submenu > li > a:hover,
.ha__mobile-subdropdown-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.ha__mobile-subsubmenu li a {
  display: block;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ha__mobile-subsubmenu li a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.ha__mobile-dropdown-btn .ha__dropdown-chevron,
.ha__mobile-subdropdown-btn .ha__dropdown-chevron {
  width: 9px;
  height: 9px;
}