:root {
      --azul: #005CA2;
      --celeste: #84CFED;
      --blanco: #FFFFFF;
      --amarillo: #FEC800;
      --gris-claro: #f8fafc;
      --gris-medio: #e2e8f0;
      --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
      --sombra-media: 0 6px 20px rgba(0, 92, 162, 0.15);
      --transicion: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Roboto', sans-serif;
      background-color: var(--gris-claro);
      color: #1e293b;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Encabezado mejorado */
    header {
      background: linear-gradient(135deg, var(--azul) 0%, #003d7a 100%);
      color: var(--blanco);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: var(--sombra-media);
    }

    .header-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 0;
    }

    .escudo-gob {
      height: 76px;
    }

    


    /* Hero banner */
    .hero {
      position: relative;
      overflow: hidden;
      color: var(--blanco);
      padding: 2.5rem 1.5rem;
      text-align: center;
      background: linear-gradient(rgba(0, 92, 162, 0.65), rgba(0, 61, 122, 0.65)); /* opcional para oscurecer el video */
    }
    
    .hero-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }
    

    .hero h1 {
      font-family: 'Gotham', sans-serif;
      font-size: 2.2rem;
      margin-bottom: 1rem;
      text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .hero p {
      max-width: 700px;
      margin: 0 auto;
      font-size: 1.1rem;
      opacity: 0.95;
    }

@media (max-width: 768px) {
  header {
    background: linear-gradient(135deg, var(--azul) 0%, #003d7a 100%);
    padding-bottom: 1rem;           /* un poco de aire abajo del logo + hamburguesa */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  
  .hero {
    margin-top: -4px;               /* sube el hero y lo pega perfecto */
    padding-top: 0 !important;
  }
}

    /* Secciones generales */
    .seccion {
      padding: 5rem 1.5rem;
    }

    .seccion-titulo {
      font-family: 'Gotham', sans-serif;
      font-size: 2rem;
      color: var(--azul);
      text-align: center;
      margin-bottom: 2.5rem; /* más espacio debajo del título */
      margin-top: 3rem;     /* opcional, espacio antes del título */
      position: relative;
    }

    .seccion-titulo::after {
      content: '';
      display: block;
      width: 70px;
      height: 4px;
      background: var(--amarillo);
      margin: 0.75rem auto;
      border-radius: 2px;
    }

    /* Accesos rápidos */
    .accesos-rapidos {
      background-color: var(--blanco);
    }

    .grid-accesos {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      max-width: 1300px;
      margin: 0 auto;
    }

    .acceso-item {
      background: var(--blanco);
      border-radius: 16px;
      padding: 2rem 1.5rem;
      text-align: center;
      box-shadow: var(--sombra-suave);
      transition: var(--transicion);
      border: 1px solid var(--gris-medio);
      position: relative;
      overflow: hidden;
    }

    .acceso-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: var(--celeste);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.4s ease;
    }

    .acceso-item:hover::before {
      transform: scaleX(1);
      transform-origin: left;
    }

    .acceso-item:hover {
      transform: translateY(-10px);
      box-shadow: var(--sombra-media);
      border-color: var(--celeste);
    }

    .acceso-icono {
      font-size: 2.8rem;
      color: var(--azul);
      margin-bottom: 1.2rem;
      background: rgba(132, 207, 237, 0.15);
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      margin-left: auto;
      margin-right: auto;
    }

    .acceso-item h3 {
      font-family: 'Gotham', sans-serif;
      font-size: 1.25rem;
      color: var(--azul);
      margin-bottom: 1rem;
    }

    .acceso-item p {
      font-size: 0.95rem;
      color: #475569;
      margin-bottom: 1.2rem;
    }

    .btn-acceso {
      display: inline-block;
      background: var(--azul);
      color: var(--blanco);
      padding: 0.65rem 1.4rem;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      transition: var(--transicion);
      font-size: 0.95rem;
    }

    .btn-acceso:hover {
      background: var(--amarillo);
      color: var(--azul);
      box-shadow: 0 4px 12px rgba(254, 200, 0, 0.3);
    }

    /* Niveles educativos */
    .niveles {
      background-color: var(--gris-claro);
    }

    .grid-niveles {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.4rem;
      max-width: 1100px;
      margin: 0 auto;
    }

    .nivel-item {
      background: var(--blanco);
      padding: 1.6rem 1rem;
      border-radius: 12px;
      text-align: center;
      box-shadow: var(--sombra-suave);
      transition: var(--transicion);
      font-weight: 600;
      color: var(--azul);
      text-decoration: none;
      font-size: 1.05rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .nivel-item i {
      font-size: 1.8rem;
      margin-bottom: 0.8rem;
      color: var(--celeste);
    }

    .nivel-item:hover {
      background: var(--celeste);
      color: var(--azul);
      transform: scale(1.04);
      box-shadow: var(--sombra-media);
    }

   /* ===================================================== */
/* SISTEMAS VINCULADOS - ESTILO FINAL (BLANCO + CELESTE) */
/* ===================================================== */
.sistemas {
  background-color: var(--blanco);
  padding: 4rem 1.5rem;
}

.grid-sistemas {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjeta principal */
.sistema-item {
  background: var(--blanco);
  color: #1e293b;
  padding: 2.6rem 2rem;
  border-radius: 22px;
  text-align: center;
  width: 320px;
  max-width: 100%;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--gris-medio);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Barra superior celeste (marca institucional) */
.sistema-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 7px;
  background: var(--celeste);
  border-radius: 22px 22px 0 0;
}

/* Hover elegante */
.sistema-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 45px rgba(0, 92, 162, 0.18);
  border-color: var(--celeste);
}

/* Logo con fondo circular muy suave */
.sistema-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.6rem auto;
  background: linear-gradient(135deg, #f0f9ff, #e0f3ff);
  border: 6px solid var(--celeste);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(132, 207, 237, 0.3);
}

.sistema-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
}

/* Títulos */
.sistema-item h3 {
  font-family: 'Gotham', sans-serif;
  font-size: 1.65rem;
  color: var(--azul);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

/* Descripción */
.sistema-item p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

/* Botón moderno */
.sistema-item a {
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: 2.5px solid var(--azul);
  border-radius: 50px;
  transition: var(--transicion);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
}

.sistema-item a:hover {
  background: var(--azul);
  color: var(--blanco);
  box-shadow: 0 6px 20px rgba(0, 92, 162, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .grid-sistemas {
    gap: 2rem;
    padding: 0 1rem;
  }
  .sistema-item {
    width: 100%;
    max-width: 340px;
  }
  .sistema-logo {
    width: 130px;
    height: 130px;
  }
  .sistema-item h3 {
    font-size: 1.5rem;
  }
}

    /* Otros enlaces */
    .otros-enlaces {
      background-color: var(--gris-claro);
    }

    .grid-otros {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      max-width: 1000px;
      margin: 0 auto;
    }

    .otro-item {
      background: var(--blanco);
      padding: 1.8rem;
      border-radius: 14px;
      box-shadow: var(--sombra-suave);
      text-align: center;
      transition: var(--transicion);
    }

    .otro-item:hover {
      transform: translateY(-6px);
      box-shadow: var(--sombra-media);
    }

    .otro-item a {
      color: var(--azul);
      text-decoration: none;
      font-weight: 600;
      font-size: 1.05rem;
      display: block;
      padding: 0.5rem;
    }

    .otro-item a:hover {
      color: var(--amarillo);
    }

    /* Noticias */
    .noticias {
      background-color: var(--blanco);
      margin-bottom: 2.5rem; /* más espacio debajo del título */
      margin-top: 2rem;     /* opcional, espacio antes del título */
    }

    .noticias-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      max-width: 1100px;
      margin: auto;
    }

    .noticia-card {
      background: var(--blanco);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--sombra-suave);
      transition: var(--transicion);
    }

    .noticia-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--sombra-media);
    }

    .noticia-img {
      height: 180px;
      background-size: cover;
      background-position: center;
    }

    .noticia-contenido {
      padding: 1.5rem;
    }

    .noticia-contenido h3 {
      font-family: 'Gotham', sans-serif;
      font-size: 1.25rem;
      color: var(--azul);
      margin-bottom: 0.75rem;
    }

    .noticia-contenido p {
      color: #475569;
      font-size: 0.95rem;
      margin-bottom: 1rem;
    }

    .noticia-meta {
      font-size: 0.85rem;
      color: #64748b;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /*footer*/
    footer {
  background: linear-gradient(135deg, var(--azul) 0%, #002f5a 100%);
  color: var(--blanco);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;        /* CLAVE 1: todas las columnas misma altura */
}

.footer-col {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* CLAVE 2: centra verticalmente el contenido */
  align-items: center;
}

/* Logo */
.footer-logo-col {
  justify-content: center;
}
.footer-logo img {
  height: 72px;
  opacity: 0.95;
}

/* Mapa */
.footer-mapa-col {
  justify-content: center;
}
.footer-mapa {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
footer iframe {
  border-radius: 16px;
  height: 150px !important;
  width: 100% !important;
}

/* Contacto */
.footer-col h3 {
  color: var(--amarillo);
  margin-bottom: 0.8rem;
  font-family: 'Gotham', sans-serif;
  font-size: 1.2rem;
}
.footer-col a {
  color: var(--celeste);
  text-decoration: none;
  font-weight: 500;
}
.footer-col a:hover {
  color: var(--amarillo);
  text-decoration: underline;
}

/* Copyright */
.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  footer iframe {
    height: 200px !important;
  }
  .footer-mapa {
    max-width: 100%;
  }
}

/* Contacto */
.footer-col a {
  color: var(--celeste);
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.5rem;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--amarillo);
  text-decoration: underline;
}

/* Copyright */
.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  opacity: 0.9;
  width: 100%;
}

