/* ===== 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;
      margin-left:3rem;
    }
    .navbar-links a {
      padding: 8px 16px;
      position: relative; /* Necesario para posicionar la línea */
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      color: white;
      transition: color var(--transition);
    }
    .navbar.scrolled .navbar-links a {
    color: var(--gray-800);
    }
    /* La raya inferior (invisible por defecto) */
    .navbar-links a::after {
      content: '';
      position: absolute;
      bottom: 0; /* Ajusta este valor si quieres la línea más arriba o abajo */
      left: 50%; /* Empezar desde el centro */
      width: 0;
      height: 2px;
      background-color: var(--umid-red);
      transition: all 0.3s ease;
      transform: translateX(-50%); /* Centra el origen de la animación */
    }
    /* Hover: Cambia el color del texto y expande la línea */
    .navbar-links a:hover {
      background: transparent; /* Eliminamos el fondo gris que tenías */
      
    }
    .navbar-links a:hover::after {
      width: 70%; /* La línea ocupará el 70% del ancho del link (ajustable) */
    }
    .navbar.scrolled .btn-toggle {
      color: var(--gray-800);
    }
    .navbar-links a.active {
      font-weight: bold;
    }
    .navbar.scrolled .navbar-links a.active{
      color: #0400ff !important;
    }

    .navbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    /* Botón circular de links */
    .links-menu-wrapper {
      position: relative;
      display: none; /* Oculto por defecto */
    }

    .btn-links {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      background: white; /* Color inicial arriba */
      color: #333;       /* Icono oscuro arriba */
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .btn-links:hover {
      background: #021091; /* Brillo al hover */
    }
    .btn-links:hover svg {
      color: white; /* Icono blanco al hover */
    }

    .btn-links svg {
      width: 18px;
      height: 18px;
    }

    /* Cambio de color al hacer scroll */
    .navbar.scrolled .btn-links {
      background: #050e5e; /* Azul UMID */
      color: white;        /* Icono blanco */
    }
    .navbar.scrolled .btn-links:hover {
      background: #0016db; /* Brillo al hover */
    }
    .navbar.scrolled .btn-links:hover svg {
      color: white; /* Icono blanco al hover */
    }

    /* El Dropdown Horizontal */
    .links-dropdown {
      position: absolute;
      top: 60px; /* Separación del navbar */
      right: -20px; /* Ajuste horizontal */
      background: linear-gradient(to left, #050e5e, #0016db); /* Degradado azul UMID */
      padding: 12px;
      border-radius: 16px;
      box-shadow: 0 10px 25px rgba(5, 14, 94, 0.2);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 1000;
    }

    .links-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* El piquito (Arrow) */
    .dropdown-arrow {
      position: absolute;
      top: -8px;
      right: 32px;
      width: 16px;
      height: 16px;
      background: #06106e;
      transform: rotate(45deg);
    }

    .dropdown-content {
      display: flex;
      gap: 12px;
    }

    .social-circle-item {
      width: 38px;
      height: 38px;
      background: rgba(31, 31, 31, 0.26); /* Gris/Blanco transparente */
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      transition: all 0.2s ease;
    }

    .social-circle-item:hover {
      background: #5364fb; /* Brillo al hover */
    }

    .social-circle-item svg {
      width: 18px;
      height: 18px;
    }
    
/* Contenedor relativo para el posicionamiento */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

/* El Dropdown Principal */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 15px); /* Debajo del link con margen */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(to bottom right, #050e5e, #0016db);
    min-width: 600px; /* Ancho para las 3 columnas */
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(5, 14, 94, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1100;
}

/* Mostrar al hacer hover o con clase active */
.mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* El Piquito (Arrow) */
.mega-dropdown .dropdown-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #050e5e; /* Color de la parte superior del degradado */
}

/* Contenedor de columnas */
.mega-dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Títulos de las categorías */
.mega-column h3 {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* Links del menú */
.mega-column a {
    display: block;
    color: white !important;
    text-decoration: none;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-radius: 0; /* Limpiamos estilos previos del navbar */
}
/* Ajuste de la línea roja SOLO para los enlaces del Mega Dropdown */
.mega-column a::after {
    left: 0; /* Obliga a la línea a empezar desde la izquierda */
    transform: none; /* Anula el translateX(-50%) que heredaba del navbar principal */
}

/* Opcional: Si quieres que el 70% sea del tamaño del TEXTO y no de la columna entera */
.mega-column a {
    width: fit-content; 
    /* Cambia esto si prefieres que la línea sea el 70% de toda la caja en lugar de solo las letras */
}

.mega-column a:hover {
    color: #ffffff;
    background: transparent; /* Evita el fondo gris del navbar hover */
}

    .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: white;
      transition: background var(--transition), color 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); }

    
    /* Contenedor del CTA en el sidebar */
    .sidebar-cta {
      margin-top: 2rem;
      padding: 1.5rem;
      border-top: 1px solid var(--gray-200);
    }

    /* La cuadrícula de iconos */
    .sidebar-socials-grid {
      display: flex;
      flex-wrap: wrap;       /* Permite que bajen si no caben */
      justify-content: center; /* Centra los iconos */
      gap: 15px;             /* Espacio entre iconos */
      max-width: 220px;      /* Forzamos el ancho para que el 5to icono baje */
      margin: 0 auto;        /* Centra el contenedor en el sidebar */
    }

    /* El círculo del icono */
    .sidebar-icon-item {
      width: 42px !important;
      height: 42px !important;
      background-color: var(--gray-100); /* Color base gris */
      color: white;           /* Icono gris oscuro */
      border-radius: 50% !important;
      display: flex !important;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      text-decoration: none;
    }

    /* Ajuste de tamaño para los SVGs dentro de los círculos del sidebar */
