/* 
   ==========================================================================
   DESIGN SYSTEM TOKENS (from MASTER.md)
   ========================================================================== 
*/

:root {
    /* Brand Colors (60-30-10 Rule) */
    --primary-bg: #FFFFFF;          /* 60% - Backgrounds */
    --accent-orange: #FF9F29;      /* 30% - Secondary: Buttons, Icons, Dividers */
    --accent-red: #D82C20;         /* 10% - Accent: Titles (H1, H2), KPIs */
    --text-charcoal: #2D2D2D;      /* Contrast: Body text */
    
    /* Functional Colors */
    --text-primary: var(--text-charcoal);
    --text-secondary: #4B5563;
    --success: #10B981;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --cta-gradient: linear-gradient(135deg, #FF9F29 0%, #D82C20 100%);
    
    /* Spacing & Grid */
    --margin-desktop: 80px;
    --gutter: 24px;
    --baseline: 8px;
    --section-spacing: 100px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(216, 44, 32, 0.1);
}

/* 
   ==========================================================================
   BASE STYLES & RESET
   ========================================================================== 
*/
/* Custom CSS para el logo */
.logo {
    display: flex;
    align-items: center; /* Alinea la imagen y el texto verticalmente */
    gap: 10px; /* Espacio entre el logo y el texto */
}

.logo-img {
    height: 40px; /* Ajusta esta medida según el alto de tu navbar */
    width: auto; /* Mantiene las proporciones de la imagen */
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--primary-bg);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px; /* Mobile padding */
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--margin-desktop);
    }
}

.section {
    padding-top: var(--section-spacing);
    padding-bottom: 0;
}

/* Special case: Last section before footer needs bottom padding */
#contact {
    padding-bottom: var(--section-spacing);
}

h1, h2, h3 {
    color: var(--accent-red);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

p {
    color: var(--text-secondary);
}

/* 
   ==========================================================================
   COMPONENTS
   ========================================================================== 
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 150ms ease-out;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cta-gradient);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
}

.btn-ghost:hover {
    background: rgba(255, 159, 41, 0.1);
    box-shadow: 0 0 20px rgba(255, 159, 41, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.badge {
    display: inline-block;
    background: rgba(255, 159, 41, 0.1);
    color: var(--accent-orange);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 159, 41, 0.2);
}

/* 
   ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== 
*/

/* 1. HERO */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 0;
    padding-bottom: var(--section-spacing);
}

.hero-stats {
    margin-top: 30px;
}