/* Responsive perfecto */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  footer iframe {
    height: 160px !important;
  }
  .footer-mapa {
    max-width: 100%;
  }
}


 /* ============================================================= */
/* VALIDEZ NACIONAL         */
/* ============================================================= */

.validez-hero {
  position: relative;
  overflow: hidden;
  color: var(--blanco);
  padding: 1.2rem 1.2rem 1.8rem; /* ← MENOS ARRIBA */
  text-align: center;
  background: linear-gradient(rgba(0, 92, 162, 0.75), rgba(0, 61, 122, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0rem; /* ← CLAVE: SUBE EL HERO */
  border-radius: 0 0 0px 0px;
}

.validez-hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.9);
}

.validez-hero h1 {
  font-family: 'Gotham', sans-serif;
  font-size: 2.1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.validez-hero p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.4;
  font-weight: 500;
}

/* MÓVIL: SIN ESPACIO */
@media (max-width: 768px) {
  .validez-hero {
    padding: 1rem 1rem 1.5rem;
    gap: 0.3rem;
    margin-top: -1.4rem; /* ← MÁS ARRIBA EN MÓVIL */
  }
  
  .validez-hero h1 {
    font-size: 1.75rem;
  }
  
  .validez-hero p {
    font-size: 0.95rem;
  }
}

