/* ==========================================================================
   LATAM AUTO GROUP C.A. - ULTRA PREMIUM STYLESHEET (V. FINAL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
:root {
    /* Paleta de Colores de Alta Gama */
    --bg-main: #ffffff;
    --bg-secondary: #f7f9fc;
    /* Gris perla ultra suave */
    --text-dark: #0a0a0a;
    --text-muted: #777777;
    /* Gris específico del diseño hero */
    --accent: #000000;
    --border-light: rgba(0, 0, 0, 0.06);
    /* Sombras Multicapa (Efecto de Levitación Realista) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    /* Animación Global Fluida (Estilo Ecosistema Apple) */
    --smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* =========================================
   RESETEO Y SCROLLBAR PERSONALIZADO
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================
   UTILERÍAS GLOBALES
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: #ffffff !important;
}

.text-gray {
    color: #aaaaaa !important;
}

.text-muted {
    color: var(--text-muted);
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-secondary);
}


/* =========================================
   1. HEADER & LOGO
   ========================================= */

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Soporte iOS/Safari */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    height: 85px;
}

.css-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--accent);
    transition: var(--smooth);
}

.css-logo:hover {
    transform: scale(1.02);
}

.logo-latam {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1;
}

.logo-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--accent);
    margin: 5px 0;
}

.logo-auto {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================
   2. HERO SECTION (Minimalista y Elegante)
   ========================================= */


/* =========================================
   2. HERO SECTION (Balance perfecto de imagen)
   ========================================= */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background-color: #ffffff;
    /* Fondo base blanco */
    position: relative;
    overflow: hidden;
}


/* La imagen de los autos */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/curvas-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    /* SUBIMOS LA OPACIDAD PARA QUE LOS AUTOS SE VEAN CLAROS */
    z-index: 1;
}


/* Foco de luz ultra suave solo para que el texto sea legible */

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    /* Un gradiente mucho más transparente que deja ver el fondo */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    /* Pequeño resplandor en el texto para separarlo de la imagen */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: fadeUp 1.2s var(--smooth) forwards;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 span {
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    .hero::after {
        width: 150vw;
        height: 150vw;
    }
}


/* Media Query específica para el Hero en móviles */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    .hero::after {
        width: 150vw;
        height: 150vw;
    }
    /* Luz más amplia en móvil */
}


/* =========================================
   3. BARRA DE VALORES
   ========================================= */

.valores-bar {
    background: var(--bg-main);
    padding: 4rem 5%;
    border-bottom: 1px solid var(--border-light);
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.valor-item {
    text-align: center;
    border-right: 1px solid var(--border-light);
    padding: 0 1rem;
    transition: var(--smooth);
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-item:last-child {
    border-right: none;
}

.valor-item svg {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.valor-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.valor-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}


/* =========================================
   4. ALIANZAS ESTRATÉGICAS
   ========================================= */

.premium-alianzas {
    background: #050505;
    padding: 3.5rem 0;
    text-align: center;
}

.alianzas-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alianzas-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.alianzas-links a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--smooth);
    opacity: 0.9;
}

.alianzas-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.alianzas-links .divider {
    color: #333;
    font-size: 1.5rem;
    font-weight: 300;
}


/* =========================================
   5. BANDA ROTATIVA INFINITA (GPU Accelerated)
   ========================================= */

.logo-marquee {
    background: #ffffff;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}

.logo-marquee::before,
.logo-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: scrollMarquee 30s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.marquee-content img {
    height: 45px;
    object-fit: contain;
    margin: 0 4rem;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--smooth);
    cursor: pointer;
}

.logo-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}


/* =========================================
   6. SEGMENTOS INMERSIVOS (Fondo Dinámico)
   ========================================= */

.dynamic-bg {
    position: relative;
    background-color: #0a0a0a46;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease-in-out, background-color 0.6s ease;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.445);
    transition: background 0.6s ease;
    z-index: 1;
}

.dynamic-bg.bg-active .bg-overlay {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.relative-z {
    position: relative;
    z-index: 2;
}

.segmentos-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 850px;
    margin: 0 auto;
}

.card-wide {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: var(--smooth);
    will-change: transform;
}

.card-wide h3 {
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-wide p {
    color: #bbbbbb;
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

.card-wide:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}


/* =========================================
   7. QUIÉNES SOMOS & EMBUDO DE VENTAS
   ========================================= */

.kpi-section-wrapper {
    background: #050505;
    border-radius: 24px;
    padding: 5rem 3rem;
    margin-top: 5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.kpi-section-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}


/* KPIs */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--smooth);
}

.kpi-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.kpi-number {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
    letter-spacing: -2px;
}

.kpi-plus {
    font-size: 2.5rem;
    font-weight: 300;
    color: #666;
    margin-left: 2px;
}

.kpi-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 1rem;
}


/* Bento Grid (Ventajas) */

.bento-ventajas {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.funnel-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.bento-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--smooth);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-large:nth-child(1),
.bento-large:nth-child(5) {
    grid-column: span 2;
}

.bento-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-box h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.bento-box p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}


/* Timeline Stepper (Estructura) */

.timeline-operativa {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
    padding: 0 2rem;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 4rem;
    right: 4rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.stepper-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    transition: var(--smooth);
    cursor: pointer;
}

.step-counter {
    width: 50px;
    height: 50px;
    background: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--smooth);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.step-name {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
    transition: var(--smooth);
}