.sidebar-icon-item svg {
  width: 26px !important;  /* Aumentamos de 18px a 22px */
  height: 26px !important;
  display: block !important; /* Elimina espacios fantasma debajo del svg */
  flex-shrink: 0;
  color: white;
}
    /* Efectos al pasar el mouse (Hover) */
    .sidebar-icon-item:hover {
      transform: translateY(-3px);
      color: white;
    }

    /* Colores específicos en hover para mantener la identidad de marca */
    .sidebar-icon-item.wp:hover { background-color: #25D366; }
    .sidebar-icon-item.fb:hover { background-color: #1877F2; }
    .sidebar-icon-item.x:hover  { background-color: #000000; }
    .sidebar-icon-item.tt:hover { background-color: #000000; }
    .sidebar-icon-item.ig:hover { background-color: #E4405F; }
    .sidebar-icon-item.yt:hover { background-color: #FF0000; }
    

    /* ===== 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.733);
      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;
    }

    /* Contenedor de los bloques de texto */
.hero-text-slider {
  display: grid;
  place-items: center;
  margin-bottom: 0; /* El margen lo maneja el botón */
}

.hero-text-item {
  grid-area: 1 / 1; /* Todos en la misma celda, uno sobre otro */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  pointer-events: none;
  width: 100%;
}

/* Estado activo para el texto */
.hero-text-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 10;
}

/* Ajuste de márgenes para que el h1 y p respeten tu diseño */
.hero-text-item h1 {
  margin: 0;
}

.hero-text-item p {
  margin-top: 24px;
}
/* ===== HERO STATS ===== */
.hero-stats {
  background-color: #001764; /* Color exacto del gradiente final del Hero */
  padding: 40px 0;
  position: relative;
  z-index: 10;
  margin-top: -1px; /* Evita cualquier línea blanca de 1px por renderizado */
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item {
  flex: 1;
  text-align: center;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Línea divisoria profesional (no abarca el 100%) */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px; /* Altura controlada de la línea */
  background: rgba(255, 255, 255, 0.3);
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Montserrat', sans-serif; /* O la que uses para títulos */
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0.8;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-stats {
    padding: 60px 20px;
  }
  
  .stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 en tablets */
    gap: 0; /* Quitamos el gap para controlar las líneas nosotros */
  }

  .stat-item {
    padding: 40px 0;
  }

  /* Línea vertical solo para el primer y tercer elemento (columna izquierda) */
  .stat-item:nth-child(odd)::after {
    right: 0;
    top: 50%;
    width: 1px;
    height: 70%;
  }
  
  /* Quitamos la línea vertical de los elementos de la derecha */
  .stat-item:nth-child(even)::after {
    display: none;
  }

  /* Línea horizontal para los dos de arriba */
  .stat-item:nth-child(1), .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 500px) {
  .stats-container {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }

  .stat-item {
    padding: 30px 0;
  }

  /* Convertimos el ::after de todos en líneas horizontales */
  .stat-item:not(:last-child)::after {
    right: auto;
    bottom: 0; /* La bajamos al final del item */
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* La línea no toca los bordes, se ve más elegante */
    height: 1px; /* Ahora es delgada en altura */
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  }
}

/* ===== IDENTITY SECTION ===== */
.identity-section {
  padding: 100px 20px;
  background-color: #ffffff;
}

.identity-section h2{
  font-size:3rem;
}
.container-standard {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header Centrado */
.identity-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.umid-lead-centered {
  margin-top: 24px;
  font-size: 1.15rem;
  color: #555;
  line-height: 1.8;
}

/* Grid de Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.pillar-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-circle {
  width: 90px;
  height: 90px;
  background-color: #001764; /* El azul profundo que usamos en el Hero */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-item:hover .pillar-circle {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 23, 100, 0.2);
}

.pillar-circle svg {
  width: 38px;
  height: 38px;
}

.pillar-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.pillar-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Video Centrado */
.identity-video-wrap {
  max-width: 900px; /* Un poco más ancho pero centrado */
  margin: 0 auto;
}

.center-btn {
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
  width: fit-content;
}

/* Responsive */
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 en tablets */
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .pillars-grid {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
  
  .identity-header h2 {
    font-size: 2rem;
  }
}

/* ===== OFERTA EDUCATIVA STYLES ===== */
.Oferta__section {
  padding: 100px 20px;
  background-color: #f9f9f9;
}
.Oferta__header {
  text-align: center;
  margin-bottom:3rem;
}
.Oferta__header h2{
  font-size:2.5rem;
}
.Oferta__header h3{
  font-size:1rem;
  color: #808080;
}
.Oferta__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Selector de Círculos */
.Oferta__selector {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.Oferta__circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.Oferta__icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: #555;
  transition: all 0.3s ease;
}

.Oferta__icon-wrap svg { width: 40px; height: 40px; }

.Oferta__circle span {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
}

/* Estado Activo y Hover */
.Oferta__circle:hover { transform: scale(1.1); }
.Oferta__circle.active .Oferta__icon-wrap {
  background: #001764; /* Azul UMID */
  color: white;
  border-color: #001764;
  box-shadow: 0 10px 20px rgba(0, 23, 100, 0.2);
}
.Oferta__circle.active span { color: #001764; }

/* Grid de Carreras */
.Oferta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Card Individual */
.Oferta__card {
  position: relative;
  height: 350px;
  border-radius: 20px;
  background-color: #001764; /* Fondo azul base */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  transition: transform 0.3s ease;
}

.Oferta__card:hover { transform: translateY(-10px); }

/* PNG de Ilustración (Storyset style) */
.Oferta__card-img {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  object-fit: contain;
  z-index: 1;
  opacity: 0.9;
}

/* Degradado y Texto */
.Oferta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 70%);
  z-index: 2;
}

.Oferta__content {
  position: relative;
  z-index: 3;
}

.Oferta__content h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.Oferta__badge {
  display: inline-block;
  background: white;
  color: #001764;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.Oferta__duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.Oferta__duration svg { width: 14px; height: 14px; }

/* Animación de entrada de las cards */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.Oferta__card { cursor: pointer; animation: fadeInUp 0.5s ease forwards; transition: background-color 0.3s ease; }
.Oferta__card:hover{
  background-color: #0026a5; /* Fondo azul base */
}

@media (max-width: 500px){
  .Oferta__header h2{
    font-size:2.3rem;
  }
  .Oferta__icon-wrap{
    width: 70px;
    height: 70px;
  }

  .Oferta__circle span{
    font-size:0.6rem;
  }
}

/* ===== PARALLAX SECTION ===== */
/* ===== PARALLAX STYLES ===== */
.Parallax__section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  /* IMPORTANTE: Cambia 'images/campus-parallax.jpg' por tu imagen real */
  background-image: url('images/heroumid.jpg'); 
  background-attachment: fixed; /* Este es el truco del parallax */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.Parallax__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 23, 100, 0.8), rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.Parallax__container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
  color: white;
}

.Parallax__title {
  font-size: clamp(2rem, 5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  margin-top: 30px;
}

.Parallax__subtitle {
  font-size: clamp(1rem, 2vw, 1rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* Grid de datos rápidos */
.Parallax__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.Parallax__item {
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.548);
}

.Parallax__number {
  display: block;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  color: #ff1900; /* Rojo UMID para resaltar los números */
  margin-bottom: 10px;
}

.Parallax__desc {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 1;
}

.Parallax__hashtag {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .Parallax__section {
    background-attachment: scroll; /* El parallax suele fallar en móviles, mejor scroll normal */
    height: auto;
    padding: 80px 20px;
  }
  
  .Parallax__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .Parallax__item {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.548);
  }
}

/* ===== LABORATORIOS SECTION ===== */
.Labs__section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.Labs__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.Labs__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.Labs__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-top: 15px;
}

.Labs__description {
  margin-top: 15px;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Grid */
.Labs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Cards */
.Labs__card {
  position: relative;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  cursor: pointer;
}

.Labs__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.Labs__card:hover .Labs__img {
  transform: scale(1.1);
}

/* Overlay con Degradado */
.Labs__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 23, 100, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  transition: background 0.3s ease;
}

.Labs__info {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.Labs__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 8px;
}

.Labs__icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.Labs__info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .Labs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .Labs__grid {
    grid-template-columns: 1fr;
  }
  .Labs__card {
    height: 250px;
  }
}

/* ===== MODAL STYLES (SOLO IMAGEN) ===== */
.Labs__modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 10000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92); /* Un poco más oscuro */
  backdrop-filter: blur(5px);
  /* Usamos flex para centrar perfectamente en vertical y horizontal */
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.Labs__modal-content {
  position: relative;
  /* Ajustamos para que se adapte al tamaño de la imagen */
  width: auto;
  max-width: 90%; /* En escritorio dejamos un margen */
  max-height: 90vh; /* Que no sea más alta que la pantalla */
  animation: zoomIn 0.3s ease;
  display: flex;
}

.Labs__modal-content img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain; /* Asegura que la imagen se vea completa sin estirarse */
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

/* Botón de cierre */
.Labs__modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10001;
  opacity: 0.7;
}