/* Grid de tarjetas más compacto */
.validez-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  max-width: 1300px;
  margin: 2.5rem auto;
  padding: 0 1.2rem;
}

/* Tarjetas base (igual que .acceso-item del index) */
.acceso-item,
.validez-renav-card {
  background: var(--blanco);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion);
  border: 1px solid var(--gris-medio);
  position: relative;
  overflow: hidden;
}

/* Efecto barra celeste al hover */
.acceso-item::before,
.validez-renav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--celeste);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.acceso-item:hover::before,
.validez-renav-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.acceso-item:hover,
.validez-renav-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-media);
  border-color: var(--celeste);
}

/* Imagen en la primera tarjeta */
.acceso-item img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Títulos */
.acceso-item h3,
.validez-renav-card h3 {
  font-family: 'Gotham', sans-serif;
  font-size: 1.25rem;
  color: var(--azul);
  margin-bottom: 1rem;
}

/* Título Re.Na.V en fondo celeste */
/* Logo grande en celeste (como imagen institucional) */
.renav-logo {
  background: var(--celeste);
  color: white;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  display: inline-block;
  margin: 0 0 1.2rem 0;
  box-shadow: 0 6px 16px rgba(132, 207, 237, 0.4);
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
  font-family: 'Gotham', sans-serif;
}

/* Título normal en azul (igual que la otra tarjeta) */
.validez-renav-card h3 {
  background: transparent !important;
  color: var(--azul) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 0 1rem 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
  display: block !important;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .renav-logo {
    font-size: 2.3rem;
    padding: 0.8rem 1.6rem;
  }
  .validez-renav-card h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .renav-logo {
    font-size: 2rem;
    padding: 0.7rem 1.4rem;
  }
}

/* Descripciones */
.acceso-item p,
.validez-renav-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Botones idénticos */
.acceso-item .btn-acceso,
.validez-renav-card .btn-acceso {
  display: inline-block;
  background: var(--azul);
  color: var(--blanco);
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transicion);
}

