@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #eef4f2;
  color: #202020;
}

.contenedor {
  width: 90%;
  max-width: 1250px;
  margin: auto;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}


/* HEADER */

.header{
    width:100%;
    background:#fff;
    position:fixed;
    top:0;
    left:0;
    box-shadow: 0 2px 20px rgba(13, 117, 101, 0.08);
    border-bottom: 1px solid rgba(13, 117, 101, 0.08);
    z-index: 100;
}

.nav{
    height:72px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 50px;
}

.logo{
    display:flex;
    align-items:center;
    position: relative;
    padding-right: 22px;
}

.logo::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform: translateY(-50%);
    width:1px;
    height:34px;
}

.logo img{
    width:200px;
    margin-top: 8px;
    object-fit:contain;
    margin-left: -60px;
    transition: transform 0.3s ease;
}

.logo:hover img{
    transform: scale(1.03);
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  position: relative;
  color: #1b3b35;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
}

.menu a::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:6px;
  height:2px;
  background:#0d7565;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu a:hover{
  color: #0d7565;
  background: rgba(13, 117, 101, 0.06);
}

.menu a:hover::after{
  transform: scaleX(1);
}

.menu a.activo {
  color: #0d7565;
  background: rgba(13, 117, 101, 0.08);
}

.menu a.activo::after{
  transform: scaleX(1);
}

.btn-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #0d7565;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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




/* HEADER */

.header{
    width:100%;
    background:#fff;
    position:fixed;
    top:0;
    left:0;
    box-shadow: 0 2px 20px rgba(13, 117, 101, 0.08);
    border-bottom: 1px solid rgba(13, 117, 101, 0.08);
    z-index: 100;
}

.nav{
    height:72px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 50px;
}

.logo{
    display:flex;
    align-items:center;
    position: relative;
    padding-right: 22px;
}

.logo::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform: translateY(-50%);
    width:1px;
    height:34px;
}

.logo img{
    width:200px;
    margin-top: 8px;
    object-fit:contain;
    margin-left: -60px;
    transition: transform 0.3s ease;
}

.logo:hover img{
    transform: scale(1.03);
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  position: relative;
  color: #1b3b35;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
}

.menu a::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:6px;
  height:2px;
  background:#0d7565;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu a:hover{
  color: #0d7565;
  background: rgba(13, 117, 101, 0.06);
}

.menu a:hover::after{
  transform: scaleX(1);
}

.menu a.activo {
  color: #0d7565;
  background: rgba(13, 117, 101, 0.08);
}

.menu a.activo::after{
  transform: scaleX(1);
}

.btn-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #0d7565;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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


/* HERO INSTALACIONES */

.hero-instalaciones{
    position: relative;
    height: 90vh;
    min-height: 680px;
    overflow: hidden;
}

.hero-instalaciones video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      rgba(1, 20, 17, 0.92) 0%,
      rgba(1, 20, 17, 0.75) 38%,
      rgba(1, 20, 17, 0.35) 65%,
      rgba(1, 20, 17, 0.1) 100%
    );
}

