/* ===== RESET & BASE ===== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --umid-red: #e00000;
      --umid-red-dark: #aa0000;
      --umid-blue: #001885;
      --umid-navy: #1b2631;
      --white: #ffffff;
      --off-white: #f8f9fa;
      --gray-100: #f1f3f5;
      --gray-200: #e9ecef;
      --gray-400: #adb5bd;
      --gray-500: #868e96;
      --gray-600: #6c757d;
      --gray-700: #495057;
      --gray-800: #343a40;
      --gray-900: #212529;
      --radius: 0.75rem;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
      --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
      --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
      --transition: 0.3s ease;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: var(--gray-900);
      background: var(--white);
      line-height: 1.6;
      overflow-x: hidden;
    }

    img { display: block; max-width: 100%; }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }

    /* ===== NAVBAR ===== */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: transparent;   /* 👈 transparente */
      box-shadow: none;
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }
    /* Estado al hacer scroll */
    .navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    }

    .navbar-inner {
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 74px;
      padding: 0 16px;
    }

    .navbar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }
    .nav__logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}
    .navbar-logo-icon {
      width: 36px; height: 36px;
      background: var(--umid-red);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      font-weight: 700;
      font-size: 14px;
    }
    .navbar-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
    .navbar-logo-text strong { font-size: 18px; font-weight: 800; color: var(--umid-navy); letter-spacing: -0.5px; }
    .navbar-logo-text span { font-size: 9px; color: var(--gray-500); display: none; }

    .navbar-links {
      display: none;
      align-items: center;
      gap: 4px;
    }
    .navbar-links a {
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      color: white;
      transition: background var(--transition), color var(--transition);
    }
    .navbar.scrolled .navbar-links a {
    color: var(--gray-800);
    }
    .navbar-links a:hover {
      background: var(--gray-100);
      color: var(--umid-red);
    }

    .navbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .btn-sistema {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--umid-red);
      color: var(--white);
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: background var(--transition);
      white-space: nowrap;
    }
    .btn-sistema:hover { background: #aa0000; }
    .btn-sistema svg { width: 16px; height: 16px; flex-shrink: 0; }
    .btn-sistema .full-text { display: none; }
    .btn-sistema .short-text { display: inline; }

    .btn-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px; height: 40px;
      border: none;
      background: transparent;
      border-radius: 8px;
      cursor: pointer;
      color: var(--gray-800);
      transition: background var(--transition);
    }
    .btn-toggle:hover { background: var(--gray-100); }
    .btn-toggle svg { width: 22px; height: 22px; }

    /* ===== SIDEBAR ===== */
    .sidebar-overlay {
      position: fixed;
      inset: 0;
      z-index: 150;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(4px);
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition);
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: all; }

    .sidebar {
      position: fixed;
      top: 0; right: 0;
      z-index: 200;
      width: 288px;
      height: 100%;
      background: var(--white);
      box-shadow: var(--shadow-lg);
      transform: translateX(100%);
      transition: transform 0.3s ease-in-out;
    }
    .sidebar.active { transform: translateX(0); }

    .sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      padding: 0 16px;
      border-bottom: 1px solid var(--gray-200);
    }
    .sidebar-header span { font-size: 18px; font-weight: 700; color: var(--umid-navy); }
    .sidebar-close {
      width: 36px; height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: transparent;
      border-radius: 8px;
      cursor: pointer;
      color: var(--gray-800);
      transition: background var(--transition);
    }
    .sidebar-close:hover { background: var(--gray-100); }
    .sidebar-close svg { width: 20px; height: 20px; }

    .sidebar-nav { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
    .sidebar-nav a {
      display: block;
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      color: var(--gray-800);
      transition: background var(--transition), color var(--transition);
    }
    .sidebar-nav a:hover { background: var(--gray-100); color: var(--umid-red); }

    .sidebar-cta {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--gray-200);
    }
    .sidebar-cta a {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--umid-navy);
      color: var(--white);
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      transition: background var(--transition);
    }
    .sidebar-cta a:hover { background: #2c3e50; }
    .sidebar-cta svg { width: 16px; height: 16px; }

    /* ===== HERO ===== */
    .hero {
      
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
    }
    /* Contenedor de imágenes */
.hero-bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Ocultas por defecto */
  transition: opacity 1s ease-in-out; /* El efecto de desvanecido */
  z-index: 1;
}
.hero-bg img.active {
  opacity: 1; /* Solo la activa se ve */
  z-index: 1;
}
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.8);
      z-index: 2; /* Por encima de las imágenes */
    }
    /* Contenedor de puntos */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 80px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.hero-dot:hover {
  border-color: white;
}
    .hero-content {
      position: relative;
      z-index: 3;
      max-width: 900px;
      margin-top:6.5rem;
      padding: 0 16px;
      text-align: center;
    }
    .hero-content h1 {
      font-size: clamp(2.25rem, 6vw, 3.5rem);
      font-weight: 800;
      color: var(--white);
      line-height: 1.1;
      letter-spacing: -1px;
      text-wrap: balance;
    }
    .hero-content p {
      margin-top: 24px;
      font-size: clamp(0.95rem, 2vw, 1.2rem);
      color: rgba(255,255,255,0.85);
      line-height: 1.7;
      max-width: 640px;
      margin-left: auto;
      margin-right: auto;
    }
    .hero-content p strong { color: var(--white); font-weight: 600; }
    .hero-content p .futuro { font-weight: 600; color: var(--white); }

    .btn-hero {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 32px;
      background: var(--umid-red);
      color: var(--white);
      padding: 14px 32px;
      border-radius: 50px;
      font-size: 15px;
      font-weight: 700;
      border: none;
      cursor: pointer;
      transition: background var(--transition), box-shadow var(--transition);
      box-shadow: 0 4px 16px rgba(192,57,43,0.3);
    }
    .btn-hero:hover { background: var(--umid-red-dark); box-shadow: 0 6px 24px rgba(192,57,43,0.4); }
    .btn-hero svg { width: 18px; height: 18px; transition: transform var(--transition); }
    .btn-hero:hover svg { transform: translateX(4px); }

    .hero-gradient {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 240px;
      background: linear-gradient(to top, #001764, transparent);
      z-index: 2;
    }

    /* ===== STATS SECTION ===== */
.stats {
  position: relative;
  padding: 100px 16px;
  /* Efecto Parallax */
  background-image: url('/images/heroumid4.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  overflow: hidden;
}

/* Filtro oscuro para mejorar contraste */
.stats-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 7, 24, 0.76); /* Azul marino muy oscuro con transparencia */
  z-index: 1;
}

