/* Sección Carta de Experiencias Formativas */
.carta-experiencias-section {
  padding: 3rem 0;
}
.carta-experiencias-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.carta-experiencias-content {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.carta-card {
  display: flex;
  background:#f8fafc;
  border-radius: 18px;
  box-shadow: 0 4px 24px #2563eb22;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  flex-direction: row;
}
.carta-img {
  width: 320px;
  height: 100%;
  object-fit: cover;
  background: #e0e7ff;
  border-right: 1px solid #e5e7eb;
}
.carta-info {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carta-info h3 {
  color: #2563eb;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.carta-info p {
  color: #334155;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.carta-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #2563eb22;
}
.carta-btn:hover {
  background: #1d4ed8;
}

/* Responsivo */
@media (max-width: 900px) {
  .carta-card {
    flex-direction: column;
    max-width: 98vw;
  }
  .carta-img {
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .carta-info {
    padding: 1.2rem 1rem;
  }
}
@media (max-width: 600px) {
  .carta-experiencias-section {
    padding: 2rem 0;
  }
  .carta-img {
    height: 220px;
  }
  .carta-info h3 {
    font-size: 1.1rem;
  }
  .carta-info p {
    font-size: 0.97rem;
  }
  .carta-btn {
    font-size: 0.98rem;
    padding: 0.6em 1.1em;
  }
}

/*formulario*/
@media (max-width: 600px) {
  .contact-form-container {
    padding: 0.5rem !important;
  }
  .contact-form {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .contact-form .g-recaptcha {
    transform: scale(0.92);
    transform-origin: 0 0;
    width: 100% !important;
    margin-bottom: 1rem;
    overflow-x: auto;
  }
  .form-group,
  .form-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .submit-btn {
    width: 100% !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
  }
}
/* --- Grid para Glass Cards --- */
.glass-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: stretch;
  margin: 0 auto 2.5rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}
@media (max-width: 1000px) {
  .glass-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .glass-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }
}
/* --- Glassmorphism Card Ultra Modern 2025 --- */
.glass-card {
  background: rgba(34, 40, 49, 0.55);
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
  border: 2px solid rgba(58, 139, 253, 0.25);
  outline: 2px solid #3a8bfd;
  outline-offset: -8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  margin: 0 1.2rem;
  min-width: 320px;
  max-width: 340px;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  position: relative;
}
.glass-card:hover {
  transform: translateY(-12px) scale(1.04) rotateZ(-1deg);
  box-shadow: 0 16px 48px 0 #3a8bfd55, 0 0 0 4px #3a8bfd44;
  border-color: #3a8bfd;
}
/* Avatar cuadrado grande y visible */
/* Avatar cuadrado extra grande y visible */
/* Avatar cuadrado tamaño óptimo y responsivo */
.glass-card-avatar {
  width: 100%;
  max-width: 260px;
  height: 160px;
  border-radius: 1.2rem;
  background-size: cover;
  background-position: center;
  border: 4px solid #3a8bfd;
  box-shadow: 0 0 0 6px #fff2, 0 4px 24px #3a8bfd33;
  margin-top: -20px;
  margin-bottom: 1.2rem;
  z-index: 2;
  transition: box-shadow 0.2s;
}
.glass-card:hover .glass-card-avatar {
  box-shadow: 0 0 0 6px #fff2, 0 4px 24px #3a8bfd33;
}
@media (max-width: 1000px) {
  .glass-card-avatar {
    max-width: 99vw;
    height: 260px;
  }
}
@media (max-width: 700px) {
  .glass-card-avatar {
    max-width: 100vw;
    height: 320px;
    margin-top: 0;
  }
}
.glass-card-content {
  text-align: center;
  color: #fff;
  z-index: 1;
}
.glass-card-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.glass-card-content p {
  font-size: 1.05rem;
  color: #b0b8c9;
  margin-bottom: 1.2rem;
  min-height: 48px;
}
.glass-btn {
  display: inline-block;
  padding: 0.7rem 1.7rem;
  background: linear-gradient(90deg, #3a8bfd 0%, #005bea 100%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px #3a8bfd55;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}
.glass-btn:hover {
  background: linear-gradient(90deg, #005bea 0%, #3a8bfd 100%);
  box-shadow: 0 4px 24px #3a8bfd99;
  transform: scale(1.07);
}
/* Responsive for glass cards */
@media (max-width: 600px) {
  .glass-card {
    margin: 0 auto !important;
    width: 90vw;
    min-width: 0;
    max-width: 95vw;
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    box-sizing: border-box;
  }
  .glass-card-avatar {
    width: 75vw;
    max-width: 260px;
    min-width: 0;
    height: 170px;
    margin: 0 auto 1.2rem auto;
    border-radius: 1.2rem;
    box-sizing: border-box;
    display: block;
    background-clip: padding-box;
  }
}
/* --- Fondo dinámico de cartas --- */
.cards3d {
  position: relative;
  overflow: hidden;
}
.carousel-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55) saturate(1.2);
  opacity: 1;
  transition: background-image 0.7s cubic-bezier(.4,0,.2,1), opacity 0.5s;
  pointer-events: none;
}
.carousel-bg-fade {
  opacity: 0;
}
.cards3d > *:not(.carousel-bg) {
  position: relative;
  z-index: 1;
}
/* --- Carrusel de Cartas Modernas --- */
.cards-carousel {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 60px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.carousel-track {
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.cards-carousel .card-modern {
  min-width: 340px;
  max-width: 350px;
  flex: 0 0 auto;
  margin: 0;
}
.carousel-btn {
  background: #232a3a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  position: relative;
  z-index: 2;
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.carousel-btn:hover {
  background: #3a8bfd;
  color: #fff200;
  transform: scale(1.08);
}
.carousel-btn.prev {
  margin-right: 18px;
}
.carousel-btn.next {
  margin-left: 18px;
}
@media (max-width: 1200px) {
  .cards-carousel .card-modern {
    min-width: 300px;
    max-width: 310px;
  }
  .carousel-track {
    gap: 1.5rem;
  }
}
@media (max-width: 900px) {
  .cards-carousel .card-modern {
    min-width: 260px;
    max-width: 270px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .cards-carousel {
    max-width: 100vw;
    margin-bottom: 30px;
  }
  .cards-carousel .card-modern {
    min-width: 90vw;
    max-width: 92vw;
  }
  .carousel-track {
    gap: 0.7rem;
  }
}
/* --- CARTAS MODERNAS PARA PROGRAMAS DE ACTUALIZACIÓN --- */
.cards3d {
  width: 100%;
  padding: 60px 0 80px 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cards3d-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.card-modern {
  background: rgba(20, 24, 34, 0.97);
  border-radius: 1.3rem;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  min-width: 0;
  border: 1.5px solid #232a3a;
  position: relative;
}
.card-modern:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 32px 0 rgba(58,139,253,0.18);
  border-color: #3a8bfd;
}
.card-modern-image {
  width: 100%;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.93) saturate(1.08);
  transition: filter 0.28s;
}
.card-modern:hover .card-modern-image {
  filter: brightness(1.03) saturate(1.18);
}
.card-modern-info {
  padding: 1.3rem 1.1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-modern-info h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #000a;
}
.card-modern-info p {
  color: #e0e6f0;
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
  flex: 1;
  text-shadow: 0 1px 6px #0007;
}
.btn-card-modern {
  display: inline-block;
  background: linear-gradient(90deg, #3a8bfd 0%, #6f6ee8 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(58,139,253,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-card-modern:hover {
  background: linear-gradient(90deg, #6f6ee8 0%, #3a8bfd 100%);
  box-shadow: 0 4px 16px 0 rgba(58,139,253,0.18);
}

@media (max-width: 1200px) {
  .cards3d-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .cards3d-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards3d-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .card-modern-image {
    height: 140px;
  }
  .card-modern-info {
    padding: 1.1rem 0.8rem 0.9rem 0.8rem;
  }
}
/* --- DOCENTES --- */
.docentes-title {
    text-align: center;
    margin-bottom: 18px;
}
.docentes-title h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto;
    letter-spacing: 1px;
}

.docentes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.docentes-cards, .admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.docentes-cards > .admin-card, .admin-cards > .admin-card {
    max-width: 340px;
    width: 100%;
}

.docente-card {
    background: #f7faff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 60, 120, 0.10);
    padding: 28px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 240px;
@media (max-width: 900px) {
  .docentes-cards,
  .admin-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .docentes-cards,
  .admin-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
    color: #333;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .docentes-cards {
        gap: 18px;
    }
    .docente-card {
        min-width: 180px;
        max-width: 220px;
        padding: 18px 10px 12px 10px;
    }
    .docente-img {
        width: 110px;
        height: 110px;
    }
    .docente-nombre {
        font-size: 1rem;
    }
    .docente-cargo {
        font-size: 0.95rem;
    }
}
/* --- ADMINISTRATIVOS --- */
.admin-title {
    text-align: center;
    margin-bottom: 18px;
}
.admin-title h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto;
    letter-spacing: 1px;
}

.admin-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-card {
    background: #f7faff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 60, 120, 0.10);
    padding: 28px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 240px;
    max-width: 270px;
    transition: box-shadow 0.2s;
    border: 2px solid #1976d2;
}
.admin-card:hover {
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.18);
    border-color: #1565c0;
}

.admin-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #e3eafc;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
    border: 3px solid #1976d2;
    background-size: cover;
    background-position: center;
}
.admin-img-0 { background-image: url('/images/rosario.png'); }
.admin-img-1 { background-image: url('/images/solenka.png'); }
.admin-img-2 { background-image: url('/images/gisella.png'); }
.admin-img-3 { background-image: url('/images/melgar.png'); }
.admin-img-4 { background-image: url('/images/danny.png'); }
.admin-img-5 { background-image: url('/images/william.png'); }

/* Imagenes de los Docentes */
.docente-img-0 { background-image: url('/images/robert.png'); }
.docente-img-1 { background-image: url('/images/ramiro.png'); }
.docente-img-2 { background-image: url('/images/junot.png'); }
.docente-img-3 { background-image: url('/images/marcial.png'); }
.docente-img-4 { background-image: url('/images/benjamin.png'); }
.docente-img-5 { background-image: url('/images/eduar.png'); }
.docente-img-6 { background-image: url('/images/rodolfo.png'); }
.docente-img-7 { background-image: url('/images/marissa.png'); }

.admin-info {
    text-align: center;
}
.admin-nombre {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1c1c1d;
    margin-bottom: 6px;
}
.admin-cargo {
    font-size: 1rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .admin-cards {
        gap: 18px;
    }
    .admin-card {
        min-width: 180px;
        max-width: 220px;
        padding: 18px 10px 12px 10px;
    }
    .admin-img {
        width: 110px;
        height: 110px;
    }
    .admin-nombre {
        font-size: 1rem;
    }
    .admin-cargo {
        font-size: 0.95rem;
    }
}
/* Directiva Section Styles */
.directiva-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.directiva-title {
  text-align: center;
  margin-bottom: 24px;
}

.directiva-title h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0;
}

.directiva-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(25,118,210,0.10);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  width: 100%;
  border: 1.5px solid #1976d2;
}
.blue-theme {
  border: 2.5px solid #1976d2;
  background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
}

.directiva-img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(25,118,210,0.13);
  margin-bottom: 24px;
  border: 4px solid #1976d2;
  background: #e3f2fd;
}

.directiva-nombre {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1c1c1d;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Unificación de grid para docentes y administrativos */
.docentes-cards, .admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.docentes-cards > .admin-card, .admin-cards > .admin-card {
    max-width: 340px;
    width: 100%;
}

@media (max-width: 900px) {
  .docentes-cards,
  .admin-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .docentes-cards,
  .admin-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.estructura img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(14,165,233,0.18);
}
@media (max-width: 700px) {
    .organigrama {
        padding: 1.2rem 0.5rem;
    }
    .estructura img {
        width: 98vw;
        max-width: 98vw;
        border-radius: 0.7rem;
    }
    .title-cards1 h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
}

/* Newspaper Layout Historia Optimizado */
.historia-layout {
    display: block;
    max-width: 1100px;
    margin: 0 auto 2.5rem auto;
    width: 100%;
    padding: 0 1rem 2.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    margin-top: 5rem;
}
.historia-img-wrap {
    float: right;
    width: 460px;
    max-width: 48vw;
    margin-left: 2.8rem;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 2;
}
.historia-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(14,165,233,0.12);
    border: 3px solid #0ea5e9;
    background: #fff;
    object-fit: cover;
    display: block;
    margin: 0;
}
.historia-text {
    text-align: justify;
    background: transparent;
    border-radius: 0;
    padding: 0 0 0 0.5rem;
    box-shadow: none;
    overflow: visible;
    min-width: 0;
    z-index: 1;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.85;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.historia-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #0ea5e933;
    column-span: all;
    display: inline-block;
    border-bottom: 4px solid #0287c5;
    padding-bottom: 0.3rem;
}
@media (max-width: 900px) {
    .historia-layout {
        display: block;
        padding: 0 0.5rem 2.5rem 0.5rem;
    }
    .historia-img-wrap {
        float: none;
        width: 100%;
        max-width: 98vw;
        margin: 0 auto 1rem auto;
        justify-content: center;
    }
    .historia-img {
        max-width: 98vw;
        width: 100%;
        border-radius: 1rem;
        border-width: 2px;
        margin: 0 auto 1rem auto;
        display: block;
    }
    .historia-text {
        max-width: 98vw;
        margin: 0 auto;
        text-align: center;
        padding: 1.2rem 0.5rem;
    }
}
/*--- Hero Image Styles ---*/
.hero-img-elegante {
    display: block;
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(14,165,233,0.12);
    border: 4px solid #0ea5e9;
    background: #fff;
    object-fit: cover;
    transition: box-shadow 0.3s;
}
.hero-img-elegante:hover {
    box-shadow: 0 12px 48px rgba(14,165,233,0.18);
}
@media (max-width: 700px) {
    .hero-img-elegante {
        max-width: 98vw;
        border-radius: 1rem;
        border-width: 2px;
    }
}

/* --- Matricúlate Ya --- */
.matriculate-animado {
    font-size: 1.7rem;
    font-weight: 700;
    color: #14b8a6;
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);

    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(59,130,246,0.13);
    padding: 2.8rem 2.2rem;
    margin: 2.5rem auto;
    max-width: 480px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeInUp 1.1s cubic-bezier(.6,-0.28,.74,.05) forwards;
}
.matriculate-animado h1 {
    font-size: 2.4rem;
    color: #006fca;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #3b82f633;
}
.matriculate-animado p {
    font-size: 1.35rem;
    color: #222;
    margin: 0;
    font-weight: 500;
    line-height: 1.7;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 900px) {
    .matriculate-animado {
        font-size: 1.2rem;
        padding: 2rem 1rem;
        max-width: 98vw;
    }
    .matriculate-animado h1 {
        font-size: 1.6rem;
    }
    .matriculate-animado p {
    font-size: 1.22rem;
    color: #1a2936;
    margin-bottom: 0.5rem;
    line-height: 2.05;
    text-align: justify;
    font-weight: 500;
    background: rgba(240,248,255,0.7);
    border-radius: 0.7rem;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
        font-size: 1rem;
        padding: 1.2rem 0.5rem;
        max-width: 99vw;
    }
    .matriculate-animado h1 {
        font-size: 1.2rem;
    }
    .matriculate-animado p {
        font-size: 0.95rem;
    }
}
/* Estilos para páginas legales y de reclamaciones */
.main-header {
    background: linear-gradient(135deg, #3b82f6 60%, #06b6d4 100%);
    color: #fff;
    padding: 2rem 0 1rem 0;
    text-align: center;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.08);
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.main-content {
    max-width: 700px;
    margin: 2rem auto 2rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(59,130,246,0.07);
    padding: 2rem 2rem 1.5rem 2rem;
}
.main-content h2 {
    font-size: 1.3rem;
    color: #3b82f6;
    margin-top: 1.5rem;
}

.main-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #374151;
}

