 body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      background-color: #fff;
    }

    /* ======== ENCABEZADO ======== */
    /* ==== ESTILOS GENERALES ==== */
header {
  background-color: #ffffff;
  color: rgb(12, 107, 61);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: rgb(0, 112, 30);
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

nav ul li a:hover {
  border-bottom: solid rgb(31, 78, 20);
}

/* ==== SUBMENÚ ==== */
/* ==== SUBMENÚ ==== */
.submenu-items {
  display: none;
  position: absolute;
  background-color: #ffffff;
  top: 100%;
  left: 0;
  min-width: 180px;
  flex-direction: column;
  z-index: 10;

  /* Animación */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease;
}

.submenu.open .submenu-items {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ==== MENÚ HAMBURGUESA (MÓVIL) ==== */
.menu-toggle {
  display:none;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10000;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: rgb(10, 82, 17);
  cursor: pointer;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  header{
    z-index: 9999;
  }
  nav.menu {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #c3c3c3;
    width: 100%;
    display: none;
    flex-direction: column;
    z-index: 9999;
  }

  nav.menu.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    width: 100%;
  }

  .submenu-items {
    max-height: 0;
    overflow: hidden;
    position: static;
    background-color: #a3a3a3;
    opacity: 0;
    transform: translateY(-5px);
    transition: max_height 0.3s ease-out;
  }

  .submenu.open .submenu-items {
    display: flex;
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}


    /* ======== CARRUSEL PRINCIPAL ======== */
  .carrusel {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

/* Slides */
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carrusel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

/* Texto */
.contenido {
  position: absolute;
  bottom: 60px;
  left: 40px;
  color: #fff;
  max-width: 520px;
  animation: fadeIn 1s ease;
}

.contenido h2 {
  font-size: 40px;
  margin: 0;
}

.contenido p {
  font-size: 18px;
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.flecha:hover {
  background: #fff;
  color: #000;
}

.izq { left: 15px; }
.der { right: 15px; }

/* Indicadores */
.indicadores {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.indicadores span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #ffffff60;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.indicadores span.seleccionado {
  background: #00ff62;
  transform: scale(1.2);
}

/* Animación texto */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ⭐ Tablets */
@media (max-width: 992px) {
  .carrusel {
    height: 380px;
  }

  .contenido h2 {
    font-size: 32px;
  }

  .contenido p {
    font-size: 16px;
  }

  .flecha {
    padding: 10px 14px;
    font-size: 26px;
  }
}


/* ⭐ Celulares grandes (480px - 768px) */
@media (max-width: 768px) {
  .carrusel {
    height: 320px;
  }

  .contenido {
    bottom: 40px;
    left: 20px;
    max-width: 90%;
  }

  .contenido h2 {
    font-size: 26px;
  }

  .contenido p {
    font-size: 15px;
  }

  .flecha {
    padding: 8px 12px;
    font-size: 22px;
  }

  .indicadores span {
    width: 10px;
    height: 10px;
  }
}


/* ⭐ Celulares pequeños (menos de 480px) */
@media (max-width: 480px) {
  .carrusel {
    height: 260px;
  }

  .contenido {
    bottom: 25px;
    left: 15px;
  }

  .contenido h2 {
    font-size: 20px;
  }

  .contenido p {
    font-size: 13px;
  }

  .flecha {
    padding: 6px 10px;
    font-size: 18px;
  }

  .indicadores span {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}
    /* ======== UNIDADES ACADÉMICAS ======== */
    .unidades {
        /* border: solid rgb(32, 91, 24); */
        background-color: #0c120e;
        margin: 50px auto;
        padding: 60px;
        color: rgb(255, 255, 255);
        position: relative;
        width: 99%;
    }

    .unidades h2 {
      width: 25ch;
        margin-top: 1px;
        font-size: 50px;
        font-weight: bold;
        font-family: 'Dubai Medium';
        background: linear-gradient(270deg,rgb(197, 240, 188),rgb(40, 131, 40));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        overflow: hidden;
        text-wrap: nowrap;
    }
  

    .unidades p {
      width: 60%;
      margin-bottom: 20px;
      font-family: 'Corbel Light';
      font-size: 20px;
    }

    .bloques-unidades {
      border: blue;
      display: flex;
      justify-content: center;
      gap: 40px;
      position: absolute;
      bottom: -120px;
      left: 60%;
      transform: translateX(-50%);
    }

    .bloque {
      /* border: solid rgb(24, 66, 24); */
      /* background-color: #c8c8c8; */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 350px;
    height: 200px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    }
    .bloque:hover {
    transform: scale(1.05);
}

.bloque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
    transition: filter 0.3s ease;
}

.bloque:hover img {
    filter: brightness(80%);
}
.bloque h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

    .bloque h1 a{
   text-decoration: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    }
    @media (max-width: 768px) {

      .unidades{
        
        width: 100%;
      }
  .unidades h2{
    /* border: solid; */
    font-size: 25px;
  }
  .bloques-unidades {
    /* border: solid rgb(245, 245, 245); Se apilan verticalmente */
    width: 300px;
    left: 200px;
    gap: 10px;
    bottom: unset;
  }
  .bloque{
    width: 50%;
    /* border: solid red; */
    height: 100px;
  }

  .bloque h1 a{
    font-size: 20px; /* Texto más pequeño en móviles */
  }

  .unidades p {
    font-size: 0.9rem;
    text-align: justify;
  }
}

    /* ======== FORTALEZAS ======== */
    .fortalezas {
      background-color: #ffffff;
      color: white;
      padding: 30px 40px 60px;
      text-align: center;
      margin-top: 150px;
    }

    .titulo-fortaleza {
      font-size: 50px;
      font-family: 'Dubai Medium';
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 30px;
      color: rgb(0, 129, 71);
      background: linear-gradient(270deg,rgb(113, 255, 81),rgb(52, 116, 52));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      transform: translateX(400%);
      transition: transform 1.3s ease;
    }
    .titulo-fortaleza:nth-of-type(even){
      transform: translateX(400%);
    }
    .titulo-fortaleza.show{
      transform: translateX(0);
    }

    .fortalezas-container {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 30px;
      flex-wrap: wrap;
    }

    .fort {
      background-color: rgb(208, 208, 208);
      color: rgb(43, 97, 56);
      width: 180px;
      height: 280px;
      padding: 20px;
      border-radius: 15px;
      font-size: 14px;
      box-shadow: 0 5px 10px rgba(0,0,0,0.2);
      transform: translateY(140px);
      transition: all 0.8s ease;
    }
    .fort.visible {
    opacity: 1;
    transform: translateY(0);
  }

    .fort h3 {
      font-size: 60px;
      font-family: 'forte';
      margin: 10px 0;
      font-weight: bold;
    }
    .fort p{
        font-family: 'Corbel Light';
        font-size:20px;
        padding: 15px;
    }

    @media (max-width: 768px) {

  .fortalezas {
    padding: 10px;
    margin-top: 80px;
  }

  .titulo-fortaleza {
    font-size: 28px;
    line-height: 1.2;
    padding: 0 10px;
  }

  .fortalezas-container {
    gap: 15px;
  }

  .fort {
    width: 100%;
    height: auto; 
    padding: 15px;
    transform: translateY(50px);
  }

  .fort.visible {
    transform: translateY(0);
  }

  .fort h3 {
    font-size: 40px;
  }

  .fort p {
    font-size: 16px;
    padding: 10px;
  }
}

/* --- MÓVIL PEQUEÑO --- */
@media (max-width: 380px) {
  .titulo-fortaleza {
    font-size: 22px;
  }

  .fort h3 {
    font-size: 32px;
  }

  .fort p {
    font-size: 14px;
  }
}

    /* ======== ESPECIALIDADES ======== */
    .especialidades {
      /* background-color: #3cc80a; */
      padding: 50px 80px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-top: 70px;
      /* border: solid red; */
    }

    .especialidades-texto {
      /* border: solid silver; */
      width: 45%;
      margin-top: 100px;
      opacity: 0;
      transform: translateX(-200px);
      transition: all 0.4s ease-out;
    }

    .especialidades-texto h2 {
      font-size: 40px;
      padding: 0;
      color: #4c5d45;
      font-weight: bolder;
      font-family: 'Dubai Medium';
      margin-bottom: 0;
      background: linear-gradient(270deg,rgb(113, 255, 81),rgb(52, 116, 52));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .especialidades-texto.visible {
    opacity: 1;
    transform: translateX(0);
  }
    .especialidades-texto p{
        font-size: 20px;
        font-family: 'Corbel Light';
        margin-top: 10px;
    }

    .bloques-especialidades {
      /* border: solid green; */
      position: relative;
      width: 50%;
      height: 400px;
    }

    .bloque-esp {
        /* border: solid rgb(40, 73, 13); */
      /* background-color: #226132; */
      padding: 25px;
      width: 200px;
       color: rgb(11, 112, 85);
      /*background: linear-gradient(50deg,rgb(0, 0, 0),rgb(61, 255, 61));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;*/
      border-radius: 10pX;
      text-align: center;
      transform: skew(-20deg);
      position: absolute;
      left: 150px;
      font-weight: bold;
      box-shadow: 0 5px 10px rgba(0,0,0,0.2);
      opacity: 0;
      transform: translateX(150px) skew(-20deg);
      transition: all 0.8s ease-out;
    }
    .bloque-esp a{
      text-decoration: none;
      color: #1f771e;
    }
      .bloque-esp.visible {
    opacity: 1;
    transform: translateX(0) skew(-20deg);
  }

    /* Escalonado hacia arriba y derecha */
    .bloque-esp:nth-child(1) { bottom: 0; left: 50px; }
    .bloque-esp:nth-child(2) { bottom: 80px; left: 130px; }
    .bloque-esp:nth-child(3) { bottom: 160px; left: 210px; }
    .bloque-esp:nth-child(4) { bottom: 240px; left: 290px; }

    @media (max-width: 768px) {
  .especialidades {
    border: #317fce;
    padding: 10px;
    flex-direction: column;
  }
  .especialidades-texto{
    /* border: solid greenyellow; */
    width: 100%;
  }
  .bloques-especialidades{
    /* border: solid greenyellow; */
  }

  .especialidades-texto h2 {
    font-size: 26px;
  }

  .especialidades-texto p {
    font-size: 16px;
  }

  .bloques-especialidades {
    /* border: solid; */
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    height: 360px;
  }

  .bloque-esp {
    width: 50%;
    transform: skew(0deg);
    padding: 20px;
    font-size: 16px;
  }

  .bloque-esp span {
    transform: skew(0deg);
  }
      .bloque-esp:nth-child(1) { bottom: -10px; left:50px; }
    .bloque-esp:nth-child(2) { bottom: 80px; left: 50px; }
    .bloque-esp:nth-child(3) { bottom: 160px; left: 50px; }
    .bloque-esp:nth-child(4) { bottom: 240px; left: 50px; }
}

/* --- SUPER MÓVIL CHICO (opcional) --- */
@media (max-width: 380px) {
  .especialidades-texto h2 {
    font-size: 22px;
  }

  .bloque-esp {
    padding: 15px;
    font-size: 14px;
  }
}

  footer {
    background-color: #1c1c1c;
    color: #ccc;
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-logo {
    flex: 1 1 200px;
    margin-bottom: 20px;
  }

  .footer-logo img {
    width: 160px;
  }

  .footer-column {
    flex: 1 1 150px;
    margin: 10px 20px;
  }

  .footer-column h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #60cf92;
    padding-bottom: 5px;
    display: inline-block;
  }

  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-column ul li {
    margin: 8px 0;
  }

  .footer-column ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
  }

  .footer-column ul li a:hover {
    color: #009905;
  }

  .contact-info {
    flex: 1 1 200px;
    margin-top: 10px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .contact-item i {
    color: #1f771e;
    margin-right: 10px;
    font-size: 1.2em;
  }

  .footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 0.9em;
    color: #888;
  }

  /* ===== Responsivo ===== */
  @media (max-width: 768px) {
    footer {
      margin-top: 50px;
      flex-direction: column;
      text-align: center;
    }

    .footer-column, .contact-info {
      margin: 20px 0;
    }

    .contact-item {
      justify-content: center;
    }
  }
  
  html, body {
  width: 100%;
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}