.acceso-item .btn-acceso:hover,
.validez-renav-card .btn-acceso:hover {
  background: var(--amarillo);
  color: var(--azul);
  box-shadow: 0 4px 12px rgba(254, 200, 0, 0.3);
}

/* Eliminar icono en Re.Na.V */
.validez-renav-card .acceso-icono {
  display: none !important;
}

/* Botón volver */
.validez-volver {
  text-align: center;
  margin: 2rem 0 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .validez-hero {
    padding: 1.5rem 1rem;
  }
  .validez-hero h1 {
    font-size: 1.8rem;
  }
  .validez-hero p {
    font-size: 0.95rem;
  }
  .validez-renav-card h3 {
    font-size: 2.3rem;
    padding: 0.8rem 1.6rem;
  }
  .validez-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .validez-renav-card h3 {
    font-size: 2rem;
    padding: 0.7rem 1.4rem;
  }
}

/* Contenedor del texto descriptivo */
.validez-texto {
  background: var(--blanco);
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: var(--sombra-suave);
  max-width: 1000px;
  margin: 0 auto 3rem;
  border-left: 6px solid var(--celeste);
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.validez-texto p {
  margin-bottom: 1.2rem;
}

.validez-texto p:last-child {
  margin-bottom: 0;
}

.validez-texto strong {
  color: var(--azul);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .validez-texto {
    padding: 2rem 1.5rem;
    font-size: 1rem;
    margin: 0 1rem 2.5rem;
  }
}

/* Contenedor principal de acordeones */
.validez-acordeones {
  max-width: 1000px;           
  margin: 3rem auto 4rem;      
  padding: 0 1.5rem;          
  width: 100%;
  box-sizing: border-box;
}

.acordeon-item {
  background: var(--blanco);
  border-radius: 16px;
  margin-bottom: 1.2rem;
  box-shadow: var(--sombra-suave);
  overflow: hidden;
  border: 1px solid var(--gris-medio);
  transition: var(--transicion);
  width: 100%;
  word-wrap: break-word;
}

.acordeon-header {
  padding: 1.4rem 1.8rem;
  background: var(--blanco);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Gotham', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--azul);
  position: relative;
  word-wrap: break-word;
  hyphens: auto;
}

.acordeon-header::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--celeste);
  font-size: 1.1rem;
  transition: transform 0.35s ease;
}

.acordeon-item.active .acordeon-header::after {
  transform: rotate(180deg);
  color: var(--amarillo);
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.5s ease;
  padding: 0 1.8rem;
  background: #f9fcff;
  border-top: 1px solid var(--gris-medio);
}

.acordeon-item.active .acordeon-contenido {
  max-height: none;        /* ← SIN LÍMITE, NUNCA MÁS SE CORTA */
  padding: 1.8rem;
}

/* Texto dentro */
.acordeon-contenido p,
.acordeon-contenido li,
.acordeon-contenido ol,
.acordeon-contenido ul {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* MÓVIL: SIN ESPACIOS LATERALES (usa todo el ancho) */
@media (max-width: 768px) {
  .validez-acordeones {
    max-width: 100%;
    padding: 0 1rem;           /* ← Mantiene márgenes suaves */
    margin: 2rem auto 3rem;
  }

  .acordeon-header {
    font-size: 1.2rem;
    padding: 1.2rem 1.4rem;
    line-height: 1.4;
  }

  .acordeon-contenido p,
  .acordeon-contenido li {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .acordeon-item.active .acordeon-contenido {
    padding: 1.4rem;
  }
}

@media (max-width: 480px) {
  .acordeon-header {
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
  }

  .acordeon-contenido p,
  .acordeon-contenido li {
    font-size: 0.95rem;
  }
}

.titulo-departamento {
  font-family: 'Gotham', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blanco);
  text-align: center;
  margin: 0.6rem auto 0.8rem;
  padding: 0 1rem;
  max-width: 900px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .titulo-departamento {
    font-size: 1.15rem;
    margin: 0.5rem auto 0.7rem;
    padding: 0 0.8rem;
  }
}

/* Mapa en footer más lindo */
footer iframe {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

footer iframe:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  footer iframe {
    height: 160px;
  }
}


/* NAVBAR HAMBURGUESA - MÓVIL (≤768px)*/

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blanco);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.4s;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.navbar {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-top: 0.8rem;
  overflow: visible;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 1.1rem;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: var(--transicion);
}

