body, html {
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
    background-color: rgb(241, 241, 241);
    overflow-x: hidden;
    scroll-padding-top: 150px;
    scroll-behavior: smooth;
}

header {
    width: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    color: white;
    background-color: #294D69;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.container {
    width: 70%;
    margin: auto;
}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Espacio en los extremos del navbar */
    padding: 25px 0;
}

nav a {
    font-size: 14px;
    color: white;
    text-decoration: none;
    font-weight: normal;
    padding: 0 10px;
    margin: 0 20px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Ajusta según el espacio que desees */
    width: 0;
    height: 2px; /* Altura de la línea */
    background-color: white; /* Color de la línea */
    transition: width 0.4s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

.menu-btn {
    background: none;  /* Elimina el fondo predeterminado */
    border: none;      /* Elimina cualquier borde predeterminado */
    outline: none;     /* Elimina el borde de enfoque al hacer clic */
    box-shadow: none;  /* Elimina cualquier sombra predeterminada */
    padding: 0;        /* Elimina cualquier relleno predeterminado */
    cursor: pointer;   /* Cambia el cursor a pointer (mano) */
    -webkit-appearance: none; /* Elimina estilos predeterminados en Safari/Chrome */
    -moz-appearance: none;    /* Elimina estilos predeterminados en Firefox */
    appearance: none;         /* Elimina estilos predeterminados en otros navegadores */
}



/* Remover el estilo original del ícono de Font Awesome */
.menu-btn .fa-bars {
    position: relative;
    display: block;
    width: 30px; /* Ancho de las líneas */
    height: 3px; /* Grosor de cada línea */
    background-color: white; /* Color de las líneas */
    border-radius: 2px; /* Esquinas redondeadas, si lo deseas */
    margin: 6px 0; /* Espacio entre las líneas */
    
}

/* Pseudoelementos para las líneas superior e inferior */
.menu-btn .fa-bars::before,
.menu-btn .fa-bars::after {
    content: '';
    position: absolute;
    width: 30px; /* Ancho de las líneas */
    height: 3px; /* Grosor de las líneas */
    background-color: white;
    left: 0;
}

/* Línea superior */
.menu-btn .fa-bars::before {
    top: -10px; /* Ajusta la distancia desde la línea central */
}

/* Línea inferior */
.menu-btn .fa-bars::after {
    top: 10px; /* Ajusta la distancia desde la línea central */
}



.logo {
    height: 70px;
}



.carrusel {
    position: relative;
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 120px;
    transition: background-image 2s ease-in-out;
}


.desenfocado {
    position: relative;
    width: 60%;
    color: white;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.desenfocado h1{
    font-size: 40px;
}

.desenfocado p{
    font-size: 19px;
}

/* Estilo inicial para ocultar el elemento y moverlo hacia abajo */
.content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Clase para activar la animación al cargar la página */
.content.show {
    opacity: 1;
    transform: translateY(0);
}

.content h1, .content p {
    text-shadow: 0 6px 15px #202020;
    transition: text-shadow 0.8s ease-out;
}


.section2{
    margin: auto;
    padding: 45px 0 45px 0;
    background-color: #294D69;
    color: white;
    text-align: center;
}

.nuestra-vision{
    width: 70%;
    margin: auto;
    padding: 15px 0;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.section2 h3{
    font-size: 30px;
    font-weight: bold;
}

.section2 p{
    font-size: 19px;
}

.section3{
    width: 70%;
    margin: auto;
    padding: 40px 40px;
}

.nuestra-prop{
    width: 100%;
    margin: auto;
    padding-top: 5px;
    border-top: 1px solid #294D69;
    border-bottom: 1px solid #294D69;
    text-align: center;
    color: #294D69;
    margin-bottom: 35px;
}

.section3 h3{
    font-size: 30px;
    font-weight: bold;
}


.contenedor-grilla{
    display: flex;
    align-items: center;
}

.grilla{
    width: 33.3%;
    padding: 0 20px;

}

.grilla img{
    width: 75px;
}

.icons {
    text-align: center;
}

.grilla-span{
    text-align: center;
    font-size: 23px;
    line-height: 25px;
    margin: 25px 0;
}

.grilla-p{
    text-align: center;
    font-size: 18px;
}

.section4 {
    width: 70%;
    margin: auto;
    padding: 65px 40px;
    position: relative;
    display: flex;
    gap: 30px;
}

.fondo-blanco{
    background-color: white;
}

.fachada {
    position: relative;
    max-width: 500px;
    height: 100%;
    overflow: hidden; /* Esconde las imágenes que se salen del contenedor */
}

.fachada img{
    width: 100%;
    display: none; /* Todas las imágenes ocultas inicialmente */
    transition: opacity 0.5s ease; /* Transición suave */
}

.fachada-img.active {
    display: block; /* Mostrar solo la imagen activa */
    opacity: 1;
}



.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 20%;
    z-index: 1; /* Asegura que las flechas estén por encima de las imágenes */
}

.prev {
    left: 10px; /* Flecha izquierda */
}

.next {
    right: 10px; /* Flecha derecha */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fachada-textos{
    align-content: center;
    flex: 1;
}

.fachada-span{
    font-size: 30px;
    font-weight: bold;
    color: #294D69;
    padding-bottom: 10px;
    border-bottom: 1px solid #294D69;
}

.fachada-p{
    margin: 35px 0;
    font-size: 20px;
}

.fachada-boton{
    margin-top: 0px;
    padding: 15px 0;
}

.masinfo{
    text-decoration: none;
    padding: 15px 50px;
    color: white;
    background-color: #294D69;
    border-radius: 5px;
    border: none;
    transition: 0.3s;
    font-size: 18px;
}

.masinfo:hover{
    color: #294D69;
    background-color: white;
    border: 1px solid #294D69;    
}

/* Estilos generales del modal (mantén los existentes) */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    opacity: 0; /* Inicio con opacidad 0 para el fade-in */
    transition: opacity 0.5s ease; /* Transición suave de opacidad */
}

/* Cuando el modal está visible (con clase activa), opacidad 1 */
.modal.show {
    display: flex; /* Mostrar el modal con flex cuando está activo */
    opacity: 1; /* Transición a opacidad 1 */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
    transition: transform 0.5s ease; /* Transición para el movimiento */
}

/* Cuando el modal está visible, hacer una pequeña animación de escalado */
.modal.show .modal-content {
    transform: scale(1); /* Escala original */
}

.modal-content {
    transform: scale(0.9); /* Iniciar un poco más pequeño */
    text-align: center;
}

/* Estilo para el botón cerrar */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Estructura del contenido del modal con Flexbox */
.modal-body {
    display: flex;
    gap: 35px;
}

/* Lado izquierdo (Google Maps) */
.modal-left {
    flex: 1;
}

/* Lado derecho (Información de contacto) */
.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    
}

.modal-right h2{
    color: #294D69;
    font-size: 28px;
    font-weight: bold;
    border-bottom: 2px solid #294D69;

    line-height: 32px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    height: 70vh;

}

.grid-item {
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Posicionamiento específico para cada ítem */
.item1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.item2 { grid-column: 1 / 2; grid-row: 2 / 3; }
.item3 { grid-column: 2 / 3; grid-row: 1 / 3; }
.item4 { grid-column: 3 / 4; grid-row: 1 / 2; }
.item5 { grid-column: 4 / 5; grid-row: 1 / 2; }
.item6 { grid-column: 3 / 5; grid-row: 2 / 3; }

.grid-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}


.footer-links a:active,.footer-links a:focus,.footer-links a:hover
{
  color:#3366cc;
  text-decoration:none;
}

.site-footer .social-icons a
{
  width:40px;
  height:40px;
  line-height:40px;
  margin-left:6px;
  margin-right:0;
  border-radius:100%;
  background-color:#33353d
}
.copyright-text
{
  margin:0
}
@media (max-width:991px)
{
  .site-footer [class^=col-]
  {
    margin-bottom:30px
  }
}
@media (max-width:767px)
{
  .site-footer
  {
    padding-bottom:0
  }
  .site-footer .copyright-text,.site-footer .social-icons
  {
    text-align:center
  }
}
.social-icons
{
  padding-left:0;
  margin-bottom:0;
  list-style:none
}
.social-icons li
{
  display:inline-block;
  margin-bottom:4px
}
.social-icons li.title
{
  margin-right:15px;
  text-transform:uppercase;
  color:#96a2b2;
  font-weight:700;
  font-size:13px
}
.social-icons a{
  background-color:#eceeef;
  color:#818a91;
  font-size:16px;
  display:inline-block;
  line-height:44px;
  width:44px;
  height:44px;
  text-align:center;
  margin-right:8px;
  border-radius:100%;
  -webkit-transition:all .2s linear;
  -o-transition:all .2s linear;
  transition:all .2s linear
}
.social-icons a:active,.social-icons a:focus,.social-icons a:hover
{
  color:#fff;
  background-color:#29aafe
}
.social-icons.size-sm a
{
  line-height:34px;
  height:34px;
  width:34px;
  font-size:14px
}
.social-icons a.facebook:hover
{
  background-color:#3b5998
}
.social-icons a.twitter:hover
{
  background-color:#00aced
}
.social-icons a.linkedin:hover
{
  background-color:#007bb6
}
.social-icons a.dribbble:hover
{
  background-color:#ea4c89
}


footer{
    background-color: #294D69;
    color: white;
    text-align: center;
    padding: 55px 0 30px 0;
    
}

.contenedor-footer{
    width: 70%;
    margin: auto;
}

.logo-footer img{
    padding-bottom: 40px;
    height: 60px;
}

.nav-footer{

    margin-bottom: 30px;
}

.nav-footer a{
    text-decoration: none;
    color: white;
    padding: 0 20px;
    margin: auto;
    font-size: 18px;
}


.subtitulo-footer{
    font-size: 22px;
    font-weight: 600;
    padding: 20px 0;
    border-top: 2px solid #21415a;
}




.copyright{
    background-color: #21415a;
    padding: 10px;
}

.copyright p{
    width: 70%;
    margin: auto;
    text-align: center;
    color: rgb(211, 211, 211);
    font-size: 12px;
    padding: 10px ;
}

/* ACA EMPIEZA EL RESPONSIVE */

/* Diseño responsive para tabletas */

@media (max-width: 2560px){
    #menu-btn{
        display: none;
    }
}


