.PAGINA-PRINCIPAL {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
  overflow-x: hidden;
}


.PAGINA-PRINCIPAL .menu {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
}

.PAGINA-PRINCIPAL img {
    width: 180px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav ul li {
    position: relative; 
}

nav ul li a {
    display: block;
    padding: 18px 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: 0.5s;
    color: #095181;
}

nav ul li a:hover {
    background: #e6f3ff;
    color: #063a5a;
    border-radius: 8px;
}

.submenu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #ffffff;
    list-style: none;
    padding: 10px 0;
    width: 190px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    border-radius: 8px;
    z-index: 20;
}

.submenu li a {
    padding: 12px 18px;
    border-radius: 0;
    font-size: 15px;
}

.submenu li a:hover {
    background: #d9ecff;
}

nav ul li:hover .submenu {
    display: block;
}

nav ul li {
    white-space: nowrap;
}

.menu-toggle {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: #095181;
}

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 10px;
    width: 260px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    border-radius: 12px;
    display: none;
    z-index: 100;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li a {
    padding: 15px 20px;
    border-radius: 0;
  }

  /* SUBMENÚ RESPONSIVE */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  nav ul li:hover .submenu {
    display: none;
  }

  nav ul li.active .submenu {
    display: block;
  }
}

@media (max-width: 900px) {
  nav {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
  }
}

