/* Estilos CSS */

body {
    font-family: "Montserrat", sans-serif;
}

section {
    position: relative;
    z-index: 10;
}

footer {
    position: relative;
    z-index: 10;
}

.navbar-toggler-icon {
    background-image: url('../images/botonblanco.png');
}

.navbar {
    background: #214f80;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); 
}

.navbar-nav .nav-link {
    display: flex;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-size: 16px; /* Ajusta el tamaño del texto */
    color: #ffffff; /* Color del texto */
    padding: 10px 15px; /* Espaciado */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #214f80; /* Color del texto al pasar el mouse */
    background-color: #ffffff; /* Fondo del enlace al pasar el mouse */
    border-radius: 4px; /* Esquinas redondeadas */
}

.navbar-brand img{
    max-height: 80px;
    padding-left: 50px;
    padding: 10px;
    transition: max-height 0.3s;
}

.scrolled .navbar {
    background-color: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.scrolled .navbar-nav .nav-link {
    color: #214f80;
}

.scrolled .navbar-nav .nav-link:hover {
    color: #ffffff;
    background-color: #214f80;
}

.scrolled .navbar-brand img {
    content: url("../images/icono.png");
    max-height: 60px;
    padding: 0px;
}

.hero-sticky {
    position: sticky; 
    top: 0; 
    z-index: 1;
}

.nos-sticky {
    position: sticky;
    z-index: 1;
}

.navIni{
    background: #214f80;
    box-shadow: none;
}

.heroIni {
    margin-top: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(33,79,128);
    background: linear-gradient(180deg, rgba(33,79,128,1) 50%, rgba(255,255,255,1) 50%);
    overflow: hidden;
}

.hero-video {
    width: 100%;
    max-width: 1300px;
    padding: 20px 20px 116px 20px;
    box-sizing: border-box;
}

.hero-video video {
    width: 100%;
    aspect-ratio: 16 / 9; 
    border: none; 
    object-fit: cover;
}

.hero {
    margin-top: 96px;
    
}

.hero img {
    width: 100%;
    height: 600px;
    object-fit: cover; 
}

.projectos {
    background: #ffffff;
}

.text-custom{
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #214f80;
}

.projects.container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.projects .project {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    height: 500px; /* Altura fija para todos los proyectos */
}

.projects .project img {
    width: 100%;
    height: 100%;
    object-fit: fill; 
    transition: transform 0.6s ease; /* Transición suave para el zoom */
    transform-origin: 50% 0; /* Origen del zoom en el centro horizontal y parte superior vertical */
}

.projects .terra img {
    width: 100%;
    height: 100%;
    object-fit: fill; 
    transition: transform 0.6s ease; /* Transición suave para el zoom */
    transform-origin: 50% 100%; /* Origen del zoom en el centro horizontal y parte superior vertical */
}

.projects .project:hover img {
    transform: scale(1.2); /* Zoom en hover */
}

.projects .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro con opacidad */
    color: white;
    display: flex;
    justify-content: center;
    align-items: end;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    padding: 20px;
}

.projects .terra .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro con opacidad */
    color: white;
    display: flex;
    justify-content: center;
    align-items: start;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    padding: 20px;
}

.projects .project:hover .overlay {
    opacity: 0.8;
}

.projects .text {
    font-size: 80px;
    font-weight: bold;
    padding-bottom: 50px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 800px;
    border: none;
}

.bg-custom {
    background-color: #214f80; /* Color de fondo personalizado */
}

.bg-plano {
    background: #ffffff;
}
.hr-opacity {
    opacity: 1;
}

.bannertext {
    background-image: url("bannerparatexto.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.banner {
    font-family: "Montserrat", sans-serif;
}

.btn-light {
    background-color: #f8f9fa; /* Color de fondo para el botón */
    color: #000; /* Color del ícono */
    border: none; /* Elimina el borde por defecto */
}

.btn-light:hover {
    background-color: #e2e6ea; /* Color de fondo al pasar el ratón */
}

.btn-light .fa-arrow-up {
    font-size: 30px; /* Tamaño del ícono */
}

.rounded-circle {
    width: 50px; /* Ancho del botón */
    height: 50px; /* Altura del botón */
    display: flex;
    align-items: center;
    justify-content: center;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra alrededor del botón */
}

.position-relative {
    position: relative;
}

.overlay-text {
    
    position: absolute;
    top: 30%;
    left: 60%;
    color: white; /* Cambia el color según la necesidad */
    background-color: rgba(107, 107, 107, 0.5); /* Fondo semitransparente para mejor legibilidad */
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    animation: fadeInAnimation 5s forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(-20px); /* Ajusta el desplazamiento inicial hacia arriba */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Posición final */
    }
}

.tecto-plano.overlay-text h1,
.tecto-plano.overlay-text p {
    font-family: 'Lobster', sans-serif;
}

.iconServicio {
    width: 70px;
    height: 70px;
}
  
figcaption {
    font-family: "Montserrat", sans-serif;
}

.proximamente {
    position: absolute;
    left: 12.5%;
    top: 0;
    margin: auto;
    height: 70px;
}