.navbar {
    height: 100px;
    display: flex;
    align-items: center;
    z-index: 100;
    background: var(--primary-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.logo span {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .hero-content {
        grid-column: span 6;
    }
    
    .hero-visual {
        grid-column: span 6;
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.subheadline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-interactive-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

/* 3. STATS (Inside Hero) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gutter);
}

.stat-card {
    background: var(--glass-bg);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 211, 238, 0.3);
}

.stat-card i {
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    width: 32px;
    height: 32px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 5. PARTNERS CAROUSEL */
.logo-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.logo-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}

.partner-logo {
    flex: 0 0 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.logo-track:hover {
    animation-play-state: paused;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    background: rgba(255, 159, 41, 0.07);
    border-color: var(--accent-orange);
    color: var(--text-charcoal);
}

/* 10. SIMULATOR */
.simulator-card {
    background: var(--glass-bg);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: flex-end;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group select,
.form-group input {
    width: 100%;
    background: transparent;
    border: 1px solid #D1D5DB; /* Grey border line */
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 159, 41, 0.2);
}

::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.simulator-result {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.simulator-result span {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.25rem;
}

/* 2. MAPA INTERACTIVO */
.map-svg-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(255, 159, 41, 0.03) 0%, transparent 80%);
}

.central-america-map.tech-map {
    width: 100%;
    height: auto;
    max-height: 550px;
    filter: drop-shadow(0 0 20px rgba(255, 159, 41, 0.05));
}

.tech-map path {
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke: var(--accent-orange);
    stroke-width: 1.2;
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    transition: fill 0.4s ease, stroke-width 0.3s ease, filter 0.3s ease;
    animation: drawMapPath 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tech-map .country path,
.tech-map path.country {
    fill: rgba(248, 249, 250, 0.3);
    cursor: pointer;
}

.tech-map .country:hover path,
.tech-map path.country:hover {
    fill: rgba(255, 159, 41, 0.25) !important;
    stroke-width: 2.5 !important;
    filter: drop-shadow(0 0 12px var(--accent-orange));
    z-index: 10;
}

@keyframes drawMapPath {
    0% {
        stroke-dashoffset: 5000;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.map-tooltip {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--accent-orange);
    padding: 1rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 200px;
}

.map-tooltip h4 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.map-tooltip p {
    font-size: 0.875rem;
    color: var(--text-charcoal);
}

/* 4. INFRAESTRUCTURA (SCROLL STORY) */
.scroll-story {
    overflow-x: auto;
    padding: 3rem 0 5rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    position: relative;
}

.scroll-story::-webkit-scrollbar {
    display: none;
}

.story-track {
    display: flex;
    gap: 2rem;
    padding-left: calc((100vw - 1440px) / 2 + 80px);
    padding-right: 80px;
}

@media (max-width: 1440px) {
    .story-track {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.story-slide {
    flex: 0 0 320px;
    background: var(--primary-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Entry Animation Triggered by JS */
.story-slide.revealed {
    opacity: 1;
    transform: translateY(0);
}

.story-slide:hover {
    border-color: var(--accent-orange);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(255, 159, 41, 0.15);
    z-index: 10;
}

.slide-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 159, 41, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.slide-icon svg,
.slide-icon i {
    width: 40px;
    height: 40px;
}

.story-slide:hover .slide-icon {
    transform: rotate(5deg) scale(1.1);
}

.story-slide h3 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story-slide p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* 6. VELOCIDAD & EFICIENCIA (Removed styles but keeping section header for structure) */

/* 7. DASHBOARD WIDGETS */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.widget.card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.widget-header i {
    color: var(--accent-orange);
    width: 20px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.b-bar {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease-out;
}

.b-bar.active {
    background: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 159, 41, 0.3);
}

.route-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    font-size: 0.875rem;
}

.route-item .status {
    color: var(--accent-red);
    font-weight: 600;
}

/* 9. TIMELINE ANIMATIONS */
.timeline-wrapper {
    position: relative;
    padding: 6rem 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    overflow: hidden;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    animation: flow-line 3s infinite linear;
}

@keyframes flow-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.t-node {
    text-align: center;
    width: 150px;
}

.t-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-bg);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.t-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5px;
}

.t-node.active .t-icon {
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--accent-orange);
    animation: blink-icon 2s infinite ease-in-out;
}

@keyframes blink-icon {
    0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 159, 41, 0.4)); }
    50% { opacity: 0.7; transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(255, 159, 41, 0.6)); }
}

.t-node label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.t-node span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* CONTACT SECTION */
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(12px);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-grid-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid-contact {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #D1D5DB; /* Grey border line */
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 159, 41, 0.2);
}

.btn-block {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* FOOTER */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h4 {
    color: var(--accent-red);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 1.5rem 0 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-charcoal);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
}

.social-links a i {
    width: 18px;
    height: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--accent-orange);
    width: 18px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom .copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: none;
    padding: 0;
}

.bottom-links {
    display: flex;
    gap: 2rem;
}

.bottom-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.bottom-links a:hover {
    color: var(--accent-red);
}


/* 1. Estilos para los enlaces (los círculos contenedores) */
.social-links a {
    display: inline-flex;  /* Necesario para centrar la imagen perfectamente */
    align-items: center;   /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    width: 40px;           /* Tamaño del círculo */
    height: 40px;          /* Tamaño del círculo */
    background-color: #eee; /* Fondo gris de tu diseño actual */
    border-radius: 50%;    /* Hace el círculo */
    text-decoration: none; /* Quita subrayado */
    transition: all 0.3s ease; /* Efecto suave al pasar el ratón */
}

