@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-image: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.7)),
        url(Images/fondo0.gif);
    display: flex;
    justify-content: space-between;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    align-items: center;
    padding: 30px;    
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
  }

#menu-toggle {
display: none;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
#menu-toggle:checked + .hamburger .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
  
#menu-toggle:checked + .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
}
  
#menu-toggle:checked + .hamburger .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}
.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 20px 10px;
}

.logo img {
    max-width: 150px;
    height: auto;
    cursor: pointer;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px; /* Espacio entre los ítems del menú */
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.icon i {
    font-size: 50px; /* Tamaño del icono */
    margin-bottom: 5px; /* Espacio entre el icono y el texto */
}

.icon-text {
    font-size: 16px; /* Tamaño del texto */
    display: block; /* Asegura que el texto esté debajo del icono */
}

.icon:hover {
    transform: scale(1.1);
    color: #ffcc00;
}

.menu-icono {
    width: 25px;
}

.header-content {
    text-align: center;
}

.header-content h1 {
    font-size: 75px;
    line-height: 88px;
    color: #ffffff;
    margin-bottom: 35px;
    text-transform: uppercase;
}

.btn-1 {
    width: 150px;
    height: 55px;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-1:hover {
    transform: scale(1.1);
}

.btn-1:active {
    transform: scale(0.9);
}

.info {
    padding: 80px 0;
    background-color: #efefef;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.logo-1 {
    width: 500px;
    height: 500px;
    border-radius: 10px;
    flex-shrink: 0;
}

.text-content {
    flex: 1;
    padding-left: 30px;
}

.titulo {
    font-size: 35px;
    color: #004aad;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: red;
}

.descripcion {
    font-size: 20px;
    line-height: 1.8;
    color: #636e72;
    margin-bottom: 0;
}

.servs {
    padding: 80px 0 80px 40px;
    background-color: #f0f0f0;
}

.servs-titul {
    font-size: 35px;
    color: #004aad;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.servs-titul:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: red;
}

.desc-servs {
    size: 30px;
    line-height: 1.8;
    color: #636e72;
    margin-bottom: 0;
    font-size: 20px;
    padding: 10px;
}

.servs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap; 
}

.servs-item {
    text-align: center;
    width: 300px; 
}

img {
    margin-top: 50px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

button {
    width: 250px;
    padding: 10px;
    background-color: #004aad;
    color: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.1); 
}

button:active {
    transform: scale(0.9); 
}

.caja {
    transition: transform 0.3s;
}

.caja:hover {
    transform: scale(1.05); 
}

.servs-container, .contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
}

.contenedor {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #f0f0f0;
    padding: 50px;
    gap: 30px; 
}

.caja {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px; 
    max-width: 350px;
    max-height: 400px;
    text-align: center;
    transition: transform 0.3s;
}

.caja:hover {
    transform: scale(1.05); 
}

.imagen {
    max-width: 100%;
    height: 160px;
    width: 290px;
    border-radius: 10px;
}
.fa-titul {
    margin: 10px 0 5px;
    color: #004aad;
}
.fa-desc {
    margin: 0;
    line-height: 1.5;
}

.mision {
    background-color: #004aad;
    padding: 80px;
    color: #efefef;
    font-size: 35px;
    text-align: center;
}

.mis-desc {
    text-align: center;
    font-size: 30px !important;
}

.vision {
    margin-top: 210px;
}

.mapa-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
  }
  
  .mapa-responsive {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
  }
  
  .mapa-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  .leyenda-mapa {
    text-align: center;
    padding: 10px;
    color: #004aad;
    font-size: 14px;
  }  

.ubicacion {
    padding: 2rem;
    text-align: center;
    background-color: #f0f0f0;
    color: #004aad;
    padding: 30px;
}

.info-cen {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1rem;
}

.institucion h3 {
    color: red;
    margin-bottom: 1rem;
}

.datos-adicionales {
    margin-top: 1.5rem;
    color: #004aad;
}

.mapa-container {
    margin-top: 2rem;
    position: relative;
    padding: 30px;
}

.contact {
    padding: 2rem;
    text-align: center;
    background-color: #f0f0f0;
    align-items: center;
}

.imagen-1 {
width: 100%;
height: auto;
padding: 30px;
}

.fila-contactos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-left: 20px;
    margin-top: 20px;
    padding: 30px;
}

.grupo-texto {
    display: flex;
    flex-direction: column;
}

.titulo-grande {
    font-size: 50px;
    color: #004aad;
    line-height: 1.1;
    margin-bottom: 8px;
    text-align: center;
}

.item-contacto {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.etiqueta {
    font-size: 20px;
    color: #004aad;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
}

.dato {
    font-size: 18px;
    color: #222;
    font-weight: 500;
    text-align: center;
    align-self: center;
}

.social-icon {
    color: white;
    margin: 0 15px;
    font-size: 40px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: #ffcc00;
    transform: translateY(-3px);
}

.footer-logo img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    height: 200px;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header {
        padding-top: 90px;
        height: auto;
        min-height: 100vh;
    }

    .logo {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .logo img {
        max-width: 200px;
    }

    .icon {
        font-size: 32px;
        margin-right: 15px;
    }

    .header-content {
        padding-top: 60px;
    }

    .header-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 30px;
      }
      
      .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 80px 30px;
        transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 999;
      }
      
      #menu-toggle:checked ~ .navbar {
        right: 0;
      }
      
      .nav-list {
        flex-direction: column;
        gap: 30px;
      }
      
      .nav-list li a {
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px 20px;
        border-radius: 5px;
        transition: all 0.3s;
      }
      
      .nav-list li a:hover {
        background: #004aad;
        transform: translateX(10px);
      }

    .content {
        flex-direction: column;
        padding: 20px;
    }

    .logo-1 {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .text-content {
        padding: 20px 0;
    }

    .servs-container {
        padding: 20px;
    }

    .servs-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .contenedor {
        padding: 20px;
    }

    .caja {
        transition: transform 0.3s;
        width: 100%;
        margin-bottom: 30px;
    }

    .mision {
        padding: 40px 20px;
    }

    .mis-desc {
        font-size: 20px;
    }

    .mapa-container {
        padding: 0 10px;
      }
      
      .leyenda-mapa {
        font-size: 12px;
        padding: 8px;
      }

    .fila-contactos {
        flex-direction: column;
        padding: 20px;
    }

    footer > div {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-logo img {
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 100px;
    }

    .header-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    .icon {
        margin: 0 10px !important;
    }

    .navbar {
        width: 100%;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .titulo, .servs-titul {
        font-size: 1.5rem;
    }

    .descripcion, .desc-servs {
        font-size: 1rem;
    }

    .btn-1 {
        width: 80%;
        max-width: 200px;
    }

    .leyenda-mapa {
        font-size: 10px;
      }
}

