* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Hero-Bold', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #031A6B;
    color: #fff;
}

h1{font-size: 4rem; font-family: "Schibsted Grotesk", serif;}
h2{font-size: 1.75em; font-family: "Schibsted Grotesk", serif;}
h3{font-size: 2rem;}
h4{font-size: 1.5rem; font-family: "Schibsted Grotesk", serif;}
p{font-size: 1.25rem; font-family: "Schibsted Grotesk", serif;}
ul{list-style: none; padding: 0; margin: 0;}
li{font-size: 1.25rem; font-family: "Schibsted Grotesk", serif;}




header {
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem 8%;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F3F5FB;
    border-bottom:1px  solid #000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    transition: top 0.1s ease-in-out;
}

/* Espacio reservado para evitar el salto */
.header-placeholder {
    height: 100%; /* Ajusta esto a la altura del navbar */
    display: none; /* Se activará cuando el header cambie */
}

header.scrolled {
    position: fixed;
    left: 0;
    border: 1px solid #000;
    margin: .5rem auto;
    width: 50%;
    height: 4.5rem;
    background: #fff;
    padding: 0.05rem 7%;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
   
}

header.scrolled.visible {

    opacity: 1; /* Hace visible */
}

/* Cuando el navbar cambia a `fixed`, mostramos el espacio reservado */
header.scrolled + .header-placeholder {
    display: block;
}

header.scrolled .navlist a {
    color: #000;
}

/* Cuando el header tiene la clase scrolled */
header.scrolled .btn-content {
    border: 1px solid #000;
    background: #fff;
    color: #000000;
    box-shadow: none;
}

header.scrolled .btn-content:hover {

    transform: scale(1.1);
    color: #000000;
}

/* Ocultar back-btn cuando el header tiene la clase scrolled */
header.scrolled .back-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.logo img {
    width: 10rem;
    height: auto;
}

header.scrolled .logo img{
    width: 7rem;
    height: auto;
}

header.scrolled .logo:hover {
    
    transform: scale(1.1);
    color: #000000;  
}

.navlist {
    display: flex;
}

.navlist a {
    display: inline-block;
    margin: 0 35px;
    color: #1b1b1e;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative; /* Necesario para el pseudo-elemento */
    text-decoration: none; /* Eliminamos el subrayado por defecto */
}

/* Subrayado animado */
.navlist a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Ajusta esta posición según tu diseño */
    width: 0;
    height: 2px; /* Grosor del subrayado */
    background-color: currentColor; /* Hereda el color del texto */
    transition: width 0.3s ease;
}

.navlist a:hover::after {
    width: 100%; /* Ancho completo al hacer hover */
}

.navlist a:hover {
    color: #f39c12;
}

header.scrolled a:hover {
    color: #f39c12;
}

/* Right Section (Button & Icon) */
.nav-right {
    display: flex;
    align-items: center;
}

.button-container {
    position: relative;
    width: 10rem; /* Ancho del botón */
    height: 3rem; /* Alto del botón */
    margin: 5px;
}

#blog-button{
    visibility: hidden;
}

/* Efecto hover en el contenedor */
.button-container:hover .btn-content {
    background-color: #fff;
    color: #000000; /* Desplaza el botón hacia arriba y la izquierda */
}

.button-container:hover .back-btn {
    transform: translate(5px, 5px); /* Desplaza el fondo hacia abajo y la derecha */
}

/* Estilo del botón */
.btn-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #031A6B; /* Fondo blanco */
    color: #ffffff; /* Texto negro */
    border: none;
    border-radius: 20px; /* Bordes redondeados */
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
}

/* Fondo del botón */
.back-btn {
    position: absolute;
    top: 5px; /* Desplazamiento inicial */
    left: 5px; /* Desplazamiento inicial */
    width: 100%;
    height: 100%;
    background-color: #FF7700; /* Color naranja */
    z-index: 1;
    border-radius: 20px; /* Bordes redondeados */
    transition: all 0.2s ease-in-out;
}

#menu-icon {
    font-size: 34px;
    color: #000000;
    z-index: 10001;
    cursor: pointer;
    display: none;
}


