@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Oswald:wght@400;600;700&display=swap');

/* Custom Properties*/
:root{
    --padding-container: 100px 0;
    --color-title: #ffffff;
    --color-body-bg: #1a1a1a;
    --color-element-bg: #222222;
    --color-background-dark: #111111;
    --color-text: #f2f2f2;
    --normal-yellow: #FFC107;
    --hover-yellow: #FFA000;
}

html {
    scroll-behavior: smooth;
}

.about_paragraph, .why-description {
    text-align: justify;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-body-bg);
    color: var(--color-text);
}

.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);

}
/*hero es el primer bloque de la pagina*/
.hero{
    width: 100%;
    height: 100vh;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #ffffff;
    overflow: hidden;
    background-color: var(--color-body-bg); /* Color base del hero */
}


.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Nuevo: Degradados para un efecto de lujo/profundidad */
       background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

/* Pseudo-elemento ::after para la capa oscura sobre el efecto */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa oscura. Ajusta la opacidad (0.5) si lo deseas */
    z-index: 2; /* Asegura que el overlay esté sobre el efecto pero debajo del contenido principal */
    background-attachment: fixed;
}


/* ESTILOS DE ESCRITORIO PARA EL HERO (contenido, texto y carrusel) */
.hero_content_wrapper {
    position: relative;
    z-index: 3; /* Asegura que el contenido principal esté por encima de todo */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    padding-top: 100px;
    padding-bottom: var(--padding-container);
    box-sizing: border-box;
    width: 100%;
}

.hero_text-area {
    flex-basis: 45%;
    text-align: left;
    color: #ffffff;
    padding-right: 20px;
}

.hero_title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--normal-yellow);
    text-transform: none;
    letter-spacing: 1.5px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 193, 7, 0.05);
    margin-bottom: 35px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero_paragraph {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 0.4s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero_button {
    background-color: transparent;
    color: var(--normal-yellow);
    border: 2px solid var(--normal-yellow);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: inset 0 0 0 0 rgba(255, 193, 7, 0.4),
                0 0 10px rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    text-decoration: none; 
}

.hero_button:hover {
    background-color: var(--normal-yellow);
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4),
                0 0 30px rgba(255, 193, 7, 0.2);
    text-decoration: none;
}



.hero_car-display {
    flex-basis: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    padding-left: 20px;
    margin-top: -50px;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.hero_car-thumbnails {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 193, 7, 0.08);
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 10;
}


.hero_car-thumbnails img {
    width: 75px;
    height: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}


.hero_car-thumbnails img.active {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid var(--normal-yellow);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
    background-color: rgba(255, 193, 7, 0.05);
}



.hero_main-carousel {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 20px;
    z-index: 5;
}

.hero_main-carousel img {
    position: absolute;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero_main-carousel img.active {
    opacity: 1;
}

/* Recuadro de Contacto en la portada (DESKTOP) */
.hero_contact-box {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 193, 7, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    z-index: 10;
}

.hero_contact-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.05);
    pointer-events: none;
}


.hero_contact-box .contact-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 10px 20px;
    border-left: 2px solid rgba(255, 193, 7, 0.05);
}

.hero_contact-box .contact-item:first-child {
    border-left: none;
}


.hero_contact-box .contact-item p {
    margin: 5px 0;
    font-size: 1.2rem;
    color: var(--color-text);
}

.hero_contact-box .contact-item a {
    color: var(--normal-yellow);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero_contact-box .contact-item a:hover {
    color: var(--hover-yellow);
    text-decoration: underline;
}


.hero_contact-box .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.hero_contact-box .social-icon {
    width: 30px;
    height: 30px;
    filter: invert(100%);
    transition: transform 0.2s ease, filter 0.3s ease;
}

.hero_contact-box .social-icon:hover {
    transform: scale(1.2);
    filter: invert(81%) sepia(100%) saturate(2000%) hue-rotate(0deg); /* efecto dorado */
}



/* Navegador */
.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
}

.nav_logo {
    flex-shrink: 0;
}

/* En estilos.css (fuera de media queries) */