.main-content p {
    color: #374151;
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-form label {
    font-weight: 500;
    color: #3b82f6;
}
.contact-form input,
.contact-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem;
    font-size: 1rem;
    background: #f9fafb;
    color: #374151;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid #3b82f6;
    outline: none;
}
.contact-form button {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    transition: background 0.2s;
}
.contact-form button:hover {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}
.footer-bottom {
    background: none;
    border-top: 1px solid #e5e7eb;
    padding: 1.2rem 0 0.5rem 0;
    margin-bottom: 0;
    box-shadow: 0 -2px 8px rgba(59,130,246,0.04);
}
.footer-legal a {
    color: #3b82f6;
    text-decoration: underline;
    margin: 0 0.7rem;
    font-weight: 500;
    font-size: 0.98rem;
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: #06b6d4;
}
@media (max-width: 600px) {
  .carousel-btn.prev,
  .carousel-btn.next {
    display: none !important;
  }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #7c3aed 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Particle Background */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.99rem 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    max-width: calc(100vw - 3rem);
}

.floating-nav.scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 2.75rem;
}

.brand-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    margin-left: 20px;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: #ffffff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 1rem;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link svg {
    transition: transform 0.2s ease;
}

.nav-link:hover svg {
    transform: scale(1.1);
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 16rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s ease;
    z-index: 50;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.action-buttons {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.action-btn span {
    display: none;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(1.05);
}

.virtual-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.virtual-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.05);
}