/* 2. Efecto al pasar el ratón sobre el círculo (Opcional) */
.social-links a:hover {
    background-color: #FFA500; /* Se vuelve naranja al pasar el ratón */
    transform: translateY(-2px); /* Sube un poquito */
}

/* 3. Estilos críticos para la imagen local dentro del círculo */
.social-icon {
    width: 20px;          /* Tamaño del icono DENTRO del círculo */
    height: 20px;         /* Mantenerlo cuadrado */
    object-fit: contain;  /* Asegura que la imagen no se estire feo */
    /* Si tus imágenes son negras y quieres que se vean naranja corporativo, 
       esta es una forma fácil de cambiarles el color con CSS (solo para SVG o fondos transparentes): */
    /* filter: sepia(100%) hue-rotate(5deg) saturate(1000%); */
}



/* Contenedor principal: Se adapta al ancho de la pantalla pero no pasa de 1200px */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    /* La magia ocurre aquí: 2 / 1 significa que por cada 2px de ancho, tendrá 1px de alto (1200/600) */
    aspect-ratio: 2 / 1; 
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

/* El carril que contiene las imágenes */
.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Las imágenes: Ocupan el 100% del contenedor responsive sin deformarse */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Estilo base de los botones para computadora */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #FFA500; 
}

.prev { left: 20px; }
.next { right: 20px; }

/* --- ADAPTACIÓN PARA MÓVILES Y TABLETS --- */
@media (max-width: 768px) {
    .carousel-btn {
        padding: 8px 12px; /* Hace los botones más pequeños para que no tapen la imagen */
        font-size: 16px;   /* Reduce el tamaño de las flechas */
    }
    
    .prev { left: 10px; }  /* Pega los botones un poco más al borde en celulares */
    .next { right: 10px; }
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Asegura que no lo tape ninguna otra imagen o carrusel */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse en computadora */
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1); /* Crece un poquito */
}

/* Tamaño del logo SVG dentro del botón */
.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* ADAPTACIÓN PARA CELULARES */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}


/* --- BOTÓN PRINCIPAL DEL HERO --- */
.btn-hero {
    display: inline-block;
    margin-top: 25px; /* Crea el espacio perfecto entre el texto y el botón */
    padding: 15px 35px;
    background-color: #D9381E; /* Color rojo/naranja similar al de tu título */
    color: #ffffff; /* Letras blancas */
    text-decoration: none; /* Quita el subrayado del enlace */
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px; /* Bordes ligeramente redondeados */
    box-shadow: 0 4px 6px rgba(217, 56, 30, 0.3); /* Sombra sutil del mismo tono */
    transition: all 0.3s ease; /* Transición suave para la animación */
}

/* Efecto al pasar el mouse por encima */
.btn-hero:hover {
    background-color: #b82d16; /* Un tono un poco más oscuro */
    color: #ffffff;
    transform: translateY(-3px); /* Efecto de que el botón se levanta */
    box-shadow: 0 6px 12px rgba(217, 56, 30, 0.4); /* La sombra crece */
}

/* 
   ==========================================================================
   DESKTOP OVERRIDES FOR HERO COMPACT VIEW
   ========================================================================== 
*/
@media (min-width: 1024px) {
    .navbar {
        height: 80px;
    }
    
    .hero {
        min-height: 100vh;
        padding-bottom: 2rem;
    }
    
    .hero-grid {
        gap: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 3.8vw, 3.2rem);
        margin-bottom: 0.75rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .btn-hero {
        margin-top: 15px;
        padding: 12px 28px;
        font-size: 16px;
    }
    
    .hero-visual {
        height: 420px;
    }
    
    .central-america-map.tech-map {
        max-height: 380px;
    }
    
    .hero-stats {
        margin-top: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.25rem 1.5rem;
        border-radius: 12px;
    }
    
    .stat-card i {
        margin-bottom: 0.75rem;
        width: 24px;
        height: 24px;
    }
    
    .stat-number {
        font-size: 2.25rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* 
   ==========================================================================
   PRODUCT CATEGORIES VECTOR GRID
   ========================================================================== 
*/
.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.category-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.category-item.revealed:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-soft);
}

