/* ==========================================================================
1. VARIABLES GLOBALES, FUENTES Y RESET
========================================================================== */
:root {
    --primary-red: #cc1818;
    --primary-yellow: #ffcc00;
    --dark-bg: #111111;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --light-bg: #f4f6f8;
    --text-main: #222222;
    --text-muted: #666666;
    --text-light: #ffffff;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    padding-top: 90px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.brand-link:hover {
    cursor: pointer;
}

/* ==========================================================================
2. CABECERA PERSISTENTE (HEADER) & COMPONENTES MÓVILES POR DEFECTO
========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; 
    background-color: var(--text-light);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: height 0.3s ease;
}

.header-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    justify-content: space-between; 
}

.header-left-block,
.header-right-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 450px; 
    width: auto;
}

.logo {
    height: 75px;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    width: auto;
    display: block;
    object-fit: contain; 
    transition: transform 0.3s ease, height 0.3s ease;
}

.brand-link:hover .logo {
    transform: scale(1.03);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    text-transform: uppercase;
}

.brand-title {
    font-size: 1.3rem; 
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 0.5px;
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.nav-container {
    display: flex;
    align-items: center;
}

.menu-checkbox, .hamburger-button {
    display: none;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: var(--primary-red);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    transition: padding 0.3s ease;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    animation: pulseAnimation 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.badge-text-container {
    display: flex;
    flex-direction: row; 
    gap: 6px;
    font-weight: 700;
    color: #28a745;
    font-size: 0.95rem;
}

.text-top::after {
    content: " /";
    color: #28a745;
    opacity: 0.7;
}

.btn-cta-header {
    background-color: var(--primary-red);
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-cta-header:hover {
    background-color: #b01212;
}

.btn-cta-header:active {
    transform: scale(0.98);
}


/* ==========================================================================
MÓVIL RESPONSIVE - SÓLO AFECTA A PANTALLAS MENORES A 768PX (CELULARES)
========================================================================== */
@media (max-width: 768px) {
    .main-header {
        height: 65px; 
    }

    .header-container {
        padding: 0 8px; 
        gap: 4px;
    }

    .logo-area {
        gap: 4px;
    }

    .logo {
        height: 38px; 
    }

    .brand-text {
        line-height: 1.1;
    }

    .brand-title {
        font-size: 0.72rem; 
        letter-spacing: -0.4px;
    }

    .brand-subtitle {
        font-size: 0.55rem;
        letter-spacing: -0.1px;
    }

    .status-badge {
        padding: 4px 6px; 
        margin: 0;
    }

    .badge-text-container {
        font-size: 0.68rem; 
    }

    .text-top::after {
        content: ""; 
    }
    
    .text-bottom {
        display: none !important; 
    }

    /* =========================================================
    RESTRICCIÓN HERMÉTICA Y CENTRADO DEL HERO SECTION
    ========================================================= */

    .hero-section {
        position: relative;
        height: calc(100dvh - 130px) !important; 
        min-height: calc(100dvh - 130px) !important;
        max-height: calc(100dvh - 130px) !important;
        
        overflow: hidden !important; 
        
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 15px !important;
    }

    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        bottom: 0 !important;
    }

    .hero-container-flex {
        position: relative;
        z-index: 2; 
        height: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; 
        align-items: center !important;     
        gap: 0 !important;
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        flex: none !important; 
        height: auto !important; 
        
    }
    .hero-visual-space {
        display: none !important;
    }

    /* =========================================================
    CONSERVACIÓN DE SEPARACIONES Y AJUSTE DE ESCALA
    ========================================================= */

    .hero-content h1 {
        font-size: 1.65rem !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important; 
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        margin-bottom: 10px !important; 
    }

    .hero-description {
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
        margin-bottom: 16px !important;
        max-width: 340px !important;     
    }

    .btn-call-massive {
        padding: 12px 28px !important;
        font-size: 1.05rem !important;
        width: auto !important;
    }
}

/* ==========================================================================
3. SECCIÓN HERO (Fondo Completo Líquido y Adaptativo)
========================================================================== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 90px); 
    background-image: url('../images/RAM-firstSection.avif'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center; 
    background-color: #0c0d12;
    display: flex;
    align-items: center;
    padding: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(12, 13, 18, 0.85) 0%,    
        rgba(12, 13, 18, 0.70) 35%,   
        rgba(12, 13, 18, 0.45) 60%,   
        rgba(12, 13, 18, 0.15) 80%,   
        rgba(12, 13, 18, 0.0) 100%    
    );
    z-index: 1;
}

.hero-container-flex {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 40px;
}

.hero-content {
    flex: 0 1 800px;
    max-width: 840px;
    text-align: center;
}

.hero-visual-space {
    display:none;
    pointer-events: none;
}

/* ==========================================================================
Elementos Internos (Estilos Base
========================================================================== */
.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(229, 26, 26, 0.15); 
    border: 1px solid var(--primary-red);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.2px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {    
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-yellow); 
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e5e5e5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.btn-call-massive {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-yellow);
    color: #000000;
    text-decoration: none;
    padding: 20px 45px;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(254, 208, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-call-massive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(254, 208, 0, 0.5);
}