.Labs__modal-close:hover { opacity: 1; color: var(--umid-red); }

@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

/* ===== RESPONSIVE (MÓVILES) ===== */
@media (max-width: 768px) {
  .Labs__modal-content {
    max-width: 100%; /* Ancho total */
    width: 100%;
  }
  
  .Labs__modal-content img {
    border-radius: 0; /* Quitamos bordes para efecto full-width */
    width: 100%;
    max-height: 100vh; /* Puede ocupar toda la altura si es necesario */
  }

  /* Ajuste del botón de cierre en móviles para que se vea sobre la imagen */
  .Labs__modal-close {
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6); /* Fondo oscuro circular para contraste */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    padding-bottom: 4px; /* Ajuste óptico */
  }
}

/* ===== WHATSAPP CTA SECTION ===== */
.WhatsappCTA__section {
  padding: 80px 20px;
  /* Gradiente moderno estilo WhatsApp */
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Agregamos unas burbujas decorativas sutiles en el fondo */
.WhatsappCTA__section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.WhatsappCTA__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.WhatsappCTA__title {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-wrap: balance;
}

.WhatsappCTA__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* El Botón Blanco */
.WhatsappCTA__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: white;
  color: #128C7E; /* Verde oscuro para el texto */
  padding: 16px 35px;
  border-radius: 50px; /* Redondo / Pill-shape */
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.WhatsappCTA__btn svg {
  fill: #25D366; /* El icono en el verde brillante de WA */
  transition: transform 0.3s ease;
}

/* Efectos de Hover */
.WhatsappCTA__btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  color: #075E54;
}

.WhatsappCTA__btn:hover svg {
  transform: rotate(10deg);
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .WhatsappCTA__section {
    padding: 60px 20px;
  }
  .WhatsappCTA__btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1rem;
  }
}

.Contact__section {
    padding: 100px 20px;
    background-color: #f4f7fa;
    display: flex;
    justify-content: center;
    overflow: hidden; /* Evita cualquier desborde accidental */
}

.Contact__container {
    max-width: 1200px; /* Un poco más ancho para dar espacio a la mascota de 500px */
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Mascota ligeramente más ancha que el formulario */
    gap: 40px;
    align-items: center;
}

/* Columna Mascota */
.Contact__mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.Mascot__bubble {
    background: rgb(187, 0, 0);
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(5, 14, 94, 0.1);
    margin-bottom: 30px;
    position: relative;
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
    border: 1px solid rgba(5, 14, 94, 0.05);
}

.Mascot__bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgb(187, 0, 0);
}

.Mascot__img {
    width: 100%;
    max-width: 500px; /* Tamaño que pediste para Desktop */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.Contact__mascot:hover .Mascot__img {
    transform: scale(1.02);
}

/* Columna Formulario Blanco */
.Contact__form-wrapper {
    background: #ffffff; 
    padding: 45px;
    border-radius: 30px;
    color: #050e5e;
    box-shadow: 0 20px 60px rgba(5, 14, 94, 0.12);
    border: 1px solid rgba(5, 14, 94, 0.05);
}

.Contact__title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #050e5e;
}