.biblioteca-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.biblioteca-btn:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: scale(1.05);
}

.intranet-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.intranet-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: scale(1.05);
}

.mobile-menu-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.mobile-menu-content {
    position: absolute;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.mobile-menu-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-action-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.mobile-action-link.whatsapp {
    background: linear-gradient(135deg, #10b981, #059669);
}

.mobile-action-link.virtual {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.mobile-action-link.biblioteca {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.mobile-action-link.intranet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.mobile-action-link:hover {
    transform: scale(1.02);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.whatsapp-btn-float {
    position: relative;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
    opacity: 0.2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

/* WhatsApp Chat */
.whatsapp-chat {
    position: fixed;
    bottom: 7rem;
    right: 1.5rem;
    width: 24rem;
    max-width: calc(100vw - 3rem);
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 50;
    display: none;
    max-height: 70vh;
    flex-direction: column;
}

.whatsapp-chat.active {
    display: flex;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.online-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #fff;
    border: 2px solid #222;
    box-shadow: 0 0 8px 2px rgba(0,0,0,0.25);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-chat-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-content {
    padding: 1rem;
    background: #f9fafb;
    flex: 1;
    overflow-y: auto;
}

.welcome-message {
    margin-bottom: 1rem;
}

.message-bubble {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.message-bubble p {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.quick-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-msg-btn {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-msg-btn:hover {
    background: #bfdbfe;
    border-color: #93c5fd;
}

.contact-info {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #bfdbfe;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
}

.info-content {
    font-size: 0.75rem;
    color: #1e3a8a;
    line-height: 1.4;
}

.info-content p {
    margin-bottom: 0.25rem;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.input-container {
    display: flex;
    gap: 0.5rem;
}

.input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-container input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-container button {
    padding: 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-container button:hover {
    transform: scale(1.05);
}

.input-help {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}


.title-main {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: text;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-sub {
    color: white;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #d1d5db;
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Enlaces Institucionales (Optimizado) */
.enlaces-institucionales-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: stretch;
}
.enlace-institucional-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  max-width: 270px;
  padding: 2.7rem 1.5rem 1.5rem 1.5rem;
  color: #fff;
  border-radius: 2.5rem;
  font-weight: 700;
  font-size: 1.22rem;
  text-decoration: none;
  background: linear-gradient(135deg,#3b82f6,#8b5cf6);
  box-shadow: 0 8px 40px 0 rgba(59,130,246,0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}
.enlace-institucional-card.difoid {
  background: linear-gradient(135deg,#10b981,#06b6d4);
  box-shadow: 0 8px 40px 0 rgba(16,185,129,0.22);
}
.enlace-institucional-card:hover,
.enlace-institucional-card:focus {
  transform: translateY(-10px) scale(1.07);
  box-shadow: 0 16px 60px 0 rgba(59,130,246,0.28), 0 2px 12px 0 rgba(0,0,0,0.13);
}
.enlace-institucional-card.difoid:hover,
.enlace-institucional-card.difoid:focus {
  box-shadow: 0 16px 60px 0 rgba(16,185,129,0.28), 0 2px 12px 0 rgba(0,0,0,0.13);
}
.enlace-institucional-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 8px 40px 0 rgba(59,130,246,0.28);
  border: 4px solid #fff;
  margin-bottom: 1.2rem;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
  z-index: 2;
}
.enlace-institucional-card.difoid .enlace-institucional-img {
  box-shadow: 0 8px 40px 0 rgba(16,185,129,0.28);
}
.enlace-institucional-card:hover .enlace-institucional-img,
.enlace-institucional-card:focus .enlace-institucional-img {
  box-shadow: 0 16px 60px 0 rgba(59,130,246,0.38), 0 2px 12px 0 rgba(0,0,0,0.13);
  transform: scale(1.13) rotate(-4deg);
}
.enlace-institucional-card.difoid:hover .enlace-institucional-img,
.enlace-institucional-card.difoid:focus .enlace-institucional-img {
  box-shadow: 0 16px 60px 0 rgba(16,185,129,0.38), 0 2px 12px 0 rgba(0,0,0,0.13);
}
.enlace-institucional-label {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
  position: relative;
  z-index: 2;
}
.enlace-institucional-glow {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(59,130,246,0.13) 0%, rgba(59,130,246,0.03) 80%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.18s;
}
.enlace-institucional-card.difoid .enlace-institucional-glow {
  background: radial-gradient(circle, rgba(16,185,129,0.13) 0%, rgba(16,185,129,0.03) 80%, transparent 100%);
}
.enlace-institucional-card:hover .enlace-institucional-glow,
.enlace-institucional-card:focus .enlace-institucional-glow {
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, rgba(59,130,246,0.08) 80%, transparent 100%);
}
.enlace-institucional-card.difoid:hover .enlace-institucional-glow,
.enlace-institucional-card.difoid:focus .enlace-institucional-glow {
  background: radial-gradient(circle, rgba(16,185,129,0.22) 0%, rgba(16,185,129,0.08) 80%, transparent 100%);
}
@media (max-width: 600px) {
  .enlaces-institucionales-flex { gap:1.2rem !important; }
  .enlace-institucional-card { min-width:140px !important; max-width:100% !important; padding:1.2rem 0.5rem 0.7rem 0.5rem !important; }
  .enlace-institucional-img { width:70px !important; height:70px !important; padding:7px !important; }
}
/* Enlaces Institucionales - Ajuste de tamaño de texto e iconos */
.institutional-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.institutional-link-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    padding: 1.25rem 2.5rem;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(59,130,246,0.15);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 220px;
    max-width: 100%;
}
.institutional-link-btn img {
    width: clamp(2rem, 5vw, 3rem);
    height: auto;
    max-height: 3rem;
    display: block;
}
.institutional-link-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 36px rgba(59,130,246,0.25);
}

@media (max-width: 600px) {
    .institutional-links {
        flex-direction: column;
        gap: 1.25rem;
    }
    .institutional-link-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    .institutional-link-btn img {
        width: 2rem;
        max-height: 2rem;
    }
}

.hero-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}
@media (max-width: 700px) {
    .hero-cta {
        margin-bottom: 2rem;
    }
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.25);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Section Styles */
section {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: rgba(15, 23, 42, 0.3);
}

.features-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    position: relative;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon.mission {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.feature-icon.vision {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.feature-icon.excellence {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #d1d5db;
    line-height: 1.6;
}

.stats-container {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(124, 58, 237, 0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card .stat-icon svg {
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Programs Section */
.program-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:first-child {
    border-radius: 2rem 0 0 2rem;
}

.tab-btn:last-child {
    border-radius: 0 2rem 2rem 0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.tab-btn:hover:not(.active) {
    color: white;
}

.programs-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}



.program-card {
    position: relative;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    min-height: 500px;
}

.program-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 25px 50px rgba(59, 130,246, 0.3);
}

.program-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.program-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.program-card:hover .program-content {
    transform: translateY(-0.5rem);
}

.program-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.program-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.program-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.program-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.program-description {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-description {
    opacity: 1;
}

.program-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-footer {
    opacity: 1;
}

.program-level {
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.program-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.program-link:hover {
    color: #60a5fa;
}

.program-link svg {
    transition: transform 0.2s ease;
}

.program-link:hover svg {
    transform: translateX(0.25rem);
}

.programs-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(124, 58, 237, 0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem 2rem;
}

.programs-cta h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.programs-cta p {
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* News Section */
.news-carousel {
    margin-bottom: 3rem;
}

.news-main {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.news-slides {
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-slide {
    display: none;
    transition: opacity 0.7s ease-in-out;
}

.news-slide.active {
    display: flex;
    flex-direction: column;
}

.news-slide-image {
    position: relative;
    overflow: hidden;
}

.news-slide-image img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.news-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.news-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-category.featured {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.news-category:not(.featured) {
    background: #3b82f6;
    color: white;
}

.news-slide-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-slide h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-slide p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #93c5fd;
}

.news-link svg {
    transition: transform 0.2s ease;
}

.news-link:hover svg {
    transform: translateX(0.25rem);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.news-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.news-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-indicator.active {
    background: #3b82f6;
    transform: scale(1.25);
}

.news-indicator:hover:not(.active) {
    background: #9ca3af;
}

.news-grid {
    display: grid;
    gap: 2rem;
}

.news-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.news-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.news-card-category {
    padding: 0.25rem 0.75rem;
    background: #3b82f6;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
}

.news-card-date {
    color: #9ca3af;
    font-size: 0.75rem;
}

.news-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.news-card-link:hover {
    color: #93c5fd;
}


/* Contact Section */
.contact-content {
    display: grid;
    gap: 3rem;
    align-items: start;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .contactanos-content {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .contacto-title {
    font-size: 2rem;
  }
  .contacto-info {
    font-size: 1rem;
  }
  .contacto-social-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .contact-info {
    gap: 1rem;
  }
  .contact-buttons {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .contacto-item {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .contacto-social {
    margin-top: 1rem;
  }
}

@media (max-width: 500px) {
  .contactanos-content {
    padding: 0.7rem 0.2rem;
  }
  .contacto-title {
    font-size: 1.2rem;
  }
  .contacto-info {
    font-size: 0.95rem;
  }
  .contacto-social-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
  .contact-content {
    gap: 0.7rem;
  }
}

.info-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon.location {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.info-icon.schedule {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.info-icon svg {
    color: white;
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #073985;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-content2 p {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}

.info-btn:hover {
    color: #93c5fd;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn.whatsapp {
    background: linear-gradient(135deg, #10b981, #059669);
}

.contact-btn.whatsapp:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(1.05);
}

.contact-btn.phone {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.contact-btn.phone:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.05);
}

.map-container {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid #4b5563;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.submit-btn svg {
    transition: transform 0.2s ease;
}

.submit-btn:hover svg {
    transform: translateX(0.25rem);
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    color: white;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.form-success p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e293b, #1e40af);
    color: white;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.footer-particles {
    position: absolute;
    inset: 0;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 6rem;
    opacity: 0.2;
}

.footer-content {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-brand {
    grid-column: span 2;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.brand-header .brand-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.contact-item svg {
    color: #60a5fa;
    flex-shrink: 0;
}

.footer-links h4,
.footer-programs h4,
.footer-social h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-programs ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-programs a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover,
.footer-programs a:hover {
    color: white;
    transform: translateX(0.25rem);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(51, 65, 85, 0.8);
    transform: scale(1.1);
}

.social-link.facebook:hover {
    color: #3b82f6;
}

.social-link.instagram:hover {
    color: #ec4899;
}

.social-link.youtube:hover {
    color: #ef4444;
}

.social-link.twitter:hover {
    color: #06b6d4;
}

.footer-social h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.relevant-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.relevant-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: underline;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: color 0.2s;
}

.relevant-links a:hover {
    color: #06b6d4;
}

.relevant-links svg {
    transition: transform 0.2s ease;
}

.relevant-links a:hover svg {
    transform: translateX(0.25rem);
}

.footer-bottom {
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (min-width: 475px) {
    .brand-text {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .floating-nav {
        top: 1.5rem;
        padding: 1rem 1.5rem;
        border-radius: 1.5rem;
    }
    
    .brand-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-slide {
        flex-direction: row;
    }
    
    .news-slide-image {
        flex: 3;
    }
    
    .news-slide-image img {
        height: 24rem;
    }
    
    .news-slide-content {
        flex: 2;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .section-header h2 {
        font-size: 4rem !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
    }
    
    .action-buttons {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 4.5rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .action-btn span {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from{
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajuste responsivo para la secciones secundarias */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.hero-content2 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1100px;
    width: 100%;
}
.hero-content2 .hero-text {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.hero-content2 .hero-img-elegante {
    flex: 0 0 420px;
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0;
    align-self: center;
}
@media (max-width: 900px) {
    .hero-content2 {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        max-width: 98vw;
    }
    .hero-content2 .hero-img-elegante {
        margin: 0 auto;
        max-width: 98vw;
    }
    .hero-content2 .hero-text {
        max-width: 98vw;
        margin: 0 auto;
        text-align: center;
    }
}

.requisitos-animados {
    font-size: 1.7rem;
    font-weight: 700;
    color: #14b8a6;
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(59,130,246,0.13);
    padding: 2.8rem 2.2rem;
    margin: 2.5rem auto;
    max-width: 480px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeInUp 1.1s cubic-bezier(.6,-0.28,.74,.05) forwards;
}
.requisitos-animados h2 {
    font-size: 2.4rem;
    color: #006fca;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #3b82f633;
}
.requisitos-animados p {
    font-size: 1.35rem;
    color: #222;
    margin: 0;
    font-weight: 500;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .requisitos-animados {
        padding: 2rem 1rem;
        max-width: 98vw;
    }
    .requisitos-animados h2 {
        font-size: 2rem;
    }
    .requisitos-animados p {
        font-size: 1.1rem;
    }
}
@media (max-width: 600px) {
    .requisitos-animados {
        padding: 1.2rem 0.5rem;
        max-width: 99vw;
    }
    .requisitos-animados h2 {
        font-size: 1.5rem;
    }
    .requisitos-animados p {
        font-size: 1rem;
    }
}
/* --- Malla Curricular --- */
.timeline-curricular {
    margin: 0 auto;
    max-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.malla .title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0ea5e9;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #0ea5e933;
}
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    width: 100%;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(14,165,233,0.08);
    padding: 2rem 1.5rem;
    width: 100%;
    transition: box-shadow 0.2s;
}
.timeline-item:hover {
    box-shadow: 0 8px 32px rgba(14,165,233,0.16);
}
.timeline-dot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #e0f2fe;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(14,165,233,0.10);
}
.timeline-content {
    flex: 1;
    color: #222;
    font-size: 1.15rem;
}
.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.timeline-content h4 .date {
    margin-left: 2.5rem;
    color: #fff;
    background: linear-gradient(90deg, #0ea5e9 60%, #6366f1 100%);
    border: 2px solid #0ea5e9;
    border-radius: 1.2rem;
    padding: 0.15em 0.9em;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(14,165,233,0.10);
    min-width: 90px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.timeline-content h4 .date:hover {
    box-shadow: 0 4px 16px rgba(99,102,241,0.18);
}
.timeline-content ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc inside;
}
.timeline-content li {
    margin-bottom: 0.4rem;
    color: #222;
    font-size: 1.05rem;
}
@media (max-width: 900px) {
    .timeline-curricular {
        max-width: 98vw;
        padding: 1rem 0.2rem;
    }
    .timeline-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem 0.7rem;
    }
    .timeline-dot {
        width: 44px;
        height: 44px;
    }
    .timeline-content h4 {
        font-size: 1.1rem;
    }
}
@media (max-width: 600px) {
    .timeline-curricular {
        padding: 0.5rem 0.1rem;
    }
    .timeline-item {
        padding: 0.7rem 0.2rem;
    }
    .timeline-dot {
        width: 36px;
        height: 36px;
    }
    .timeline-content h4 {
        font-size: 1rem;
    }
}

.contactanos-content {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(14,165,233,0.08);
    padding: 2.5rem 2rem;
    margin: 2rem auto 3rem auto;
    max-width: 700px;
    text-align: center;
    animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
.contacto-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    color: #0ea5e9;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #0ea5e933;
}
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 2rem;
}
.contacto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: #222;
}
.contacto-social {
    margin-top: 1.5rem;
}
.contacto-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    border-radius: 2rem;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,211,102,0.12);
    transition: background 0.2s;
}
.contacto-social-link:hover {
    background: #128c7e;
}
@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .contactanos-content {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .contacto-title {
    font-size: 2.5rem !important;
  }
  .contacto-info {
    font-size: 1rem;
  }
  .contacto-social-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .contact_info {
    gap: 1rem;
  }
  .contact-buttons {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .contacto-item {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .contacto-social {
    margin-top: 1rem;
  }
}

@media (max-width: 500px) {
  .contactanos-content {
    padding: 0.7rem 0.2rem;
  }
  .contacto-title {
    font-size: 2rem !important;
  }
  .contacto-info {
    font-size: 0.95rem;
  }
  .contacto-social-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
  .contact-content {
    gap: 0.7rem;
  }
}

.feature-card2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.1rem;
    box-shadow: 0 4px 24px rgba(59,130,246,0.10);
    margin: 1.2rem auto;
    max-width: 420px;
    width:90%;
    display: flex;
    height: 100%;

    position: relative;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.feature-card2 .feature-icon {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-card2 .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem 1.2rem 0 0;
    box-shadow: 0 4px 24px rgba(59,130,246,0.13);
    display: block;
}
.feature-card2 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.2rem 0 0.5rem 0;
    text-align: center;
    letter-spacing: 0.5px;
}
.feature-card2 p {
    width: 100%;
    margin: 0 0 1rem 0;
    text-align: center;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .feature-card2 {
        max-width: 78vw;
        width: 78vw;
        padding: 1.2rem 0.5rem 2rem 0.5rem;
        margin: 1rem auto;
    }
    .feature-card2 .feature-icon img {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: 100%;
    }
}


.loader-logo {
  width: 120px;
  height:120px;
  object-fit: contain;
  animation: loader-beat 1.1s infinite alternate;
  box-shadow: 0 2px 12px #3a8bfd22;
  border-radius: 16px;
  background: #fff;
  padding: 4px;
  display: block;
  margin: 0 auto;
}
@keyframes loader-beat {
  0% { transform: scale(1);}
  50% { transform: scale(1.13);}
  100% { transform: scale(1);}
}
@media (max-width: 600px) {
  .loader-logo {
    width: 108px;
    height: 108px;
    padding: 2px;
  }
}

.loader-text {
  margin-top: 14px;
  font-size: 2.1rem;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Consolas', 'Fira Mono', 'Menlo', 'Monaco', monospace;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 2px;
  text-shadow: 0 2px 8px #3a8bfd33;
  flex-wrap: wrap;
  justify-content: center;
}

.loader-char {
  opacity: 0;
  animation: loader-typewriter 1.1s steps(1) forwards;
  font-size: 1.45em;
  filter: brightness(1.2);
  text-shadow: 0 2px 8px #3a8bfd33;
}
.loader-char:nth-child(1) { animation-delay: 0.00s; }
.loader-char:nth-child(2) { animation-delay: 0.09s; }
.loader-char:nth-child(3) { animation-delay: 0.18s; }
.loader-char:nth-child(4) { animation-delay: 0.27s; }
.loader-char:nth-child(5) { animation-delay: 0.36s; }
.loader-char:nth-child(6) { animation-delay: 0.45s; }
.loader-char:nth-child(7) { animation-delay: 0.54s; }
.loader-char:nth-child(8) { animation-delay: 0.63s; }

@keyframes loader-typewriter {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.loader-dots span {
  opacity: 0.3;
  animation: loader-dot 1.2s infinite;
  font-size: 1.5em;
}
.loader-dots span:nth-child(1) { animation-delay: 0.7s; }
.loader-dots span:nth-child(2) { animation-delay: 0.85s; }
.loader-dots span:nth-child(3) { animation-delay: 1s; }

@keyframes loader-dot {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

@media (max-width: 600px) {
  .loader-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
    gap: 1px;
  }
  .loader-char {
    font-size: 1.1em;
  }
  .loader-dots span {
    font-size: 1.1em;
  }
}