/* RESET */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* MENÚ SUPERIOR */
.top-menu {
  background-color: #2c5d8f;
  padding: 10px 0;
}
.top-menu ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-menu li {
  position: relative;
  font-size: 12px;
  font-weight: bold;
  padding: 0 10px;
}
.top-menu li:not(:last-child)::after {
  content: "|";
  color: white;
  margin-left: 13px;
}
.top-menu a {
  text-decoration: none;
  color: white;
  position: relative;
  padding-bottom: 2px;
}
.top-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
}
.top-menu a:hover::after {
  width: 100%;
}

/* CABECERA PRINCIPAL */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background-color: #003366;
  height: 3.5cm;
}
.logo-left img,
.logo-right img {
  height: 60px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 4px;
  background: white;
  transition: width 0.3s;
}
.main-nav a:hover::after {
  width: 100%;
}

/* MEGA MENÚ */
.submenu {
  position: relative;
}
.mega-menu {
  display: none; /* oculto por defecto */
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 20px;
  display: flex;
  gap: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  width: max-content;
}
.submenu:hover .mega-menu {
  display: flex; /* se muestra al pasar el mouse */
}
.menu-section h4 {
  font-size: 14px;
  color: #003366;
  margin-bottom: 10px;
}
.menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-section a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
}
.menu-section a:hover {
  color: #003366;
  font-weight: bold;
  text-decoration: underline;
}
 
/* Abrir Ventana Modal - Fondo de la sección emergente */
.popup-seccion {
  display: none; /* oculta al inicio */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8); /* semitransparente */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Caja de contenido */
.popup-contenido {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  height: 600px;
  max-width: 750px;
  text-align:justify;
  position: relative;
  animation: aparecer 0.2s ease;
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 29px;
  font-weight: bold;
  cursor: pointer;
  color:#f7f5f5 ;
  background: #000;
  width: 30px;
  height: 30px; 
  border-radius: 6px;
  text-align: center;

}

/* Carrusel  */
/* Contenedor del carrusel */
.cards-carousel {
  overflow: hidden;
  width: 100%;
  height: 400px;
  margin-top: 20px;
}

/* Pista donde se mueven las cards */
.cards-track {
  display: flex;
  gap: 20px;
  animation: scroll 12s linear infinite;
  height:400px;
  margin-left: 40px;

}
/* Nombre encima de la card */
.cards-track .card h6 {
  margin-bottom: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;  
}
/* Cada card */
.cards-track .card {
  flex: 0 0 auto;
  width: 180px;
  height:330px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
   background-color: #c7c7c7;
}

.cards-track img {
  width: 100%;
  height: auto;
 
}

/* Botón */
.btn-descargar {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.btn-descargar:hover {
  background: #005fa3;
}

/* Animación de desplazamiento */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cards-track:hover {
  animation-play-state: paused;
}
/* ----------fin de modal----------*/

/* Card */
.cards-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  background: #f9f9f9;       /* Fondo de la card */
  border-radius: 12px;       /* Bordes redondeados */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombra elegante */
  padding: 15px;
  text-align: center;
  width: 200px;              /* Ancho fijo */
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;               /* Que ocupe todo el ancho */
  height: 150px;             /* Ajusta la altura */
  object-fit: cover;         /* Recorta para mantener proporción */
  border-radius: 8px;
  margin-bottom: 10px;
}

.btn-descargar {
  display: inline-block;
  padding: 8px 12px;
  background: #143355;        /* Azul */
  color: #fff !important;     /* 🔹 Forzamos el blanco */
  text-decoration: none !important;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}

.btn-descargar:hover {
  background: #0056b3;
  color: #fff !important;
  transform: scale(1.05);
}

.nuevo-icono {
  background: #ff0000;       /* Fondo rojo */
  color: #fff;              /* Texto blanco */
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 8px;
  animation: parpadeo 1s infinite;  /* Animación */
}

@keyframes parpadeo {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Sección superior debajo del header */
.sec-top {
  display: flex;
  justify-content: space-between; /* izquierda y derecha */
  align-items: center;
  padding: 20px 40px;
  background-color: #f2f2f2; /* gris claro */
  font-weight: bold;
  font-size: 16px;
  color: #003366;
}

.sec-left, .sec-right {
  flex: 1;
}

.sec-left {
  text-align: left;
}

.sec-right {
  text-align: right;
}

/*  main    */ 
.content-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
  
}