.hero-card{
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 600px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #fff;
    box-shadow: none;
    z-index: 1;

    opacity: 0;
    animation: fadeSlideUpHero 0.9s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeSlideUpHero {
  from { opacity: 0; transform: translateY(-50%) translateX(-20px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.hero-card span{
    display: inline-block;
    color: #D5AF5A;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 8px;
}

.hero-card h1{
    font-size: 58px;
    font-weight: 900;
    margin: 12px 0 18px;
    line-height: 1.08;
    letter-spacing: -1px;
}

.hero-card p{
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
}

.btn-explorar{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #D5AF5A;
    color: #014a3f;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    transition: 0.35s ease;
    box-shadow: 0 12px 25px rgba(213, 175, 90, 0.3);
}

.btn-explorar i{
    transition: transform 0.3s ease;
}

.btn-explorar:hover{
    background: #e8c471;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(213, 175, 90, 0.4);
}

.btn-explorar:hover i{
    transform: translateY(3px);
}

.scroll-indicator{
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 2;
}

.scroll-indicator span{
    width: 4px;
    height: 8px;
    background: #D5AF5A;
    border-radius: 4px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot{
    0%   { opacity: 1; transform: translateY(0); }
    60%  { opacity: 0.3; transform: translateY(14px); }
    100% { opacity: 0; transform: translateY(14px); }
}

/* CAMPUS */

.campus{
    padding: 120px 8%;
    background: #f7faf8;
}

.titulo-campus{
    text-align: center;
    max-width: 750px;
    margin: 0 auto 70px;
}

.titulo-campus span{
    color: #D5AF5A;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 14px;
}

.titulo-campus h2{
    color: #014a3f;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin: 14px 0 16px;
}

.titulo-campus p{
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.instalaciones-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.instalacion-card{
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(1, 74, 63, 0.08);
    transition: 0.4s ease;
    opacity: 0;
    animation: fadeSlideUpCard 0.7s ease forwards;
}

.instalaciones-grid .instalacion-card:nth-child(1) { animation-delay: 0.05s; }
.instalaciones-grid .instalacion-card:nth-child(2) { animation-delay: 0.15s; }
.instalaciones-grid .instalacion-card:nth-child(3) { animation-delay: 0.25s; }
.instalaciones-grid .instalacion-card:nth-child(4) { animation-delay: 0.35s; }
.instalaciones-grid .instalacion-card:nth-child(5) { animation-delay: 0.45s; }
.instalaciones-grid .instalacion-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeSlideUpCard{
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.instalacion-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(1, 74, 63, 0.16);
}

.instalacion-imagen{
    position: relative;
    height: 260px;
    overflow: hidden;
}

.instalacion-imagen img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instalacion-card:hover .instalacion-imagen img{
    transform: scale(1.1);
}

.instalacion-imagen::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 74, 63, 0.55), rgba(1, 74, 63, 0) 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instalacion-card:hover .instalacion-imagen::after{
    opacity: 1;
}

.instalacion-badge{
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.92);
    color: #014a3f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: 0.35s ease;
}

.instalacion-card:hover .instalacion-badge{
    background: #D5AF5A;
    color: #014a3f;
    transform: rotate(-8deg) scale(1.08);
}

.contenido{
    padding: 26px 28px 30px;
}

.contenido h3{
    color: #014a3f;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 800;
}

.contenido p{
    color: #666;
    line-height: 1.7;
    font-size: 15.5px;
}

/* RESPONSIVE */

@media (max-width: 1000px){

    .instalaciones-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card h1{
        font-size: 44px;
    }

    .campus{
        padding: 90px 6%;
    }
}

@media (max-width: 768px){

    .hero-instalaciones{
        height: auto;
        min-height: 100vh;
    }

    .hero-card{
        left: 5%;
        right: 5%;
        max-width: none;
        padding: 0;
    }

    .hero-card h1{
        font-size: 36px;
    }

    .hero-card p{
        font-size: 15.5px;
    }

    .scroll-indicator{
        display: none;
    }

    .instalaciones-grid{
        grid-template-columns: 1fr;
    }

    .titulo-campus h2{
        font-size: 30px;
    }

    .campus{
        padding: 70px 6%;
    }
}
/* GALERÍA MINIATURAS */

.galeria{
    padding: 100px 8%;
    background: #ffffff;
    overflow: hidden;
}

.galeria-principal{
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.galeria-foto-grande{
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(1, 74, 63, 0.18);
}

.galeria-foto-grande img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-activa{
    z-index: 2;
    opacity: 1;
    animation: kenburns 6s ease-in-out infinite alternate;
}

.img-siguiente{
    z-index: 1;
    opacity: 0;
}

@keyframes kenburns{
    from{ transform: scale(1); }
    to{ transform: scale(1.08); }
}

.galeria-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 20, 17, 0.55) 0%, rgba(1, 20, 17, 0) 30%);
    z-index: 3;
    pointer-events: none;
}

.galeria-contador{
    position: absolute;
    bottom: 22px;
    left: 26px;
    z-index: 4;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
}

.galeria-contador span:first-child{
    color: #D5AF5A;
    font-size: 20px;
}

.galeria-flecha{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #014a3f;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.galeria-flecha:hover{
    background: #D5AF5A;
    transform: translateY(-50%) scale(1.1);
}

.galeria-flecha-izq{ left: 22px; }
.galeria-flecha-der{ right: 22px; }

.galeria-progreso{
    max-width: 980px;
    margin: 22px auto 0;
    height: 3px;
    background: #e5ece9;
    border-radius: 3px;
    overflow: hidden;
}

.galeria-progreso-barra{
    height: 100%;
    width: 0%;
    background: #D5AF5A;
    border-radius: 3px;
}

.miniaturas-wrapper{
    max-width: 980px;
    margin: 26px auto 0;
    overflow: hidden;
}

.miniaturas-track{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 4px 12px;
    scrollbar-width: none;
}

.miniaturas-track::-webkit-scrollbar{
    display: none;
}

.miniatura{
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: 0.3s ease;
}

.miniatura img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.miniatura:hover{
    opacity: 0.85;
}

.miniatura.activa{
    opacity: 1;
    border-color: #D5AF5A;
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(213, 175, 90, 0.35);
}

@media (max-width: 900px){

    .galeria-foto-grande{
        height: 400px;
    }

    .galeria-flecha{
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (max-width: 600px){

    .galeria{
        padding: 70px 5%;
    }

    .galeria-foto-grande{
        height: 300px;
        border-radius: 18px;
    }

    .miniatura{
        width: 72px;
        height: 54px;
    }

    .galeria-contador span:first-child{
        font-size: 16px;
    }
}



/* FOOTER ITSAL */

.footer-itsal {
  background: #045348;
  color: #ffffff;
  padding-top: 50px;
}



.footer-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.3fr 1.2fr 0.9fr;
  gap: 35px;
  align-items: flex-start;
}

/* LOGO */

.footer-logo-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer-logo-img {
  width: 400px;
  object-fit: contain;
  border-radius: 20px;
  margin-right: 75px;
}

/* INSTITUCIÓN */

.footer-institucion h3 {
  color: #D5AF5A;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 800;
}

.footer-institucion h2 {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 900;
}

.footer-ubicacion {
  color: #d9e5e2;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-texto {
  color: #cbd8d5;
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

/* CONTACTO */

.footer-col h4 {
  color: #D5AF5A;
  font-size: 23px;
  margin-bottom: 22px;
  font-weight: 800;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 17px;
}

.footer-item i {
  width: 40px;
  height: 40px;
  background: #549c87;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-size: 17px;
}

.footer-item p {
  color: #d9e5e2;
  font-size: 16px;
  line-height: 1.5;
}

/* REDES */

/* REDES SOCIALES MÁS ELEGANTES */

.footer-redes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.footer-redes a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s ease;
}

.footer-redes a i {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: 0.3s ease;
}

.footer-redes a:hover {
  color: #D5AF5A;
  transform: translateX(5px);
}

.footer-redes a:hover i {
  background: #D5AF5A;
  color: #014a3f;
  border-color: #D5AF5A;
}

.footer-web {
  display: inline-block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  transition: 0.3s ease;
}

.footer-web:hover {
  color: #D5AF5A;
}

/* COPY */

.footer-copy {
  margin-top: 40px;
  padding: 18px 20px;
  text-align: center;
  background: #023229;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-copy p {
  color: #c7d4d1;
  font-size: 15px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-logo-col {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .footer-itsal {
    padding-top: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo-img {
    width: 95px;
    height: 95px;
  }

  .footer-institucion h3 {
    font-size: 20px;
  }

  .footer-institucion h2 {
    font-size: 26px;
  }

  .footer-col h4 {
    font-size: 21px;
  }
  .menu-item {
  width: 100%;
}

.menu-link {
  width: 100%;
}

.submenu {
  position: static;
  box-shadow: none;
  background: #f4faf8;
  margin-top: 8px;
  border-radius: 10px;
  width: 100%;
}

.menu-item:hover .submenu {
  display: block;
}
}
/* SUBMENÚ DEL HEADER */

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-link i {
  font-size: 11px;
}

.submenu {
  position: absolute;
  top: 35px;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 100;
}

.submenu a {
  display: block;
  padding: 11px 18px;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.submenu a:hover {
  background: #eef7f4;
  color: #014a3f;
}

.menu-item:hover .submenu {
  display: block;
}
/* Tipografía institucional unificada */
html,body,button,input,select,textarea{font-family:'Manrope',Arial,sans-serif!important;}

/* ======================================================================
   ITSAL · MENÚ Y FOOTER INSTITUCIONAL UNIFICADOS
   Este bloque está incluido físicamente en cada CSS para que cada página
   sea independiente y no dependa de una hoja global compartida.
   ====================================================================== */
:root {
  --itsal-verde-950: #023c34;
  --itsal-verde-900: #045348;
  --itsal-verde-800: #08695a;
  --itsal-verde-700: #0d7565;
  --itsal-verde-100: #eaf5f1;
  --itsal-dorado: #d8b458;
  --itsal-dorado-claro: #f1d98e;
  --itsal-texto: #18352f;
  --itsal-borde: #dce9e5;
  --itsal-sombra-menu: 0 18px 45px rgba(4, 83, 72, .13);
}

html { scroll-padding-top: 92px; }
body { overflow-x: hidden; }

.header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: auto !important;
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid rgba(13, 117, 101, .10) !important;
  box-shadow: 0 6px 28px rgba(3, 59, 50, .08) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 1000 !important;
}

.header .nav {
  width: min(1240px, calc(100% - 40px)) !important;
  min-height: 78px !important;
  height: 78px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 26px !important;
}

.header .logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.header .logo::after { display: none !important; }

.header .logo img {
  display: block !important;
  width: 174px !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
  transform: none !important;
  transition: transform .25s ease !important;
}

.header .logo:hover img { transform: translateY(-1px) scale(1.015) !important; }

.header .menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  margin-left: auto !important;
  padding: 0 !important;
}

.header .menu > a,
.header .menu-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #25443d !important;
  background: transparent !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .1px !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color .2s ease, background .2s ease, transform .2s ease !important;
}

.header .menu > a::after,
.header .menu-link::after {
  content: "" !important;
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 5px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: var(--itsal-dorado) !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform .22s ease !important;
}

.header .menu > a:hover,
.header .menu-link:hover,
.header .menu > a.activo,
.header .menu-link.activo {
  color: var(--itsal-verde-700) !important;
  background: var(--itsal-verde-100) !important;
  transform: translateY(-1px) !important;
}

.header .menu > a:hover::after,
.header .menu-link:hover::after,
.header .menu > a.activo::after,
.header .menu-link.activo::after { transform: scaleX(1) !important; }

.header .menu-item { position: relative !important; }
.header .menu-link i { font-size: 10px !important; transition: transform .2s ease !important; }
.header .menu-item:hover .menu-link i,
.header .menu-item.submenu-abierto .menu-link i { transform: rotate(180deg) !important; }

.header .submenu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  min-width: 248px !important;
  width: max-content !important;
  max-width: 300px !important;
  display: block !important;
  padding: 9px !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid var(--itsal-borde) !important;
  border-radius: 14px !important;
  box-shadow: var(--itsal-sombra-menu) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease !important;
  z-index: 1100 !important;
}

.header .menu-item:hover > .submenu,
.header .menu-item:focus-within > .submenu,
.header .menu-item.submenu-abierto > .submenu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.header .submenu a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  color: #284a42 !important;
  background: transparent !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: color .2s ease, background .2s ease, padding-left .2s ease !important;
}

.header .submenu a::after { display: none !important; }
.header .submenu a:hover,
.header .submenu a.activo {
  color: var(--itsal-verde-700) !important;
  background: var(--itsal-verde-100) !important;
  padding-left: 16px !important;
}
.header .menu-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.header .submenu a.activo::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--itsal-dorado);
  flex: 0 0 auto;
}

