*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    min-height: 100vh;
}

body{
    background-color: #121C31;
    min-height: 100vh;
}

.page-wrapper{
    max-width: 1750px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/*===============BASE.HTML=============*/

/*====================================
            BARRA DE NAVEGACIÓN
======================================*/

header{
    background-color: #121C31;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.header-logo{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 350px;
}

.nav-bar{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.nav-bar li,
.nav-bar a {
    font-family: 'Teko';
    font-weight: 400;
    font-size: 24px;
    text-decoration: none;
    list-style-type: none;
    color: white;
}

.nav-bar a:hover{
    color: #E65F2B;
    display: inline-block;
    transform: scale(1.06);
    transition: color 0.2s ease, trnasform 0.2s ease;
}

.nav-bar a:active{
    color: #C9CCD3;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem; /* Puedes hacer el icono más grande o chico aquí */
    cursor: pointer;
}

/*====================================
======================================*/

/*====================================
                FOOTER
======================================*/

footer{
    background-color: #121C31;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 30px;
}

.footer-1{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-2{
    height: 100%;
    display: flex;
    flex:0 0 200px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap:10px;
}

.footer-3{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ft-info-cont-3{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo-footer{
    width: 200px;
}

.slogan-footer{
    max-width: 180px;
    font-family: 'Teko';
    font-weight: 400;
    font-size: 16px;
    color: white;
    line-height: 0.9;
}

.footer-title{
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    color: white;
}

.footer-2 a{
    font-family: 'Inter';
    font-weight: 100;
    font-size: 14px;
    color: white;
    text-decoration: none;
}

.footer-phone{
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    color: white;
}

.footer-whatsapp{
    font-family: 'Inter';
    font-weight: 600;
    font-size: 16px;
    color: #E65F2B;
    text-decoration: none;
}

.address-footer{
    font-family: 'Inter';
    font-weight: 600;
    font-size: 14px;
    color: white;
    max-width: 350px;
    margin-top: auto;
}
/*====================================
======================================*/

/*====================================
                INDEX / HERO
======================================*/

.hero{
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
    padding: 60px 80px;

    background-image: linear-gradient(
        to right,
        rgba(18, 28, 49, 1.5),
        rgba(18, 28, 49, 0.3)
    ),
    url('../img/hero-img.jpg');
    background-size: cover;
    background-position: center;
}

.hero-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap:10px;
}

.hero-title{
    font-family: 'Teko';
    font-weight: 600;
    font-size: 48px;
    color: white;
    max-width: 500px;
    line-height: 1;
}

.hero-subtitle{
    font-family: 'Inter';
    font-weight: 400;
    font-size: 24px;
    color: white;
    max-width: 500px;
}

.hero-button{
    font-family: 'Inter';
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 10px;
    max-width: 200px;
    color: white;
    background-color: #E65F2B;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230, 95, 43, 0.4);
}

/*====================================
======================================*/

/*====================================
                INDEX / ABOUT-US
======================================*/

.about-us{
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: linear-gradient(rgba(18, 28, 49, 0.6), rgba(18, 28, 49, 0.6)) ,url('../img/about-us-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
}

.about-us-title{
    font-family: 'Teko';
    font-weight: 600;
    font-size: 38px;
    color: #ffffff;
}

.about-us-subtitle{
    font-family: 'Inter';
    font-weight: 400;
    font-size: 24px;
    color: #ffffff;
}

.text-orange{
    color: #E65F2B;
}


/*====================================
======================================*/

/*====================================
                INDEX / OUR-BRANDS
======================================*/

.our-brands{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 80px;
    background-color: #C9CCD3;
    gap:20px;
}

.top-brands{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brands-title{
    font-family: 'Teko';
    font-size: 42px;
    font-weight: 800;
    color: #121C31;
}

.brands-subtitle{
    font-family: 'Inter';
    font-weight: 800;
    font-size: 24px;
    color: #121C31;
    text-align: center;
    padding: 0 100px;
}

.brands-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    padding: 0 20px;
    max-width: 1700px;
}

.b-container{
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
    border-radius: 30px;
    background-color: #ffffff;
    width: 250px;
    height: 110px;
}

.b-container img{
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s, transform 0.3s ease;
}

.b-container:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
} 

.b-container:hover img{
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.b-logo{
    width: 200px;
    height: 80px;
    object-fit: contain;
}

/*====================================
======================================*/

/*====================================
                INDEX / SERVICES
======================================*/
.services{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;

    background-image: 
    linear-gradient(rgba(18, 28, 49, 0.6), rgba(18, 28, 49, 0.6)) ,url(../img/services-img.jpg);

    background-size: cover;
    background-position: center;
}

.top-services{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.car-png{
    width: 600px;
    height: auto;
}

.top-services-1{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.services-title{
    font-family: 'Teko';
    font-size: 42px;
    font-weight: 800;
    color: #FFFFFF;
}

.services-subtitle{
    font-family: 'Inter';
    font-weight: 800;
    font-size: 24px;
    color: #FFFFFF;
    text-align: start;
}

.service-cards{
    display: flex;
    flex-wrap: wrap;
    gap:20px;
    justify-content: center;
    align-items: center;
}

.service-card{
    width: 350px;
    height: 130px;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    
    padding: 0 20px;
    gap: 10px;
    border-radius: 30px;
    background-color: #C9CCD3;

    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px transparent solid;
}    

.service-card:hover{
    transform: translateY(-6px);
    background-color: #ffffff;
    box-shadow: 0 12px 25px 0.25;
    border-color: #E65F2B;
}

.service-card i{
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-icon{
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: invert(43%) sepia(85%) saturate(1478%) hue-rotate(345deg) brightness(94%) contrast(93%);
}

.service-info{
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    line-height: 1;
}

.service-title{
    font-family: 'Teko';
    font-weight: 600;
    font-size: 24px;
    color: #121C31;
}

.service-text{
    font-family: 'Inter';
    font-weight: 400;
    font-size: 14px;
    color: #121C31;
}

/*====================================
======================================*/

/*====================================
                INDEX / CONTACTO
======================================*/

.contacto{
    padding: 100px 100px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.p-container{
    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.info-title{
    font-family: 'Teko';
    font-weight: 800;
    font-size: 36px;
    color: #E65F2B;
    line-height: 0.6;
}

.info-subtitle{
    font-family: 'Inter';
    font-weight: 00;
    font-size: 24px;
    color: #FFFFFF;
}

.container-1{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.container-2{
    display:flex;
    flex: 1;
    min-height: 100%;
}

.container-1-1{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.container-1-2{
    padding-bottom: 20px;
    width: 100%;
}

.info-container{
    font-family: 'Inter';
    font-weight: 400;
    font-size: 20px;
    color: #FFFFFF;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap:10px;
}

.whatsapp-contacto{
    font-family: 'Inter';
    font-size: 20px;
    font-weight: 600;
    color: #E65F2B;
    text-decoration: none;
}

.map-maps{
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 15px;
    display: block;
}

/* MODAL */

/* --- Estilos para el Modal de Catálogo --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Esta clase es la que activa el JavaScript para mostrarlo */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #E65F2B;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h4 {
    font-family: 'Teko';
    font-weight: 400;
    color: #E65F2B;
    font-size: 26px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    font-family: 'Inter';
    font-weight: 200;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.btn-cerrar {
    font-family: 'Inter';
    font-weight: 200;
    background-color: #444;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cerrar:hover {
    background-color: #555;
}

.custom-btn-whatsapp {
    font-family: 'Teko';
    font-size: 18px;
    background-color: #E65F2B;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.custom-btn-whatsapp:hover {
    opacity: 0.9;
    color: #fff;
}

.map-maps{
    width: 100%;
    height: 100%;
}



/*TABLET MEDIA*/
@media screen and (min-width: 768px) and (max-width: 1024px){

    header{
        position: relative;
    }

    .footer-2{
        align-items: center;
        text-align: start;
    }

    .menu-toggle {
        display: block; 
    }

    
    .nav-bar {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        border-bottom: 2px solid #E65F2B;
        padding: 20px 0;
        text-align: center;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .nav-bar.active {
        display: flex ;
        flex-direction: column; 
    }

/*--------------SOBRE NOSOTROS-----------------*/ 
    .about-us-title{
        padding: 0 60px;
        line-height: 1;
    }

    .about-us-subtitle{
        padding: 20px 30px;
        text-align: justify;
    }


/*--------------SECCIÓN DE MARCAS---------------------*/ 
    .brands-title{
        padding: 0 30px;
        text-align: center;
        line-height: 1;
    }

    .brands-subtitle{
        padding: 20px 30px;
        text-align: justify;
    }

    .brands-container{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
        padding: 0 30px;
        justify-content: center;
    }

    .b-container{
        width: 100%;
        max-width: 300px;
    }

    .b-logo{
        max-width: 100%;
        height: auto;
    }

/*-----------------NUESTROS SERVICIOS------------------*/ 

    .services-title{
        text-align: center;
        padding: 10px 60px;
    }

    .services-subtitle{
        text-align: justify;
        text-justify: inter-word;
        padding: 0 20px 30px;
    }

    .car-png{
        display: none;
    }

    .service-cards{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
        padding: 0 10px;
        justify-content: center;
    }

    .service-card{
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service-card:last-child{
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: calc(50% -5px);
    }

/*-----------------CONTACTO------------------*/ 
    .p-container{
        flex-direction: column;
    }

    .container-1-1{
        padding-bottom: 30px;
    }
}

@media screen and (max-width: 767px){
    
    header{
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    footer{
        display: none;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.5rem;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
    }

    .nav-bar {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #1a1a1a; 
        border-bottom: 2px solid #E65F2B;
        padding: 20px 0;
        text-align: center;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        z-index: 1000;
        box-sizing: border-box;
        margin: 0;
    }

    .nav-bar li,
    .nav-bar a {
        font-size: 20px;
        width: 100%;
    }

    .nav-bar.active {
        display: flex !important; 
        flex-direction: column;
    }
    
    .hero {
        padding: 40px 20px;
        min-height: 80vh;
        text-align: center;
        align-items: center;
    }

    .hero-container {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }

    .hero-button {
        max-width: 100%;
        width: 100%;
    }

    /* 2. SECCIÓN SOBRE NOSOTROS */
    .about-us {
        padding: 60px 20px;
    }

    .about-us-title {
        font-size: 32px;
        padding: 0 10px;
        line-height: 1;
    }

    .about-us-subtitle {
        font-size: 18px;
        padding: 15px 20px;
        text-align: center;
    }

    /* 3. SECCIÓN DE MARCAS */
    .our-brands {
        padding: 60px 20px;
    }

    .brands-title {
        font-size: 34px;
        text-align: center;
        line-height: 1;
    }

    .brands-subtitle {
        font-size: 18px;
        padding: 0 10px;
        text-align: center;
    }

    .brands-container {
        display: grid;
        grid-template-columns: 1fr; /* Una sola columna para las marcas en celular */
        gap: 15px;
        padding: 0 10px;
        width: 100%;
    }

    .b-container {
        width: 100%;
        max-width: 100%;
    }

    /* 4. SECCIÓN DE SERVICIOS */
    .services {
        padding: 60px 20px;
    }

    .top-services {
        flex-direction: column;
        width: 100%;
    }

    .car-png {
        display: none; /* Ocultamos la imagen grande del carro para ganar espacio vertical */
    }

    .services-title {
        font-size: 34px;
        text-align: center;
        line-height: 1;
        padding: 0;
    }

    .services-subtitle {
        font-size: 18px;
        text-align: center;
        padding: 10px 0 20px;
    }

    .service-cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        width: 100%;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        height: auto; /* Permite que la tarjeta crezca si el texto es largo */
        padding: 15px;
    }

    /* 5. SECCIÓN DE CONTACTO Y FOOTER */
    .contacto {
        padding: 60px 20px;
    }

    .p-container {
        flex-direction: column;
        gap: 30px;
    }

    .info-title {
        font-size: 30px;
        line-height: 1;
    }

    .info-subtitle {
        font-size: 18px;
    }

    .info-container {
        font-size: 16px;
    }

    .container-1-1{
        padding-bottom: 30px;
    }
}