.Contact__subtitle {
    margin-bottom: 30px;
    color: #555;
    font-weight: 500;
}

.Contact__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Estilización de Inputs Modernos */
.Form__input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #e1e5ee; /* Borde suave */
    background: #f8faff;
    color: #050e5e;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.Form__input::placeholder {
    color: #a0a8c0;
}

.Form__input:focus {
    outline: none;
    border-color: #5364fb;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(83, 100, 251, 0.1);
}

/* Estilo para el botón Enviar */
.Contact__btn {
    background: #050e5e;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(5, 14, 94, 0.2);
}

.Contact__btn:hover {
    background: #5364fb;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(83, 100, 251, 0.3);
}

/* ==========================================
   RESPONSIVE MAGISTRAL
   ========================================== */

@media (max-width: 1024px) {
    .Contact__container {
        grid-template-columns: 1fr; /* Apilado en tablets y móviles */
        gap: 50px;
        max-width: 600px; /* Estrechamos el contenedor para que no se vea gigante */
    }

    .Contact__mascot {
        order: 2; /* Mascota abajo */
    }

    .Mascot__img {
        max-width: 450px; /* Un poco más pequeña en tablets */
    }
}

@media (max-width: 600px) {
    .Contact__section {
        padding: 60px 15px;
    }

    .Contact__form-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .Contact__title {
        font-size: 1.8rem;
    }

    .Mascot__img {
        max-width: 100%; /* En móviles pequeños ocupa todo el ancho disponible */
        width: 110%; /* Forzamos un poquito más de escala para que se vea "grande" como quieres */
    }

    .Mascot__bubble {
        font-size: 1rem;
        padding: 15px;
    }
}

/* ===== BLOG SECTION ===== */
.Blog__section {
  padding: 100px 20px;
  background-color: #fcfcfc;
}

.Blog__container {
  max-width: 1250px;
  margin: 0 auto;
}

.Blog__header {
  text-align: center;
  margin-bottom: 60px;
}

.Blog__main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-top: 15px;
}

/* Grid */
.Blog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Card */
.Blog__card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 7px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.Blog__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Imagen y Graduado */
.Blog__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.Blog__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.Blog__img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Contenedor de Información */
.Blog__info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.Blog__date-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c91400; /* Rojo UMID */
  text-transform: uppercase;
  margin-bottom: 10px;
}

.Blog__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #1a1a1a;
}

/* El truco de las 4 líneas */
.Blog__excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  /* CSS Line Clamp */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.Blog__read-more {
  margin-top: auto; /* Empuja el enlace al fondo */
  font-weight: 700;
  font-size: 0.85rem;
  color: #001764; /* Azul UMID */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.Blog__read-more:hover {
  gap: 10px;
}

/* Footer / Botón */
.Blog__footer {
  margin-top: 60px;
  text-align: center;
}

.Blog__btn-main {
  display: inline-block;
  padding: 14px 35px;
  background-color: #001764;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 23, 100, 0.3);
}

.Blog__btn-main:hover {
  background-color: #c91400;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 20, 0, 0.3);
}

/* Responsive */
@media (max-width: 1100px) {
  .Blog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .Blog__grid { grid-template-columns: 1fr; }
}

    /* ===== 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;
      grid-template-columns: 1.2fr 1fr; /* El video un poco más grande que el texto */
      align-items: center;
      gap: 60px;
    }

    .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;
    }
    .umid-subtitle {
  font-size: 1rem;
  color: #c91400; /* El rojo UMID */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.umid-lead {
  margin-top: 20px;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

/* Lista de Valores */
.umid-value-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 0.95rem;
  color: #333;
}

.value-icon {
  background: rgba(201, 20, 0, 0.1);
  color: #c91400;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 18px;
  height: 18px;
}

/* Botón Minimal */
.btn-minimal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  color: #c91400;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-minimal:hover {
  border-bottom-color: #c91400;
  gap: 15px;
}

/* Responsive */
@media (max-width: 968px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
    
    /* ===== 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-blue); }
    .footer-brand-logo .navbar-logo-icon img { width: 20px; height: 20px; }
    .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: white; 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) {
      .links-menu-wrapper {
        display: block; /* Aparece a partir de 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) {
  .links-menu-wrapper {
    display: none; /* Desaparece por debajo de 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 */
  }
}
/* CSS BANNER SLIDER */
.banner-slider { padding: 60px 0; background: #fff; }
.banner-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  position: relative; 
  overflow: hidden;
  border-radius: 20px; /* Opcional: bordes redondeados */
}
.banner-wrapper { 
  display: flex; 
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); 
}
.banner-item { min-width: 100%; }
.banner-item img { width: 100%; display: block; object-fit: cover; }

/* Navegación */
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.8); border: none; width: 45px; height: 45px;
  border-radius: 50%; cursor: pointer; z-index: 10; font-size: 20px;
}
.banner-nav.prev { left: 20px; }
.banner-nav.next { right: 20px; }

/* Guiones */
.banner-dashes {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dash {
  width: 40px; height: 4px; background: rgba(0,0,0,0.2);
  cursor: pointer; transition: 0.3s; border-radius: 2px;
}
.dash.active { background: var(--umid-red); width: 60px; }
/* CSS PARTNERS INFINITO */
.partners-section { 
  background: #fff; padding: 80px 0; text-align: center; overflow: hidden;
}
.partners-title {
  margin-bottom: 80px; font-size: 1.5rem; color: var(--umid-navy);
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}

.partners-carousel {
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto;
  /* El secreto del desvanecido lateral */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-track {
  display: flex; width: calc(250px * 28); /* Ajustar según número de logos */
  animation: scroll 40s linear infinite;
}

.partners-track:hover { animation-play-state: paused; }

.partner-logo {
  width: 250px; display: flex; align-items: center; justify-content: center;
  padding: 0 40px;
}
.partner-logo img { 
  max-width: 150px;  opacity: 0.6; 
  transition: 0.3s;
}
.partner-logo img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 14)); }
}
@media (max-width:500px){
  .banner-dashes{
    display:none;
  }
  .banner-container{
    border-radius: 0;
  }
}