.nav_title {
    font-family: 'Montserrat', sans-serif; /* Usamos Montserrat */
    font-weight: 700; /* Lo hacemos negrita extrema */
    color: var(--color-text);
    font-size: 1.4rem;
}
.nav_link {
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav_items {
    list-style: none;
}

.nav_links {
    color: #fff;
    text-decoration: none;
}

.nav_menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav_img {
    display: block;
    width: 30px;
    filter: invert(20%);
}


.down-arrow {
    display: none;
}
.down-arrow img {
    width: 65px;
    height: auto;
    filter: invert(100%);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/*Que servicios ofrecemos?*/
.about{
    text-align: center;
    background-color: var(--color-body-bg); 
    color: var(--color-text);
    padding: var(--padding-container);
}
.subtitle{
    font-family: 'Oswald', sans-serif;
    color: var(--normal-yellow); 
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.car_collections_section {
    background-color: var(--color-body-bg); 
    padding: var(--padding-container);
    text-align: center;
}

.collections_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.collection_item {
    background-color: var(--color-element-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.collection_item img {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.collection_name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--normal-yellow);
    margin: 0;
}


.services_main {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.service_item {
    display: flex;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-element-bg);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transition: background-color 0.3s ease;
    margin-bottom: 0;
}

.services_main .service_item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services_main .service_item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.services_main .service_item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: none;
}


.service_item:hover {
    transform: translateY(0); 
    background-color: #2a2a2a; 
    box-shadow: none;
}

.service_image-container {
    flex-basis: 50%;
    flex-shrink: 0;
    width: 100%;
    height: 350px; 
    max-width: 550px;
    overflow: hidden;
    border-radius: 8px; 
}

.service_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.service_text-content {
    flex-basis: 50%;
    flex-grow: 1;
    text-align: center; 
    padding: 30px; 
}

.service_title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--normal-yellow); 
    margin-bottom: 15px;
    font-weight: 600;
}

.service_paragraph {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
    text-align: center;
    font-weight: 300;
}

.service_item:nth-child(even) {
    flex-direction: row-reverse;
}
.service_item:nth-child(even) .service_text-content {
    text-align: center; 
}


/* SECCIÓN DE CONTACTO (SCHEDULE) */
.schedule {
    background-color: var(--color-body-bg);
    padding: 20px 0;
    text-align: center;
}


.schedule .subtitle {
    font-family: 'Oswald', sans-serif;
    color: var(--normal-yellow);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.contact_details_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 0px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 50px;
}

.contact_detail_item {
    background-color: var(--color-element-bg);
    border-radius: 10px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact_detail_item:hover {
    transform: translateY(-8px);
    background-color: #2a2a2a;
}

.contact_detail_icon {
    width: 60px;
    height: 60px;
    filter: invert(100%);
    margin-bottom: 15px;
}

.contact_detail_item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--normal-yellow);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact_detail_item .contact_link {
    font-size: 1.2rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact_detail_item .contact_link:hover {
    color: var(--hover-yellow);
    text-decoration: underline;
}


.why-choose-us {
    padding: 60px 0;
    background-color: var(--color-body-bg);
    color: var(--color-text);
}
.why-choose-us .subtitle,
.why-item .why_title,
.why-item .why-description {
    color: var(--color-title);
}


.why-choose-us .subtitle {
    font-family: 'Oswald', sans-serif;
    color: var(--normal-yellow);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-item {
    background-color: var(--color-element-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid var(--normal-yellow);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    background-color: #2a2a2a;
}

.why-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    filter: invert(100%);
}

.why_title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--normal-yellow);
}

.why-description {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: 5px;
    line-height: 1.5;
}


.footer {
    background-color: var(--color-background-dark);
    text-align: center;
    padding: 15px 0;
    color: var(--color-text);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
} 



/* ==================================== */
/* MEDIA QUERIES (MOBILE)      */
/* ==================================== */


/* Pantallas hasta 992px (Tablets y Móviles Grandes) */
@media (max-width: 992px) {
    .hero {
        /* AJUSTE CRÍTICO: Permitimos que el contenido defina la altura */
        height: auto; 
        min-height: auto;
        position: static; 
    }
    
    /* === NAVEGACIÓN === */
    .nav_link{
        display: none;
    }
    .nav_menu{
        display: block; 
    }
    .nav {
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }


    /* === HERO / PORTADA: CONTENEDOR PRINCIPAL === */
    .hero_content_wrapper {
        flex-direction: column; 
        text-align: center;
        padding-top: 80px;
        /* Aumentamos el padding inferior para espacio antes de la caja de contacto */
        padding-bottom: 50px; 
        display: flex;
        position: static; 
    }

    /* 1. Área de Texto (Título, Párrafo y BOTÓN) */
    .hero_text-area {
        flex-basis: auto;
        padding-right: 0;
        margin-bottom: 40px;
        order: 1; 
        text-align: center; 
    }
    .hero_title, .hero_paragraph {
        text-align: center;
    }
    .hero_title {
        font-size: 2.8rem;
    }
    .hero_paragraph {
        font-size: 1.3rem;
    }

    /* 2. Contenedor del Carrusel (Carrusel principal y miniaturas) */
    .hero_car-display {
        flex-basis: auto;
        padding-left: 0;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: center;
        margin-top: -20px; 
        order: 2; 
        
        display: flex; 
        flex-direction: column; 
    }

    /* 2a. Carrusel Grande */
    .hero_main-carousel {
        height: 400px; 
        margin-top: 20px;
        margin-bottom: 10px; 
        order: 1; 
    }

    /* 2b. Miniaturas del Carrusel */
    .hero_car-thumbnails {
        position: relative; 
        top: auto;
        right: auto;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-bottom: 0;
        padding: 10px; 
        order: 2; 
    }
    .hero_car-thumbnails img {
        width: 50px; 
    }

    /* 3. Caja de Contacto Flotante */
    .hero_contact-box {
        position: relative; 
        bottom: auto;
        left: auto;
        transform: none;
        /* AJUSTE: Quitamos el margin superior que se estaba usando antes */
        margin: 0 auto 40px auto; 
        width: 90%;
        padding: 20px 20px;
        flex-direction: column;
        gap: 20px;
        background: var(--color-element-bg); 
        z-index: 2; 
    }
    .hero_contact-box .contact-item {
        width: 100%;
        margin-bottom: 0;
        border-left: none;
        text-align: center;
        padding: 0;
    }
    .hero_contact-box .contact-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 193, 7, 0.05);
        padding-bottom: 15px;
    }
    .hero_contact-box .contact-item p,
    .hero_contact-box .contact-item a {
        font-size: 1rem;
    }
    .hero_contact-box .social-icons {
        margin-top: 0;
    }


    /* === SERVICIOS === */
    .service_item {
        flex-direction: column;
        text-align: center;
        border-radius: 0 !important; 
        padding: 20px;
    }
    .service_item:nth-child(even) {
        flex-direction: column;
    }
    .service_text-content {
        text-align: center;
        padding: 20px 0;
    }
    .service_image-container {
        width: 80%;
        max-width: none;
        margin-bottom: 20px;
        height: 350px;
    }
    .service_title {
        font-size: 1.8rem;
    }
    .service_paragraph {
        font-size: 1rem;
    }
    .services_main .service_item:first-child {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .services_main .service_item:last-child {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}


/* Pantallas hasta 768px (Móviles Pequeños) */
@media (max-width: 768px) {
    .hero {
        /* CRÍTICO: Aseguramos que el Hero use auto/min-height: auto aquí también */
        height: auto;
        min-height: auto; 
    }

    /* === NAVEGACIÓN === */
    .nav_link--menu{
        position: fixed;
        background-color: var(--color-body-bg);
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 101; 
        visibility: hidden; 
        opacity: 0;
        pointer-events: none;
        transition: visibility .7s, opacity .7s;
        padding-top: 0px;
        padding-bottom: 140px;
    }
    

    /* Clase de activación: */
    .nav_link--show{
        visibility: visible;
        opacity: 1 ;
        pointer-events: unset;
    }
    
    .nav_items {
        margin: 45px 0;
    }

    /* === HERO === */
    .hero_main-carousel {
        height: 400px; 
    }

    /* === SERVICIOS (Ajuste fino de móvil) === */
    .services_main {
        gap: 0;
    }
    .service_item {
        padding: 20px;
    }
    .service_image-container {
        width: 90%;
        height: 300px;
    }
    .service_title {
        font-size: 1.6rem;
    }
    .service_paragraph {
        font-size: 0.95rem;
    }

    /* === CONTACTO (SCHEDULE) */
    .schedule .subtitle {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .contact_details_grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
        padding-bottom: 30px;
    }
    .contact_detail_item {
        padding: 25px 15px;
    }
    .contact_detail_icon {
        width: 50px;
        height: 50px;
    }
    .contact_detail_item h3 {
        font-size: 1.4rem;
    }
    .contact_detail_item .contact_link {
        font-size: 1.1rem;
    }

    /* === WHY CHOOSE US === */
    .why-list {
        gap: 1rem;
    }
    .why-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
    }
    .why-icon {
        margin-bottom: 10px;
    }
}