/* ==========================================
   RESET Y VARIABLES GLOBALES
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #420D22;
    --gold: #A27A0A;
    --gold-hover: #c4940d;
    --bg-dark: #111111;
    --bg-darker: #080808;
    --text-light: #FFFFFF;
    --text-gray: #CCCCCC;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   HEADER / BARRA DE NAVEGACIÓN
   ========================================== */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    z-index: 10;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    margin: 0; /* Corregido: eliminado margin-left fijo */
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--text-light);
}

.logo-sub {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 3px;
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
    margin: 0; /* Corregido: eliminado margin-right fijo */
    padding: 0;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

.btn-header {
    background-color: var(--gold);
    color: #111111;
    font-weight: 800;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-header:hover {
    background-color: var(--gold-hover);
}

/* ==========================================
   SECCIÓN HERO (PORTADA)
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: url('https://images.unsplash.com/photo-1560179707-f14e90ef3623?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.8) 0%, rgba(66, 13, 34, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(36px, 8vw, 85px);
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 35px;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    word-break: break-word;
    width: 100%;
}

.btn-hero {
    background-color: var(--gold);
    color: #111111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    padding: 14px 36px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-hero:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN ¿QUÉ ES AUTOMOTRIZ RANHET?
   ========================================== */
.about-section {
    background-color: var(--bg-dark);
    position: relative;
    padding: 100px 0 0 0;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.about-text {
    padding-right: 0;
}

.about-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.about-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(38px, 5vw, 55px);
    line-height: 1;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 25px;
}

.about-description {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-media-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-shape-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 110%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--burgundy) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 80% 100%, 0% 100%);
    z-index: 1;
}

.video-container {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    overflow: hidden;
    cursor: pointer;
}

.video-container video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    display: block;
}

.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background-color: rgba(17, 17, 17, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

/* ==========================================
   ESTADÍSTICAS
   ========================================== */
.stats-section {
    max-width: 1200px;
    margin: 80px auto 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    position: relative;
    z-index: 2;
    gap: 30px;
}

.stat-number {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(48px, 6vw, 70px);
    color: var(--text-light);
    line-height: 1;
    letter-spacing: 2px;
}

.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-top: 8px;
    text-transform: uppercase;
}

.bottom-accent-bar {
    width: 100%;
    height: 40px;
    background: var(--gold);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    margin-top: 40px;
}

/* ==========================================
   SECCIÓN ¿QUÉ COMPRAMOS?
   ========================================== */
.what-we-buy-section {
    position: relative;
    background-color: var(--bg-dark);
    padding: 100px 0;
    overflow: hidden;
}

.bg-slash {
    position: absolute;
    height: 220%;
    top: -60%;
    transform: rotate(-25deg);
    z-index: 1;
    opacity: 0.85;
}

.slash-left {
    left: -80px;
    width: 320px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--burgundy) 100%);
}

.slash-right {
    right: -100px;
    width: 280px;
    background: linear-gradient(180deg, var(--burgundy) 0%, var(--gold) 100%);
}

.buy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.buy-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.vehicles-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
}

.buy-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.buy-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(38px, 5vw, 55px);
    line-height: 1;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.buy-description {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.buy-list {
    list-style: none;
    margin-bottom: 35px;
}

.buy-list li {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.list-icon {
    color: var(--gold);
    font-size: 11px;
    margin-top: 3px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: #111111;
    box-shadow: 0 4px 15px rgba(162, 122, 10, 0.4);
}

/* ==========================================
   SECCIÓN TESTIMONIO Y EMPRESAS
   ========================================== */
.testimonial-section {
    background-color: var(--bg-dark);
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.testimonial-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: block;
}

.quote-box {
    position: relative;
    margin-bottom: 25px;
}

.quote-mark {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(100px, 15vw, 200px);
    color: var(--gold);
    line-height: 0.5;
    position: absolute;
    top: -20px;
    right: 0;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.testimonial-text {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: 1.5px;
    color: var(--text-light);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: block;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
}

.testimonial-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}

.testimonial-shape-bg {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--burgundy) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 80% 100%, 0% 100%);
    z-index: 1;
}

.client-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 440px;
    object-fit: cover;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
}

.brands-container {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
}

.brand-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    color: #FFFFFF;
    opacity: 0.85;
    text-transform: uppercase;
}

/* ==========================================
   SECCIÓN NUESTRO EQUIPO
   ========================================== */
.team-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.team-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.team-shape-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 105%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--burgundy) 100%);
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    z-index: 1;
}

.team-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.team-tag {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.team-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(45px, 6vw, 65px);
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-light);
    text-transform: uppercase;
}

.team-description {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.team-signature {
    font-family: 'Brush Script MT', 'Alex Brush', cursive;
    font-size: 42px;
    color: var(--gold);
    opacity: 0.9;
    transform: rotate(-4deg);
    margin-top: 10px;
}

/* ==========================================
   SECCIÓN FLOTAS EMPRESARIALES
   ========================================== */
.fleet-section {
    position: relative;
    width: 100%;
    min-height: 450px;
    background: url('https://images.unsplash.com/photo-1559297434-fae8a1916a79?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.fleet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.7) 60%, rgba(17, 17, 17, 0.4) 100%);
    z-index: 1;
}

.fleet-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.fleet-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.fleet-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 600px;
    font-weight: 500;
}

.btn-fleet {
    display: inline-block;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 12px 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(17, 17, 17, 0.4);
}

.btn-fleet:hover {
    background-color: var(--gold);
    color: #111111;
    box-shadow: 0 4px 20px rgba(162, 122, 10, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   FORMULARIO DE CONTACTO
   ========================================== */
.contact-section {
    background-color: #111111;
    color: #FFFFFF;
    padding: 80px 20px;
    border-top: 2px solid #222;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-tag {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}

.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 5vw, 40px);
    margin: 10px 0 5px;
}

.contact-subtitle {
    color: #aaa;
    font-size: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-submit {
    background-color: var(--gold);
    color: #000;
    font-weight: 800;
    padding: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

/* ==========================================
   PIE DE PÁGINA / FOOTER
   ========================================== */
.main-footer {
    background-color: var(--bg-darker);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-socials {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 25px;
}

.footer-socials a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-item {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #666666;
    font-size: 13px;
}

.footer-bottom .credits {
    font-size: 13px;
    color: #888888;
}

.footer-bottom .credits a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) translateY(-3px);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

/* ==========================================
   ADAPTABILIDAD PARA CELULARES Y TABLETS
   ========================================== */
@media (max-width: 900px) {
    
    /* Header en pantallas móviles */
    header {
        position: relative;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
        background-color: var(--bg-darker);
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero {
        padding-top: 60px;
    }

    /* Convertir todas las secciones de 2 columnas a 1 columna */
    .about-container,
    .buy-container,
    .testimonial-container,
    .team-container,
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
    }

    .bg-slash {
        display: none; /* Ocultar franjas que puedan sobresalir en móvil */
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .testimonial-container {
        display: flex;
        flex-direction: column-reverse; /* Foto primero o texto según prefieras */
    }

    .testimonial-content {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}