/* ==================== VARIABLES Y RESET ==================== */
:root {
    --bg-black: #000000;
    --bg-dark-grey: #111111;
    --bg-light-grey: #1a1a1a;
    --color-primary-green: #007e49; /* Ajustado al color solicitado */
    --color-primary-yellow: #ffb800;
    --text-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
}

/* ==================== COMPONENTES GLOBALES ==================== */
.text-green { color: var(--color-primary-green); font-weight: bold; }
.green { color: var(--color-primary-green); }

.btn {
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-yellow {
    background-color: var(--color-primary-yellow);
    color: var(--bg-black);
}

.btn-yellow:hover { background-color: #e0a200; transform: scale(1.05); }

.btn-black {
    background-color: var(--bg-black);
    color: var(--text-white);
    border: 1px solid #333;
}

.btn-black:hover { background-color: #222; border-color: var(--color-primary-green); }

.btn-text {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-large { padding: 12px 32px; font-size: 1rem; }

/* ==================== HEADER ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-black);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #0056b3; /* Línea azul superior del mockup */
}

.logo img { height: 30px; object-fit: contain; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text-white); }

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 85vh; /* Aumentamos la altura para ver más de los camiones */
    min-height: 650px;
    margin-top: 60px; 
    background-image: url('../src/gotemBackgroundImage.webp'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 100px; /* Empujamos el texto arriba para dar espacio al corte */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado mucho más suave: transparente arriba, oscureciéndose solo al final */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 80%, rgba(20,20,20,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    display: flex;
    position: relative;
    z-index: 10;
    margin-top: -140px; /* Sube la barra MUCHO MÁS para superponerla a la imagen */
    min-height: 140px;
}

/* Este es el fondo negro con el "hueco" en el centro */
.stats-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-black);
    clip-path: polygon(0 0, 32% 0, 43% 100%, 57% 100%, 68% 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1; 
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 3rem 2rem 1.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item p { font-size: 0.95rem; line-height: 1.5; color: #ddd; }

.center-stat {
    background-color: transparent;
    clip-path: none; 
    margin: 0;
    padding-top: 1rem; 
}

.center-stat h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-white); }
.center-stat .small-text { font-size: 0.8rem; color: #ccc; }

/* ==================== STEPS SECTION ==================== */
.steps-container {
    padding: 5rem 10%;
    background-color: var(--bg-black);
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6rem;
    gap: 4rem;
}

.step-row.reverse { 
    flex-direction: row-reverse; 
}
.step-media { flex: 1; }

.step-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background-color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.step-text { flex: 1; }

.step-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary-green);
    font-weight: 400; /* Texto principal del título con menos peso */
}

.step-text h2 .text-green {
    font-weight: 700; /* "Paso 1:" con peso fuerte */
}

.step-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

/* ==================== FOOTER / CTA SECTION ==================== */
.cta-wrapper {
    position: relative;
    width: 100%;
    background-color: var(--bg-black);
    padding-bottom: 2rem;
}

.cta-background {
    position: absolute;
    top: 0; right: 0; width: 60%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cta-content-area {
    position: relative;
    z-index: 2;
    background-color: #08653e; /* El color exacto que pediste */
    /* Degradado usando el RGB de #08653e (8, 101, 62) hacia transparente */
    background-image: 
        linear-gradient(to top, #08653e 10%, rgba(8, 101, 62, 0.9) 40%, rgba(8, 101, 62, 0) 100%),
        url('../src/Hombre_conduciendo_negro.webp');
    background-position: center bottom, top center;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
    /* Clip-path para crear el corte inclinado en la esquina superior derecha */
    clip-path: polygon(0 0, 65% 0, 75% 15%, 100% 15%, 100% 100%, 0 100%);
    padding: 4rem 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 400px;
}

.cta-text-side { flex: 1; max-width: 600px; padding-right: 2rem; }

.cta-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.cta-small { font-size: 0.9rem; margin-bottom: 2rem; color: #F0AE1D; }

.cta-logo { height: 40px; margin-bottom: 2rem; display: block;  }

.cta-buttons { display: flex; gap: 1rem; }

.cta-image-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.mockup-img {
    max-width: 100%;
    height: auto;
    max-height: 350px; /* Ajusta según el tamaño real de tu PNG exportado */
    object-fit: contain;
}

/* ==================== RESPONSIVE DESIGN (MÓVILES) ==================== */
@media (max-width: 992px) {
    .step-row, .step-row.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .cta-content-area {
        flex-direction: column;
        clip-path: none; /* Quitamos el corte en móviles por legibilidad */
        padding: 3rem 5%;
        text-align: center;
    }

    .cta-text-side { padding-right: 0; margin-bottom: 3rem; }
    
    .cta-buttons { justify-content: center; flex-wrap: wrap; }
    
    .cta-logo { margin: 0 auto 2rem auto; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Oculto por defecto en móvil */
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: var(--bg-black);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid #333;
    }

    .nav-menu.active { display: flex; }

    .nav-links { flex-direction: column; gap: 1.5rem; text-align: center; }
    
    .nav-actions { flex-direction: column; width: 100%; margin-top: 2rem; }
    
    .mobile-toggle { display: block; }

    .stats-bar { flex-direction: column; margin-top: 0; }
    
    .center-stat { clip-path: none; margin: 0; border-top: 1px solid #333; border-bottom: 1px solid #333; }
    
    .hero-content h1 { font-size: 2.5rem; }
}