.stats-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px; /* Reducido para que los círculos estén más juntos */
  margin: 0 auto;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra los círculos */
  gap: 40px; /* Espacio entre círculos */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 180px; /* Tamaño base de cada columna */
}

/* El Círculo */
.stat-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(5, 62, 168, 0.1); /* Fondo blanco traslúcido */
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
  backdrop-filter: blur(5px); /* Efecto cristal */
  margin-bottom: 15px;
}

.stat-item:hover .stat-circle {
  transform: translateY(-10px);
  background: rgba(12, 102, 219, 0.315);
  border-color: var(--umid-red);
}

/* Icono y Número dentro del círculo */
.stat-icon {
  margin-bottom: 5px;
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

/* Etiqueta fuera del círculo */
.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid { gap: 20px; }
  .stat-circle { width: 120px; height: 120px; }
  .stat-number { font-size: 1.8rem; }
}

    /* ===== VIDEO SECTION ===== */
    .video-section { 
        background: white;/*linear-gradient(to bottom right, #001764, #2248f1);*/
        padding: 64px 16px;
        color: rgb(26, 26, 26); }
    .video-inner { max-width: 1150px; margin: 0 auto; }

    .video-grid {
      display: grid;
      gap: 40px;
    }

    .video-embed {
      aspect-ratio: 16/9;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
    }
    .video-embed iframe { width: 100%; height: 100%; border: none; }

    .video-text-badge {
      display: inline-block;
      background: rgb(201, 20, 0);
      color: white;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }
    .video-text h2 {
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      font-weight: 700;
      margin-top: 8px;
      text-wrap: balance;
    }
    .video-text p {
      margin-top: 16px;
      color: #292929;
      font-size: clamp(0.95rem, 1.5vw, 1.1rem);
      line-height: 1.7;
    }

    /* ===== SYSTEMS CARDS ===== */
    .systems-grid {
      margin-top: 56px;
      display: grid;
      gap: 20px;
      grid-template-columns: 1fr;
    }
    .system-card {
      position: relative;
      height: 256px;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-md);
    }
    .system-card img {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .system-card:hover img { transform: scale(1.1); }
    .system-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    }
    .system-card-content {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 20px;
    }
    .system-card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }
    .system-card-icon {
      width: 36px; height: 36px;
      background: #aa0000;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .system-card-icon svg { width: 20px; height: 20px; color: var(--white); }
    .system-card-header h3 { font-size: 18px; font-weight: 700; color: var(--white); }
    .system-card-content p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; }

    /* ===== VALORES UMID (LIGHT MODERN) ===== */
