:root{
    --nav-color: #D9D9D9;
    --footer-color: #5B7199;

    --main-color: #345E90;
    --secondary-color: #6B809B;
    --background-color: #c7c7c7FF;
    
    
    --content-color: #FFFFFF;
    --secondary-text-color: #6d6d6d;

    --carousel-color: #122b49;
}

*{
    font-family: "Poppins", sans-serif;
    text-decoration: none;
}

/*  
-------------------------------------
         ESTRUCTURA GENERAL 
-------------------------------------
*/ 

::-webkit-scrollbar {
    display: none;
}

body{
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    align-items: center;

}

h1,h2,h3,h4,h5 {
    font-family: 'montserrat' !important;
}

div, p, a, button, li, input, select {
    font-family: "Fira Sans", sans-serif !important;
}

.nav{
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.nav a{
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 4px;
    margin-left: 30px;
    color: var(--carousel-color);
    font-size: 18px;
}

.nav a svg{
    width: 18px;
    height: 16px;
}


.main-content{
    background-color: var(--content-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*  
-------------------------------------
        Presentacion
-------------------------------------
*/ 

/* Imagenes */
.presentation-container{
    width: 95%;
    max-width: 1200px;
    height: 520px;
    margin: 20px auto;
    margin-bottom: 0;
    gap: 30px;
    display: flex;
    justify-content: space-between;
}

.image-container{
    width: 55%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.main-img-container{
    width: 100%;
    height: 410px;
    border: 1px solid var(--nav-color);
    display: flex;           
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-image{
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.other-img-container {
    width: 100%;               
    height: 100px;             
    display: flex;
    justify-content: flex-start; 
    align-items: center;       
    overflow-x: auto;          
    box-sizing: border-box;    
    padding: 5px;
}

.carousel {
    display: flex;             
    gap: 0 10px;                 
}

.carousel-btn{
    all: unset;
    margin: 0;
    padding: 0;
    cursor: pointer;

    &:hover img{
        filter: brightness(1);
    }
}

.other-image {
    width: 70px;               /* Ancho fijo para las imágenes */
    height: 70px;              /* Altura fija para las imágenes */
    pointer-events: none;
    object-fit: cover;         /* Asegura que la imagen cubra su contenedor sin distorsionarse */
    border: 1px solid var(--nav-color);
    filter: brightness(.6);
    transition: filter .4s;
}
.other-image.active{
    filter: brightness(1);
    border-color: var(--main-color);
}

/* ------------ Pantallas HD ------------ */
@media screen and (min-width: 1370px) {
    .presentation-container{
        width: 95%;
        height: 620px;      
    }

    .main-img-container{
        height: 510px;
        border: 1px solid var(--nav-color);
    }
    
    
    .other-img-container {            
        height: 120px;             
    }
    
    .carousel {           
        gap: 0 15px;                 
    }
    
    .other-image {
        width: 80px;               /* Ancho fijo para las imágenes */
        height: 80px;              /* Altura fija para las imágenes */
    }
    
}

/* ------------ Celulares ------------ */
@media screen and (max-width: 700px){
    .presentation-container{
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .image-container{
        height: 510px;
        width: 90%;
    }

}

/* --------------------------------- */
/* Texto */

.presentation-information{
    width: 55%;
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.social-media-container{
    width: 100%;
    height: 30px;
    display: flex;
    justify-items: left;
    margin-bottom: 10px;
}

.social-media-icons{
    margin-right: 10px;
    display: flex;
}


.company-name{
    width: 100%;
    height: auto;
    min-height: 30px;
    border-bottom: 2px solid var(--main-color);
}

.company-name p{
    font-size: 25px;
    margin: 0;
    margin-bottom: 2px;
    color: var(--main-color);
}

.company-contact-container{
    margin-top: 20px;
    min-height: 155px;
    width: 100%;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-data{
    display: flex;
    align-items: center;
}

.contact-data svg{
    margin-right: 10px;
}

.contact-data span{
    font-size: 15px;
    color: var(--secondary-text-color);
}

.contact-data-web{
    all: unset; 
    cursor: pointer; 
    color: #222;

    transition: all 0.2s ease-in-out;
    &:hover{
        color: var(--main-color);
    }
}

.categories-container{
    width: 100%;
    
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    align-items: end;
}

.card-categorie{
    background-color: var(--carousel-color);
    color: var(--content-color);
    padding: 2px 15px;
    height: 22px;
    font-size: 16px;
    border-radius: 7px;

}

/* HORARIOSS.. */

.hours-container{
    height: 100px;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
    padding: 12px 0;
}

.hour{
    width: 100%;
    height: 40%;
    display: flex;
}

.hour svg{
    margin-right: 5px;
}

.hour span{
    font-size: 17px;
    color: var(--secondary-text-color);
}


@media screen and (min-width: 1370px) {
    .presentation-information{
        width: 55%;
        height: 620px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      
    }
    
    
    .social-media-container{
        width: 100%;
        height: 35px;
        display: flex;
        justify-items: left;
        margin-bottom: 5px;
    }
    

    .social-media-icons{
        margin-right: 10px;
        display: flex;
    }

    .social-media-icons svg{
        width: 30px;
        height: 30px;
    }
    
    
    .company-name{
        height: auto;
        min-height: 50px;
    }
    
    .company-name p{
        font-size: 35px;
        margin: 0;
        margin-bottom: 2px;
    }
    
    .company-contact-container{
        margin-top: 20px;
        height: 320px;
        width: 100%;
        margin: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-data{
        display: flex;
        align-items: center;
    }
    
    .contact-data svg{
        margin-right: 10px;
        width: 28px;
        height: 28px;
    }
    
    .contact-data span{
        font-size: 18px;
        color: var(--secondary-text-color);
    }
    
    .categories-container{
        width: 100%;
        height: 65px;
        
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 0 auto;
        align-items: end;
    }
    
    .card-categorie{
        background-color: var(--carousel-color);
        color: var(--content-color);
        padding: 5px 18px;
        height: 27px;
        font-size: 17px;
        border-radius: 7px;
    
    }
    
    /* HORARIOSS.. */
    
    .hours-container{
        height: 115px;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hour{
        width: 100%;
        height: 40%;
        display: flex;
    }
    
    .hour svg{
        margin-right: 5px;
        width: 24px;
        height: 24px;
    }
    
    .hour span{
        font-size: 20px;
        color: var(--secondary-text-color);
    }
    
}


/* ------------ Celulares ------------ */
@media screen and (max-width: 700px){
   
    .presentation-information{
        width: 90%;
        height: fit-content;
    }
    
    .services-card-section {
        margin-top: 50px;
    }

}



/*  
-------------------------------------
       Sobre nosotros
-------------------------------------
*/ 
.card-section {
    width: 95%;
    max-width: 900px;
    min-height: 250px;
    background-color: #f5f5f5; /* gris claro */
    border: 1px solid #d1d1d1; /* borde gris más oscuro */
    margin: 10px auto 30px;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* sombra suave */
}

.description-card-section {
    display: block;
}

/* Título */
.about-title {
    margin: 50px 0 20px 0;
    color: var(--main-color); /* azul oscuro */
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.about-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--main-color); /* azul oscuro para consistencia */
    margin: 12px 0;
    border-radius: 2px;
    opacity: 0.7;
}

.about-description {
    margin: 0 auto;
    color: var(--main-color); /* azul oscuro */
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
    text-align: start;

    display: -webkit-box;      /* habilita el recorte de varias líneas */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 22;    /* máximo de líneas a mostrar */
    overflow: hidden;           /* oculta el resto */
    margin-bottom: 50px;
}

/* Responsive */
@media screen and (min-width: 1370px) {
    .card-section {
        padding: 0 40px;
    }

    .about-title {
        font-size: 27px;
    }

    .about-description {
        font-size: 18px;
    }
}


@media screen and (max-width: 700px) {
    .about-description{
        font-size: 15px;
        -webkit-line-clamp: 30;
    }
}


/*  
-------------------------------------
        Ubicacion
-------------------------------------
*/ 


.map-container {
    position: relative; /* necesario para la ubicación absoluta del flotante */
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 20px auto 70px auto;
    background: #f5f5f5; /* gris claro */
    border: 1px solid #d1d1d1; /* borde gris más oscuro */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* sombra ligera */
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

@media screen and (min-width: 1370px) {
    .map-container {
        height: 750px;
    }
}

/* Asegurar que el contenido del mapa ocupe todo el contenedor */
.map-container > iframe,
.map-container > div {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 12px;
}

@media screen and (max-width: 700px) {
    .map-container > iframe,
    .map-container > div {
        border-radius: 0px;
    }
    
    .map-container {
        border-radius: 0px;
        margin-bottom: 0px;
    }
}

/* Ubicación flotante */
.location-floating {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(52, 94, 144, 0.85);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(52, 94, 144, 0.4);
    font-weight: 600;
    font-size: 16px;
    max-width: 280px;
    pointer-events: none; /* para no interferir con el mapa */
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.location-floating:hover {
    background-color: rgba(52, 94, 144, 1);
}
/*  
-------------------------------------
        SERVICIOS
-------------------------------------
*/ 

.card-section.services-card-section {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.services-section {
    margin: 20px 0 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Título de la sección */
.services-section > h3 {
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    color: var(--main-color); /* azul oscuro */
    margin: 0px;
}

.services-section > h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--main-color); /* línea decorativa azul oscuro */
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.7;
}

.services-section:last-child {
    margin-bottom: 10px;
}

/* Carta de servicio */
.service {
    max-width: 900px;
    width: 100%;
    display: flex;
    gap: 20px;
    background: #f5f5f5; /* gris claro */
    border: 1px solid #d1d1d1; /* borde gris más oscuro */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* sombra ligera */
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Imagen */
.service__img {
    width: 230px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.service__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service:hover .service__img img {
    transform: scale(1.05); /* efecto zoom suave */
}

/* Contenido */
.service__content {
    color: var(--main-color); /* texto azul oscuro */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Título dentro de la carta */
.service__content h4 {
    font-weight: 600;
    font-size: 22px;
    margin-top: 4px;
    margin-bottom: 10px;
    position: relative;
    letter-spacing: 0.5px;
}

.service__content h4::after {
    content: '';
    width: 40px;
    height: 3px;
    position: absolute;
    bottom: -8px;
    left: 0;
    background-color: var(--main-color); /* línea azul oscuro */
    border-radius: 2px;
    opacity: 0.7;
}

/* Descripción */
.service__content p {
    font-size: 0.95em;
    color: var(--main-color);
    opacity: 0.9;
    line-height: 1.6;
    margin-top: 20px;
}

/* Alterna disposición de pares/impares */
.service:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: end;
}

.service:nth-child(odd) .service__content h4::after {
    right: 0 !important;
    left: auto;
}

/* Responsivo */
@media screen and (max-width: 700px) {

    .service {
        text-align: center !important;
        flex-direction: column !important;
        align-items: center;
        border-bottom: 1px solid #d1d1d1;
        padding: 15px;
    }

    .service__content h4::after {
        display: none;
    }
}

-------------------------------------
        OTRAS CONFIGURACIONES
-------------------------------------
*/ 

.other-img-container {
    scrollbar-width: thin;  /* Para Firefox, hace la barra de desplazamiento más delgada */
    scrollbar-color: var(--carousel-color) var(--nav-color);  /* Para Firefox: color de la parte que se mueve y el fondo */
}

.other-img-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
   
}

.other-img-container::-webkit-scrollbar-thumb {
    background-color: var(--nav-color);
    border-radius: 10px;
}

.other-img-container::-webkit-scrollbar-track {
    background: var(--nav-color);
}