.nav-menu a:hover {
  background: rgba(254,200,0,0.25);
}

/* MÓVIL */
@media (max-width: 768px) {
.top-bar {
    justify-content: space-between !important;
    padding: 0.8rem 1rem;
  }

  .menu-toggle {
    display: block !important;
    order: 2;
  }

  /* LOGO A LA IZQUIERDA */
  .top-bar > a,
  .top-bar > img {
    order: 1;
    height: 50px;
  }

  .top-bar > img {
    display: block !important;
  }

  /* MENÚ LATERAL ANGOSTO 230px — SIN SALTO */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 230px !important;
    height: 100dvh !important;
    background: linear-gradient(135deg, rgba(0, 92, 162, 0.98) 0%, rgba(0, 61, 122, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 20px 40px 20px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3);
    clip-path: inset(0 0 0 100%);
    will-change: transform, clip-path;
  }

  .navbar.active {
    transform: translateX(0) !important;
    clip-path: inset(0 0 0 0);
  }

  /* Fondo oscuro detrás */
  .navbar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 230px;
    width: calc(100vw - 230px);
    height: 100dvh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
    z-index: -1;
  }
  .navbar.active::before {
    opacity: 1;
    visibility: visible;
  }

  /* ELIMINAR LOGO Y TÍTULO */
  .navbar::after,
  .navbar > .titulo-departamento {
    display: none !important;
  }

  /* MÓDULOS: SOLO TEXTO + ÍCONO + SUBRAYADO */
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem !important;
    padding: 0;
    margin-top: 20px;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.6rem 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: color 0.3s ease;
    text-decoration: none;
    color: var(--blanco);
    font-family: 'Gotham', sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
    position: relative;
  }

  .nav-menu a i {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    color: var(--amarillo);
  }

}


/* NIVELES EDUCATIVOS DESHABILITADOS — GRIS Y SIN CLICK */

.nivel-item.disabled {
  background: #e2e8f0 !important;     /* gris claro */
  color: #64748b !important;           /* texto gris */
  pointer-events: none !important;     /* SIN CLICK */
  cursor: default !important;
  opacity: 0.7 !important;
  transform: none !important;
  box-shadow: none !important;
}

.nivel-item.disabled i {
  color: #94a3b8 !important;           /* ícono gris */
}

.nivel-item.disabled:hover {
  background: #e2e8f0 !important;
  color: #64748b !important;
  transform: none !important;
}


/* FORMACIÓN PROFESIONAL — RESPONSIVE + TABLA


/* Video responsive */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Tabla de fechas RESPONSIVE */
.tabla-fechas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.fila {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}
.fila.encabezado {
  background: var(--azul);
  color: white;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  padding: 0.8rem;
}
.fila:nth-child(even) {
  background: #f8fafc;
}
.importante {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #ffebee;
  border-left: 4px solid #d32f2f;
  font-size: 0.95rem;
  color: #c62828;
  border-radius: 0 8px 8px 0;
}

/* MÓVIL: TABLA VERTICAL */
@media (max-width: 768px) {
  .fila {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }
  .fila.encabezado {
    display: none;
  }
  .fila > div::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--azul);
    display: block;
    margin-bottom: 0.3rem;
  }
  .fila > div:nth-child(1)::before { content: "Dirección/Supervisión: "; }
  .fila > div:nth-child(2)::before { content: "Día: "; }
  .fila > div:nth-child(3)::before { content: "Horario: "; }
}


/* DESTACADO EN AZUL —  */

.destacado-azul {
  color: var(--azul) !important;
  font-weight: 600 !important;
  padding: 0 2px;
  border-radius: 2px;
}



/* MODAL UNIVERSAL: SIGETIC  SIME */


.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--blanco);
  border-radius: 20px;
  max-width: 90%;
  width: 500px;
  padding: 2rem 1.8rem;
  box-shadow: var(--sombra-media);
  text-align: center;
  transform: scale(0.7);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--gris-medio);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-title {
  font-family: 'Gotham', sans-serif;
  font-size: 1.6rem;
  color: var(--azul);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-option {
  background: var(--gris-claro);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion);
  cursor: pointer;
  border: 1px solid var(--gris-medio);
}