/* =============== FACEBOOK ============== */
.facebook-section {
            position: relative;
            padding: 80px 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            overflow: hidden;
            background: linear-gradient(to left,  #2685df 50%, #053b6d 100%);
            z-index: 0;
        }

        .facebook-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            max-width: 1100px;
            width: 100%;
            gap: 40px;
            position: relative;
            z-index: 2;
            align-items: center;
        }

        /* Columna izquierda */
        .facebook-info {
            flex: 1;
            min-width: 280px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .facebook-icon {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 10px;
        }

        .facebook-icon svg {
            width: 48px;
            height: 48px;
            filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.6));
        }

        .facebook-title {
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .facebook-subtitle {
            font-size: 1.1rem;
            line-height: 1.6em;
            color: #ffffff;
            max-width: 90%;
        }

        .facebook-button {
            display: inline-block;
            padding: 12px 30px;
            background: #fff;
            color: #1877f2;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            text-align: center;
            width: fit-content;
            box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
            position: relative;
            overflow: hidden;
        }

        .facebook-button:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }

        .facebook-button:hover {
            background: #0f3777;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(24, 119, 242, 0.6);
            color: white;
        }

        .facebook-button:hover:before {
            left: 100%;
        }

        /* Columna derecha */
        .facebook-frame {
          width: 100%; /* Que ocupe todo el ancho de su columna */
    max-width: 540px; /* Un poco más que el máximo de FB para el padding */
            flex: 1;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 0 30px rgba(24, 119, 242, 0.4);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 450px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .facebook-frame:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 40px rgba(24, 119, 242, 0.6);
        }

        .iframe-container {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .facebook-frame iframe {
            width: 100%;
            height: 450px;
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        /* Efecto de luz suave */
        .facebook-glow {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at center, rgba(24, 119, 242, 0.2), transparent 70%);
            animation: pulseGlow 8s infinite alternate;
            z-index: 1;
        }

        @keyframes pulseGlow {
            from { transform: scale(1); opacity: 0.5; }
            to { transform: scale(1.2); opacity: 1; }
        }

/* Responsive Facebook */
        @media (max-width: 900px) {
          
            .facebook-container {
                flex-direction: column;
                gap: 30px;
                align-items: center;
            }

            .facebook-info {
                text-align: center;
                align-items: center;
            }

            .facebook-icon {
                justify-content: center;
            }

            .facebook-subtitle {
                max-width: 100%;
            }

            .facebook-frame {
                width: 100%;
                min-height: 400px;
            }

            .facebook-frame iframe {
                height: 400px;
            }
        }
        @media screen and (max-width: 768px) {
          .facebook-icon {
    flex-direction: column; /* pone el icono y título en columna */
    align-items: center;    /* centra horizontalmente los hijos */
    gap: 0.5rem;            /* espacio entre icono y título */
  }

  .facebook-title {
    text-align: center;     /* centra el texto */
    margin-top:1rem;
  }
        }

        @media screen and (max-width: 480px) {
          .facebook-section {
            padding: 50px 15px;
          }

          .facebook-title {
            font-size: 1.8rem;
          }

          .facebook-subtitle {
            font-size: 1rem;
          }

          .facebook-frame {
            padding: 15px;
            min-height: 350px;
          }

          .facebook-frame iframe {
            height: 350px;
          }
        }

/* =============== INSTAGRAM ============== */
.instagram-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
    /* Gradiente clásico de Instagram en diagonal */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    z-index: 0;
}

.instagram-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
    gap: 50px;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* Columna Izquierda (Frame) */
.instagram-frame {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    min-width: 320px;
}

.instagram-frame:hover {
    transform: translateY(-5px) scale(1.02);
}

.instagram-frame iframe, 
.instagram-media {
    width: 100% !important;
    border-radius: 15px !important;
    margin: 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Columna Derecha (Info) */
.instagram-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.instagram-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.instagram-icon svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.instagram-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.instagram-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
    max-width: 100%;
}

