/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #020B1E;     /* Deep space blue (Mockup main background) */
    --color-primary-light: #051430;
    --color-secondary: #0A192F;
    --color-accent: #FF6B00;      /* RutaEx Orange */
    --color-accent-hover: #E55A00;
    --color-accent-light: rgba(255, 107, 0, 0.1);
    --color-blue: #00C2FF;        /* Electric Blue */
    --color-blue-light: rgba(0, 194, 255, 0.1);
    --color-dark: #0f172a;
    --color-success: #10B981;
    
    /* Text Colors */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;        /* slate-400 */
    --text-muted-light: #64748B;  /* slate-500 */
    --text-dark: #1E293B;         /* slate-800 for dark texts on light background */
    --text-dark-muted: #475569;   /* slate-600 */

    /* Glassmorphism Defaults */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --glass-blur: blur(14px);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container Width */
    --container-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

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

input, button, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ==========================================================================
   UI COMPONENTS (BUTTONS & CARDS)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-orange {
    background-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-orange:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

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

.btn-orange-outline:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}

.btn-dark-outline {
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
}

.btn-dark-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Glassmorphism Card style */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Text Highlights */
.text-gradient {
    background: linear-gradient(135deg, #FF6B00 0%, #FFA800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(2, 11, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

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

.logo-light {
    font-weight: 300;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-menu a:hover, .nav-menu a.active {
    color: #FFFFFF;
}

.nav-menu a.active {
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 11, 30, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #FFFFFF;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video Background */
.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #020B1E;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 92% 15%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.60);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 16px;
    /* Soft shadow to separate text from background elements */
    text-shadow: 0 4px 15px rgba(2, 11, 30, 0.4);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #E2E8F0; /* Lighter color (slate-200) for better contrast */
    margin-bottom: 30px;
    max-width: 580px;
    text-shadow: 0 2px 10px rgba(2, 11, 30, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.icon-arrow {
    transition: transform var(--transition-fast);
}

.btn-orange:hover .icon-arrow {
    transform: translateX(4px);
}

.hero-badges {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 42px;
    height: 42px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.badge-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero Visuals (Map & Metric Cards Overlay) */
.hero-visual {
    position: relative;
    height: 500px;
}

.map-overlay-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.85;
}

.map-svg-bg {
    width: 100%;
    height: 100%;
}

/* Sidebar column containing the stats cards */
.hero-stats-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 310px;
    z-index: 10;
}

/* Card 1: Deliveries today */
.card-deliveries {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Card 2: Success Rate */
.card-success-rate {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Card 3: Transit status */
.card-transit {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-card .card-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.stats-card .card-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

/* Qualifier for text-based (non-numeric) card values */
.stats-card .card-value--qualitative {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card .card-trend {
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.trend-up {
    color: var(--color-success);
}

.card-chart {
    margin-top: 0;
}

.circular-chart {
    max-width: 50px;
    margin-top: 0;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 1s ease-out;
}

.transit-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-blue-light);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New network badge: big country number */
.transit-network-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.18) 0%, rgba(255, 168, 0, 0.10) 100%);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 12px;
    line-height: 1;
}

.network-number {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B00, #FFA800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.network-unit {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 168, 0, 0.75);
    margin-top: 1px;
}

.transit-details {
    display: flex;
    flex-direction: column;
}

.transit-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.transit-value {
    font-size: 0.95rem;
    color: #FFFFFF;
}

.transit-route {
    font-size: 0.75rem;
    color: var(--color-blue);
    margin-top: 2px;
}

/* ==========================================================================
   TRACKING FLOAT BAR
   ========================================================================== */
.hero-tracker-top {
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
    max-width: 520px;
}

/* Compact overrides for tracker when nested at the top of the hero content column */
.hero-tracker-top .tracking-card-floating {
    padding: 12px 18px;
    gap: 16px;
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-tracker-top .tracking-info {
    gap: 12px;
}

.hero-tracker-top .tracking-icon-circle {
    width: 36px;
    height: 36px;
}

.hero-tracker-top .tracking-icon-circle svg {
    width: 16px;
    height: 16px;
}

.hero-tracker-top .tracking-text h3 {
    font-size: 1.05rem;
}

.hero-tracker-top .tracking-text p {
    font-size: 0.72rem;
}

.hero-tracker-top .tracking-form {
    gap: 8px;
}

.hero-tracker-top .tracking-form input {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.hero-tracker-top .tracking-form .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.tracking-card-floating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 32px;
    background: rgba(2, 11, 30, 0.75); /* Azul translúcido */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tracking-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.12);
    color: #FF6B00; /* Lupa naranja */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracking-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF; /* Texto blanco */
}

.tracking-text p {
    font-size: 0.85rem;
    color: var(--text-muted); /* Texto secundario gris claro */
}

.tracking-form {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    max-width: 600px;
}

.tracking-form .input-group {
    position: relative;
    flex-grow: 1;
}

.tracking-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    color: #FFFFFF;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.tracking-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.tracking-form input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   SERVICES GRID SECTION
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: #051430;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 56px;
}

.section-header .eyebrow {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 54px;
    height: 54px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   COVERAGE (PAÍSES)
   ========================================================================== */
.coverage-section {
    padding: 64px 0 0;
    background-color: #F8FAFC;
    color: var(--text-dark);
}

.coverage-section h2 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.coverage-section p {
    color: var(--text-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.coverage-info {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 8px;
}

/* Carousel track wrapper — full viewport width, single row */
.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.carousel-track-wrapper::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
}

.carousel-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
    /* La animación es controlada por JS (rAF), no por CSS */
}

/* hover-pause handled by JS drag logic */

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Each card in the carousel — sized so 6 show at once */
.carousel-track .country-card {
    min-width: calc((100vw - 7 * 16px) / 6);
    max-width: 200px;
    flex-shrink: 0;
}


.country-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 20px 16px;
    position: relative;
    overflow: hidden;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.country-map-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 60%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.country-map-bg svg,
.country-map-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.flag-circle span {
    height: 100%;
}

/* Flag Colors */
.mx-flag .green { width: 33.3%; background: #006847; }
.mx-flag .white { width: 33.4%; background: #FFFFFF; }
.mx-flag .red { width: 33.3%; background: #CE1126; }

.gt-flag .blue { width: 33.3%; background: #4997D0; }
.gt-flag .white { width: 33.4%; background: #FFFFFF; }

.sv-flag { flex-direction: column; }
.sv-flag .blue { height: 33.3%; background: #3B82F6; }
.sv-flag .white { height: 33.4%; background: #FFFFFF; }

.hn-flag { flex-direction: column; }
.hn-flag .blue { height: 33.3%; background: #0073CF; }
.hn-flag .white { height: 33.4%; background: #FFFFFF; }

.ni-flag { flex-direction: column; }
.ni-flag .blue { height: 33.3%; background: #0067C6; }
.ni-flag .white { height: 33.4%; background: #FFFFFF; }

.cr-flag { flex-direction: column; }
.cr-flag .blue { height: 17%; background: #002B7F; }
.cr-flag .white { height: 17%; background: #FFFFFF; }
.cr-flag .red { height: 32%; background: #CE1126; }

.pa-flag { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pa-flag .q1 { background: #FFFFFF; position: relative; }
.pa-flag .q1::after { content: '★'; color: #005293; font-size: 6px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 1; }
.pa-flag .q2 { background: #D21034; }
.pa-flag .q3 { background: #005293; }
.pa-flag .q4 { background: #FFFFFF; position: relative; }
.pa-flag .q4::after { content: '★'; color: #D21034; font-size: 6px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 1; }

.co-flag { flex-direction: column; }
.co-flag .yellow { height: 50%; background: #FCD116; }
.co-flag .blue { height: 25%; background: #003893; }
.co-flag .red { height: 25%; background: #CE1126; }

.ec-flag { flex-direction: column; position: relative; }
.ec-flag .yellow { height: 50%; background: #FFDD00; }
.ec-flag .blue { height: 25%; background: #0033A0; }
.ec-flag .red { height: 25%; background: #DA291C; }
.ec-flag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #8B4513;
    border-radius: 50%;
    border: 0.5px solid #FFDD00;
}

.ar-flag { flex-direction: column; position: relative; }
.ar-flag .blue { height: 33.3%; background: #74ACDF; }
.ar-flag .white { height: 33.4%; background: #FFFFFF; position: relative; }
.ar-flag .sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #FCD116;
    border-radius: 50%;
    border: 0.5px solid #E5A900;
}

.uy-flag { display: flex; flex-direction: column; background: #FFFFFF; position: relative; }
.uy-flag .stripe { height: 11.1%; background: #0038A8; }
.uy-flag .stripe-w { height: 11.1%; background: #FFFFFF; }
.uy-flag .canton { position: absolute; left: 0; top: 0; width: 45%; height: 45%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; border-radius: 0 0 2px 0; border-right: 0.5px solid rgba(0,0,0,0.05); border-bottom: 0.5px solid rgba(0,0,0,0.05); }
.uy-flag .sun { width: 8px; height: 8px; border-radius: 50%; background: #FCD116; border: 0.5px solid #E5A900; }

/* Chile */
.cl-flag { display: grid; grid-template-columns: 30% 70%; grid-template-rows: 50% 50%; }
.cl-flag span { height: auto; }
.cl-flag .canton { background: #0039A6; position: relative; grid-row: 1; grid-column: 1; }
.cl-flag .canton::after { content: '\2605'; color: #FFFFFF; font-size: 7px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 1; }
.cl-flag .red { background: #D52B1E; grid-row: 1; grid-column: 2; }
.cl-flag .white-bottom { background: #FFFFFF; grid-column: 1 / -1; grid-row: 2; }

.country-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.country-status {
    font-size: 0.75rem;
    color: var(--text-dark-muted);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Mini-stats row inside country card */
.country-card-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.ccs-item {
    font-size: 0.72rem;
    color: #475569;
    white-space: nowrap;
}

.ccs-item strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FF6B00;
    font-size: 0.78rem;
}

.ccs-dot {
    font-size: 0.65rem;
    color: #CBD5E1;
    line-height: 1;
}

.ccs-soon {
    font-size: 0.7rem;
    color: #94A3B8;
    font-style: italic;
}

.plus-card {
    background: #F1F5F9;
    border-style: dashed;
    border-color: #CBD5E1;
    cursor: pointer;
}

.plus-card:hover {
    background: #E2E8F0;
    border-style: solid;
}

.plus-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-link {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   VALUE PROPOSITION SECTION
   ========================================================================== */
.value-prop-section {
    padding: 80px 0;
    background-color: #051430;
}

.vp-header {
    text-align: center;
    margin-bottom: 48px;
}

.vp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.vp-col {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vp-icon {
    width: 52px;
    height: 52px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 4px;
}

.vp-col p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* ==========================================================================
   TECHNOLOGY (DASHBOARD)
   ========================================================================== */
.tech-section {
    padding: 100px 0;
    background: #FFFFFF;
    color: var(--text-dark);
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.tech-info .eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.tech-info h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tech-info p {
    color: var(--text-dark-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.tech-features-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-features-list strong {
    font-weight: 700;
}

/* Recreated HTML Dashboard mockup */
.dashboard-wrapper {
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    height: 520px;
    font-size: 0.85rem;
    background-color: #F8FAFC;
}

/* Sidebar */
.db-sidebar {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.db-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 32px;
}

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

.db-logo-light {
    font-weight: 300;
}

.db-nav li {
    margin-bottom: 6px;
}

.db-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #94A3B8;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.db-nav li.active a, .db-nav a:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
}

.db-nav li.active a {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--color-accent);
}

.db-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-role {
    font-size: 0.65rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-user-arrow {
    color: #64748B;
}

/* Dashboard Content Panel */
.db-main {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.db-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.db-topbar h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.db-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-select-wrapper {
    position: relative;
}

.db-select {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 6px 28px 6px 12px;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
}

.custom-select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    pointer-events: none;
    font-size: 10px;
}

.db-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.db-icon-btn:hover {
    background: #F1F5F9;
    color: var(--text-dark);
}

/* Metrics Card */
.db-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.db-metric-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px;
}

.metric-label {
    font-size: 0.7rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 6px;
}

.metric-val-trend {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
}

.metric-trend {
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.trend-sub {
    color: #94A3B8;
    font-weight: 400;
}

/* Charts Area */
.db-charts-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    flex-grow: 1;
}

.db-chart-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.db-chart-card h4 {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-header h4 {
    margin-bottom: 0;
}

.chart-legend {
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: #64748B;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.color-2024, .color-entregados { background-color: var(--color-accent); }
.color-2023, .color-excepciones { background-color: #475569; }
.color-transito { background-color: var(--color-blue); }

.chart-body-line {
    flex-grow: 1;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
}

.svg-line-chart {
    width: 100%;
    height: auto;
}

/* Donut Chart Styling */
.pie-chart-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    justify-content: center;
}

.pie-chart-visual {
    position: relative;
    width: 80px;
    height: 80px;
}

.donut-chart-svg {
    transform: rotate(-90deg);
}

.donut-inner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.donut-inner-text strong {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1;
}

.donut-inner-text span {
    font-size: 0.55rem;
    color: #94A3B8;
}

.pie-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
}

.legend-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-text-label {
    color: #64748B;
    flex-grow: 1;
}

.legend-value {
    color: var(--text-dark);
}

/* ==========================================================================
   HOW IT WORKS (CÓMO FUNCIONA)
   ========================================================================== */
.how-it-works-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.steps-connector-line {
    position: absolute;
    top: 36px;
    left: 12%;
    right: 12%;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
}

.step-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.step-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    font-family: var(--font-heading);
}

.step-item h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.step-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 200px;
}

.step-item:hover .step-icon {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

/* ==========================================================================
   STATS ROW (DARK BLUE BANNER)
   ========================================================================== */
.stats-row-section {
    position: relative;
    padding: 50px 0;
    overflow: hidden;
    background-color: #040E20; /* Deep blue background matching maqueta */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-row-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 50%, rgba(255, 107, 0, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.stat-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item-row:last-child {
    border-right: none;
}

.stat-item-icon {
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-item-text {
    display: flex;
    flex-direction: column;
}

.stat-item-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
}

.stat-item-text > span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* ==========================================================================
   COD / PAGO CONTRA ENTREGA SECTION — Premium redesign
   ========================================================================== */
.cod-section {
    padding: 110px 0 90px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 60%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

/* Dot pattern background */
.cod-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}

.cod-section .container {
    position: relative;
    z-index: 1;
}

.cod-header {
    max-width: 700px;
    margin: 0 auto 72px;
    text-align: center;
}

.cod-header h2 {
    color: var(--text-dark);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-gradient-dark {
    background: linear-gradient(135deg, #FF6B00, #FFA800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cod-header p {
    color: var(--text-dark-muted);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 3-step flow ─────────────────────────────────────────── */
.cod-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
}

.cod-step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 44px 32px 36px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(.22,.61,.36,1);
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Top accent bar */
.cod-step::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FFA800);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.cod-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.25);
}

.cod-step:hover::before {
    opacity: 1;
    width: 80px;
}

/* Step number — large ghost watermark */
.cod-step-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,168,0,0.06));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: -12px;
    letter-spacing: -4px;
    user-select: none;
}

/* Step icon circle */
.cod-step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255,107,0,0.10) 0%, rgba(255,168,0,0.06) 100%);
    color: #FF6B00;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border: 1px solid rgba(255,107,0,0.15);
    transition: background 0.3s, transform 0.3s;
}

.cod-step:hover .cod-step-icon {
    background: linear-gradient(135deg, rgba(255,107,0,0.18) 0%, rgba(255,168,0,0.12) 100%);
    transform: scale(1.08);
}

.cod-step h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cod-step p {
    font-size: 0.875rem;
    color: var(--text-dark-muted);
    line-height: 1.65;
    margin: 0;
}

.cod-step strong {
    color: #FF6B00;
    font-weight: 700;
}

/* Arrow connector */
.cod-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
    margin-top: 56px;
    color: rgba(255,107,0,0.35);
    position: relative;
}

.cod-arrow::before,
.cod-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,107,0,0.3);
    transform: translateY(-50%);
}

.cod-arrow::before { left: 0; }
.cod-arrow::after  { right: 0; }

/* ── Trust bar ────────────────────────────────────────────── */
.cod-trust {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, #0B1628 0%, #1A2744 50%, #0D1F3C 100%);
    border-radius: 20px;
    padding: 40px 56px;
    border: 1px solid rgba(255,107,0,0.15);
    box-shadow: 0 0 60px rgba(255,107,0,0.06), 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* Top glow line */
.cod-trust::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,0,0.5), transparent);
}

.cod-trust-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.cod-trust-item strong {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B00, #FFA800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1;
}

.cod-trust-item span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.cod-trust-divider {
    width: 1px;
    height: 52px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
    flex-shrink: 0;
    margin: 0 4px;
}

/* ==========================================================================
   CPA MARKETING SECTION — Premium redesign
   ========================================================================== */
.cpa-section {
    padding: 110px 0;
    background: #030D1F;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Radial light blob */
.cpa-section::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.cpa-section::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,60,120,0.25) 0%, transparent 65%);
    pointer-events: none;
}

.cpa-section .container {
    position: relative;
    z-index: 1;
}

.cpa-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left column */
.cpa-content .eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    color: #FF6B00;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px 12px;
    background: rgba(255,107,0,0.08);
    border: 1px solid rgba(255,107,0,0.2);
    border-radius: 100px;
}

.cpa-content .eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF6B00;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.cpa-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.8px;
    line-height: 1.18;
}

.cpa-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.cpa-content p strong {
    color: #FFA040;
    font-weight: 600;
}

.cpa-content .btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* ── 4 pilares ───────────────────────────────────────────── */
.cpa-pillars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cpa-pillar {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid rgba(255,107,0,0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(4px);
}

.cpa-pillar:hover {
    background: rgba(255, 107, 0, 0.06);
    border-color: rgba(255, 107, 0, 0.15);
    border-left-color: #FF6B00;
    transform: translateX(6px);
    box-shadow: -4px 0 24px rgba(255,107,0,0.08);
}

.cpa-pillar-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,168,0,0.06));
    color: #FF6B00;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,107,0,0.15);
    transition: transform 0.3s ease;
}

.cpa-pillar:hover .cpa-pillar-icon {
    transform: scale(1.1) rotate(-3deg);
}

.cpa-pillar h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    margin-bottom: 5px;
    letter-spacing: -0.1px;
}

.cpa-pillar p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2, 11, 30, 0.95) 0%, rgba(2, 11, 30, 0.75) 40%, rgba(2, 11, 30, 0.2) 100%);
    z-index: -1;
}

.cta-container {
    display: flex;
    align-items: center;
}

.cta-content {
    max-width: 550px;
}

.cta-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    position: relative;
    padding: 80px 0 30px;
    background-color: #020B1E;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

.footer-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(2, 11, 30, 0.1) 0%, rgba(2, 11, 30, 0.95) 90%);
    z-index: -1;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: 32px;
    margin-bottom: 60px;
}

/* Vertical grid separation lines styled via border mapping to match seccion 8.png */
.footer-columns > div:not(.brand-col) {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 24px;
}

.brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 250px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

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

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: #FFFFFF;
}

.contact-col li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.contact-col li svg {
    color: var(--color-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-col li a {
    line-height: 1.4;
}

.contact-col li span {
    display: block;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

.footer-legal-links a {
    color: var(--text-muted-light);
}

.footer-legal-links a:hover {
    color: #FFFFFF;
}

.legal-separator {
    margin: 0 8px;
}

/* ==========================================================================
   TRACKING MODAL STYLE (INTERACTIVE DIALOG) — PREMIUM REDESIGN
   ========================================================================== */
.tracking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(2, 11, 30, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.tracking-modal.active {
    opacity: 1;
    pointer-events: all;
}

.tracking-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0D1F3C 0%, #07111F 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 2px 0 rgba(255, 255, 255, 0.06) inset;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,0,0.3) transparent;
}

.tracking-modal-content::-webkit-scrollbar {
    width: 5px;
}
.tracking-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.tracking-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,107,0,0.3);
    border-radius: 4px;
}

.tracking-modal.active .tracking-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.close-modal-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    margin-bottom: 24px;
    padding-right: 40px;
}

.modal-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.modal-order-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 107, 0, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

/* Status Summary Box */
.status-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.status-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
    background: var(--status-color, var(--color-accent));
}

/* Status badge — base */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border: 1px solid currentColor;
}

/* Delivered — green */
.status-badge.status-delivered {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    --status-color: #10B981;
}
.status-summary:has(.status-delivered)::before { background: #10B981; }

/* In transit — electric blue */
.status-badge.status-transit {
    background: rgba(0, 194, 255, 0.1);
    color: #00C2FF;
    --status-color: #00C2FF;
}
.status-summary:has(.status-transit)::before { background: #00C2FF; }

/* In warehouse — orange */
.status-badge.status-warehouse {
    background: rgba(255, 107, 0, 0.12);
    color: var(--color-accent);
    --status-color: var(--color-accent);
}

/* Rescheduled — amber */
.status-badge.status-rescheduled {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    --status-color: #F59E0B;
}
.status-summary:has(.status-rescheduled)::before { background: #F59E0B; }

/* Issue — red */
.status-badge.status-issue {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    --status-color: #EF4444;
}
.status-summary:has(.status-issue)::before { background: #EF4444; }

/* Returned — slate */
.status-badge.status-returned {
    background: rgba(148, 163, 184, 0.1);
    color: #94A3B8;
    --status-color: #94A3B8;
}
.status-summary:has(.status-returned)::before { background: #94A3B8; }

/* Cancelled — red-slate */
.status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #FC8181;
    --status-color: #FC8181;
}
.status-summary:has(.status-cancelled)::before { background: #FC8181; }

/* Customs */
.status-badge.status-customs {
    background: rgba(245, 158, 11, 0.08);
    color: #F59E0B;
    --status-color: #F59E0B;
}

/* Status description text */
.status-desc {
    font-size: 0.88rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin: 0;
}

/* Info extra (destino / fecha estimada) */
.status-extra {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-blue);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Timeline section heading */
.timeline-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted-light);
    margin-bottom: 16px;
}

/* Timeline wrapper */
.tracking-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 36px;
}

/* Vertical connecting line */
.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 11px;
    width: 2px;
    height: calc(100% - 32px);
    background: linear-gradient(
        to bottom,
        rgba(255, 107, 0, 0.5) 0%,
        rgba(255, 255, 255, 0.06) 40%
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.timeline-item:last-child {
    border-bottom: none;
}

/* Dot — default inactive */
.timeline-dot {
    position: absolute;
    left: -32px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1E3055;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    z-index: 1;
}

/* Dot — most recent / active */
.timeline-item.active .timeline-dot {
    background: var(--color-accent);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow:
        0 0 0 4px rgba(255, 107, 0, 0.12),
        0 0 14px rgba(255, 107, 0, 0.5);
    animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255,107,0,0.12), 0 0 14px rgba(255,107,0,0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(255,107,0,0.06), 0 0 20px rgba(255,107,0,0.35); }
}

/* Timeline content */
.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.1px;
}

.timeline-item:not(.active) .timeline-title {
    color: #94A3B8;
    font-weight: 500;
}

.timeline-time {
    font-size: 0.74rem;
    color: #64748B;
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-loc {
    font-size: 0.74rem;
    color: rgba(0, 194, 255, 0.75);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading state */
.timeline-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px 0;
    justify-content: center;
}

.timeline-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty / error state */
.timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    color: var(--text-muted);
    text-align: center;
}

.timeline-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}

.timeline-empty p {
    font-size: 0.85rem;
    color: #64748B;
    max-width: 220px;
    line-height: 1.5;
}

/* ==========================================================================
   SCROLL REVEAL EFFECT
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
}

/* Pulse ring */
.wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-ring 2.4s ease-out infinite;
}

@keyframes wa-ring {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 70px;
    background: #1A1A2E;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right: none;
    border-left-color: #1A1A2E;
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .wa-tooltip {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .dashboard-container {
        grid-template-columns: 160px 1fr;
        height: 480px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding-top: 135px;
        padding-bottom: 90px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .hero-visual {
        height: auto;
        width: 100%;
    }
    
    .hero-stats-sidebar {
        position: static !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    
    .stats-card {
        height: 100%;
    }

    .hero-tracker-top {
        max-width: 100%;
    }

    .tracking-card-floating {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    
    .tracking-form {
        max-width: 100%;
    }
    
    .services-section,
    .value-prop-section,
    .coverage-section,
    .tech-section,
    .steps-section,
    .cta-section {
        padding: 64px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coverage-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .coverage-info {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .tech-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-info {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .dashboard-wrapper {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }

    .dashboard-container {
        height: 420px;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .steps-connector-line {
        display: none;
    }
    
    .stats-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-item-row {
        border-right: none;
    }
    
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-columns > div:not(.brand-col) {
        border-left: none;
        padding-left: 0;
    }
    
    .brand-col {
        grid-column: span 3;
        margin-bottom: 20px;
    }
}

/* ── COD + CPA Responsive ─────────────────────────────────── */
@media (max-width: 992px) {
    .cod-flow {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .cod-step { max-width: 480px; width: 100%; }
    .cod-arrow {
        transform: rotate(90deg);
        margin-top: 0;
    }
    .cod-arrow::before, .cod-arrow::after { display: none; }
    .cod-trust { flex-wrap: wrap; gap: 0; padding: 32px 24px; }
    .cod-trust-item { flex: 0 0 50%; padding: 16px 0; }
    .cod-trust-divider:nth-child(2) { display: none; }
    .cod-trust-divider:nth-child(4) { display: none; }
    .cpa-inner { grid-template-columns: 1fr; gap: 48px; }
    .cpa-content { text-align: center; }
    .cpa-content .btn { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {

    .main-header {
        padding: 14px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 18px;
        right: 20px;
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(2, 11, 30, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 90px 28px 28px;
        transition: right var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    .header-action {
        display: none;
    }
    
    /* Toggle burger animations */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 44px;
    }
    
    .video-bg {
        opacity: 0.3;
        object-position: center;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 0.97rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-badges {
        flex-wrap: wrap;
        gap: 12px;
    }

    .badge-item {
        flex: 1 1 calc(50% - 12px);
        min-width: 120px;
    }
    
    .hero-stats-sidebar {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Sections */
    .services-section,
    .value-prop-section,
    .coverage-section,
    .tech-section,
    .steps-section,
    .cta-section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .vp-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vp-col {
        padding: 28px 24px;
    }
    
    .coverage-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .country-card {
        height: 130px;
        padding: 18px;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .db-sidebar {
        flex-direction: row;
        padding: 14px 16px;
        height: auto;
        align-items: center;
    }
    
    .db-logo, .db-user, .db-nav {
        margin-bottom: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .db-nav {
        display: none;
    }
    
    .db-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .db-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .pie-chart-content {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: 1.85rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .brand-col {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Tracking form */
    .hero-tracker-top .tracking-card-floating {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .hero-tracker-top .tracking-form {
        flex-direction: column;
        gap: 10px;
    }

    .hero-tracker-top .tracking-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 36px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        letter-spacing: -0.3px;
    }

    .hero-tracker-top {
        margin-bottom: 18px;
    }

    .hero-tracker-top .tracking-info {
        gap: 10px;
    }

    .hero-tracker-top .tracking-text h3 {
        font-size: 0.95rem;
    }

    .hero-tracker-top .tracking-text p {
        font-size: 0.7rem;
    }
    
    .hero-stats-sidebar {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        max-width: 100% !important;
    }

    .stats-card {
        padding: 14px 16px;
    }
    
    .stats-card .card-value {
        font-size: 1.5rem;
    }

    .hero-badges {
        gap: 10px;
    }

    .badge-item {
        flex: 1 1 100%;
    }

    .services-section,
    .value-prop-section,
    .coverage-section,
    .tech-section,
    .steps-section,
    .cta-section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .coverage-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .country-card {
        height: 110px;
        padding: 14px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid-row {
        grid-template-columns: 1fr;
    }
    
    .db-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   COVERAGE MODAL STYLES (PREMIUM GLASSMORPHISM)
   ========================================================================== */
.country-card {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.country-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
}

.coverage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(2, 11, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.coverage-modal.active {
    opacity: 1;
    pointer-events: all;
}

.coverage-modal-content {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0D1F3C 0%, #07111F 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 2px 0 rgba(255, 255, 255, 0.06) inset;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
}

.coverage-modal-content::-webkit-scrollbar {
    width: 5px;
}
.coverage-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.coverage-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 4px;
}

.coverage-modal.active .coverage-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal Title layout with flag */
.coverage-title-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.coverage-title-wrapper .flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1.5px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.modal-country-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Coverage Search bar */
.coverage-search-wrapper {
    margin: 20px 0;
    position: sticky;
    top: -36px;
    background: linear-gradient(to bottom, #0D1F3C, #0d1e3a 90%, transparent);
    z-index: 100;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 44px 14px 18px;
    color: #FFFFFF;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input-group input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
}

.search-input-group .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* Results section styling */
.coverage-results-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coverage-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all var(--transition-normal);
}

.coverage-result-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.result-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: #FFFFFF;
}

.result-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
}

.result-card-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-covered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-restricted {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-no-coverage {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-meeting-point {
    background: rgba(99, 102, 241, 0.12);
    color: #818CF8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-time {
    color: var(--color-blue);
    font-weight: 600;
}

/* Spinner state */
.coverage-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 16px;
    color: var(--text-muted);
}

.coverage-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid rgba(255, 107, 0, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: covSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes covSpin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.coverage-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
    text-align: center;
    gap: 12px;
    color: var(--text-muted);
}

.coverage-empty-icon {
    font-size: 2.2rem;
    color: var(--text-muted-light);
    margin-bottom: 4px;
}

.coverage-empty p {
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.5;
}

/* Coming soon state layout */
.coming-soon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    gap: 16px;
}

.coming-soon-card .cs-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
}

.coming-soon-card h4 {
    font-size: 1.4rem;
    color: #FFFFFF;
    font-weight: 700;
}

.coming-soon-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
}

.coming-soon-card .btn {
    margin-top: 10px;
}

@media (max-width: 580px) {
    .coverage-modal-content {
        padding: 24px 20px;
    }
    .coverage-search-wrapper {
        top: -24px;
    }
}

/* Coverage Modal Selling Indicators (Stats badges) */
.coverage-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    padding: 12px 0;
    background: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
}

.coverage-stats-container.hidden {
    display: none;
}

.stat-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 10px;
}

.stat-badge:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF; /* White number */
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* For mobile devices, stack the badges if they get too tight */
@media (max-width: 480px) {
    .coverage-stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 15px 0;
    }
    .stat-badge {
        justify-content: flex-start;
        padding-left: 20px;
    }
    .stat-badge:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 12px;
    }
}


/* ==========================================================================
   MODAL SOLICITAR ALIANZA
   ========================================================================== */
.alianza-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(2, 11, 30, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.alianza-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.alianza-modal-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #0D1F3C 0%, #07111F 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 44px 40px 36px;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 2px 0 rgba(255, 255, 255, 0.07) inset;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
}

.alianza-modal-overlay.active .alianza-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.alianza-modal-card::-webkit-scrollbar { width: 5px; }
.alianza-modal-card::-webkit-scrollbar-track { background: transparent; }
.alianza-modal-card::-webkit-scrollbar-thumb { background: rgba(255, 107, 0, 0.3); border-radius: 4px; }

/* Header */
.alianza-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
    padding-right: 36px;
}

.alianza-modal-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(255, 168, 0, 0.08));
    border: 1px solid rgba(255, 107, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.alianza-modal-header h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.alianza-modal-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Form layout */
.alianza-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alianza-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .alianza-form-row { grid-template-columns: 1fr; }
    .alianza-modal-card { padding: 32px 20px 28px; }
}

.alianza-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alianza-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: 0.2px;
}

.required-star {
    color: var(--color-accent);
    margin-left: 2px;
}

.alianza-field input,
.alianza-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.alianza-field input::placeholder,
.alianza-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.alianza-field input:focus,
.alianza-field textarea:focus {
    border-color: rgba(255, 107, 0, 0.55);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.alianza-field textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.55;
}

/* Phone input with WhatsApp prefix icon */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #25D366;
    pointer-events: none;
    z-index: 1;
}

.phone-input-wrapper input[type="tel"] {
    padding-left: 42px;
}

/* Submit button & loading state */
.alianza-form-actions {
    margin-top: 4px;
}

.alianza-submit-btn {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.alianza-submit-btn.loading .btn-text { opacity: 0.7; }
.alianza-submit-btn.loading .btn-spinner { display: inline-block; }
.alianza-submit-btn:disabled { cursor: not-allowed; opacity: 0.75; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status feedback messages */
.alianza-status {
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 0;
    border-radius: 10px;
    min-height: 0;
    transition: all 0.25s ease;
}

.alianza-status:not(:empty) {
    padding: 12px 16px;
    border: 1px solid;
}

.alianza-status--success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.alianza-status--error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* ==========================================================================
   RESPONSIVE IMPROVEMENTS — MOBILE & TABLET (Comprehensive Pass)
   ========================================================================== */

/* ── Tablet Grande (≤1024px) additions ───────────────────── */
@media (max-width: 1024px) {
    /* COD Section */
    .cod-section {
        padding: 72px 0 56px;
    }
    .cod-header {
        margin-bottom: 48px;
    }
    .cod-header h2 {
        font-size: 2.1rem;
    }
    .cod-trust {
        padding: 32px 32px;
    }

    /* CPA Section */
    .cpa-section {
        padding: 72px 0;
    }
    .cpa-content h2 {
        font-size: 2.1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 80px 0;
    }
    .cta-content h2 {
        font-size: 2.1rem;
    }

    /* How it works */
    .how-it-works-section {
        padding: 72px 0;
    }

    /* Stats row */
    .stats-row-section {
        padding: 40px 0;
    }
    .stat-item-text h3 {
        font-size: 1.5rem;
    }

    /* Alianza modal */
    .alianza-modal-card {
        padding: 36px 32px 28px;
    }
}

/* ── Tablet Media (≤768px) additions ─────────────────────── */
@media (max-width: 768px) {

    /* ── COD section ── */
    .cod-section {
        padding: 56px 0 44px;
    }
    .cod-header {
        margin-bottom: 36px;
    }
    .cod-header h2 {
        font-size: 1.8rem;
        letter-spacing: -0.3px;
    }
    .cod-header p {
        font-size: 0.97rem;
    }
    .cod-flow {
        gap: 16px;
    }
    .cod-step {
        padding: 32px 24px 28px;
        max-width: 100%;
    }
    .cod-step-number {
        font-size: 3.5rem;
    }
    .cod-step-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    .cod-trust {
        padding: 28px 20px;
        border-radius: 16px;
        gap: 0;
    }
    .cod-trust-item strong {
        font-size: 1.7rem;
    }
    .cod-trust-item span {
        font-size: 0.7rem;
    }
    .cod-trust-divider {
        height: 36px;
    }

    /* ── CPA section ── */
    .cpa-section {
        padding: 56px 0;
    }
    .cpa-inner {
        gap: 36px;
    }
    .cpa-content h2 {
        font-size: 1.8rem;
        letter-spacing: -0.3px;
    }
    .cpa-content p {
        font-size: 0.92rem;
    }
    .cpa-pillar {
        padding: 18px 18px;
        gap: 14px;
    }
    .cpa-pillar-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .cpa-pillar h4 {
        font-size: 0.9rem;
    }
    .cpa-pillar p {
        font-size: 0.78rem;
    }

    /* ── How it works / Steps ── */
    .how-it-works-section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    .step-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }
    .step-item h4 {
        font-size: 1rem;
    }
    .step-item p {
        font-size: 0.83rem;
    }

    /* ── Stats Row ── */
    .stats-row-section {
        padding: 32px 0;
    }
    .stats-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .stat-item-row {
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .stat-item-row:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.06);
    }
    .stat-item-row:last-child,
    .stat-item-row:nth-last-child(2):nth-child(odd) {
        border-bottom: none;
    }
    .stat-item-text h3 {
        font-size: 1.5rem;
    }

    /* ── Tracking modal ── */
    .tracking-modal-content {
        padding: 28px 20px;
        border-radius: 16px;
    }

    /* ── Alianza form modal ── */
    .alianza-modal-card {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }
    .alianza-modal-header {
        gap: 14px;
        margin-bottom: 24px;
    }
    .alianza-modal-icon {
        width: 46px;
        height: 46px;
    }
    .alianza-modal-header h3 {
        font-size: 1.35rem;
    }
    .alianza-modal-header p {
        font-size: 0.83rem;
    }
    .alianza-form {
        gap: 16px;
    }
    .alianza-field input,
    .alianza-field textarea {
        padding: 11px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .alianza-submit-btn {
        padding: 13px 24px;
        font-size: 0.95rem;
    }

    /* ── CTA ── */
    .cta-section {
        padding: 64px 0;
    }
    .cta-content h2 {
        font-size: 1.75rem;
    }
    .cta-content p {
        font-size: 0.97rem;
    }
    .cta-overlay {
        background: linear-gradient(180deg, rgba(2,11,30,0.92) 0%, rgba(2,11,30,0.82) 100%);
    }

    /* ── Coverage section ── */
    .coverage-section {
        padding: 48px 0 0;
    }
    .coverage-section h2 {
        font-size: 1.8rem;
    }
    .coverage-section p {
        font-size: 0.95rem;
    }
    .carousel-track .country-card {
        min-width: calc((100vw - 5 * 16px) / 4);
    }

    /* ── Tech section ── */
    .tech-section {
        padding: 56px 0;
    }
    .tech-info h2 {
        font-size: 1.9rem;
    }
    .tech-info p {
        font-size: 0.97rem;
    }
    .tech-features-list {
        gap: 12px;
        margin-bottom: 28px;
    }
    .dashboard-wrapper {
        border-radius: 10px;
    }
    .db-sidebar {
        gap: 12px;
    }
    .db-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Coverage modal ── */
    .coverage-modal-content {
        border-radius: 16px;
    }

    /* ── Footer ── */
    .main-footer {
        padding: 56px 0 24px;
    }
    .footer-columns {
        gap: 20px;
    }
    .footer-col h4 {
        margin-bottom: 16px;
    }
    .brand-desc {
        max-width: 100%;
    }
}

/* ── Tablet pequeño / Mobile grande (≤640px) ─────────────── */
@media (max-width: 640px) {

    /* Hero tracker — apila verticalmente en mobile */
    .hero-tracker-top .tracking-card-floating {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .hero-tracker-top .tracking-info {
        gap: 10px;
    }
    .hero-tracker-top .tracking-form {
        flex-direction: column;
        gap: 8px;
        max-width: 100%;
    }
    .hero-tracker-top .tracking-form input {
        width: 100%;
    }
    .hero-tracker-top .tracking-form .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero stats — 1 column */
    .hero-stats-sidebar {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* COD flow vertical */
    .cod-flow {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .cod-step {
        max-width: 480px;
        width: 100%;
    }
    .cod-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    .cod-trust {
        flex-wrap: wrap;
        padding: 20px 16px;
    }
    .cod-trust-item {
        flex: 0 0 50%;
        padding: 12px 0;
    }
    .cod-trust-divider {
        display: none;
    }
    .cod-trust-item strong {
        font-size: 1.5rem;
    }

    /* CPA grid → 1 column */
    .cpa-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cpa-content {
        text-align: center;
    }
    .cpa-content .btn {
        margin-left: auto;
        margin-right: auto;
    }
    .cpa-content .eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    /* Steps → 1 column */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .steps-connector-line {
        display: none;
    }

    /* Stats row → 1 column */
    .stats-grid-row {
        grid-template-columns: 1fr;
    }
    .stat-item-row {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 14px 16px;
    }
    .stat-item-row:last-child {
        border-bottom: none;
    }

    /* Alianza form rows → 1 column always */
    .alianza-form-row {
        grid-template-columns: 1fr;
    }

    /* Footer → 2 columns on 640 */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-col {
        grid-column: span 2;
    }

    /* Coverage section cards */
    .coverage-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .carousel-track .country-card {
        min-width: calc((100vw - 4 * 16px) / 3);
    }
}

/* ── Mobile puro (≤480px) additions ──────────────────────── */
@media (max-width: 480px) {

    /* COD */
    .cod-section {
        padding: 44px 0 36px;
    }
    .cod-header h2 {
        font-size: 1.55rem;
    }
    .cod-step {
        padding: 24px 18px 20px;
    }
    .cod-step-number {
        font-size: 2.8rem;
    }
    .cod-step-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .cod-step h3 {
        font-size: 1rem;
    }
    .cod-step p {
        font-size: 0.83rem;
    }
    .cod-trust-item strong {
        font-size: 1.35rem;
    }
    .cod-trust-item span {
        font-size: 0.65rem;
    }

    /* CPA */
    .cpa-section {
        padding: 44px 0;
    }
    .cpa-content h2 {
        font-size: 1.55rem;
    }
    .cpa-pillar {
        padding: 14px 14px;
        gap: 12px;
        flex-direction: row;
        align-items: center;
    }
    .cpa-pillar-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    /* How it works */
    .how-it-works-section {
        padding: 44px 0;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    /* Stats row */
    .stat-item-text h3 {
        font-size: 1.35rem;
    }

    /* Alianza modal */
    .alianza-modal-card {
        padding: 24px 16px 20px;
        border-radius: 14px;
        max-height: 95vh;
    }
    .alianza-modal-header {
        gap: 12px;
        margin-bottom: 20px;
        padding-right: 28px;
    }
    .alianza-modal-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .alianza-modal-header h3 {
        font-size: 1.2rem;
    }
    .alianza-modal-header p {
        font-size: 0.8rem;
    }
    .alianza-field label {
        font-size: 0.78rem;
    }
    .alianza-field input,
    .alianza-field textarea {
        padding: 10px 12px;
        font-size: 0.88rem;
        border-radius: 8px;
    }
    .alianza-field textarea {
        min-height: 80px;
    }
    .alianza-submit-btn {
        padding: 12px 20px;
        font-size: 0.92rem;
    }
    .alianza-form {
        gap: 14px;
    }

    /* Tracking modal */
    .tracking-modal-content {
        padding: 24px 16px;
        border-radius: 14px;
    }
    .modal-header h3 {
        font-size: 1.3rem;
    }

    /* CTA */
    .cta-section {
        padding: 52px 0;
    }
    .cta-content h2 {
        font-size: 1.55rem;
    }
    .cta-content p {
        font-size: 0.9rem;
    }

    /* Coverage modal */
    .coverage-modal-content {
        padding: 20px 16px;
        border-radius: 14px;
    }

    /* Footer → 1 column */
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .brand-col {
        grid-column: span 1;
    }
    .main-footer {
        padding: 44px 0 20px;
    }

    /* Carousel country cards */
    .carousel-track .country-card {
        min-width: calc((100vw - 3 * 16px) / 2.3);
    }

    /* Section headers smaller */
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section-header p {
        font-size: 0.92rem;
    }

    /* Tech section */
    .tech-section {
        padding: 44px 0;
    }
    .tech-info h2 {
        font-size: 1.6rem;
    }
    .dashboard-container {
        height: 360px;
    }
    .db-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .metric-value {
        font-size: 1.1rem;
    }
    .db-charts-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .step-icon-wrapper {
        width: 54px;
        height: 54px;
    }
    .step-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    /* Value prop */
    .vp-col {
        padding: 22px 18px;
    }
    .vp-col h4 {
        font-size: 1.05rem;
    }
    .vp-col p {
        font-size: 0.88rem;
    }

    /* Services */
    .service-card {
        padding: 24px 18px;
    }
    .service-card h4 {
        font-size: 1.1rem;
    }
    .service-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 18px;
    }

    /* Hero section */
    .hero-section {
        padding-top: 76px;
        padding-bottom: 32px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
        letter-spacing: -0.2px;
    }
    .hero-actions {
        gap: 10px;
    }
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Badges */
    .badge-item {
        flex: 1 1 100%;
    }
    .badge-icon {
        width: 36px;
        height: 36px;
    }
    .badge-text strong {
        font-size: 0.88rem;
    }
    .badge-text span {
        font-size: 0.75rem;
    }
}