#hero {
    padding: 4rem 2rem;
    height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:linear-gradient(
    0deg,  /* De negro abajo a transparente arriba */
    rgba(0, 0, 0, 0.2),  /* Más oscuro en la parte inferior */
    rgba(0, 0, 0, 0.2) /* Completamente transparente en la parte superior */
        ), url('../Recursos/impulsación.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero .container {
    width: 100%;
    max-width: 1300px;
    margin-top: 2rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title-contacto{
    text-align: center;
    width: 100%;
}


.title-contacto h1 {
    
    text-align: center;
    font-size: 5rem;
    margin: 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffffff;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.5));
}


.title-contacto h2 {
    font-size: 3rem;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.5));
    
}

.galeria h1{
    margin-top: 5rem;
    color: #fff;
    text-align: center;
    filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.5));
}


.gallery-container{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-rows: 350px;
    padding: 5rem 10rem;
    gap: 20px;
}

.gallery-item{
    position: relative;
}

.gallery-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer; /* Añade esto para indicar que es clicable */
    transition: all 0.3s ease; /* Agrega esta línea */
}
    
.gallery-img:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* Se eleva 5px */
}

.gallery-item:nth-child(3){
    grid-column-start: span 2;
}
.gallery-item:nth-child(16){
    grid-column-start: span 2;
}

/* Tu CSS actual permanece igual, solo agrega esto al final */

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

/* Contenedor principal */
.whatsapp-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse; /* Invierte el orden de los elementos */
    align-items: center;
    pointer-events: none;
}

/* Botón principal (mismo estilo) */
.whatsapp {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    font-size: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contenedor del texto - modificado para izquierda */
.whatsapp-container {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineación a la izquierda */
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    z-index: 2;
    overflow: hidden;
    right: 0; /* Cambiado de left a right */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Texto del botón - modificado para izquierda */
.whatsapp-text {
    color: #000000;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    font-weight: 500;
    margin-left: 90px; /* Cambiado de margin-right a margin-left */
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px); /* Dirección de la animación invertida */
    transition: all 0.3s ease;
}

/* Efectos hover modificados */
.whatsapp:hover + .whatsapp-container {
    width: 280px;
    
}

.whatsapp:hover + .whatsapp-container .whatsapp-text {
    opacity: 1;
    transform: translateX(-62px);
    transition-delay: 0.1s;
}

/* Ícono y demás estilos se mantienen igual */
.bxl-whatsapp {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.05);
}

.whatsapp:hover .bxl-whatsapp {
    transform: rotate(15deg);
    
}


footer {
    background: #001524;
    color: #fff;
    padding: 40px 0;
    padding-bottom: 0;
}

.containfoot {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    padding-bottom: 20px;
}

.visitanos, .enlaces, .info-contacto, .social-neworks {
    flex: 1;
    min-width: 300px;
}

.visitanos  {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.enlaces{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-contacto .datos-contacto{
    margin-top: 4rem;
    
}

.title-visitanos h3, .title-enlaces h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #f0a500;
    display: inline-block;
    padding-bottom: 5px;
}

.title-visitanos h4 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: #ffffff;
}

p {
    font-size: 1.04rem;
    margin: 5px 0;
    line-height: 1.5;
}

.menu-enlaces ul {
    list-style: none;
    padding: 0;
}

.menu-enlaces ul li {
    margin: 8px 0;
}

.menu-enlaces ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

.menu-enlaces ul li a:hover {
    color: #00B4D8;
}

.datos-contacto i {
    color: #ffffff;
    margin-right: 1px;
    font-size: 1.5rem;
}

.datos-contacto li {
    margin: 8px 0;
    font-size: 1.2rem;
}

.datos-contacto li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

.datos-contacto li a:hover {
    color: #00B4D8;
}

.social-neworks {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-aso img {
    max-width: 15rem;
    margin-bottom: 10px;
}

.redes-sociales ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
}

.redes-sociales ul li a {
    color: #fff;
    font-size: 3rem;
    transition: color 0.3s ease;
}

.redes-sociales ul li a:hover {
    color: #00B4D8;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #bbb;
}

.footer-bottom {
    padding: 15px 0;
    text-align: center;
    color: #fff; /* Texto en blanco para contraste */
    font-size: 14px;
   margin: 0;
}

