@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);
}

/*======================================
        BANNER AUTORIDADES
=======================================*/

/*==================================================
                BANNER
==================================================*/

.banner-pagina{
    margin-top:72px;
    padding:70px 0;

    background:
    linear-gradient(
        rgba(4,83,72,.88),
        rgba(84,156,135,.88)
    ),
    url("../imagenes/Cabecera.jpeg");

    background-repeat:no-repeat;
    background-size:cover;
    background-position:center center;

    color:white;
    text-align:center;
}

.subtitulo-banner{
    display:inline-block;
    color:#D5AF5A;
    font-size:17px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:18px;
}

.banner-pagina h1{
    font-size:clamp(42px,6vw,68px);
    font-weight:900;
    margin-bottom:22px;
    letter-spacing:-2px;
}

.banner-pagina p{
    max-width:850px;
    margin:auto;
    font-size:20px;
    line-height:1.8;
    color:#eef4f2;
}

/*==================================================
                AUTORIDADES
==================================================*/

.autoridades{
    background:#eef4f2;
    padding:30px 0;
}

/* TITULO */

.titulo-seccion{
    text-align:center;
    margin-bottom:50px;
}

.titulo-seccion span{
    color:#000000;
    font-size:30px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1px;
}

.titulo-seccion h2{
    font-size:52px;
    color:#1f1f1f;
    margin:15px 0 18px;
    letter-spacing:-1px;
}

.titulo-seccion p{
    max-width:820px;
    margin:auto;
    font-size:18px;
    color:#5d5d5d;
    line-height:1.8;
}


/*==================================================
                CARD
==================================================*/

.autoridad-horizontal{

    background:#ffffff;

    display:grid;
    grid-template-columns:340px 1fr;

    gap:40px;

    padding:35px;

    margin-bottom:45px;

    border-radius:22px;

    border-top:6px solid #0d7565;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

    align-items:center;

}

.autoridad-horizontal:hover{

    transform:translateY(-6px);

    box-shadow:0 25px 50px rgba(0,0,0,.12);

}


/* ALTERNA EL DISEÑO */

.reversa{

    grid-template-columns:1fr 380px;

}

.reversa .autoridad-img{

    order:2;

}

.reversa .autoridad-info{

    order:1;

}


/*==================================================
                FOTO
==================================================*/

.autoridad-img{

    width:100%;
    height:380px;

    overflow:hidden;

    border-radius:18px;

}

.autoridad-img img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.4s;
}

.autoridad-horizontal:hover img{

    transform:scale(1.05);

}


/*==================================================
                INFORMACIÓN
==================================================*/

.cargo{

    display:inline-block;

    background:#549c87;

    color:#fff;

    padding:9px 20px;

    border-radius:40px;

    font-size:14px;

    font-weight:bold;

    margin-bottom:18px;
}

.autoridad-info h2{

    font-size:34px;

    color:#1d1d1d;

    line-height:1.15;

    margin-bottom:12px;

}

.linea{

    width:90px;

    height:5px;

    background:#0d7565;

    border-radius:20px;

    margin-bottom:28px;
}

.autoridad-info p{
    font-size:16px;
    line-height:1.55;
    color:#555;
    text-align:justify;
    margin-bottom:10px;

}


/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:1000px){

.autoridad-horizontal{

    grid-template-columns:1fr;

    gap:35px;

}

.reversa{

    grid-template-columns:1fr;

}

.reversa .autoridad-img{

    order:1;

}

.reversa .autoridad-info{

    order:2;

}

.autoridad-img{

    height:430px;

}

.titulo-seccion h2{

    font-size:42px;

}

.banner-pagina h1{

    font-size:50px;

}

}


@media(max-width:700px){

.banner-pagina{

    padding:70px 0;

}

.banner-pagina h1{

    font-size:38px;

}

.banner-pagina p{

    font-size:17px;

}

.titulo-seccion h2{

    font-size:34px;

}

.autoridad-horizontal{

    padding:28px;

}

.autoridad-img{

    height:330px;

}

.autoridad-info h2{

    font-size:30px;

}

.autoridad-info p{

    font-size:16px;

}

.linea{

    width:70px;

}

}


/* 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: 100% !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; }
}