@media (max-width: 1440px){

    #menu-btn{
        display: none;
    }

    .fachada {
        
       
        width: 50%;
}

}


@media (max-width: 1024px){

    #menu-btn{
        display: none;
    }

    .fachada {
        position: relative;
        margin: auto;
        height: 100%;
        overflow: hidden;
        margin-bottom: 40px;
        
}

}

@media (max-width: 768px) {
    
    #menu-btn{
        display: none;
    }

    .section3 {
        padding: 40px 40px;
    }

    .contenedor-grilla {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 500px;
}

    .section4{
        display: block;
        text-align: center;
    }

    .social-icons li.title
  {
    display:block;
    margin-right:0;
    font-weight:600
  }

  .fachada {
    position: relative;
    margin: auto;
    height: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    width: 100%;
}

.modal-body{
    display: block;
}

.modal-left iframe{
    width: 100%;
    height: 300px;
}

.modal-right{
    padding: 20px;
}

.modal-content{
    margin-top: 90px;
}

}

/* Diseño responsive para móviles */
@media (max-width: 480px) {

    nav a{
        margin: auto;
        padding: 4px 0;
    }

    nav a::after {
        bottom: 0px; /* Ajusta según el espacio que desees */
    }
    
    nav a:hover::after {
        width: 100%;
    }

    #menu-btn{
        display: block;
    }


    header {
        width: 100%;
        padding: 16px 0;
        z-index: 1000;
        top: 0;
        left: 0;
        color: white;
        background-color: #294D69;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);}

        .carrusel {
            position: relative;
            width: 100%;
            height: 70vh;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-image 2s ease-in-out;
            margin: 0;
            margin: 85px 0 0 0;
        }

        .desenfocado{
            width: 300px;
        }

        .navbar{
            padding: 5px 0;
        }

        nav{
            display: none; /* Ocultar el menú inicialmente */
        flex-direction: column; /* Alinear los enlaces en columna */
        position: absolute;
        top: 70px;
        right: 0; /* Alinear a la derecha */
        width: 100%; /* Ocupa todo el ancho */
        background-color: #294D69; /* Fondo del menú desplegado */
        text-align: right; /* Alinear enlaces a la derecha */
        padding: 20px 0; /* Padding arriba y abajo en el nav */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Transición suave */
        transform: translateY(-100%); /* Mover fuera de la vista */
        opacity: 0; /* Invisible inicialmente */
        }

        nav.active {
            display: flex;
            transform: translateY(0); /* Desplazar a la posición original */
            opacity: 1; /* Hacerlo visible */
        }

        .menu-btn {
            display: block;
        }

    nav ul{
        display: block;
    }

    .logo {
        height: 45px;
    }

    .contenedor-grilla{
        display: block;
        text-align: center;
        width: 100%;
    }

    .grilla {
        padding: 0 20px;
        width: auto;
}

    .section4 {
        display: block;
        text-align: center;
        padding: 0;
        width: 100%;
}

    .fachada-textos{
        padding: 20px 50px 50px 50px;
        margin-top: 30px;
    }

    .modal-body{
        display: block;
        height: 600px;
    }

    .modal-left iframe{
        width: 100%;
        height: 300px;
    }

    .modal-right{
        padding: 20px;
    }

    .modal-content{
        height: auto;
        z-index: 1000;
    }

    .nav-footer a{
        display: block;
    }
}