.header .btn-menu {
  display: none !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--itsal-borde) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--itsal-verde-700) !important;
  font-size: 0 !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .2s ease !important;
}

.header .btn-menu::before {
  content: "\f0c9";
  font-family: "Font Awesome 6 Free";
  font-size: 21px;
  font-weight: 900;
}

.header .btn-menu:hover { background: var(--itsal-verde-100) !important; transform: translateY(-1px) !important; }
.header .btn-menu[aria-expanded="true"]::before { content: "\f00d"; }

.footer-itsal {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 8% 20%, rgba(216, 180, 88, .12), transparent 28%),
    linear-gradient(135deg, var(--itsal-verde-950), var(--itsal-verde-900)) !important;
}

.footer-itsal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--itsal-dorado), var(--itsal-dorado-claro), var(--itsal-dorado));
}

.footer-itsal .footer-grid {
  position: relative !important;
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding: 64px 0 48px !important;
  display: grid !important;
  grid-template-columns: .72fr 1.28fr 1.3fr .9fr !important;
  align-items: start !important;
  gap: 44px !important;
}

.footer-itsal .footer-col { min-width: 0 !important; }
.footer-itsal .footer-logo-col {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.footer-itsal .footer-logo-img {
  display: block !important;
  width: 128px !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 18px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .18)) !important;
}

