/*carruzel */
.hero {
  position: relative;
  background: linear-gradient(to right, rgba(0, 94, 184, 0.8), rgba(0, 176, 80, 0.8)),
              url('ruta/a/1sl.png') no-repeat center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  height: 600px; /* igual al alto real de la imagen */
  overflow: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
}

.carousel img {
   width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  opacity: 0.5;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/tu-imagen.jpg') center/cover no-repeat;
  opacity: 0.15; /* Ajusta opacidad según lo que quieras */
  z-index: 1;
}

.hero h1,
.hero p,
.hero-buttons {
  position: relative;
  z-index: 2;
}

/*ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd*/




/* Colores basados en el logo */
:root {
  --azul: #005eb8;
  --verde: #00b050;
  --naranja: #f26522;
  --fondo: #f9f9f9;
  --texto: #333;
}

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

body {
  font-family: Arial, sans-serif;
  color: var(--texto);
  background-color: var(--fondo);
  scroll-behavior: smooth;
}

header {
  background: white;
   padding: 1em 2em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* más suave */
  border-bottom: 1px solid #ddd; /* línea sutil */
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}
header.scrolled {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.nav-links a {
  text-decoration: none;
  color: var(--azul);
  font-weight: bold;
  padding: 0.5em;
  transition: all 0.2s ease-in-out;
}

.nav-links a:hover {
  border-bottom: 2px solid var(--naranja);
  color: var(--verde);
}





.nav-links {
  display: flex;
  gap: 1.5em;
  list-style: none;
  overflow: visible;
}

.nav-links a {
  text-decoration: none;
  color: var(--azul);
  font-weight: bold;
}

section {
  padding: 3em 2em;
  text-align: center;
}

.hero {
  background: linear-gradient(to right, var(--azul), var(--verde));
  color: white;
  padding: 5em 2em;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero-buttons a {
  display: inline-block;
  margin: 1em 0.5em;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary {
  background: var(--verde);
  color: white;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.card {
  background: white;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 250px;
}

.service-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: auto;
}

form input, form textarea {
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: var(--azul);
  color: white;
  padding: 1em;
  border: none;
  border-radius: 5px;
  font-weight: bold;
}

footer {
  background: var(--azul);
  color: white;
  padding: 2em;
  text-align: center;
}
/* MENUASSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS*/
/* Submenú */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  list-style: none;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.dropdown-menu li {
  padding: 0;
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--azul);
  text-decoration: none;
  font-weight: normal;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a:hover {
  background: var(--azul);
  color: white;
}

/* MENUASSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS*/

/* ESTILO PARA MISION Y VISION */


/* ESTILO PARA MISION Y VISION */
.nosotros-info {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
}

.nosotros-info .bloque {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nosotros-info .titulo {
  font-size: 1.8rem;
  color: #004aad;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.valores {
  padding-left: 20px;
  list-style: disc;
}

.valores li {
  margin-bottom: 10px;
}
.nosotros-info .titulo {
  font-size: 1.8rem;
  color: #004aad;
  margin-bottom: 20px;
  text-align: center;
  display: block;
}
/* DOCUMENTO*/
.pdf-container {
  width: 100%;
  height: 100vh;
  margin-top: 20px;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* convocatoria*/
.convocatoria-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 10px;
}

.comunicado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ccc;
  padding: 15px 0;
}

.comunicado-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icono {
  font-size: 20px;
  color: green;
}

.boton-descarga {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #005eb8, #0073e6);
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  min-width: 130px;
  box-shadow: 0 6px 14px rgba(0, 94, 184, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.boton-descarga::before {
  content: "\2193";
  font-size: 15px;
}

.boton-descarga:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 94, 184, 0.28);
  filter: brightness(1.05);
}

.boton-descarga:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 94, 184, 0.22);
}

.boton-descarga img {
  width: 20px;
  margin-right: 8px;
}

/* convocatoria*/

/* BOLETINES INFORMATIVOS*/
.boletines {
  padding: 40px;
  background: #f5faff;
  text-align: center;
}

.boletines h2 {
  font-size: 28px;
  margin-bottom: 30px;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 10px;
}

.boletines-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.boletin-card {
  width: 280px;
  height: 380px;
  perspective: 1000px;
}

.boletin-front, .boletin-back {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  overflow: hidden;
}

.boletin-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.boletin-back {
  background-color: #007bff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
}

.boletin-back a {
  color: white;
  background: #0056b3;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.boletin-back a:hover {
  background: #003d80;
}

.boletin-card:hover .boletin-front {
  transform: rotateY(180deg);
}

.boletin-card:hover .boletin-back {
  transform: rotateY(360deg);
}

/* BOLETINES INFORMATIVOS */

/* NOTICIAS DESTACADAS*/
.noticias-destacadas {
  background: #f4f9ff;
  padding: 50px 30px;
}

.noticias-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ccc;
  margin-bottom: 30px;
}