.stepper-item:hover .step-counter {
    background: #ffffff;
    color: #000000;
    transform: scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.stepper-item:hover .step-name {
    color: #ffffff;
    font-weight: 700;
}


/* CTA Integrado */

.kpi-cta {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 3rem;
    position: relative;
    z-index: 2;
}

.kpi-cta p {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}


/* =========================================
   8. TESTIMONIOS (Social Proof)
   ========================================= */


/* =========================================
   8. TESTIMONIOS (Social Proof Elevado)
   ========================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}


/* Marca de agua de comilla gigante */

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.03);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: #000000;
    /* Estrellas negras son más premium que doradas */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.review-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 400;
    /* Texto normal, no cursiva */
    line-height: 1.8;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}


/* Ajuste del contenedor de la foto */

.avatar {
    width: 55px;
    height: 55px;
    margin-right: 15px;
    flex-shrink: 0;
    /* Evita que la foto se aplaste */
    border-radius: 50%;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 1.05rem;
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-weight: 700;
}

.reviewer-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    line-height: 1.4;
}


/* =========================================
   9. FAQ ACORDEÓN
   ========================================= */

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: var(--smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(0, 0, 0, 0.1);
}

.faq-item summary {
    padding: 1.8rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: var(--smooth);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item p {
    padding: 0 1.8rem 1.8rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}


/* =========================================
   10. BLOG Y SEO
   ========================================= */

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    transition: var(--smooth);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-light);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content .tag {
    align-self: flex-start;
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.blog-content h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}


/* =========================================
   11. BOTONES GLOBALES (Estilo Píldora Premium)
   ========================================= */

.btn-primary {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: #222;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--smooth);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}


/* =========================================
   12. CHATBOT Y FAB
   ========================================= */

.chatbot-fab {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 65px;
    height: 65px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: var(--smooth);
}

.chatbot-fab:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.chatbot-window {
    position: fixed;
    bottom: 120px;
    right: 35px;
    width: 380px;
    height: 550px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    transition: var(--smooth);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.chatbot-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.95);
}

.chat-header {
    background: var(--accent);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.chat-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.chat-header button:hover {
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar {
    width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.message {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.message.bot {
    background: #f0f2f5;
    color: #111;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 1.2rem;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--border-light);
}

.chat-footer input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    outline: none;
    background: var(--bg-secondary);
    font-family: inherit;
    transition: border 0.3s;
}

.chat-footer input:focus {
    border-color: #ccc;
}

.chat-footer button {
    margin-left: 10px;
    background: var(--accent);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--smooth);
}

.chat-footer button:hover {
    transform: scale(1.05);
    background: #222;
}


/* =========================================
   13. FOOTER CORPORATIVO
   ========================================= */

.site-footer {
    background: #050505;
    color: #ffffff;
    padding: 6rem 5% 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.css-logo-footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--smooth);
}

.css-logo-footer:hover {
    transform: translateY(-3px);
}

.css-logo-footer .logo-latam {
    font-size: 1.8rem;
}

.css-logo-footer .logo-line {
    background-color: #fff;
    width: 100%;
    height: 2px;
}

.footer-col p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h4 {
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: var(--smooth);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 1px;
}


/* =========================================
   14. MEDIA QUERIES (Centralizadas y Limpias)
   ========================================= */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .kpi-section-wrapper {
        padding: 4rem 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    /* Timeline / Stepper para Tablets */
    .stepper-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .stepper-wrapper::before {
        top: 0;
        left: 3rem;
        bottom: 0;
        height: auto;
        width: 2px;
    }
    .stepper-item {
        flex-direction: row;
        width: 100%;
    }
    .step-counter {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    .step-name {
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Header & Navbar */
    .navbar {
        padding: 1rem;
        height: 70px;
    }
    .css-logo .logo-latam {
        font-size: 1.5rem;
    }
    .nav-links {
        display: none;
    }
    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    /* Grillas Generales */
    .grid-valores {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .valor-item {
        border: none;
        padding: 0;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Bento Grid Móvil */
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large:nth-child(1),
    .bento-large:nth-child(5) {
        grid-column: span 1;
    }
    /* Alianzas y Marquee */
    .alianzas-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    .alianzas-links .divider {
        display: none;
    }
    .marquee-content img {
        height: 35px;
        margin: 0 2rem;
    }
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .css-logo-footer {
        align-items: center;
        width: 100%;
    }
    /* Chatbot Móvil */
    .chatbot-window {
        width: 90%;
        right: 5%;
        bottom: 110px;
        height: 65vh;
        border-radius: 16px;
    }
    .chatbot-fab {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
}


/* =========================================
   QUIÉNES SOMOS (Diseño Grid y Fotografía)
   ========================================= */

.nosotros-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* El texto ocupa un poco más de espacio que la foto */
    gap: 4rem;
    align-items: center;
}

.nosotros-texto .section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.premium-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--smooth);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.premium-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.premium-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}


/* La Imagen de Aduana */

.nosotros-imagen {
    width: 100%;
    height: 100%;
    min-height: 500px;
    /* Esto evita que desaparezca en navegadores estrictos */
    border-radius: 20px;
    /* Imagen de puerto logístico de autos (Unsplash) */
    background: url('../img/aduana.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}


/* Filtro sutil para que la imagen se vea más cinematográfica */

.nosotros-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15), transparent);
}


/* Responsividad para Móviles y Tablets */

@media (max-width: 900px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 3rem;
    }
    .nosotros-imagen {
        min-height: 400px;
        order: -1;
        /* Truco mágico: Sube la imagen arriba del texto en móviles */
    }
}

@media (max-width: 600px) {
    .mision-vision-grid {
        grid-template-columns: 1fr;
        /* Misión y Visión una debajo de la otra en teléfonos pequeños */
    }
}