/* Botón Blanco Moderno */
.instagram-button {
    display: inline-block;
    padding: 14px 65px;
    background: #fff;
    color: #dc2743; /* Color vibrante de IG */
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.instagram-button:hover {
    background: #a10023;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Efecto de Brillo */
.instagram-glow {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 50%);
    z-index: 1;
}

/* Responsive Instagram */
@media (max-width: 900px) {
    .instagram-container {
        flex-direction: column-reverse; /* El texto arriba en móvil */
        text-align: center;
    }
    .instagram-info {
        align-items: center;
    }
    .instagram-icon {
        flex-direction: column;
        gap: 10px;
    }
    .instagram-frame {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .instagram-title {
        font-size: 1.8rem;
    }
    .instagram-section {
        padding: 60px 15px;
    }
}
/* =============== CONTACT SECTION =============== */
.umid-contact-section {
    padding: 100px 5%;
    background: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}



.contact-main-title {
    font-size: clamp(2.2rem, 5vw, 2.5rem);
    color: #050e5e;
    font-weight: 800;
    margin: 20px 0;
    line-height: 1.1;
}

.contact-main-desc {
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Layout Grid */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Lado de Información */
.contact-info-side {
    display: flex;
    flex-direction: column;
}

.university-brand {
    margin-bottom: 40px;
}

.univ-name-tag {
    font-size: 1.5rem;
    color: #050e5e;
    font-weight: 700;
    margin-bottom: 10px;
}

.univ-divider {
    width: 60px;
    height: 4px;
    background: #5364fb;
    border-radius: 2px;
}

.contact-action-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #fff;
    box-shadow: 0 1px 7px rgba(0,0,0,0.2);
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-action-card.interactive:hover {
    transform: translateY(-5px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(5, 14, 94, 0.1);
    border-color: #5364fb;
}

.icon-circle {
    width: 55px;
    height: 55px;
    background: #050e5e;
    color: #fff;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.info-action-card:hover .icon-circle {
    transform: rotate(-10deg);
    background: #5364fb;
}

.card-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #5364fb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-text {
    margin: 0;
    color: #050e5e;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.05rem;
}

.hover-arrow {
    position: absolute;
    right: 25px;
    font-size: 1.2rem;
    color: #5364fb;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.info-action-card:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Lado del Mapa */
.contact-map-side {
    position: relative;
}
.map-frame-container {
    width: 100%;
    height: 550px;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(5, 14, 94, 0.15);
    
    /* TRUCO PARA EL BORDE DEGRADADO */
    border: none; /* Quitamos el borde anterior */
    padding: 8px; /* Este será el "grosor" del borde */
    background: linear-gradient(135deg, #050e5e 0%, #5364fb 100%); /* Degradado UMID */
    
    /* Aseguramos que el contenido se alinee bien */
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Redondeamos también el iframe un poco menos que el contenedor 
       para que encaje perfecto en las esquinas */
    border-radius: 27px; 
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .map-frame-container {
        height: 400px;
    }
}

@media (max-width: 600px) {
  .university-brand{
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .univ-divider{
    text-align: center;
    margin: 0 auto;
  }
    .umid-contact-section {
        padding: 60px 20px;
    }
    
    .info-action-card {
        padding: 20px;
    }
}
.sidebar-wp{
  background-color: #00ad0e;
}
.wp:hover{
  background-color: #00ad0e;
}
.sidebar-fb{
  background-color: #1877f2;
}
.fb:hover{
  background-color: #1877f2;
}
.sidebar-x{
  background-color: #000000;
}
.x:hover{
  background-color: #000000;
}
.sidebar-tt{
  background-color: #000000;
}
.tt:hover{
  background-color: #000000;
}
.sidebar-ig{
  position: relative; /* Necesario para posicionar la capa del gradiente */
    z-index: 1;
    overflow: hidden; /* Mantiene el gradiente dentro del círculo */
}
.sidebar-ig::before{
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    opacity: 1; /* Empieza invisible */
    transition: opacity 0.3s ease-in-out; /* Esta propiedad SÍ se puede animar */
    z-index: -1; /* Se coloca detrás del icono */
}
.sidebar-ig svg {
    position: relative;
    z-index: 2;
}
.ig {
    position: relative; /* Necesario para posicionar la capa del gradiente */
    z-index: 1;
    overflow: hidden; /* Mantiene el gradiente dentro del círculo */
}

/* Creamos una capa invisible con el gradiente */
.ig::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    opacity: 0; /* Empieza invisible */
    transition: opacity 0.3s ease-in-out; /* Esta propiedad SÍ se puede animar */
    z-index: -1; /* Se coloca detrás del icono */
}

/* Al hacer hover, solo cambiamos la opacidad de la capa oculta */
.ig:hover::before {
    opacity: 1;
}

/* El icono debe estar por encima de la capa */
.ig svg {
    position: relative;
    z-index: 2;
}
.sidebar-yt{
  background-color: #FF0000;
}
.yt:hover{
  background-color: #FF0000;
}


/* ===== HERO PARA BLOG ===== */
.blog-hero {
  position: relative;
  min-height: 100vh; /* Un poco más bajo que el del index para ir directo al grano */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Oscurecemos un poco la imagen para que el texto resalte */
}

.blog-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  color: white;
  margin-top: 4rem; /* Espacio para el navbar */
}

.blog-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.blog-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

/* El degradado dinámico */
.blog-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  /* Aquí ocurre la magia: usa la variable del programa */
  background: linear-gradient(to top, #000, transparent);
  z-index: 2;
  opacity: 1;
}

/* --- BLOG SECTION --- */
.blog-section {
  padding: 80px 5%;
  background-color: #f8faff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 en una fila */
  gap: 25px;
  min-height: 600px;
}

/* --- TARJETA ACTUALIZADA --- */
.blog-card {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  background-color: #000; /* Fondo base negro */
}

/* Capa de oscuridad constante sobre la imagen */
.card-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.616); /* Ajusta este 0.4 para más o menos oscuridad */
  z-index: 2;
  transition: background 0.3s ease;
}

.blog-card:hover .card-dark-overlay {
  background: rgba(0, 0, 0, 0.2); /* Se aclara sutilmente al pasar el mouse */
}

.card-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.6s ease;
}

.blog-card:hover .card-bg {
  transform: scale(1.05);
}

.card-overlay {
  position: relative;
  z-index: 3; /* Por encima de la capa oscura */
  padding: 30px 25px;
  /* Degradado más denso en la base para el título */
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  color: white;
  width: 100%;
}

.card-date {
  font-size: 0.85rem;
  opacity: 0.8;
  display: block;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* --- BOTÓN VER MÁS --- */
/* Cambiamos el <a> por un <div> ya que el click lo maneja la card */
.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.btn-ver-mas:hover .arrow-icon {
  transform: translateX(8px); /* Animación de la flecha */
}

/* --- PAGINACIÓN --- */
.pagination-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: white;
  color: #333;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: all 0.3s;
  font-weight: 600;
}

.page-num.active {
  background: #004687; /* Ajusta a tu color corporativo */
  color: white;
  border-color: #004687;
}

.page-btn {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: #004687;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; } /* Vertical en móvil */
  .blog-card { height: 350px; }
}

/* --- BLOG CTA SECTION --- */
.blog-cta-section {
  padding: 100px 5%;
  /* Degradado UMID: Azul Oscuro a Marino */
  background: linear-gradient(135deg, #000424 0%, #050e5e 50%, #0215c7 100%);
  color: white;
  text-align: center;
}

.blog-cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-cta-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.blog-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
  color: #ffffff;
}

.blog-cta-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Espacio entre iconos */
  flex-wrap: wrap;
}

