/* ============================
   VARIABLES & RESET
   ============================ */
:root {
    --primary-color: #003399;
    /* Azul intenso del logo */
    --secondary-color: #FFCC00;
    /* Amarillo/Dorado de acento */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-bg: #1A252F;
    --font-family: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================
   UTILITIES & LAYOUT
   ============================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 5%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6,
.col-lg-5,
.col-lg-7,
.col-md-4,
.col-md-3,
.col-md-6,
.col-md-4 {
    padding: 0 15px;
}

.col-lg-6 {
    width: 50%;
}

.col-lg-5 {
    width: 41.666%;
}

.col-lg-7 {
    width: 58.333%;
}

.col-md-4 {
    width: 33.333%;
}

.col-md-3 {
    width: 25%;
}

.col-md-6 {
    width: 50%;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-muted {
    color: #bdc3c7 !important;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pl-lg-5 {
    padding-left: 3rem;
}

.pr-lg-5 {
    padding-right: 3rem;
}

.rounded {
    border-radius: 8px;
}

.shadow-lg {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
}

.icon-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

/* ============================
   HEADER & NAVBAR
   ============================ */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    height: 60px;
}

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

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

#lang-toggle {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

#lang-toggle:hover {
    background-color: #002266;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('assets/truck-bg.png') center/cover no-repeat;
    position: relative;
    margin-top: 80px;
    /* Altura del navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 40, 120, 0.8), rgba(0, 20, 60, 0.9));
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 20px;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 15px;
}

.stats-box {
    display: flex;
    gap: 40px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================
   SERVICES SECTION 
   ============================ */

/* 1. Encabezado de Sección */
.header-section {
    text-align: center;
    margin-bottom: 2.5rem;
    /* Espacio reducido entre título y tarjetas */
}

.header-section .section-title {
    margin-bottom: 0.5rem;
    /* Más cerca del subtítulo */
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
}

/* SUBTÍTULO CENTRADO Y COMPACTO */
.header-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 650px;
    /* Ancho optimizado */
    margin-left: auto;
    /* CENTRADO HORIZONTAL */
    margin-right: auto;
    /* CENTRADO HORIZONTAL */
    margin-bottom: 0;
}

/* 2. Tarjetas de Servicio */
.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    /* Relleno más equilibrado, menos aire innecesario */
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    /* Elevación sutil */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--secondary-color);
}

/* 3. Iconos */
.icon-box {
    width: 65px;
    /* Un poco más pequeño para look compacto */
    height: 65px;
    background-color: rgba(0, 51, 153, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    /* Espacio reducido con el título */
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* 4. Textos dentro de la Card */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    /* Más compacto */
    font-weight: 700;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Ajustes Móviles */
@media (max-width: 768px) {
    .header-section {
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================
   VIDEO SECTIONS
   ============================ */
.video-wrapper {
    position: relative;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* ============================
   WHY CHOOSE US
   ============================ */
.feature-box {
    padding: 30px;
    transition: var(--transition);
}

.feature-box i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.feature-box h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* ============================
   PROCESS SECTION 
   ============================ */

/* 1. Reduce el espacio arriba y abajo de toda la sección */
.section-padding {
    padding: clamp(2rem, 5vw, 4rem) 0;
    /* Antes era mucho más grande */
}

/* 2. Reduce el espacio entre el encabezado (título) y los pasos */
.header-section {
    text-align: center;
    margin-bottom: 2rem;
    /* Reducido de 4rem a 2rem */
}

.header-section .section-title {
    margin-bottom: 0.5rem;
    /* Título más pegado al subtítulo */
}

.header-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    /* Eliminamos margen extra */
}

/* 3. Ajuste de los bloques de cada paso */
.process-step {
    position: relative;
    padding: 1.5rem 1rem;
    /* Reducido de 3.5rem a 1.5rem */
    text-align: center;
    transition: var(--transition);
}

/* 4. El círculo con el número más compacto */
.step-number {
    width: 60px;
    /* Un poco más pequeño */
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    /* Reducido de 2rem a 1.2rem */
    border: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 51, 153, 0.15);
}

/* 5. Títulos de los pasos más cerca de los textos */
.process-step h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    /* Espacio mínimo con el párrafo */
}

.process-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 220px;
    margin: 0 auto;
}

/* Ajustes para móviles para que no se vea amontonado */
@media (max-width: 768px) {
    .header-section {
        margin-bottom: 1.5rem;
    }

    .process-step {
        padding: 1rem 0.5rem;
    }
}

/* ============================
   COVERAGE SECTION
   ============================ */
.coverage-list {
    list-style: none;
}

.coverage-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.coverage-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

.destinations {
    font-weight: 500;
    color: var(--text-dark);
}

/* ============================
   GALLERY SECTION 
   ============================ */

/* Reutilizamos el estilo de encabezado para asegurar el centrado */
.header-section {
    text-align: center;
    margin-bottom: 2.5rem;
    /* Espacio reducido para look compacto */
}

.header-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 600px;
    /* Limitamos ancho para estética pro */
    margin-left: auto;
    /* CENTRADO CLAVE */
    margin-right: auto;
    /* CENTRADO CLAVE */
    text-align: center;
}