.carrusel {
  width: 100%;
  background-color: #f5f5f5;
  padding: 0;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  height: 80vh;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 80vh;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9, 81, 129, 0.7);
  color: #fff;
  border: none;
  font-size: 32px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(9, 81, 129, 1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #fff;
  opacity: 0.6;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-container,
  .carousel-slide {
    height: 60vh;
  }

  .carousel-btn {
    font-size: 26px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-container,
  .carousel-slide {
    height: 50vh;
  }
}

.PAGINA-PRINCIPAL .p {
  text-shadow: 0px 4px 4px #00000040;
  font-family: "Roboto-Bold", Helvetica;
  font-weight: 700;
  color: var(--colecci-n-de-variables-color-2);
  font-size: 36px;
  text-align: center;
}

.oferta-educativa {
  width: 100%;
  padding: 80px 20px;
  background-color: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.titulo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  font-size: clamp(32px, 5vw, 50px);
  color: var(--colecci-n-de-variables-color-2);
  font-weight: bold;
}

.conocimiento-1-icon {
  width: 80px;
  height: 80px;
  object-fit: scale-down;
}

.oferta-educativa2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.oferta-educativa .card {
  background-color: var(--colecci-n-de-variables-color);
  border-radius: 5cap;
  box-shadow: var(--shadow-inner);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
}

.oferta-educativa .card img {
  width: 100%;
  height: 380px;
  object-fit: cover;      /* 🔑 rellena sin bordes */
  border-radius: 4cap;
}

.card h3 {
  color: #fff;
  background-color: var(--colecci-n-de-variables-color);
  padding: 12px 24px;
  border-radius: 5cap;
  font-size: 40px;
  margin-top: auto;
}

.card.blue {
  background-color: var(--colecci-n-de-variables-color-2);
  border-radius: 5cap;
}

.card.h3 {
  background-color: var(--colecci-n-de-variables-color);
}

@media (max-width: 480px) {
  .card {
    min-height: auto;
  }

  .card img {
    height: 260px;
  }

  .card h3 {
    font-size: 26px;
  }
}

/* CONTENEDOR GENERAL */
.mision-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* CADA BLOQUE */
.bloque {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ENCABEZADO ARRIBA */
.encabezado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.encabezado b {
  font-size: 40px;
  font-weight: bold;
  color: var(--colecci-n-de-variables-color-2);
}

/* TEXTO ABAJO */
.texto p {
  font-size: 30px;
  line-height: 1.5;
  color: var(--colecci-n-de-variables-color-2);
}

/* ICONOS */
.encabezado .icono {
  width: 90px;
  height: auto;
}

/* 📱 TABLET */
@media (max-width: 900px) {
  .mision-vision {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .encabezado b {
    font-size: 28px;
  }

  .texto p {
    font-size: 20px;
  }
}

/* 📱 MÓVIL */
@media (max-width: 480px) {
  .encabezado b {
    font-size: 22px;
  }

  .texto p {
    font-size: 16px;
  }

  .icono {
    width: 45px;
  }
}


/* CONTENEDOR GENERAL */
.perfil-de-comunidad {
  max-width: 1400px;
  margin: auto;
  padding: 10px 50px;
}

/* TÍTULO */
.titulo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.perfil-de-nuestra {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: bold;
}

.grupo-1-icon{
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* GRID DE TARJETAS */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* TARJETAS */
.card {
  background: #fff;
  padding: 20px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ICONOS */
.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: auto;
}

/* TÍTULOS DE TARJETA */
.card b {
  font-size: clamp(22px, 5vw, 40px);
}

/* TEXTO */
.card p {
  font-size: clamp(16px, 4vw, 30px);
}

/* 📱 TABLET */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 MÓVIL */
@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px 15px;
  }
}
@media (max-width: 480px) {
  .perfil-de-comunidad {
    padding: 10px 15px;
  }

  .oferta-educativa,
  .informacion-final {
    padding: 30px 15px;
  }
}

.modelo-educativo2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 50px;
}

/* Texto */
.modelo-educativo3 {
  font-size: 60px;
  font-weight: bold;
  color: var(--colecci-n-de-variables-color-2);
}

/* Imagen */
.scope-1-icon {
  width: 100%;
  height: auto;
  max-width: 420px;
  display: block;
}

.programas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Texto */
.programas2 {
  font-size: 60px;
  font-weight: bold;
  color: var(--colecci-n-de-variables-color-2);
}

/* CONTENEDOR DE IMÁGENES EN FILA */
.programas-imagenes {
  display: flex;
  gap: 40px;
  justify-content: normal;
  flex-wrap: wrap; /* permite bajar en móvil */
}

.programas-imagenes {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.programas-imagenes img {
  width: 100%;
  max-width: 320px;
  height: auto;
}


@media (max-width: 768px) {
  .programas2,
  .modelo-educativo3 {
    font-size: 24px;
  }

  .programas img,
  .scope-1-icon {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .scope-1-icon {
    max-width: 260px;
  }
}


@media (max-width: 480px) {
  .programas-imagenes img {
    max-width: 240px;
  }
}


.informacion-final {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 20px;
  background-color: var(--colecci-n-de-variables-color-2);
  text-align: center;
}

/* 📱 TABLET */
@media (max-width: 900px) {
  .informacion-final {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* 📱 MÓVIL */
@media (max-width: 480px) {
  .informacion-final {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 15px;
  }

  .titulo-footer {
    font-size: 22px;
  }

  .direccion {
    font-size: 13px;
  }
}


/* SECCIÓN */
.footer-seccion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* TÍTULOS */
.titulo-footer {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
}

/* SECCIÓN CONTACTOS */
.footer-seccion.contactos {
  padding: 30px 20px;
}

/* CONTENEDOR */
@media (max-width: 600px) {
  .contactos-info {
    grid-template-columns: 1fr;
  }
}

/* ITEM */
.contacto-item {
  display: flex;
  align-items: center;
  border-radius: 12px;
  gap: 15px;
  padding: 15px 20px;
  flex-wrap: wrap; /* 🔑 CLAVE */
}

/* HOVER */
.contacto-item:hover {
  background: #e1efff;
  transform: translateY(-3px);
}

/* ICONOS */
.contacto-item img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

/* TEXTO */
.contacto-item span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* TRANSICIÓN SUAVE DEL ÍCONO */
.contacto-item img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* TELÉFONO → VERDE */
.contacto-item.telefono:hover {
  background: #e6f7ee;
}

.contacto-item.telefono:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #25d366);
}

/* CORREO → AZUL */
.contacto-item.correo:hover {
  background: #e8f2ff;
}

.contacto-item.correo:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #1877f2);
}

/* 📱 TABLET */
@media (max-width: 768px) {
  .contactos-info {
    grid-template-columns: 1fr;
  }
}

/* 📱 MÓVIL */
@media (max-width: 480px) {
  .contacto-item {
    flex-direction: row;
    padding: 12px 15px;
  }

  .contacto-item img {
    width: 28px;
  }

  .contacto-item span {
    font-size: 15px;
  }
}


/* CONTENEDOR DEL MAPA */
.mapa-contenedor {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* MAPA */
.mapa-contenedor iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* TEXTO */
.direccion {
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

@media (max-width: 768px) {
  .mapa-contenedor {
    height: 200px;
  }
}

/* 📱 TABLET */
@media (max-width: 900px) {
  .mapa-responsive {
    max-width: 90%;
  }
}

/* CONTENEDOR GENERAL */
.redes-sociales {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* CONTENEDOR DE ICONOS */
.redes-contenedor {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CADA RED SOCIAL */
.red-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 15px;
  width: 140px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* ICONOS */
.red-social img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

/* TEXTO */
.red-social span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* EFECTO HOVER */
@media (hover: hover) and (pointer: fine) {
  .red-social:hover {
    transform: translateY(-6px) scale(1.05);
  }
}

@media (max-width: 480px) {
  .red-social:hover {
    transform: none;
  }
}

/* COLORES POR RED */
.red-social.instagram:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.red-social.facebook:hover {
  background: #1877f2;
}

.red-social:hover span {
  color: #fff;
}

/* 📱 TABLET */
@media (max-width: 768px) {
  .red-social {
    width: 120px;
    padding: 15px;
  }

  .red-social img {
    width: 45px;
  }
}

/* 📱 MÓVIL */
@media (max-width: 480px) {
  .redes-contenedor {
    gap: 20px;
  }

  .red-social {
    width: 100%;
    max-width: 200px;
  }
}

.informacion-final,
.mision-vision,
.perfil-de-comunidad,
.oferta-educativa,
.programas,
.modelo-educativo2 {
  max-width: 100%;
  overflow-x: hidden;
}