.blog-cta-icon {
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.blog-cta-icon:hover {
  transform: translateY(-8px); /* Elevación al pasar el mouse */
  opacity: 1;
}

/* --- RESPONSIVE CTA --- */
@media (max-width: 600px) {
  .blog-cta-section {
    padding: 60px 20px;
  }
  
  .blog-cta-socials {
    gap: 20px;
  }
  
  .blog-cta-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* --- ART-HERO (30VH) --- */
.art-hero {
  height: 30vh;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1480694313141-fce5e697ee25?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.art-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

/* --- LAYOUT DEL ARTÍCULO --- */
.art-main-container {
  background-color: #fff;
  padding: 60px 5%;
}

.art-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px; /* 1 columna grande y sidebar */
  gap: 50px;
}

/* --- CONTENIDO IZQUIERDO --- */
.art-main-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #001a33;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: left;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-weight: 500;
  margin-bottom: 30px;
}

.art-date { font-size: 0.95rem; }

.art-featured-image-wrapper {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.art-featured-img {
  width: 100%;
  height: 450px; /* Altura estándar para todos los artículos */
  object-fit: cover;
}

.art-body-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.art-body-text p { margin-bottom: 25px; }

.art-body-text h3 {
  font-size: 1.6rem;
  color: #001a33;
  margin: 40px 0 20px;
}

.art-body-text blockquote {
  border-left: 4px solid #004687;
  padding: 20px 30px;
  margin: 40px 0;
  background: #f8faff;
  font-style: italic;
  font-size: 1.25rem;
  color: #004687;
}

/* --- SIDEBAR DERECHO --- */
.art-sidebar-sticky {
  position: sticky;
  top: 100px; /* Se queda pegado al bajar el scroll */
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #001a33;
  margin-bottom: 10px;
}

.sidebar-blue-line {
  width: 100%;
  height: 3px;
  background-color: #004687;
  margin-bottom: 30px;
}

.recent-item {
  display: block;
  text-decoration: none;
  margin-bottom: 25px;
  transition: transform 0.2s ease;
}

.recent-item:hover { transform: translateX(5px); }

.recent-date {
  display: block;
  color: #004687;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.recent-title {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 15px;
}

.recent-separator {
  width: 100%;
  height: 1px;
  background-color: #004687;
  opacity: 0.2;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .art-grid {
    grid-template-columns: 1fr; /* Una sola columna en tablets/móvil */
    gap: 60px;
  }
  
  .art-featured-img { height: 350px; }
  
  .art-sidebar-sticky { position: static; }
}

@media (max-width: 600px) {
  .art-main-title { font-size: 1.8rem; }
  .art-featured-img { height: 250px; }
}

/* --- ENLACES A REDES SOCIALES DEL ARTÍCULO --- */
.art-social-post-links {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: left;
}

.art-social-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #001a33;
  margin-bottom: 20px;
}

.art-social-post-buttons {
  display: flex;
  flex-wrap: wrap; /* Para que bajen en móvil */
  gap: 15px;
}

/* Estilo base del botón */
.art-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-post-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: white; /* Aseguramos que el texto siga blanco */
}

/* --- COLORES DE MARCA --- */

/* Facebook */
.art-post-fb {
  background-color: #1877F2;
}
.art-post-fb:hover {
  background-color: #166fe5;
}

/* Instagram: Degradado Corporativo */
.art-post-ig {
  background: radial-gradient(circle at 30% 107%, #d6c505 0%, #dbc904 5%, #da1604 45%, #cc058d 60%, #0439da 90%);
}


/* X (anteriormente Twitter) */
.art-post-x {
  background-color: #000000;
  border: 1px solid #333; /* Un borde sutil para que no se pierda en fondos oscuros */
}
.art-post-x:hover {
  background-color: #222;
}

/* --- RESPONSIVE BOTONES --- */
@media (max-width: 600px) {
  .art-social-post-buttons {
    flex-direction: column; /* Apilados verticalmente en móvil */
    gap: 10px;
  }
  
  .art-post-btn {
    width: 100%; /* Ancho completo */
    justify-content: center; /* Texto centrado */
  }
}


/* ===== HERO PARA UMID-ACADEMY ===== */
.academy-hero {
  position: relative;
  min-height: 100vh; /* Un poco más bajo que el del index para ir directo al grano */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.academy-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.academy-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Oscurecemos un poco la imagen para que el texto resalte */
}

.academy-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  color: white;
  margin-top: 4rem; /* Espacio para el navbar */
}

.academy-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.academy-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

/* El degradado dinámico */
.academy-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  /* Aquí ocurre la magia: usa la variable del programa */
  background: linear-gradient(to top, #000000, transparent);
  z-index: 2;
  opacity: 1;
}

/* --- SECCIÓN ACADEMY INTRO --- */
.academy-intro {
    padding: 100px 0; /* Espaciado vertical generoso */
    background-color: #ffffff;
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
}

.academy-intro-grid {
    width: 90%; /* Margen de seguridad en pantallas pequeñas */
    max-width: 1200px; /* Ancho máximo para que no se estire de más */
    display: flex;
    align-items: center;
    gap: 80px; /* Espacio entre columnas */
}

/* Columna de Texto */
.academy-intro-text {
    flex: 1.2; /* El texto toma un poco más de espacio que la imagen */
}

.academy-intro-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #001a33;
    line-height: 1.1;
    margin-bottom: 20px;
}

.academy-intro-line {
    width: 60px;
    height: 4px;
    background: #0056b3;
    margin-bottom: 30px;
    border-radius: 2px;
}

.academy-intro-p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.academy-cambridge-img {
    max-width: 160px;
    height: auto;
    margin-top: 20px;
}

/* Columna de Imagen */
.academy-intro-visual {
    flex: 1;
    position: relative;
}

.academy-visual-wrapper {
    position: relative;
}

.academy-img {
    width: 100%;
    height: 400px; /* Altura fija para mantener proporción */
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Decoración trasera (Sutil) */
.academy-img-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: #001a33;
    border-radius: 30px;
    z-index: 1;
    opacity: 0.08; /* Muy suave para que no distraiga */
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .academy-intro-grid {
        gap: 40px;
        padding: 0 20px;
    }
    .academy-intro-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .academy-intro {
        padding: 60px 0;
    }
    .academy-intro-grid {
        flex-direction: column;
        text-align: center;
    }
    .academy-intro-p {
        text-align: center;
    }
    .academy-intro-line {
        margin: 0 auto 30px auto;
    }
    .academy-img {
        height: 300px;
    }
    .academy-img-decoration {
        display: none; /* Limpiamos en móvil */
    }
}