.main-section {
  flex:3; /* ocupa más espacio */ 
 
}

.info-item {
  margin: 4px 0;
  line-height: 1.2;
}

.link-nombramiento {
  color: #2ab0dd;         /* azul celeste */
  text-decoration: none;  /* sin subrayado inicial */
  font-weight: 400;       /* un poco más fuerte */
}

.link-nombramiento:hover {
  color: #ff4500;         /* naranja al pasar el mouse */
  text-decoration: underline; /* subrayado al pasar */
  cursor: pointer;
}

.sidebar {
  flex: 1; /* barra lateral más estrecha */
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.card {
  flex: 1 1 45%; /* dos tarjetas por fila aprox */
  background-color: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card img {
  width: 100%;
  height: auto;
}

.card h3 {
  margin: 10px;
  font-size: 18px;
  color: #003366;
}

.card p {
  margin: 0 10px 10px;
  font-size: 14px;
  color: #555;
}

.card a {
  display: block;
  text-align: right;
  margin: 0 10px 10px;
  color: #286aad;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* cards */
.image-cards-block {
  width: 60%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5cm;
  padding: 20px 0;
  box-sizing: border-box;
}

.image-cards-block .card {
  flex: 0 0 calc(12.5% - 0.5cm); /* ancho fijo 12.5% menos gap */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.image-cards-block .card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-cards-block .card p {
  margin-top: 10px;
  font-weight: bold;
  color: #003366;
}

.image-cards-block .card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Asegurar que la última fila tenga el mismo ancho incluso si hay menos cards */
.image-cards-block::after {
  content: "";
  flex: 0 0 calc(12.5% - 0.5cm);
}


/* Ultima sección */
.info-section {
  width: 90%;        /* ancho similar a los cards */
  max-width: 1550px;  /* controla el ancho máximo */
  margin: 20px auto;  /* centrado automático */
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
  display: block;     /* asegura comportamiento normal */
  
}

.info-section h3 {
  color: #003366;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 18px;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  margin-bottom: 8px;
}

.info-section a {
  text-decoration: none;
  color: #003366;
  transition: all 0.3s;
}

.info-section a:hover {
  text-decoration: underline;
  color: #286aad;
}
 /*pie */
 
/* Bloque final */
.final-block {
  background-color: #494949;
  padding: 40px 20px;
  color: #fff;
}

.block-columns {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  line-height: 20px;
}

/* Columnas con líneas divisorias */
.block-column {
  flex: 1;
  padding: 0 15px;
  border-right: 1px solid #fcfbfb; /* línea divisoria */
}

.block-column:last-child {
  border-right: none; /* quitamos la línea en la última */
}

/* Títulos */
.block-column h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #f0f0f0;
  text-decoration: underline;
  }

/* Enlaces: solo texto subrayado */
.block-column ul li a {
  color: #ccc;
  text-decoration: none; /* subrayado SOLO en la palabra */
}

.block-column ul li a:hover {
  color: #fff;
  text-decoration: underline; /* quita subrayado al pasar el mouse */
}

/*Redes Sociales */

.redes-sociales {
  margin-top: 20px;
}

.redes-sociales a {
  display: inline-block;
  margin-right: 20px;
  font-size: 2.5rem; /* tamaño de iconos */
  color: #ffffff; /* color inicial */
  transition: color 0.3s ease;
}

.redes-sociales a.facebook:hover { color: #1877f2; }
.redes-sociales a.instagram:hover { color: #e4405f; }
.redes-sociales a.linkedin:hover { color: #0a66c2; }


/* Footer */
.site-footer {
  background-color: #131313;   /* fondo oscuro elegante */
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 0;            /* lo pegamos después del bloque final */
}

.site-footer .footer-inner p {
  margin: 5px 0;
  font-size: 14px;
}

/*Sidebar */
.banner-vertical {
  position: relative;
  height: 450px; /* altura visible del banner */
  overflow: hidden;
  border-radius: 8px;
  margin-top: 15px;
}

.banner-vertical ul {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: moverLogos 12s linear infinite alternate;
}

.banner-vertical li {
  text-align: center;
  margin: 15px 0;
}

.banner-vertical img {
  width: 220px; 
  height: auto;
  transition: transform 0.3s;
  box-shadow: 0 0 7px rgb(8, 8, 8);
}

.banner-vertical img:hover {
  transform: scale(1.1);
}

/* Animación para subir y bajar */
@keyframes moverLogos {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