.valores-umid {
  background-color: #ffffff; /* Mantenemos la pureza del blanco */
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.valores-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start; /* Alinea al inicio para que la línea roja resalte */
  gap: 30px;
}

/* Línea de acento lateral - El toque moderno */
.valores-accent-line {
  width: 6px;
  height: 120px;
  background: var(--umid-red);
  border-radius: 10px;
  flex-shrink: 0;
  margin-top: 10px;
}

.valores-content {
  flex: 1;
}

.valores-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--umid-blue);
  margin-bottom: 20px;
  font-weight: 700;
}

.valores-main-text {
  font-size: clamp(1.4rem, 4vw, 2rem); /* Tamaño dinámico */
  line-height: 1.3;
  color: var(--umid-navy);
  font-weight: 400;
  margin-bottom: 25px;
}

.valores-main-text strong {
  font-weight: 700;
  color: #000;
}

.text-red {
  color: var(--umid-red);
  font-weight: 800;
}

.valores-secondary-text {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
}

.text-navy {
  color: var(--umid-navy);
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 51, 102, 0.1); /* Subrayado sutil */
}

/* Responsive */
@media (max-width: 768px) {
  .valores-container {
    flex-direction: column;
    padding: 0 10px;
  }
  .valores-accent-line {
    width: 50px;
    height: 4px; /* Cambia a horizontal en móvil */
    margin-bottom: 20px;
  }
}
    /* ===== PROMO HIGHLIGHT ===== */