.noticias-header h2 {
  font-size: 28px;
}

.btn-ver-todas {
  background: #0056b3;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-ver-todas:hover {
  background: #003f80;
}

.noticias-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.notas-informativas {
  padding: 20px 20px 10px;
}

.notas-title {
  text-align: center;
  color: #1c2a3d;
  font-size: 38px;
  margin-bottom: 20px;
}

.noticia-card {
  background: white;
  width: 280px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.noticia-card:hover {
  transform: scale(1.03);
}

.noticia-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hora {
  position: absolute;
  bottom: 100px;
  left: 10px;
  background: #f97316;
  color: white;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
}

.titulo-noticia {
  padding: 15px;
  font-weight: bold;
  font-size: 15px;
  color: #1c1c1c;
}


/* NOTICIAS DESTACAS */
.noticia-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.noticia-container img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.noticia-container h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #004B8D;
}

.noticia-container p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
  color: #222;
}

.destacado {
  font-weight: bold;
  color: #D20000;
}
/* NOTICI 2 */
.noticia-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.noticia-container img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.noticia-container h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #004B8D;
}

.noticia-container p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
  color: #222;
}

/* NOTICIA 2*/

/* directora */
.directora-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
}

.directora-header {
  text-align: center;
  margin-bottom: 25px;
}

.directora-header h2 {
  font-size: 22px;
  color: #005baa;
  font-weight: 700;
  text-transform: uppercase;
}

.directora-header h1 {
  font-size: 26px;
  margin: 5px 0;
  color: #222;
}

.cargo {
  font-style: italic;
  color: #555;
}

.correo {
  color: #e44d26;
  font-weight: bold;
}

.directora-mensaje h3 {
  font-size: 20px;
  color: #004080;
  margin-bottom: 15px;
}

.directora-mensaje p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
  color: #333;
}

.firma {
  margin-top: 30px;
  text-align: right;
  font-size: 17px;
}

/* directora */

/* ventana emergente resolucion directoral */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.modal-content h2 {
  color: #004080;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.modal-content button {
  margin-top: 15px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #005eb8, #0073e6);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 94, 184, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.modal-content button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 94, 184, 0.3);
  filter: brightness(1.05);
}

/* ventana emergente resolucion directoral */

/* para celulares */

/* para celulares */

.page-title {
  text-align: center;
  margin: 34px auto 12px;
  padding: 0 18px;
  color: #004080;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.page-title strong {
  color: #006d3f;
}

.titulo-convocatoria {
  color: #003d7a;
  margin-bottom: 14px;
  line-height: 1.45;
}

.convocatoria-container {
  border: 1px solid #d8e5f2;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 56, 112, 0.08);
}

.convocatoria-container p,
.convocatoria-container li {
  line-height: 1.65;
}

.comunicado-item {
  gap: 14px;
}

.comunicado-text {
  line-height: 1.5;
}

.page-card {
  max-width: 900px;
  margin: 30px auto;
  padding: 24px;
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 56, 112, 0.08);
}

.page-card p {
  line-height: 1.7;
}

@media (max-width: 700px) {
  .comunicado-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .boton-descarga {
    width: 100%;
  }

  .convocatoria-container,
  .page-card {
    margin: 18px 12px;
    padding: 16px;
  }
}

/* ventana emerjente principal */
/* POPUP */
/* Estilo general para el fondo del popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Contenedor del contenido del popup */
.popup-content {
  position: relative;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px; /* Límite en pantallas grandes */
  width: 90%;       /* Para móviles y tablets */
}

/* Imagen dentro del popup */
.popup-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Botón de cierre */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsividad extra para pantallas pequeñas */
@media (max-width: 480px) {
  .popup-content {
    width: 90%;
    max-width: 350px;
  }

  .close-btn {
    font-size: 24px;
    top: 5px;
    right: 10px;
  }
}
/* Mostrar el botón solo en móviles */