.footer-itsal .footer-institucion h3 {
  margin: 0 0 5px !important;
  color: var(--itsal-dorado-claro) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.footer-itsal .footer-institucion h2 {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-size: 29px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.footer-itsal .footer-ubicacion {
  margin: 0 0 16px !important;
  color: var(--itsal-dorado-claro) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: .4px !important;
}

.footer-itsal .footer-texto {
  max-width: 370px !important;
  margin: 0 !important;
  color: #c8d9d5 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.footer-itsal .footer-col h4 {
  position: relative !important;
  margin: 0 0 22px !important;
  padding-bottom: 10px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.footer-itsal .footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  border-radius: 99px;
  background: var(--itsal-dorado);
}

.footer-itsal .footer-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 11px !important;
  margin: 0 0 14px !important;
}

.footer-itsal .footer-item i {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  flex: 0 0 32px !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .08) !important;
  color: var(--itsal-dorado-claro) !important;
  font-size: 13px !important;
}

.footer-itsal .footer-item p {
  margin: 4px 0 0 !important;
  color: #d3e0dd !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.footer-itsal .footer-redes {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
}

.footer-itsal .footer-redes a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: fit-content !important;
  color: #d5e2df !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease !important;
}

.footer-itsal .footer-redes a i {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  font-size: 13px !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease !important;
}

