/* ==================================================
   TOKENS DE MARCA — ANA (Asociación Neuropsiquiátrica Argentina)
   ================================================== */

:root {
  /* Paleta oficial */
  --navy: #0d2b45;
  --navy-rgb: 13, 43, 69;
  --sky: #7cecff;
  --turquoise: #00a8cc;
  --turquoise-dark: #007ea0;
  --mist: #f5f7fa;
  --peach: #ffd7bb;
  --white: #ffffff;

  /* Derivados (mismo matiz, distinta intensidad) */
  --line: rgba(13, 43, 69, 0.12);
  --line-soft: rgba(13, 43, 69, 0.06);
  --ink-soft: rgba(13, 43, 69, 0.72);

  /* Tipografía (según manual de marca) */
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Sombras (con tinte navy, nunca planas) */
  --shadow-sm: 0 2px 10px rgba(var(--navy-rgb), 0.08);
  --shadow-md: 0 16px 32px -12px rgba(var(--navy-rgb), 0.22),
    0 4px 10px rgba(var(--navy-rgb), 0.08);
  --shadow-lg: 0 30px 60px -16px rgba(var(--navy-rgb), 0.28),
    0 10px 20px rgba(var(--navy-rgb), 0.1);

  /* Textura de ruido sutil para superficies oscuras */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Isologo (mismo archivo, recoloreado vía mask) */
  --logo-lockup: url("./img/logo-ana.png");
  --logo-compact: url("./img/logo-ana-compact.png");
}

/* ==================================================
   RESET & BASE
   ================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--mist);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
  position: relative;
}

section {
  padding: var(--space-2xl) 0;
}

section h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================================================
   UTILIDADES
   ================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Revelado al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--turquoise);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 168, 204, 0.55);
}

.btn-primary:hover {
  background-color: var(--turquoise-dark);
  box-shadow: 0 14px 30px -8px rgba(0, 168, 204, 0.6);
}

.btn-cursos {
  background-color: var(--turquoise);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 168, 204, 0.55);
}
.btn-cursos:hover {
  background-color: #d64609;
  box-shadow: 0 14px 30px -8px rgba(204, 92, 0, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover {
  background-color: rgba(var(--navy-rgb), 0.06);
  border-color: rgba(var(--navy-rgb), 0.3);
}

.btn-accent {
  background-color: var(--peach);
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(255, 215, 187, 0.7);
}

.btn-accent:hover {
  background-color: #ffc79e;
}

#edana-cta .btn-accent:hover {
  background-color: #002aff;
  box-shadow: 0 10px 24px -10px rgba(60, 60, 60, 0.7);
  color:white;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--turquoise-dark);
  text-decoration: none;
  position: relative;
}

.btn-link::after {
  content: "→";
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

.btn-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-link:hover::before {
  transform: scaleX(1);
}

/* ==================================================
   HEADER / NAV
   ================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

header.scrolled {
  background-color: rgba(13, 43, 69, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: clamp(150px, 16vw, 210px);
  aspect-ratio: 1600 / 591;
  background-color: var(--navy);
  -webkit-mask: var(--logo-lockup) center / contain no-repeat;
  mask: var(--logo-lockup) center / contain no-repeat;
  transition: background-color 0.35s ease;
}

header.scrolled .brand-mark {
  background-color: var(--white);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s ease;
}

header.scrolled nav a {
  color: var(--white);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--turquoise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  transition: color 0.3s ease;
}

header.scrolled .menu-toggle {
  color: var(--white);
}

/* ==================================================
   HERO — INICIO
   ================================================== */

#inicio {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  color: var(--white);
  background: radial-gradient(
        ellipse 70% 60% at 80% 0%,
        rgba(124, 236, 255, 0.18),
        transparent 60%
      ),
    linear-gradient(160deg, rgba(13, 43, 69, 0.92), rgba(8, 26, 43, 0.96)),
    url("./img/Congreso_ANA.jpg") center/cover;
}

#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-motif {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(620px, 60vw);
  height: auto;
  opacity: 0.6;
  pointer-events: none;
}

.hero-motif .motif-line {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  opacity: 0.75;
}

.hero-motif .motif-node {
  fill: var(--sky);
  opacity: 0;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-motif .motif-line {
    animation: motif-draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .hero-motif .motif-node {
    animation: motif-pop 0.7s ease-out forwards;
  }
  .hero-motif .motif-node:nth-child(1) { animation-delay: 0.5s; }
  .hero-motif .motif-node:nth-child(2) { animation-delay: 0.7s; }
  .hero-motif .motif-node:nth-child(3) { animation-delay: 0.9s; }
  .hero-motif .motif-node:nth-child(4) { animation-delay: 1.1s; }
  .hero-motif .motif-node:nth-child(5) { animation-delay: 1.3s; }
  .hero-motif .motif-node:nth-child(6) { animation-delay: 1.5s; }
  .hero-motif .motif-node:nth-child(odd) {
    animation: motif-pop 0.7s ease-out forwards, motif-pulse 4.5s ease-in-out infinite;
    animation-delay: 0.5s, 2.2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motif .motif-line { stroke-dashoffset: 0; }
  .hero-motif .motif-node { opacity: 0.85; }
}

@keyframes motif-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes motif-pop {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 0.85; transform: scale(1); }
}

@keyframes motif-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
}