.promo-highlight {
  position: relative;
  background-color: #021557; /* Azul marino extra oscuro (casi negro) */
  background-image: radial-gradient(circle at 50% 50%, #072e83 0%, #051958 100%);
  padding: 120px 20px;
  overflow: hidden;
  text-align: center;
}

.promo-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Badge superior */
.promo-badge {
  display: inline-block;
  color: #ffffff; /* Tu color rojo */
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

/* Texto Principal */
.promo-text {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: rgba(255, 255, 255, 0.85); /* Blanco suavizado */
  line-height: 1.4;
  font-weight: 300;
  margin-bottom: 40px;
}

.promo-text strong {
  color: #fff;
  font-weight: 600;
}

.highlight-red {
  color: var(--umid-red);
  font-weight: 800;
}

/* Divisor sutil */
.promo-divider {
  width: 60px;
  height: 4px;
  background: var(--umid-red);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* Texto Secundario */
.promo-subtext {
  font-size: 1.2rem;
  color: var(--gray-500); /* Un gris que ya uses */
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

.text-white {
  color: white;
  font-weight: 500;
  font-style: normal;
}

/* Decoración: Un brillo sutil de fondo para dar profundidad */
.promo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: var(--umid-red);
  filter: blur(150px);
  opacity: 0.05; /* Muy tenue para no distraer */
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .promo-highlight {
    padding: 80px 20px;
  }
  .promo-text {
    font-size: 1.6rem;
  }
}
    /* ===== OFERTA EDUCATIVA ===== */
    .oferta-educativa {
  padding: 100px 16px;
  background: var(--white);
}

.oferta-container {
  max-width: 1130px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;

  align-items: center;
}
.oferta-left {
  max-width: 520px;
}
.oferta-title {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--umid-blue);
  line-height: 1.2;
}
.oferta-desc {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.btn-oferta {
  display: inline-block;
  margin-top: 28px;

  background: var(--umid-red);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;

  font-weight: 700;
  font-size: 15px;

  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-oferta:hover {
  background: var(--umid-red-dark);
  transform: translateY(-2px);
}
.oferta-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;

  overflow: visible; /* 🔥 MUY IMPORTANTE */
}
.oferta-mascota {
  position: absolute;

  right: -90px;   /* 👈 sale hacia afuera */
  bottom: -40px;  /* 👈 se apoya sobre tarjetas */

  width: 280px;
  max-width: 40vw;

  z-index: 5;

  pointer-events: none; /* 👈 no bloquea clics */
}

.oferta-card {
  position: relative;
  height: 180px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  font-weight: 800;
  color: white;

  overflow: hidden;

  background-size: cover;
  background-position: center;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.oferta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.3s ease;
}
.oferta-card span {
  position: relative;
  z-index: 2;
}
.oferta-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.oferta-card:hover::before {
  background: rgba(0,0,0,0.25);
}
.licenciaturas {
  background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644");
}

.maestrias {
  background-image: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94");
}
@media (max-width: 900px) {

    .oferta-mascota {
    display: none;
  }
  .oferta-container {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .oferta-left {
    text-align: center;
    margin: 0 auto;
  }

  .oferta-right {
    width: 100%;
  }

  .oferta-card {
    height: 160px;
    font-size: 1.4rem;
  }


}


    .oferta { background: var(--off-white); padding: 64px 16px; }
    .oferta-inner { max-width: 1280px; margin: 0 auto; }

    .oferta-header { text-align: center; margin-bottom: 48px; }
    .oferta-badge {
      display: inline-block;
      background: #e00000;
      color: white;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }
    .oferta-header h2 {
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      font-weight: 700;
      color: var(--umid-navy);
      margin-top: 8px;
      text-wrap: balance;
    }
    .oferta-header p {
      margin-top: 12px;
      color: var(--gray-600);
      max-width: 560px;
      margin-left: auto;
      margin-right: auto;
    }

    .subsection { margin-bottom: 64px; }
    .subsection:last-child { margin-bottom: 0; }

    .subsection-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 32px;
    }
    .subsection-line {
      width: 32px; height: 4px;
      border-radius: 999px;
    }
    .subsection-line.blue { background: var(--umid-blue); }
    .subsection-line.red { background: var(--umid-red-dark); }
    .subsection-header h3 { font-size: 1.5rem; font-weight: 700; color: var(--umid-navy); }

    .programs-grid {
      display: grid;
      gap: 40px;
      width: 80%;
       margin: 0 auto;

  grid-template-columns: repeat(auto-fit, 350px);
  justify-content: center;   /* 👈 centra TODAS las columnas */
    }

    .program-card {
      display: flex;
      width: 350px;
      flex-direction: column;
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 1px 10px rgba(0, 0, 0, 0.301);
      transition: box-shadow var(--transition), transform var(--transition);
    }
    .program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

    .program-card-img {
      position: relative;
      height: 176px;
      overflow: hidden;
    }
    .program-card-img img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .program-card:hover .program-card-img img { transform: scale(1.05); }

    .program-card-title {
      padding: 12px 16px;
      color: var(--white);
    }
    .program-card-title.blue { background: var(--umid-blue); }
    .program-card-title.red { background: var(--umid-red-dark); }
    .program-card-title h4 { font-size: 14px; font-weight: 700; }

    .program-card-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
    }
    .rvoe-badge {
      display: inline-block;
      background: var(--gray-100);
      color: var(--gray-600);
      padding: 2px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 500;
    }
    .program-duration {
      font-size: 14px;
      color: var(--gray-600);
    }
    .program-duration strong { color: var(--gray-800); font-weight: 600; }

    .btn-program {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 10px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      color: var(--white);
      border: none;
      cursor: pointer;
      transition: background var(--transition);
      margin-top: auto;
    }
    .btn-program.blue { background: var(--umid-blue); }
    .btn-program.blue:hover { background: #1a5276; }
    .btn-program.red { background: var(--umid-red-dark); }
    .btn-program.red:hover { background: #7b241c; }
    .btn-program svg { width: 16px; height: 16px; }

    /* ===== FOOTER ===== */
    .footer { background: var(--umid-navy); color: var(--white); }
    .footer-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 56px 16px;
    }
    .footer-grid {
      display: grid;
      gap: 40px;
      grid-template-columns: 1fr;
    }

    .footer-brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }
    .footer-brand-logo .navbar-logo-icon { background: var(--umid-red); }
    .footer-brand-logo span { font-size: 20px; font-weight: 800; color: var(--white); }
    .footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }

    .footer-section h4 {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: rgba(255,255,255,0.5);
      margin-bottom: 16px;
    }
    .footer-links { display: flex; flex-direction: column; gap: 10px; }
    .footer-links a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color var(--transition); }
    .footer-links a:hover { color: var(--white); }

    .footer-contact { display: flex; flex-direction: column; gap: 12px; }
    .footer-contact-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 14px;
      color: rgba(255,255,255,0.7);
    }
    .footer-contact-item svg { width: 16px; height: 16px; color: var(--umid-red); flex-shrink: 0; margin-top: 2px; }

    .footer-socials { display: flex; gap: 12px; }
    .footer-social-icon {
      width: 40px; height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.1);
      border-radius: 8px;
      color: var(--white);
      transition: background var(--transition);
    }
    .footer-social-icon:hover { background: var(--umid-red); }
    .footer-social-icon svg { width: 20px; height: 20px; }
    .footer-social-note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.5); }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    .footer-bottom-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      text-align: center;
      font-size: 12px;
      color: rgba(255,255,255,0.4);
    }

    /* ===== RESPONSIVE ===== */
    @media (min-width: 640px) {
      .navbar-inner { padding: 0 24px; }
      .btn-sistema { padding: 8px 16px; font-size: 14px; }
      .btn-sistema .full-text { display: inline; }
      .btn-sistema .short-text { display: none; }
      .navbar-logo-text span { display: block; }

      .stats { padding: 80px 24px; }
      .stats-grid { gap: 28px; }
      .stat-card { padding: 32px 24px; }
      .stat-number { font-size: 2.5rem; }
      .stat-label { font-size: 16px; }

      .video-section { padding: 80px 24px; }
      .systems-grid { grid-template-columns: repeat(2, 1fr); }
      .system-card { height: 288px; }

      .oferta { padding: 80px 24px; }
      .programs-grid { grid-template-columns: repeat(2, 1fr); }
      .program-card-img { height: 192px; }
      .program-card-title h4 { font-size: 16px; }

      .footer-inner { padding: 56px 24px; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-bottom-inner { flex-direction: row; justify-content: space-between; padding: 20px 24px; }
    }

    @media (min-width: 1024px) {
      .navbar-inner { padding: 0 32px; }
      .navbar-links { display: flex; }
      .btn-toggle { display: none; }

      .stats-grid { grid-template-columns: repeat(4, 1fr); }

      .video-grid { grid-template-columns: repeat(2, 1fr); gap: 64px; align-items: center; }

      .systems-grid { grid-template-columns: repeat(4, 1fr); }

      .programs-grid { grid-template-columns: repeat(3, 1fr); }

      .footer-inner { padding: 56px 32px; }
      .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
      .footer-bottom-inner { padding: 20px 32px; }
    }

    /* ===== EVENTOS ===== */
    .eventos {
  padding: 90px 16px;
  background: var(--white);
  text-align: center;
}
.eventos-badge {
  display: inline-block;
  background: var(--umid-red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eventos-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--umid-navy);
}
.eventos-carousel {
  position: relative;
  max-width: 1200px;
  margin: 50px auto 0;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}
.evento-card {
  /* IMPORTANTE: flex-shrink: 0 evita que la tarjeta se haga pequeña */
  flex: 0 0 calc((100% - 40px) / 3);
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.evento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%);
}
.evento-title {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px;
  text-align: left;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: none;

  background: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);

  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.prev { left: -10px; }