.footer-bottom .containfoot {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.copy-right p {
    margin: 0;
    font-weight: 300; /* Texto más liviano */
    letter-spacing: 0.5px;
}

.copy-right p:hover {
    color: #f39c12; /* Cambio de color al pasar el cursor */
    transition: color 0.3s ease;
}

@media (max-width: 1536px){
    header.scrolled {
        padding: 0.05rem 4%;
    }

}


@media (max-width: 1400px){
    header.scrolled {
        padding: 0.05rem 5%;
    }

    .visitanos{
        margin-right: 2rem;
    }

    .containfoot{
        gap: 1rem;
    }

}

@media (max-width: 1200px){
    header {
        padding: 20px 4%;
    }
    header.scrolled{
        width:90%;
    }

    .containfoot{
        padding: 0 25px;
        gap: 0;
    }
    .social-neworks{
        margin: 0;
    }

    .logo-aso img {
        margin-top: 30px;
      }

}

@media (max-width: 1175px){

    .logo img {
        width: 100px;
        height: auto;
    }
    .navlist a {
        margin: 0 25px;
    }
    .btn {
        padding: 11px 23px;
    }

    header.scrolled{
        width:90%;
    }

}

@media (max-width: 940px){
    /* Forzamos el header a ocupar el 100% sin márgenes ni animaciones */
    header,
    header.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px 8%;
        background: #fff;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        color: #000;
        opacity: 1;
        /* Siempre visible */
        transition: none;
        /* Deshabilita las transiciones */
    }

    /* Ocultamos el placeholder, ya que no se necesita para móviles */
    .header-placeholder {
        display: none;
    }

    /* Ajustamos el menú responsive */
    #menu-icon {
        display: block;
    }

    .navlist {
        position: fixed;
        /* Lo cambiamos a fixed para que se superponga */
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        backdrop-filter: blur(32px);
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-top: 180px;
        transition: right 0.7s ease;
        z-index: 1000;
    }

    .navlist a {
        display: block;
        padding: 0;
        margin-bottom: 50px;
        font-size: 1.7rem;
        color: #fff;
    }

    .navlist.open {
        right: 0;
    }



    header .button-container {
        display: none;
    }

    .title-contacto {
        text-align: center;
        width: 100%;
    }

    .title-contacto h1 {
        font-size: 3.5rem;
    }

    .title-contacto h2 {
        font-size: 2.5rem;
    }

    .galeria h1{
        font-size: 3rem;
    }

    .gallery-container {
        grid-auto-rows: 230px;
        gap: 8px;
    }

    .gallery-img {       
        border-radius: 5px;
      }
    
    .whatsapp-wrapper{
        display: none;
    }
    
}

@media (max-width: 720px){
    
    .galeria h1 {
        font-size: 2.5rem;
      }

      .gallery-container {
        padding: 2rem;
        grid-template-columns: repeat(3,1fr);
      }
    
    .gallery-item:nth-child(5){
        display: none;
    }
    .gallery-item:nth-child(30){
        display: none;
    }
    
    
}

@media (max-width: 450px){
    header,
    header.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px 8%;
        background: #fff;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        color: #000;
        opacity: 1;
        /* Siempre visible */
        transition: none;
        /* Deshabilita las transiciones */
    }

    /* Ocultamos el placeholder, ya que no se necesita para móviles */
    .header-placeholder {
        display: none;
    }

    /* Ajustamos el menú responsive */
    #menu-icon {
        display: block;
    }

    .navlist {
        position: fixed;
        /* Lo cambiamos a fixed para que se superponga */
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        backdrop-filter: blur(32px);
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-top: 180px;
        transition: right 0.7s ease;
        z-index: 1000;
    }

    .navlist a {
        display: block;
        padding: 0;
        margin-bottom: 50px;
        font-size: 1.7rem;
    }

    .navlist.open {
        right: 0;
    }

    .galeria h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .gallery-container {
        padding: 1rem;
        grid-template-columns: repeat(2,1fr);
    }

    .gallery-item:nth-child(25){
        display: none;
    }
    .gallery-item:nth-child(36){
        display: none;
    }

    .containfoot {
        padding: 0 35px;
    }

    .enlaces {
        margin-top: 30px;
        gap: 0;
      }

    
}