#inicio h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

#inicio h1 em {
  font-style: normal;
  color: var(--sky);
}

#inicio .hero-content > p {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
}

/* ==================================================
   CURSOS
   ================================================== */

#cursos {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93),rgba(255, 255, 255, 0.93),rgba(255, 255, 255, 0.93), rgba(255, 132, 0, 0.521));
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
  margin-bottom: var(--space-xs);
}

.section-header img {
  max-width: 320px;
  height: auto;
  margin-top: var(--space-sm);
}

.cursos-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cursos-feature-text {
  display: flex;
  flex-direction: column;
}

.cursos-feature-text h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  margin-bottom: var(--space-md);
}

.cursos-feature-text p {
  max-width: 480px;
  margin-bottom: var(--space-lg);
  color: var(--ink-soft);
  font-size: 1.35rem;
}

.cursos-feature-text p span {
  color: #D62609;
}

.cursos-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cursos-feature-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--navy);
  box-shadow: var(--shadow-lg);
}

.cursos-feature-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ==================================================
   ESTADÍSTICAS
   ================================================== */

#estadisticas {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  padding: var(--space-xl) 0;
}

#estadisticas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  text-align: center;
}

.stat {
  padding: 0 64px;
}

.stat + .stat {
  border-left: 1px solid rgba(124, 236, 255, 0.22);
}

.stat span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 10px;
}

.stat p {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.counter::before {
  content: "+";
}

/* ==================================================
   SOBRE LA ASOCIACIÓN (Home)
   ================================================== */

#nosotrosHome {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.93), rgba(173, 215, 255, 0.96));
  padding: var(--space-2xl) 0;
}

#nosotrosHome .intro {
  max-width: 820px;
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.nosotrosHome-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: var(--space-xl);
}

.nosotrosHome-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 760px;
  background-color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease, border-color 0.4s ease;
}

.nosotrosHome-item:nth-child(even) {
  align-self: flex-end;
}

.nosotrosHome-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 168, 204, 0.3);
}

.item-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 168, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--turquoise-dark);
}

.item-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nosotrosHome-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.nosotrosHome-item p {
  line-height: 1.8;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
  position: relative;
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

footer .brand-mark {
  background-color: var(--white);
  width: 150px;
  margin: 0 auto var(--space-md);
  opacity: 0.92;
}

footer p {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ==================================================
   NOSOTROS / CONTACTO / CONGRESO — HEROES SECUNDARIOS
   ================================================== */

#contacto-hero,
#nosotros-hero, #edana-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(160deg, rgba(13, 43, 69, 0.93), rgba(8, 26, 43, 0.96)),
    url("./img/contacto-banner.jpg") center/cover;
}

#contacto-hero::before,
#nosotros-hero::before, #edana-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

#contacto-hero h1,
#nosotros-hero h1, #edana-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-bottom: var(--space-sm);
  color: var(--white);
}

#contacto-hero p,
#nosotros-hero p, #edana-hero p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

/* CONTACTO */

.page-contacto {
  background: linear-gradient(320deg, rgba(255, 255, 255, 0.93), rgba(194, 225, 255, 0.96));
}

.contacto-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.contacto-card {
  flex: 1;
  min-width: 380px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.contacto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contacto-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.contacto-card p {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

#ubicacion {
  text-align: center;
}

#ubicacion p {
  margin-bottom: var(--space-md);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

#ubicacion iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* NOSOTROS (página) */

#nosotros-presentacion {
  background: var(--white);
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-texto p {
  margin-bottom: var(--space-sm);
  line-height: 1.85;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.nosotros-imagen img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

/* ==================================================
   CONGRESO
   ================================================== */

#congreso-hero {
  position: relative;
  overflow: hidden;
  min-height: 84vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 160px 0 100px;
  background: radial-gradient(
        ellipse 70% 60% at 50% 0%,
        rgba(124, 236, 255, 0.16),
        transparent 60%
      ),
    linear-gradient(160deg, rgba(16, 100, 175, 0.88), rgba(8, 26, 43, 0.96)),
    url("./img/nh.jpg") center/cover;
}

#congreso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

#congreso-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

#congreso-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  max-width: 920px;
  margin: 24px auto 16px;
  color: var(--white);
}

