/* Variables y Reset */
:root {
    --main-red: #b91d1d;
    --dark-red: #8a1212;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Header */
header {
    background: var(--black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-image: url('assets/imgs/hero1.jpg'); /* CAMBIAR POR IMAGEN REAL */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado por defecto */
    text-align: left;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(185, 29, 29, 0.8), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 80%;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.hero-content span {
    font-weight: 900;
    font-size: 4rem;
}


/* media query para esto .hero-content h1*/
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content span {
        font-size: 2.5rem;
    }
}
/* About Section */
.about {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text { flex: 1; }
.about-image { flex: 1; text-align: center; }

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    /* //invertirmos el color */
    filter: invert(1);
}

.mission-vision {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.mv-box h3 { color: var(--main-red); }

/* Red Banner */
.red-banner {
    background-image: url('assets/imgs/hero2.jpg');
    background-size: cover;
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}
.red-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(185, 29, 29, 0.4); /* Capa roja */
}
.red-banner h2 { position: relative; z-index: 2; font-size: 2.5rem; }

/* Productos */
.brands { padding: 60px 20px; text-align: center; }
.brand-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}
.brand-item { display: flex; flex-direction: column; align-items: center; }
.brand-item img { max-height: 300px; width: auto; }
/* media query para brand-item */
@media (max-width: 768px) {
    .brand-logos {
        flex-direction: column;
        gap: 30px;
    }
    .brand-item img {
        max-height: 200px;
    }
}
.btn-red {
    background: var(--main-red);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    border-radius: 4px;
}

/* Slider */
.car-slider { background: #f9f9f9; padding: 40px 0; text-align: center; }
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black);
}

/* Exclusive Kaizen */
.exclusive-brand {
    background: #111;
    color: var(--white);
    padding: 80px 0;
    background-image: url('assets/imgs/Fondo-Kaizen.jpg');
    background-size: cover;
    background-position: center;
}
.exclusive-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kaizen-circle {
    width: 200px;
    height: 200px;
    border: 10px solid var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.kaizen-circle h1 { font-size: 5rem; margin: 0; line-height: 1; }

/* Locations Grid */
.sales-reps { padding: 60px 20px; }
.sales-reps h2 span { border-bottom: 3px solid var(--main-red); }

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 40px;
}
.loc-card { position: relative; }
.loc-card img { width: 100%; display: block; }
.loc-card .tag {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--main-red);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}

/* Contact Form */
.join-team {
    position: relative;
    background-image: url('https://placehold.co/1920x800/333/999?text=Fondo+Motor+Grande');
    background-size: cover;
    padding: 80px 0;
    color: var(--white);
}
.join-team .form-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(185, 29, 29, 0.9), rgba(0,0,0,0.7));
}
.form-content { position: relative; z-index: 2; max-width: 600px; }

form { display: flex; flex-direction: column; gap: 15px; background: rgba(255,255,255,0.9); padding: 30px; border-radius: 8px; }
.form-group { display: flex; gap: 15px; }
input, textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px;
}
textarea { height: 100px; }
.btn-submit {
    background: var(--main-red);
    color: var(--white);
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Footer */
/* ========================
   FOOTER PROFESIONAL
   ======================== */

.main-footer {
    background-color: #1a1a1a; /* Fondo Oscuro */
    color: #b0b0b0; /* Texto gris suave para no cansar la vista */
    padding-top: 70px;
    position: relative;
    border-top: 5px solid var(--main-red); /* Línea roja superior */
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Para que no se aplaste en móviles */
}

/* Columna 1: Logo y Redes */
.footer-logo .logo-text {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-logo span {
    color: var(--main-red);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--main-red);
    transform: translateY(-3px);
}

/* Títulos de Columnas */
.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--main-red); /* Subrayado rojo pequeño */
}

/* Columna 2: Enlaces */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--main-red);
    padding-left: 5px; /* Efecto de movimiento a la derecha */
}

/* Columna 3: Contacto */
.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-info-list i {
    color: var(--main-red);
    margin-top: 5px;
    font-size: 1.1rem;
}