/* ==========================================================================
4. MATRIZ DE SERVICIOS (TARJETAS CLICK-TO-CALL)
========================================================================== */
.services-section {
    padding: 80px 40px; 
    background-color: #f8f9fa; 
    width: 100%;
    max-width: 1800px; 
    margin: 0 auto;    
    box-sizing: border-box; 
}

.services-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    width: 100%;
    margin-bottom: 5px;             
}

.services-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;                      
}

.services-bilingual-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(204, 24, 24, 0.06); 
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(204, 24, 24, 0.04);
    white-space: nowrap;            
}

.services-bilingual-tag i {
    font-size: 1rem;
    color: #fbd100;                 
}

.section-instruction {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 45px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px; 
}

.service-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(255, 193, 7, 0.25); 
    outline: 2px solid #ffcc00; 
}

.service-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
}

.card-body {
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body h3 i {
    color: var(--primary-red);
}

.card-body p {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 60px; 
    height: auto; 
    flex-grow: 1; 
}

.btn-card-action {
    display: block;
    background-color: rgba(204, 24, 24, 0.06);
    color: var(--primary-red);
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s, color 0.2s;
    margin-top: auto; 
}

.service-card:hover .btn-card-action {
    background-color: var(--primary-red);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px; 
    }

    .card-body {
        padding: 18px; 
    }

    .card-body h3 {
        font-size: 1.15rem; 
    }

    .card-body p {
        font-size: 0.88rem; 
        min-height: 80px;  
    }
}

/* ==========================================================================
5. NUEVA SECCIÓN: CASH FOR CARS (FONDO OSCURECIDO EQUILIBRADO)
========================================================================== */
.cash-cars-section {
    padding: 80px 40px; 
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    position: relative; 
    overflow: hidden;
}

.section-bg-html {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.section-bg-html img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center 38%; 
}

.section-bg-html::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65); 
}

.cash-cars-container {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 50px;
    align-items: stretch; 
    position: relative;
    z-index: 2; 
}