.next { right: -10px; }
.carousel-dots {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots span.active {
  background: var(--umid-red);
  transform: scale(1.3);
}
/* 2. Media Queries (DEBEN IR AL FINAL) */
@media (max-width: 900px) {
  .evento-card {
    flex: 0 0 calc((100% - 20px) / 2); /* 2 tarjetas */
  }
}

@media (max-width: 600px) {
  .evento-card {
    flex: 0 0 100%; /* 1 tarjeta obligatoria */
  }
}

/* Asegúrate de tener tus variables de color rojo definidas, si no, usa estas:
:root {
  --umid-red: #C0392B;
  --umid-dark-red: #922B21; 
}
*/

/* ===== CAMBRIDGE SECTION ESTILOS ===== */
.cambridge-section {
  position: relative;
  /* Degradado diagonal de rojo oscuro a un rojo un poco más vivo */
  background: linear-gradient(135deg, var(--umid-dark-red, #922B21) 0%, var(--umid-red, #C0392B) 100%);
  padding: 120px 20px;
  overflow: hidden; /* Esencial para contener los glows borrosos */
  color: white;
}

.cambridge-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* El contenido debe estar SOBRE los glows de fondo */
}

.cambridge-grid {
  display: flex;
  align-items: center; /* Centra verticalmente texto e imagen */
  gap: 80px; /* Espacio generoso entre columnas */
}

/* --- Columna de Texto --- */
.cambridge-content {
  flex: 1; /* Ocupa el espacio disponible */
}

.cambridge-subtitle {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.cambridge-title {
  font-size: clamp(3rem, 6vw, 4.5rem); /* Título muy grande e impactante */
  font-weight: 900;
  line-height: 1;
  margin-bottom: 30px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cambridge-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.95;
  max-width: 550px; /* Evita que el texto se estire demasiado */
}

.cambridge-description strong {
  color: white;
  font-weight: 700;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

/* --- Botón Blanco --- */
.btn-cambridge-white {
  display: inline-block;
  margin-top: 20px;
  background-color: white;
  color: var(--umid-red, #C0392B);
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 50px; /* Estilo píldora */
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3); /* Sombra suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cambridge-white:hover {
  transform: translateY(-5px); /* Se eleva al pasar el mouse */
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.5);
}

/* --- Columna de Imagen --- */
.cambridge-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cambridge-png {
  max-width: 100%;
  height: auto;
  /* Filtro para que el PNG blanco resalte con un brillo suave sobre el rojo */
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
  /* Una sutil animación flotante */
  animation: floatPng 4s ease-in-out infinite;
}

@keyframes floatPng {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* --- Efectos de Fondo (Glows Rojos) --- */
.cambridge-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px); /* Mucho desenfoque */
  z-index: 1;
  pointer-events: none;
}

.glow-top-left {
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: #ff4d4d; /* Un rojo más brillante para el foco de luz */
  opacity: 0.4;
}

.glow-bottom-right {
  bottom: -15%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: #ff0000; /* Rojo intenso */
  opacity: 0.3;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cambridge-grid {
    flex-direction: column-reverse; /* Pone la imagen arriba en móviles */
    text-align: center;
    gap: 40px;
  }
  
  .cambridge-description {
    margin-left: auto;
    margin-right: auto;
  }

  .cambridge-png {
    max-width: 70%; /* Imagen más pequeña en móvil */
  }
}