/* --- SECCIÓN ACADEMY MODEL --- */
.academy-model {
    padding: 100px 0;
    background-color: #f8f9fa; /* Fondo ligero para contrastar */
    display: flex;
    justify-content: center;
}

.academy-model-grid {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Columna Texto (Derecha) */
.academy-model-text {
    flex: 1;
}

.academy-model-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #001a33;
    line-height: 1.1;
    margin-bottom: 20px;
}

.academy-model-line {
    width: 60px;
    height: 4px;
    background: #0056b3;
    margin-bottom: 30px;
    border-radius: 2px;
}

.academy-model-p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

/* Lista de checks */
.academy-model-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.academy-model-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.05rem;
}

.check-icon {
    color: #10b981; /* Un verde suave para los checks */
    flex-shrink: 0;
    margin-top: 3px;
}

/* Botón Rojo UMID */
.btn-academy-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--umid-red);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(186, 28, 28, 0.2);
}

.btn-academy-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(186, 28, 28, 0.3);
    background-color: var(--umid-red-dark); /* Un tono un poco más oscuro al pasar el mouse */
    color: #fff;
}

/* Columna Imagen (Izquierda) */
.academy-model-visual {
    flex: 1;
}

.academy-model-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.academy-model-decoration {
    position: absolute;
    top: -20px;
    left: -20px; /* Cambiado a la izquierda */
    width: 100%;
    height: 100%;
    background: #001a33;
    border-radius: 30px;
    z-index: 1;
    opacity: 0.08;
}

/* --- RESPONSIVE MODEL --- */
@media (max-width: 992px) {
    .academy-model-grid {
        flex-direction: column-reverse; /* En móvil la imagen queda arriba del texto */
        text-align: center;
        gap: 40px;
    }
    .academy-model-p, .academy-model-item {
        text-align: center;
        justify-content: center;
    }
    .academy-model-line {
        margin: 0 auto 30px auto;
    }
}

/* --- SECCIÓN PARALLAX: QUÉ APRENDERÁS --- */
.academy-learning {
    position: relative;
    padding: 120px 0;
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1565728744382-61accd4aa148?q=80&w=873&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* Imagen de fondo */
    background-attachment: fixed; /* Efecto Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

/* Overlay oscuro para legibilidad */
.learning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 4, 58, 0.85); /* Azul UMID oscuro con transparencia */
    z-index: 1;
}

.learning-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.learning-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learning-line {
    width: 80px;
    height: 4px;
    background: var(--umid-red-dark);
    margin: 0 auto 60px auto;
    border-radius: 2px;
}

/* Grid de Círculos */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.learning-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.learning-item:hover {
    transform: translateY(-10px);
}

.learning-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Control de tamaño del icono */
    font-size: 3.5rem; 
    color: #ffffff;
    transition: all 0.3s ease;
}
/* Esto asegura que el web component ocupe el espacio correcto */
.learning-circle iconify-icon {
    display: block;
}

.learning-item:hover .learning-circle {
    background: var(--umid-red-dark);
    border-color: var(--umid-red-dark);
    box-shadow: 0 0 30px rgba(186, 28, 28, 0.4);
}

.learning-item p {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    max-width: 200px;
}

/* --- RESPONSIVE & iOS FIX --- */

/* Desactivar Parallax en iOS para evitar errores de renderizado */
@supports (-webkit-touch-callout: none) {
    .academy-learning {
        background-attachment: scroll !important;
    }
}

/* Móviles y Tablets */
@media (max-width: 992px) {
    .learning-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 arriba, 2 abajo */
        gap: 50px 20px;
    }
    
    .learning-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .learning-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    .learning-item p {
        font-size: 0.9rem;
    }
}

/* --- SECCIÓN MODELO EUROPEO --- */
.academy-european {
    padding: 100px 0;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.european-grid {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Texto */
.european-text {
    flex: 1;
}

.european-subtitle {
    display: block;
    color: #0056b3;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.european-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #001a33;
    margin-bottom: 20px;
}

.european-line {
    width: 50px;
    height: 4px;
    background: var(--umid-red-dark);
    margin-bottom: 30px;
}

.european-p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Caja de Cambridge */
.european-badge-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #050e5e;
}

.badge-icon {
    font-size: 2.5rem;
    color: #050e5e;
    display: flex;
    align-items: center;
}

.badge-text p {
    font-size: 0.95rem;
    color: #050e5e;
    margin: 0;
    line-height: 1.4;
}

/* Contenedor de la Imagen (Derecha) */
.european-visual {
    flex: 1;
}

.levels-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease;
}

.levels-card:hover {
    transform: translateY(-5px);
}

.levels-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Etiquetas debajo de la imagen */
.levels-info {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.info-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a9db8;
    text-transform: uppercase;
    background: #eff3f7;
    padding: 5px 12px;
    border-radius: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .european-grid {
        flex-direction: column;
        text-align: center;
    }
    .european-line {
        margin: 0 auto 30px auto;
    }
    .european-badge-box {
        text-align: left;
    }
}


/* ===== CURRICULUM SECTION ===== */
.academy-program-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}
.academy-program-header h2{
  font-size:2.5rem;
}

.academy-program-display {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    background: #fdfdfd;
    cursor: pointer;
}

.academy-program-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.academy-program-img:hover {
    transform: scale(1.02); /* Efecto zoom sutil */
}

.academy-program-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Botón de Descarga */
.btn-program-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #050e5e; /* Color dinámico */
    color: white;
    padding: 16px 32px;
    border-radius: 7px; /* Botón redondeado moderno */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-program-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    /* Un pequeño truco para oscurecer el color dinámico al hacer hover */
    filter: brightness(0.9); 
}