/* ==========================================================================
COLUMNA IZQUIERDA: CONTENIDO Y FORMULARIO
========================================================================== */
.cash-cars-content {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.cash-cars-content h2 {
    color: #ffffff; 
    font-size: 2.5rem; 
    font-weight: 800;
    margin-top: 0; 
    margin-bottom: 10px; 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
    text-align: center; 
}

.cash-cars-content h3 {
    color: #ffcc00;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.7);
}

.cash-cars-content p {
    color: #cbd5e1; 
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.badge-accent {
    display: table; 
    margin: 0 auto 12px auto;
    background-color: #28a745; 
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.quote-form {
    background-color: var(--light-bg, #f8fafc);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

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

.form-group {
    flex: 1;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
}

.form-group input, 
.form-group select {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red, #cc1818);
    box-shadow: 0 0 0 3px rgba(204, 24, 24, 0.15);
}

.btn-submit-quote {
    width: 100%;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: background-color 0.2s, transform 0.1s;
    margin-top: auto; 
}

/* ==========================================================================
COLUMNA DERECHA: GALERÍA DE AUTOS COMPRADOS
========================================================================== */
.cash-cars-gallery-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.cash-cars-gallery-wrapper h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff; 
    margin-top: 0; 
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.gallery-sub {
    font-size: 1.1rem;
    color: #28a745;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center; 
}

.recent-pickups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-grow: 1; 
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); 
    background-color: #eee;
    height: 100%; 
    min-height: 180px; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #ffffff;
    padding: 12px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
}

@media (max-width: 992px) {
    .cash-cars-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
6. GALERÍA DE LA FLOTA SECUNDARIA (MÁXIMA COBERTURA LATERAL)
========================================================================== */
.fleet-gallery {
    background-color: #eef1f4;
    padding: 100px 20px; 
    text-align: center;
    width: 100%; 
}

.fleet-gallery-container {
    max-width: 1450px; 
    width: 100%;       
    margin: 0 auto;
}

.fleet-gallery h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1e293b;
}

.fleet-gallery .section-instruction {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b38600; 
    margin-top: 0;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px; 
    margin-top: 50px; 
    width: 100%;
}

.fleet-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fleet-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ==========================================================================
7. POR QUÉ ELEGIRNOS Y MAPA
========================================================================== */
.why-choose-us {
    padding: 70px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-us h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 45px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch; 
}

.feature-item {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 20px;
    background: var(--text-light);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--card-shadow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    flex-shrink: 0; 
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-muted);
    margin: 0;
}

.testimonials-container {
    margin-bottom: 60px;
    text-align: center;
}

.testimonials-container h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 35px;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.testimonial-item {
    background: var(--text-light);
    flex: 1;
    min-width: 280px;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--card-shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item .stars {
    color: var(--primary-red);
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-item blockquote {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.testimonial-item cite {
    font-weight: 700;
    font-size: 1rem;
    font-style: normal;
    display: block;
}

.map-container {
    width: 100%;
    box-shadow: 0 4px 15px var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

/* ==========================================================================
8. PIE DE PÁGINA (FOOTER)
========================================================================== */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 20px 20px 20px;
}

.footer-info {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #292929;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; 
}

.footer-info h3 {
    font-size: 1.6rem;  
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: var(--primary-yellow); 
    text-transform: uppercase;
}

.footer-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light); 
    margin-top: 4px;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #cccccc;
}

.footer-info p i {
    color: var(--primary-red);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #777777;
}

/* ==========================================================================
9. BARRA INFERIOR MÓVIL PERSISTENTE (ACTUALIZADO: GMAIL INTEGRADO)
========================================================================== */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    display: none; 
    flex-direction: row; 
    z-index: 2000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

.sticky-action-call {
    width: 80%; 
    background-color: var(--primary-red);
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.sticky-action-call:hover,
.sticky-action-call:active {
    background-color: #b91c1c; 
}

.sticky-action-email {
    width: 20%; 
    background-color: #ea4335; 
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background-color 0.2s ease;
}

.sticky-action-email:hover,
.sticky-action-email:active {
    background-color: #dc2626; 
}

/* ==========================================================================
10. MEDIA QUERIES (CORREGIDO: Rupturas unificadas a 991px)
========================================================================== */
@media (max-width: 991px) {
    .hero-section {
        background-position: 65% center; 
        padding: 50px 20px;
        min-height: 75vh;
    }
    
    .hero-overlay {
        background: rgba(12, 13, 18, 0.75); 
    }

    .hero-container-flex {
        flex-direction: column; 
        gap: 0;
        padding-left: 0;

    .hero-content {
        text-align: center; 
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual-space {
        display: none; 
    }

    .hero-content h1 {
        font-size: 2.3rem;
        text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.9);
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .btn-call-massive {
        width: 100%;
        justify-content: center;
        padding: 18px 20px;
        font-size: 1.25rem;
    }

        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        padding-bottom: 65px; 
    }

    .main-header {
        height: 80px;
    }

    .header-container {
        justify-content: space-between; 
        padding: 0 15px;
    }

    .logo-area {
        max-width: auto;
        gap: 10px; 
    }

    .logo {
        height: 52px; 
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: 0.8rem;
    }

    .btn-cta-header {
        display: none; 
    }

    .status-badge {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        background-color: rgba(40, 167, 69, 0.08);
        border-radius: 8px;
        margin: 0;
        order: 2; 
    }

    .badge-text-container {
        display: flex;
        flex-direction: column; 
        align-items: flex-start;
        gap: 0px;
        font-size: 0.78rem; 
        line-height: 1.2;
    }

    .text-top::after {
        content: "";
    }

    .text-top {
        font-weight: 800;
    }

    .text-bottom {
        font-weight: 600;
        opacity: 0.9;
    }

    .nav-container {
        display: block;
        order: 3; 
    }

    .hamburger-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 17px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger-button span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        list-style: none;
        padding: 10px 0;
        margin: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eeeeee;
        z-index: 999;
        flex-direction: column;
        gap: 0;
    }

    .nav-links li a {
        display: block;
        padding: 15px 25px;
        text-decoration: none;
        color: var(--text-main);
        font-weight: 700;
        font-size: 1.1rem;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-links li a:hover {
        background-color: #fafafa;
        color: var(--primary-red);
    }

    .menu-checkbox:checked ~ .nav-links {
        display: flex;
    }

    .menu-checkbox:checked ~ .hamburger-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-checkbox:checked ~ .hamburger-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked ~ .hamburger-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .cash-cars-section, .services-section, .fleet-gallery, .why-choose-us {
        padding: 45px 15px;
    }

    .services-grid {
        gap: 20px;
    }

    .card-body p {
        height: auto; 
    }

    .mobile-sticky-bar {
        display: flex; 
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .recent-pickups-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
11. CONFIGURACIÓN: DISTRIBUCIÓN HORIZONTAL DESKTOP (ESCRITORIO)
========================================================================== */
@media (min-width: 769px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .header-left-block {
        flex: none;   
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .header-right-block {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 25px;
    }

    .nav-container {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 28px;
        position: static;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .nav-links li a {
        font-size: 0.92rem;
        letter-spacing: 0.4px;
        padding: 5px 0;
        border-bottom: none;
    }
}

/* ==========================================================================
MODAL DE ALERTA PERSONALIZADO (POP-UP)
========================================================================== */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-alert-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote elástico */
}

.custom-alert-overlay.show .custom-alert-card {
    transform: scale(1);
}

.custom-alert-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1;
}

.custom-alert-icon.success {
    color: #28a745;
}

.custom-alert-icon.error {
    color: #cc1818;
}

.custom-alert-card h3 {
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
}

.custom-alert-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 500;
}

.custom-alert-btn {
    width: 100%;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: filter 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-alert-btn:hover {
    filter: brightness(0.9);
}

.custom-alert-btn:active {
    transform: scale(0.98);
}