/* Barra Inferior (Copyright) */
.footer-bottom {
    background-color: #111; /* Un tono más oscuro */
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about { flex-direction: column; }
    .exclusive-content { flex-direction: column; text-align: center; gap: 30px; }
    .form-group { flex-direction: column; }
}

h3{
    font-weight: 800;
    margin-bottom: 10px;
}

p{
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

.logo img{
    width: 100px;
    height: auto;
}

/* Estilos para Objetivos */
.objectives {
    padding: 40px 20px;
    background-color: #fff;
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list li i {
    color: var(--main-red); /* Ícono de check rojo */
    margin-right: 15px;
    margin-top: 4px;
    font-size: 1.3rem;
}

/* Estilos para Políticas */
.policies {
    padding: 60px 20px;
    background-color: #f8f8f8; /* Fondo gris claro para diferenciar sección */
    border-top: 1px solid #ddd;
}

.policies-box {
    background: #fff;
    padding: 40px;
    border-left: 5px solid var(--main-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 5px;
}

.policy-list {
    margin-left: 20px;
}

.policy-list > li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

.policy-list strong {
    color: var(--black);
}

/* Sublistas (Tipo A, B, C y punto 18) */
.sub-list {
    list-style-type: disc;
    margin-top: 10px;
    margin-left: 20px;
    background: #fff0f0; /* Fondo rojizo muy tenue para destacar subgrupos */
    padding: 15px 15px 15px 30px;
    border-radius: 4px;
}

.sub-list li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .policies-box {
        padding: 20px;
    }
}

.exclusive-logo{
    text-align: center;
}

.exclusive-logo img{
    width: 150px;
    height: auto;
}
.slide-image img{
    width: 600px;
    height: auto;
}

/* Sección Marcas Asiáticas */
.asian-brands {
    padding: 80px 20px;
    background-color: #f4f4f4; /* Fondo gris claro para contraste */
    text-align: center;
}

.asian-brands h2 {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 50px;
}

.asian-brands h2 span {
    font-weight: 900; /* Texto muy grueso */
    font-size: 2.5rem;
    display: block; /* Fuerza el salto de línea */
}

.asian-brands h2 .highlight {
    color: var(--main-red); /* Solo la última línea en rojo */
    text-transform: uppercase;
}

/* La Grilla de Logos */
.brands-grid {
    display: grid;
    /* Esto crea columnas automáticas de mínimo 150px de ancho */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 20px; /* Espacio entre cuadros */
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px; /* Altura fija para uniformidad */
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Asegura que el logo no se deforme */
    filter: grayscale(100%); /* Efecto: Logos en blanco y negro por defecto */
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse (Hover) */
.brand-card:hover {
    transform: translateY(-5px); /* Se levanta un poco */
    box-shadow: 0 10px 20px rgba(185, 29, 29, 0.15); /* Sombra roja suave */
    border-bottom: 3px solid var(--main-red);
}

.brand-card:hover img {
    filter: grayscale(0%); /* Vuelve a color original */
    opacity: 1;
}

/* Ajuste Móvil para el Título */
@media (max-width: 768px) {
    .asian-brands h2 { font-size: 1.5rem; }
    .asian-brands h2 span { font-size: 1.8rem; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); } /* 3 columnas en tablet */
}

@media (max-width: 480px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columnas en celular */
}

/* Sección de Contacto Renovada */
.contact-section {
    padding: 60px 20px;
    background-color: #fff;
    color: #333;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

/* Columna Izquierda */
.contact-info {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #000;
}

.red-line {
    width: 100px;
    height: 4px;
    background-color: var(--main-red);
    margin-bottom: 30px;
}

.icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.icon-title i {
    font-size: 1.2rem;
    color: #000; /* Iconos negros según imagen */
}

.icon-title h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.info-item p {
    margin-left: 28px; /* Indentación para alinearse con el título */
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.map-container {
    margin: 20px 0 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Columna Derecha (Formulario) */
.contact-form-container {
    flex: 1.2; /* Un poco más ancho que la info */
    min-width: 300px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
    text-transform: uppercase;
}

/* Inputs redondeados estilo imagen */
.input-group input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px; /* Borde de pastilla */
    outline: none;
    transition: border 0.3s;
    background: #fff;
}

.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 20px; /* Borde redondeado suave */
    height: 150px;
    resize: none;
    outline: none;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--main-red);
}

.full-width {
    margin-bottom: 20px;
}

/* Botón Rojo */
.form-footer {
    text-align: center; /* Centrar botón */
    margin-bottom: 30px;
}

.btn-submit-red {
    background-color: var(--main-red);
    color: white;
    border: none;
    padding: 12px 50px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.btn-submit-red:hover {
    background-color: var(--dark-red);
}

/* Síguenos */
.social-follow {
    text-align: center;
}

.social-follow h3 {
    font-weight: 800;
    margin-bottom: 10px;
}

.social-icon i {
    font-size: 2.5rem; /* Icono grande */
    color: var(--main-red); /* Color Instagram base rojo/gradiente si prefieres */
    transition: transform 0.2s;
}

.social-icon:hover i {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================
   SLIDER RESPONSIVO MEJORADO
   ======================== */
.car-slider { 
    background: #f9f9f9; 
    padding: 40px 20px; 
    text-align: center; 
}

.car-slider h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.slider-container {
    position: relative; /* Necesario para posicionar las flechas dentro si hace falta */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px; /* Ancho máximo para que no se estire demasiado en PC */
    margin: 0 auto;
}

.slide-image {
    width: 100%; /* El contenedor de la imagen ocupa todo el espacio disponible */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide-image img {
    width: 100%;
    height: auto; /* Mantiene la proporción */
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limite de altura para que no sea gigante */
}

/* Estilo Base de Botones (PC) */
.prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Evita que los botones se aplasten */
}

.prev-btn:hover, .next-btn:hover {
    background: var(--main-red);
    color: var(--white);
}

/* ========================
   AJUSTE PARA MÓVILES (La magia ocurre aquí)
   ======================== */
@media (max-width: 768px) {
    .slider-container {
        display: block; /* Cambiamos Flex a Block para manejar posiciones absolutas */
    }

    .slide-image {
        width: 100%;
    }

    /* Las flechas flotan sobre la imagen */
    .prev-btn, .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%); /* Centrado vertical exacto */
        background: rgba(255, 255, 255, 0.8); /* Fondo blanco semitransparente */
        color: var(--main-red);
        z-index: 10;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .prev-btn {
        left: 10px; /* Pegado a la izquierda */
    }

    .next-btn {
        right: 10px; /* Pegado a la derecha */
    }
}

/* ========================
   HEADER RESPONSIVE
   ======================== */
header {
    background: var(--black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--main-red); /* Un toque estético extra */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Importante para el posicionamiento del menú móvil */
}

.logo img {
    height: 40px; /* Asegura que el logo no sea gigante */
    width: auto;
}

/* Estilos del Menú (Desktop por defecto) */
.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: var(--main-red);
}

/* Botón Hamburguesa (Oculto en PC) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========================
   MEDIA QUERY (MÓVIL)
   ======================== */
@media (max-width: 768px) {
    
    /* Mostrar el botón hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* Ocultar el menú normal y darle estilo desplegable */
    .nav-menu {
        position: absolute;
        top: 100%; /* Justo debajo del header */
        left: 0;
        width: 100%;
        background-color: var(--black);
        max-height: 0; /* Oculto por defecto (altura 0) */
        overflow: hidden; /* Esconde el contenido si height es 0 */
        transition: max-height 0.4s ease-in-out; /* Animación suave */
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    /* Cuando añadimos la clase 'active' con JS, el menú se abre */
    .nav-menu.active {
        max-height: 300px; /* Altura suficiente para mostrar los links */
    }

    .nav-menu ul {
        flex-direction: column; /* Lista vertical */
        text-align: center;
        padding: 20px 0;
    }

    .nav-menu ul li {
        margin: 15px 0;
    }

    .nav-menu ul li a {
        margin-left: 0; /* Quitar margen izquierdo de PC */
        font-size: 1.1rem;
        display: block; /* Para que sea más fácil de tocar con el dedo */
    }
}