.category-icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
    color: var(--accent-red);
    transition: color 0.3s ease;
}

.category-item:hover .category-icon {
    color: var(--accent-orange);
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-charcoal);
}

@media (min-width: 768px) {
    .product-categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    .category-item {
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }
    .category-icon {
        width: 48px;
        height: 48px;
    }
    .category-name {
        font-size: 1.1rem;
    }
}

/* 
   ==========================================================================
   DESKTOP OVERRIDES FOR INFRASTRUCTURE (CENTERED GRID)
   ========================================================================== 
*/
@media (min-width: 1024px) {
    .scroll-story {
        overflow: visible;
        width: 100%;
        margin-left: 0;
        padding: 3rem 0;
    }
    .story-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding: 0;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    .story-slide {
        flex: none;
        width: 100%;
        box-shadow: var(--shadow-soft);
    }
}

/* 
   ==========================================================================
   MOBILE RESPONSIVE STYLES (MAX-WIDTH: 767px)
   ========================================================================== 
*/
@media (max-width: 767px) {
    /* Base spacing */
    :root {
        --section-spacing: 50px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
        text-align: center;
    }
    
    h2.section-title {
        font-size: 1.6rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.2;
    }
    
    .subheadline {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }
    
    /* Navbar & Header */
    .navbar {
        height: 70px;
        position: sticky;
        top: 0;
    }
    
    .navbar .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 4px 12px;
    }
    
    .logo {
        font-size: 1rem !important;
        gap: 6px;
    }
    
    .logo-img {
        height: 26px;
    }
    
    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.85rem;
        overflow-x: auto;
        padding-bottom: 2px;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 10px;
    }
    
    .hero-grid {
        gap: 1.5rem;
        padding-top: 10px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        margin-top: 10px;
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        height: 260px;
        margin-top: 10px;
    }
    
    .map-interactive-wrapper {
        max-width: 100%;
    }
    
    .central-america-map.tech-map {
        max-height: 240px;
    }
    
    /* Stats */
    .hero-stats {
        margin-top: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
        border-radius: 12px;
    }
    
    .stat-card i {
        margin-bottom: 0.5rem;
        width: 20px;
        height: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Brands & Carousel */
    .partners.section {
        padding-top: 40px;
    }
    
    .logo-carousel-wrapper {
        padding: 1rem 0;
    }
    
    .logo-track {
        gap: 2rem;
    }
    
    .partner-logo {
        flex: 0 0 100px;
        height: 36px;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }
    
    .carousel-container {
        aspect-ratio: 16 / 9;
        border-radius: 6px;
    }
    
    /* Product Categories Vector Grid */
    .product-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-item {
        padding: 1.25rem 0.75rem;
        border-radius: 12px;
        gap: 0.5rem;
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
    
    /* Infrastructure Scroll Story (2x2 Grid on Mobile) */
    .scroll-story {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem 0;
        overflow: visible;
    }
    
    .story-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }
    
    .story-slide {
        flex: none;
        width: 100%;
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    .slide-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }
    
    .slide-icon svg,
    .slide-icon i {
        width: 28px;
        height: 28px;
    }
    
    .story-slide h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .story-slide p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Timeline Node Flow (Right-aligned Vertical Flow on Mobile) */
    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(50% + 85px); /* Exactly 85px from the center of the wrapper */
        width: 3px;
        height: 100%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.05);
    }
    
    .timeline-line::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, transparent, var(--accent-red), transparent);
        animation: flow-line-vertical 3s infinite linear;
    }
    
    @keyframes flow-line-vertical {
        0% { top: -100%; }
        100% { top: 100%; }
    }
    
    .timeline-wrapper {
        width: 100%;
        max-width: 300px; /* Comfortable width to prevent excessive wrapping */
        margin: 0 auto;
        padding: 2rem 0;
        position: relative;
    }
    
    .timeline-nodes {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center nodes */
        gap: 2.25rem;
        padding: 0;
    }
    
    .t-node {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .t-icon {
        margin: 0 auto 0.5rem;
        width: 56px;
        height: 56px;
        z-index: 2;
        background: var(--primary-bg); /* Block vertical line behind icon */
        border: 2px solid rgba(0,0,0,0.08);
    }
    
    .t-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .t-node label {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
        display: block;
        font-weight: 700;
    }
    
    .t-node span {
        font-size: 0.8rem;
        color: var(--text-secondary);
        display: block;
    }
    
    /* Contact Card */
    .contact-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-header p {
        font-size: 0.85rem;
    }
    
    .form-grid-contact {
        gap: 1rem;
    }
    
    .contact-form label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* Footer Mobile Optimization */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-col.brand-col {
        grid-column: span 2;
        text-align: center;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-col.brand-col .logo {
        justify-content: center;
    }
    
    .footer-desc {
        text-align: center;
        margin: 1rem auto;
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col {
        margin-bottom: 0;
    }
    
    .footer-col:nth-child(4) {
        grid-column: span 2;
        margin-top: 0.5rem;
        border-top: 1px solid var(--glass-border);
        padding-top: 1rem;
    }
    
    .footer-col h4 {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
    
    .footer-links li, 
    .footer-contact li {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.75rem;
    }
}

/* 
   ==========================================================================
   TABLET RESPONSIVE STYLES (MIN-WIDTH: 768px) AND (MAX-WIDTH: 1023px)
   ========================================================================== 
*/
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    /* Navbar Scaling */
    .navbar {
        height: 70px;
    }
    
    .logo {
        font-size: 1.1rem !important;
        gap: 6px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav-links {
        gap: 0.85rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    /* Hero Section Scaling - Side by Side on Tablet */
    .hero {
        min-height: auto !important;
        padding-top: 0;
        padding-bottom: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 1.5rem;
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        grid-column: span 1;
    }
    
    .hero-content h1,
    h2.section-title {
        font-size: 2.2rem !important;
        line-height: 1.25;
    }
    
    .subheadline {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .btn-hero {
        margin-top: 10px;
        padding: 10px 24px;
        font-size: 15px;
    }
    
    .hero-visual {
        grid-column: span 1;
        height: auto;
        min-height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .central-america-map.tech-map {
        max-height: 280px;
        width: 100%;
        height: auto;
    }
    
    .hero-stats {
        margin-top: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.25rem 0.5rem;
        border-radius: 12px;
    }
    
    .stat-card i {
        margin-bottom: 0.5rem;
        width: 22px;
        height: 22px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Product Categories Scaling */
    .product-categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .category-item {
        padding: 1.25rem 0.4rem;
        border-radius: 10px;
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    /* Infrastructure Scaling (4 centered columns, no overflow) */
    .scroll-story {
        overflow: visible;
        width: 100%;
        margin-left: 0;
        padding: 1.5rem 0;
    }
    
    .story-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0;
    }
    
    .story-slide {
        flex: none;
        width: 100%;
        padding: 1.25rem 0.5rem;
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
    }
    
    .story-slide h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .story-slide p {
        font-size: 0.7rem;
        line-height: 1.35;
    }
    
    .slide-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }
    
    .slide-icon svg,
    .slide-icon i {
        width: 20px;
        height: 20px;
    }
    
    /* Timeline Node Flow Scaling */
    .timeline-wrapper {
        padding: 2.5rem 0;
    }
    
    .timeline-line {
        top: 65px;
    }
    
    .timeline-nodes {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .t-node {
        width: 100px;
    }
    
    .t-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .t-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .t-node label {
        font-size: 0.8rem;
    }
    
    .t-node span {
        font-size: 0.7rem;
    }
    
    /* Footer Scaling */
    .footer-grid {
        gap: 1rem;
    }
    
    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links li, 
    .footer-contact li {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-desc {
        font-size: 0.7rem;
    }
}