.footer-itsal .footer-redes a:hover { color: var(--itsal-dorado-claro) !important; transform: translateX(4px) !important; }
.footer-itsal .footer-redes a:hover i {
  color: var(--itsal-verde-950) !important;
  background: var(--itsal-dorado) !important;
  border-color: var(--itsal-dorado) !important;
}

.footer-itsal .footer-web { color: #fff !important; text-decoration: none !important; }
.footer-itsal .footer-copy {
  position: relative !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, .10) !important;
  background: rgba(0, 0, 0, .14) !important;
  text-align: center !important;
}

.footer-itsal .footer-copy p {
  margin: 0 !important;
  color: #b9ceca !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

@media (max-width: 1160px) {
  .header .nav { width: min(100% - 28px, 1120px) !important; gap: 16px !important; }
  .header .logo img { width: 155px !important; }
  .header .menu > a,
  .header .menu-link { padding: 10px 8px !important; font-size: 12.5px !important; }
  .footer-itsal .footer-grid { grid-template-columns: .65fr 1.2fr 1.25fr .9fr !important; gap: 30px !important; }
}

@media (max-width: 960px) {
  .header .nav { height: 72px !important; min-height: 72px !important; }
  .header .logo img { width: 160px !important; height: 52px !important; }
  .header .btn-menu { display: grid !important; place-items: center !important; flex: 0 0 44px !important; }
  .header .menu {
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 72px) !important;
    overflow-y: auto !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 15px max(20px, calc((100vw - 1180px) / 2)) 22px !important;
    border-top: 1px solid var(--itsal-borde) !important;
    background: #fff !important;
    box-shadow: 0 20px 35px rgba(3, 59, 50, .12) !important;
  }
  .header .menu.activo { display: flex !important; }
  .header .menu > a,
  .header .menu-link {
    width: 100% !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
  .header .menu > a::after,
  .header .menu-link::after { display: none !important; }
  .header .menu-item { width: 100% !important; }
  .header .submenu {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: none !important;
    margin: 5px 0 4px !important;
    padding: 7px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #f5faf8 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .header .menu-item:hover > .submenu { display: none !important; }
  .header .menu-item.submenu-abierto > .submenu { display: block !important; }
  .header .submenu a { min-height: 40px !important; }
  .footer-itsal .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px 34px !important; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 80px; }
  .header .nav { width: calc(100% - 28px) !important; }
  .header .logo img { width: 148px !important; }
  .footer-itsal .footer-grid {
    width: min(100% - 36px, 520px) !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 48px 0 36px !important;
  }
  .footer-itsal .footer-logo-col { justify-content: center !important; }
  .footer-itsal .footer-logo-img { width: 112px !important; }
  .footer-itsal .footer-institucion { text-align: center !important; }
  .footer-itsal .footer-texto { margin-inline: auto !important; }
  .footer-itsal .footer-col h4 { margin-bottom: 18px !important; }
  .footer-itsal .footer-redes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer-itsal .footer-redes a { width: 100% !important; }
}


/* Video institucional en reemplazo del carrusel */
.video-institucional {
  padding: 0px 20px 105px;
  background: linear-gradient(180deg, #f8fbfa 0%, #eef6f3 100%);
}
.video-institucional .titulo-campus { margin-bottom: 38px; }
.video-institucional-contenedor {
  width: min(1000px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(7,95,80,.16);
  border-radius: 24px;
  background: #021a16;
  box-shadow: 0 24px 60px rgba(3,59,50,.18);
}
.video-institucional-contenedor video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #021a16;
}
@media (max-width: 700px) {
  .video-institucional { padding: 72px 15px 82px; }
  .video-institucional-contenedor { border-radius: 15px; }
}