.formsection {
    padding-top: 50px;
    background: rgb(33,79,128);
    background: linear-gradient(0deg, rgba(33,79,128,1) 50%, rgba(255,255,255,1) 50%);   
}

.formdiv {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

.text-form {
    font-family: "Montserrat", sans-serif;
    font-size:medium ;
    color: #00000070;
}

.btn-form {
    padding: 10px 6ch;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 5px;
    letter-spacing: 3px;
    background-color: #214f80;
    box-shadow: #214f80 0 10px 20px -10px;
    transition: all .5s ease;
}

.btn-form:hover {
    background-color: #ffffff;
    color: #214f80;
    border: 1px solid #214f80;
}

.btn-form:active {
    box-shadow: #214f80 0px 0px 0px 0px;
    transform: translateY(15px);
    transition: 100ms;
}

.text-contacto {
    font-family: "Montserrat", sans-serif; 
    font-size:  16px; 
    color: #ffffff;
}

.text-contacto a:hover, 
.text-contacto i:hover, 
.text-contacto img:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7); 
    transform: scale(1.05); 
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.containergalery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image img {
    width: auto;
    max-width: 800px;
    height: auto;
    max-height: 500px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.gallery {
    display: flex;
    justify-content: center;
}

.thumbnail {
    cursor: pointer;
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.thumbnail img {
    width: 150px;
    height: 115px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.quienes-somos {
    width: 100%;
    height: 400px;
    position: relative;
    background-image: url("../images/terraG2bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.quienes-somos .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #214f80e6 ;
}


.text-somos {
    font-family: "Montserrat", sans-serif;
    font-size:  20px;
    color: #ffffff;
}

.bordehero {
    background-image: url("../images/bordehero.png");
    background-size: 100% 100%;
    position: absolute; 
    height: 200px;
    top: -200px; 
    left: 0;
    width: 100%;
    z-index: 10; 
}

.photo-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
}

.collage-item {
    overflow: hidden;
    position: relative;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collage-item img:hover {
    transform: scale(1.1);
}

.collage-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.collage-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.collage-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
}

.collage-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.collage-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.text-over-image-container {
    position: relative;
    display: inline-block;
}

.text-over-image {
    position: absolute;
    top: 10px; /* Ajusta la posición vertical del texto */
    left: 50%;
    transform: translateX(-50%);
    font-family:"Montserrat", sans-serif;;
    color:  #214f80; /* Ajusta el color del texto según tu diseño */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10; /* Asegura que el texto esté sobre la imagen */
}

.img-modal {
    max-width: 80%;
    height: 700px;
    width: 700px;
    border-radius: 20px;
    border: 3px solid #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.img-modal:hover {
    cursor: pointer;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
}
  
  .carousel-item img {
    width: 100%;
    height: 700px;
    object-fit: cover; /* Ajusta el contenido para que ocupe todo el espacio del contenedor */
}
  
.carousel-item video {
    width: 100%;
    height: 700px;
    object-fit: cover; 
}
  
.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}
  
  
.logo-des {
    width: 200px;
    height: 250px;
    max-width: 100%;
    max-height: 100%;
    margin: 20px;
} 
    
.logo-desm {
    width: 250px;
    height: 200px;
    max-width: 100%;
    padding: 10px;
}


/* Media Queries */

@media (max-width: 991px) {
    .hero-video {
        padding: 0;
        height: 100%;
    }
    .hero-video video {
        display: block;
    }   
}

@media (max-width: 768px) {
    .projects .project {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 80%;
    }

    .close {
        font-size: 30px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
    }

    .close {
        font-size: 25px;
        right: 10px;
    }
}

@media (min-width: 992px) {
    .banner {
        margin-inline: 100px;
        padding-block: 50px;
    }
}

@media (max-width: 1300px) {
    .hero-video video {
        height: auto !important;
    }
}

@media (max-width: 1300px) {
    .main-image img {
        width: 100%;
    }

    .thumbnail img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 500px) {
    .thumbnail img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .photo-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .collage-item:nth-child(1),
    .collage-item:nth-child(2),
    .collage-item:nth-child(3),
    .collage-item:nth-child(4),
    .collage-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 1360px) {
    .row.g-0 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0 auto;
    }

    .photo-collage {
        margin-top: 20px; /* Espacio entre el plano y la galería */
    }
}

@media (max-width: 768px) {
    .img-modal {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        font-size: 0.9rem;
        bottom: 10px;
    }
    .carousel-item img
    {
        height: 400px;
        object-fit: fill;
    }
    .carousel-item .margC,
    .carousel-item video
    {
        height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
    font-size: 0.8rem;
    }
}
    
@media (max-width: 1500px) {
    .logo-des {
        width: 150px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .logo-des {
        width: 100px;
        height: 150px;
    }
}
    
@media (max-width: 1500px) {
    .logo-desm {
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 1650px) {
    .main-image img {
        max-width: 600px;
    }
    .thumbnail img {
        width: 112px !important;
    }
}

@media (max-width: 630px) {
    .thumbnail img {
        width: 60px !important;
    }
}