/* Contenedor de la imagen */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    /* Bordes más modernos (antes 8px) */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    /* Sombra más sutil */
    line-height: 0;
    /* Elimina espacio fantasma debajo de la imagen */
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    /* Altura optimizada */
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Transición más suave */
}

/* Efecto al pasar el mouse */
.gallery-item:hover {
    transform: translateY(-5px);
    /* Pequeña elevación de la tarjeta */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.08);
    /* Zoom sutil al pasar el mouse */
}

/* Ajuste para que las fotos no se vean gigantes en móvil */
@media (max-width: 768px) {
    .gallery-item img {
        height: 250px;
    }

    .header-section {
        margin-bottom: 2rem;
    }
}

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 6rem 0 3rem;
}

.footer-logo {
    height: 120px;
}

.footer-contact-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-contact-list a {
    position: relative;
    z-index: 10; /* Asegura que esté por encima de fondos */
    pointer-events: auto !important; /* Fuerza a que responda al clic */
    cursor: pointer;
    display: inline-block;
}

.footer-contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 2000;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* ============================
   WHATSAPP FLOAT
   ============================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 60px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .col-lg-6,
    .col-lg-5,
    .col-lg-7 {
        width: 100%;
    }

    .pl-lg-5,
    .pr-lg-5 {
        padding: 0;
    }

    .mb-lg-0 {
        margin-bottom: 1.5rem !important;
    }

    .order-lg-1 {
        order: 1;
    }

    .order-lg-2 {
        order: 2;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .col-md-4,
    .col-md-3,
    .col-md-6 {
        width: 100%;
    }

    .stats-box {
        flex-direction: column;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .text-md-left,
    .text-md-right {
        text-align: center;
    }

    .social-links {
        margin-top: 20px;
    }
}

/* ============================
   CORRECCIÓN DE COLORES (TEXTOS EN BLANCO)
   ============================ */

/* 1. Forza el color blanco en el Título y Subtítulo del HERO */
.hero-content h1,
.hero-content .lead {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Pequeña sombra para que resalte más */
}

/* 2. Forza el color blanco en los textos dentro de secciones con fondo AZUL PRIMARIO (como el CTA Banner) */
.bg-primary .section-title,
.bg-primary .section-subtitle,
.bg-primary p.lead,
.bg-primary h2 {
    color: var(--white) !important;
}

/* =========================================================
   MOBILE PATCH (FINAL DEFINITIVO)
   Ajustado para centrado total y legibilidad pro
   ========================================================= */

@media (max-width: 768px) {

    /* 1) Ajustes Globales */
    body {
        overflow-x: hidden;
    }

    .container {
        width: 92% !important;
        padding: 0 15px !important;
    }

    section[id] {
        scroll-margin-top: 80px;
    }

    .section-padding {
        padding: 50px 0 !important;
        /* Espaciado más compacto */
    }

    /* 2) Centrado de Títulos y Subtítulos */
    .section-title,
    .section-subtitle,
    .header-section {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section-title {
        font-size: 1.9rem !important;
        margin-bottom: 12px !important;
    }

    /* 3) HEADER / MENU móvil */
    .logo {
        height: 48px !important;
    }

    .nav-menu {
        top: 70px !important;
        background: #ffffff !important;
        text-align: center;
    }

    .nav-menu li {
        margin: 10px 0 !important;
    }

    .lang-switch {
        justify-content: center !important;
        margin-top: 15px !important;
    }

    /* 4) HERO (Centrado total como en la captura) */
    .hero {
        height: auto !important;
        min-height: 100vh !important;
        display: flex;
        align-items: center;
    }

    .hero-content {
        text-align: center !important;
        /* Centra el texto del Hero */
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.1rem !important;
        line-height: 1.1;
    }

    .hero-content .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .btn-group {
        flex-direction: column !important;
        width: 100%;
        gap: 12px !important;
    }

    .btn {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto !important;
        /* Centra los botones */
    }

    /* 5) About / Stats (Alineación vertical) */
    .about .row {
        flex-direction: column-reverse;
        /* Imagen arriba, texto abajo */
        text-align: center;
    }

    .stats-box {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .stat h3 {
        font-size: 2.4rem !important;
    }

    /* 6) Checklist (Cuidado en cada detalle) */
    .feature-list {
        text-align: left !important;
        display: inline-block;
        /* Permite centrar el bloque pero leer el texto a la izquierda */
        margin: 20px auto 0 !important;
    }

    .feature-list li {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
        align-items: flex-start !important;
    }

    .video-wrapper {
        margin-bottom: 25px !important;
        border-radius: 12px !important;
    }

    /* 7) Why Choose Us (Iconos Pro) */
    .feature-box {
        padding: 20px 10px !important;
        margin-bottom: 20px;
    }

    .feature-box i {
        font-size: 2.8rem !important;
        margin-bottom: 15px !important;
    }

    /* 8) Process Section */
    .process-step {
        padding: 1.5rem 0 !important;
    }

    .step-number {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }

    /* 9) Cobertura / Mapa */
    .coverage .row {
        text-align: center;
    }

    .coverage-list {
        display: inline-block;
        text-align: left;
        margin-bottom: 25px !important;
    }

    /* 10) Footer Centrado (Capture fix) */
    .footer {
        text-align: center !important;
        padding-top: 40px !important;
    }

    .footer-logo {
        margin: 0 auto 20px !important;
        height: 80px !important;
    }

    .footer-contact-list,
    .footer-hours-list {
        padding: 0 !important;
        margin-bottom: 30px !important;
    }

    .footer-contact-list li {
        justify-content: center !important;
        /* Centra iconos con texto */
        text-align: center;
    }

    .social-links {
        justify-content: center !important;
        margin-top: 20px;
    }

    /* 11) WhatsApp Button */
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 54px !important;
        height: 54px !important;
        font-size: 28px !important;
    }
}

@media (max-width: 991px) {

    /* 1. Centrar la rayita amarilla debajo de los títulos (como en "Compromiso") */
    .section-title::after {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 2. Centrar los textos de descripción al lado de los videos (como "Transporte Seguro") */
    /* Forzamos que los párrafos y títulos H3 dentro de las columnas se centren en móvil */
    .col-lg-6 h3,
    .col-lg-6 p,
    .col-lg-6 .lead {
        text-align: center !important;
    }

    /* Aseguramos que el contenedor mismo también esté centrado */
    [class*="col-"] {
        text-align: center !important;
    }
}