.modal-option:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-media);
  border-color: var(--celeste);
}

.modal-option img {
  width: 100%;
  height: auto;             
  max-height: 200px;       
  object-fit: contain;      /* ← MUESTRA IMAGEN COMPLETA */
  background: #f8f9fa;      
  border-bottom: 4px solid var(--azul);
  border-radius: 12px 12px 0 0;
  display: block;
}

.modal-option p {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--azul);
  font-size: 1.05rem;
  background: var(--blanco);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--azul);
}

/* MÓVIL */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.8rem 1.4rem;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .modal-option img {
    height: 150px;
  }
}


/* ===================================================== */
/* TARJETA SIME - Secundaria SIME          */
/* ===================================================== */
.sime-card-section {
  padding: 0 1rem 1rem;        /* 0 arriba → pegada al hero */
  margin-top: -2rem;           /* sube la tarjeta encima del fondo gris */
  position: relative;
  z-index: 10;
  background: transparent;
}

.sime-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 2.8rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.11);
  border-top: 6px solid var(--azul);
  text-align: center;
}

.sime-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--azul);
  font-weight: 700;
}

.sime-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
}

/* Acordeones pegaditos a la tarjeta */
.validez-acordeones {
  margin-top: 0rem !important;
  padding-top: 0 !important;
  position: relative;
  z-index: 5;
}

/* Responsive */
@media (max-width: 480px) {
  .sime-card-section { margin-top: -3rem; }
  .sime-card { padding: 2.2rem 1.5rem; max-width: 380px; }
  .sime-card h3 { font-size: 1.45rem; }
}


/* ===================================================== */
/* TARJETAS SIME EN FILA - SUPERIOR SIME                */
/* ===================================================== */
.sime-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: -1.5rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.sime-card {
  background: white;
  border-radius: 20px;
  padding: 2.8rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.11);
  border-top: 6px solid var(--azul);
  transition: var(--transicion);
}

.sime-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0,92,162,0.18);
}

.sime-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--azul);
  font-weight: 700;
}

.sime-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sime-cards-grid {
    grid-template-columns: 1fr;
    margin: -2rem auto 2.5rem;
    padding: 0 1rem;
  }
  .sime-card {
    padding: 2.4rem 1.8rem;
  }
  .sime-card h3 {
    font-size: 1.45rem;
  }
}

/* ============================================= */
/* ENLACES RÁPIDOS      */
/* ============================================= */

.grid-enlaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tarjeta-enlace {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.09);
  transition: all 0.35s ease;
  text-align: center;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
}

.tarjeta-enlace:hover {
  transform: translateY(-12px);
  border-color: #0055a5;
  box-shadow: 0 20px 40px rgba(0,85,165,0.18);
}

.tarjeta-enlace img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.tarjeta-enlace h3 {
  color: #0055a5;
  font-size: 1.32rem;
  font-weight: 700;
  margin: 1.4rem 1.2rem 0.8rem;
  line-height: 1.3;
}

.tarjeta-enlace p {
  color: #555;
  margin: 0 1.4rem 1.2rem;
  font-size: 0.98rem;
  flex-grow: 1;
}

/* Botón normal (el mismo que ya usás) */
.tarjeta-enlace .btn-acceso {
  margin: 0 1.5rem 1.8rem;
}

/* Para tarjetas con varios botones (más chicos y apilados) */
.tarjeta-enlace.multi-btn .btn-acceso {
  display: block;
  width: 88%;
  margin: 0.6rem auto;
  font-size: 0.94rem;
  padding: 0.75rem;
}

@media (max-width: 480px) {
  .grid-enlaces { 
    grid-template-columns: 1fr; 
    padding: 0 1rem;
  }
  .tarjeta-enlace h3 { 
    font-size: 1.22rem; 
  }
}