#congreso-hero h1 em {
  font-style: normal;
  color: var(--sky);
}

#congreso-hero > .container > p {
  font-size: 1.2rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-info {
  display: flex;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  justify-content: center;
  gap: 36px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.hero-info div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade {
    opacity: 1;
    transform: none;
  }
}

#congreso-datos {
  background: var(--white);
  border-top: 1px solid var(--line);
}

#congreso-datos .stat span {
  color: var(--turquoise-dark);
}

#congreso-datos .stat p {
  color: var(--ink-soft);
}

#congreso-datos .stat + .stat {
  border-left: 1px solid var(--line);
}

#ejes_y_agenda {
  position: relative;
  background: linear-gradient(
      160deg,
      rgba(13, 43, 69, 0.94),
      rgba(8, 26, 43, 0.97)
    ),
    url("./img/Congreso_ANA_2.jpg") center/cover;
}

#ejes_y_agenda h2 {
  text-align: center;
  color: var(--white);
}

#ejes h2 {
  margin-bottom: var(--space-xl);
}

.ejes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.ejes-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px;
  border-radius: var(--radius-lg);
  color: var(--white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease;
}

.ejes-grid article:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.ejes-grid h3 {
  color: var(--sky);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.ejes-grid p {
  color: rgba(255, 255, 255, 0.78);
}

#agenda {
  padding-top: var(--space-xl);
}

#agenda h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 760px;
  margin: 0 auto;
}

.timeline article {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.timeline article:hover {
  background: rgba(255, 255, 255, 0.06);
}

.timeline article span {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky);
  font-size: 1.05rem;
}

.timeline article h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline article p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

#inscripcion {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

#inscripcion h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

#inscripcion p {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* ==================================================
   EDANA
   ================================================== */

/* Fondo ambiente — aurora de marca, fija detrás del contenido */
.page-edana::before,
.page-edana::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-edana::before {
  background: radial-gradient(
      ellipse 60% 55% at 12% 18%,
      rgba(255, 255, 255, 0.65) 0%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 55% 60% at 88% 55%,
      rgba(1, 208, 255, 0.6) 0%,
      transparent 85%
    ),
    radial-gradient(
      ellipse 65% 55% at 50% 98%,
      rgba(4, 247, 255, 0.55) 0%,
      transparent 65%
    ),
    linear-gradient(160deg, var(--navy) 0%, #e9f4ff 100%);
  background-blend-mode: screen, screen, overlay, normal;
  animation: edana-aurora-drift 32s ease-in-out infinite alternate;
}

.page-edana::after {
  background-image: var(--noise);
  opacity: 0.525;
  mix-blend-mode: overlay;
}

@keyframes edana-aurora-drift {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    background-position: -6% 5%, 5% -4%, 4% 4%, 0% 0%;
  }
}

#edana-presentacion {
  background: rgba(250, 247, 245, 0.68);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.edana-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.edana-texto p {
  margin-bottom: var(--space-sm);
  line-height: 1.85;
  color: black;
  font-size: 1.05rem;
}

.edana-texto span {
    color: #002aff;
}

.edana-imagen img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

#edana-cta {
  background: rgba(250, 247, 245, 0.68);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.cta-card {
  position: relative;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(
        ellipse 70% 70% at 50% 0%,
        rgba(124, 236, 255, 0.16),
        transparent 60%
      ),
    linear-gradient(160deg, rgba(13, 43, 69, 0.95), rgba(8, 26, 43, 0.97));
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
   background: url("img/edana_cta.jpg") center/cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  max-width: 520px;
  margin: 0 auto var(--space-sm);
  color: var(--white);
}

.cta-divider {
  width: 70px;
  height: 3px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--sky));
}

.cta-card p {
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 900px) {
  .nosotros-layout,
  .cursos-feature,
  .edana-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotrosHome-item:nth-child(even) {
    align-self: stretch;
  }

  .stat {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }

  .brand-mark {
    width: 130px;
    aspect-ratio: 1400 / 395;
    -webkit-mask-image: var(--logo-compact);
    mask-image: var(--logo-compact);
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 28px 0;
    background: var(--navy);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--white) !important;
  }

  #inicio {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-motif {
    opacity: 0.3;
    width: 80vw;
  }

  #nosotros-hero,
  #contacto-hero {
    padding: 140px 0 80px;
  }

  #congreso-hero {
    padding: 140px 0 80px;
  }

  .nosotrosHome-item {
    flex-direction: column;
  }

  .stats-grid {
    gap: 32px 0;
  }

  .stat {
    width: 50%;
    padding: 0;
  }

  .stat + .stat {
    border-left: none;
  }

  .contacto-card {
    min-width: 100%;
  }

  .timeline article {
    flex-direction: column;
    gap: 6px;
  }

  .timeline article span {
    width: auto;
  }
}
