/* =========================================
   HERO LUMINOSO (AUTOMOTRIZ)
========================================= */
.auto-hero-light {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.9) 45%, rgba(255, 255, 255, 0) 100%),
        url("img/headautomotriz1.webp") center/cover no-repeat;
    border-bottom: 1px solid #e2e8f0;
}

.hero-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-content {
    max-width: 650px;
    padding: 4rem 0;
}

.hero-eyebrow {
    color: var(--accent-premium);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.auto-hero-light h1 {
    font-family: var(--font-headers);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.auto-hero-light h1 span {
    color: var(--accent-premium);
}

.auto-hero-light p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* =========================================
   PORTAFOLIO DE VEHÍCULOS (DISEÑO EDITORIAL)
========================================= */
.vehiculos-financiados {
    padding: 7rem 5%;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-headers);
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.vehiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta Editorial con Overlap */
.vehiculo-showcase {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s ease;
}

.vehiculo-showcase:hover {
    transform: translateY(-10px);
}

.showcase-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    height: 300px;
    z-index: 1;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vehiculo-showcase:hover .showcase-img img {
    transform: scale(1.05);
}

/* Panel superpuesto */
.showcase-panel {
    background: #ffffff;
    margin: -50px 20px 0 20px; /* Sube sobre la imagen */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
    border-top: 3px solid var(--accent-premium);
    flex-grow: 1;
}

.badge-plataforma {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-premium);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.showcase-panel h3 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.showcase-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   BENEFICIOS LIMPIOS
========================================= */
.auto-beneficios {
    padding: 6rem 5%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.beneficio-item {
    text-align: center;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    color: var(--accent-premium);
    transition: all 0.3s ease;
}

.beneficio-item:hover .icon-wrapper {
    background: var(--accent-premium);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}

.beneficio-item h4 {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.beneficio-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   PROCESO: TIMELINE (4 PASOS)
========================================= */
.auto-proceso {
    padding: 7rem 5%;
    background: #ffffff;
}

.auto-steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Línea conectora */
.timeline-connector {
    position: absolute;
    top: 30px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 10px;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid var(--accent-premium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-premium);
    transition: all 0.3s ease;
}

.step-card:hover .step-circle {
    background: var(--accent-premium);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.step-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   RESPONSIVIDAD (HERO Y TIMELINE)
========================================= */
@media (max-width: 992px) {
    .auto-hero-light {
        background:
            linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)),
            url("https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .auto-steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
    .timeline-connector {
        display: none; /* Se oculta la línea en tablet para no romper la cuadrícula */
    }
}

@media (max-width: 768px) {
    .auto-hero-light h1 {
        font-size: 2.6rem;
    }
    .vehiculos-grid {
        grid-template-columns: 1fr;
    }
    .auto-steps-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}