/* TARJETA DESHABILITADA (gris y sin interacción) */
.tarjeta-enlace.deshabilitada {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;          /* ← Esto impide cualquier clic */
  border-color: #ccc !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tarjeta-enlace.deshabilitada:hover {
  transform: none;               /* ← No se levanta */
  border-color: #ccc !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tarjeta-enlace.deshabilitada h3,
.tarjeta-enlace.deshabilitada p {
  color: #888;
}

.tarjeta-enlace.deshabilitada .btn-acceso {
  background: #aaa;
  color: #eee;
  cursor: not-allowed;
}


/* ============================================================= */
/* BOTÓN USO INTERNO - HEADER (DESKTOP) */
/* ============================================================= */
.uso-interno-btn {
  border-radius: 50%;              /* ← CIRCULAR */
  background: #FEC800;
  padding: 12px;
  border: 3px solid #FEC800;
  box-shadow: 0 6px 16px rgba(254, 200, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex !important;        /* ← SIEMPRE VISIBLE */
  align-items: center;
  justify-content: center;
  margin-left: auto;
  z-index: 10;
  width: 52px;
  height: 52px;
  text-decoration: none;
}

.uso-interno-btn i {
  font-size: 27.5px;
  color: #005CA2;
  font-weight: 900;
}

/* DESKTOP: SIEMPRE VISIBLE */
@media (min-width: 769px) {
  .uso-interno-btn {
    display: flex !important;
  }
}

/* MÓVIL: ESCONDER DEL HEADER */
@media (max-width: 768px) {
  .uso-interno-btn {
    display: none !important;     /* ← DESAPARECE EN MÓVIL */
  }
}

/* ============================================================= */
/* BOTÓN USO INTERNO - MENÚ HAMBURGUESA (MÓVIL SOLO) */
/* ============================================================= */
.menu-uso-interno-mobile {
  display: none !important;        /* ← POR DEFECTO OCULTO */
}

/* DESKTOP: SIEMPRE OCULTO */
@media (min-width: 769px) {
  .menu-uso-interno-mobile {
    display: none !important;     /* ← NUNCA EN DESKTOP */
  }
}

/* MÓVIL: SOLO AQUÍ VISIBLE */
@media (max-width: 768px) {
  .menu-uso-interno-mobile {
    display: block !important;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 3px solid rgba(254, 200, 0, 0.3);
  }
}

.menu-uso-interno-mobile a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(135deg, rgba(254, 200, 0, 0.25), rgba(254, 200, 0, 0.15));
  border: 3px solid rgba(254, 200, 0, 0.4);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-uso-interno-mobile a i {
  font-size: 32px;
  color: #FEC800;
  font-weight: 900;
}

.menu-uso-interno-mobile a:hover,
.menu-uso-interno-mobile a:active {
  background: linear-gradient(135deg, rgba(254, 200, 0, 0.4), rgba(254, 200, 0, 0.25)) !important;
  border-color: #FEC800 !important;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(254, 200, 0, 0.4);
}

/* MODAL USO INTERNO */
.login-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  background: white;
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 92, 162, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-modal-overlay.active .login-modal {
  transform: scale(1);
}

.login-header {
  background: linear-gradient(135deg, #005CA2, #003d7a);
  color: white;
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
}

.login-header i {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: #FEC800;
}

.login-header h3 {
  font-family: 'Gotham', sans-serif;
  font-size: 1.4rem;
  margin: 0;
}

.login-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
}

.login-close:hover { opacity: 1; }

.login-body {
  padding: 2rem 1.8rem;
  text-align: center;
}

.login-body p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #005CA2;
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #005CA2;
  box-shadow: 0 0 0 4px rgba(0, 92, 162, 0.15);
}

.login-submit {
  width: 100%;
  padding: 14px;
  background: #FEC800;
  color: #2d2d2d;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s;
}

.login-submit:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 200, 0, 0.4);
}

.login-error {
  margin-top: 1rem;
  color: #e74c3c;
  font-weight: 600;
  display: none;
}

.login-error.show {
  display: block;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.ver-mas-categoria { text-align:center; margin:18px 0 8px; }
.ver-mas-categoria a {
  padding:10px 16px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
  cursor:pointer;
  color: #005CA2 !important;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 25px 0 10px;
}

/* Fuerza que el botón "Ver más" ocupe toda la fila del grid */
.noticias-grid > .ver-mas-categoria {
  grid-column: 1 / -1;      /* ocupa desde la primera hasta la última columna */
  display: flex;
  justify-content: center;  /* centra el contenido (el enlace) */
  width: 100%;
  margin: 25px 0 10px;      /* ajuste de espacio (igual que usabas) */
}

/* Opcional: que el enlace no se estire por completo */
.noticias-grid > .ver-mas-categoria a {
  display: inline-flex;
  width: auto;              /* evita que el <a> sea 100% ancho */
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  cursor: pointer;
  color: #005CA2 !important; /* color que pediste */
}
