/* ============================================
   COCAVISIÓN - DESIGN SYSTEM
   Modern Telecom Website
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #0d00e9;
    --color-primary-dark: #0a00b8;
    --color-primary-light: #4d43ff;

    /* Secondary Colors */
    --color-secondary: #0d00e9;
    /* Unifying to the requested blue */
    --color-secondary-dark: #0a00b8;
    --color-secondary-light: #4d43ff;

    /* Accent Gradient - NOW SOLID */
    --gradient-primary: linear-gradient(0deg, #0d00e9, #0d00e9);
    --gradient-hero: linear-gradient(180deg, #0a0f1a 0%, #0d1526 50%, #0a0f1a 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(13, 0, 233, 0.2) 0%, transparent 70%);

    /* Neutral Colors */
    --color-bg-dark: #0a0f1a;
    --color-bg-card: #111827;
    --color-bg-card-hover: #1a2332;
    --color-surface: #1f2937;

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* WhatsApp */
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(13, 0, 233, 0.3);
    --shadow-glow-cyan: 0 0 30px rgba(13, 0, 233, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section--dark {
    background: var(--color-bg-card);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.5);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    border-color: var(--color-primary);
    background: rgba(0, 102, 255, 0.1);
}

.btn--whatsapp {
    background: var(--color-whatsapp);
    color: white;
}

.btn--whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
}

.btn--lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================================
   6. HEADER & NAVIGATION (FLOATING PILL)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    /* Fixed at the very top */
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: 0;
    /* No padding for full width */
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.header__pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Permanent fine background */
    background: linear-gradient(135deg, rgba(5, 5, 16, 0.9), rgba(13, 0, 233, 0.3)) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0;
    /* Square edges */
    /* Maintain content alignment within the 1280px container limits, with 'fine' (thinner) vertical padding */
    padding: 6px calc(max(2%, (100% - var(--container-max)) / 2 + 2%)) 6px calc(max(var(--container-padding), (100% - var(--container-max)) / 2 + var(--container-padding)));
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2) !important;
    transition: all var(--transition-base);
}

.header.scrolled .header__pill {
    /* Subtle increase in opacity on scroll without changing dimensions to avoid jump */
    background: linear-gradient(135deg, rgba(5, 5, 16, 0.98), rgba(13, 0, 233, 0.5)) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

.header__logo {
    display: flex;
    align-items: center;
    padding-right: var(--space-4);
}

.header__logo img {
    height: 29px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
}

.nav__item-mobile {
    display: none;
}


.nav__link {
    font-size: calc(var(--text-sm) * 1.25);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.nav__link:hover,
.nav__link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav__link.active::after {
    content: '';
    /* Dot indicator instead of underline for this style */
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-left: var(--space-4);
}

.header__actions .btn {
    padding: 5px 12px;
    /* Further reduced padding */
    font-size: 0.8rem;
    /* Further reduced font size */
}

/* Button Styles for Header */
.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.btn--live {
    background: transparent !important;
    color: #ef4444;
    /* Red color */
    border: none !important;
    padding: 0 !important;
    font-weight: var(--font-bold);
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    box-shadow: none !important;
}

.btn--live:hover {
    background: transparent !important;
    transform: none;
    box-shadow: none !important;
    opacity: 0.8;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
    animation: blinkRed 2s infinite;
    /* Changed to blink */
    display: inline-block;
    /* Ensure it renders */
}

@keyframes blinkRed {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* Mobile Menu Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
    margin-left: var(--space-2);
}

.nav__toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* RESPONSIVE HEADER */
@media (max-width: 900px) {
    .header__pill {
        width: 100%;
        max-width: none;
        border-radius: var(--radius-xl);
        /* Less rounded on tablet/mobile if needed, or keep full */
        padding: var(--space-3);
    }

    .nav {
        position: absolute;
        top: 100%;
        left: var(--space-4);
        right: var(--space-4);
        width: auto;
        margin-top: var(--space-3);
        background: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(16px);
        padding: var(--space-6);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: center;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all var(--transition-base);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
        margin-bottom: var(--space-6);
        width: 100%;
        /* Full width */
        display: flex !important;
        /* Force display */
    }

    .nav__link {
        color: var(--color-text-primary);
        /* White text */
        font-size: var(--text-lg);
        /* Larger text */
        font-weight: var(--font-medium);
        width: 100%;
        text-align: center;
        display: block;
        padding: var(--space-2) 0;
    }

    .header__actions {
        margin-left: auto;
        /* Push to right */
    }

    .header__actions .btn {
        display: none;
    }

    /* Hide Live button again in header for mobile */
    .header__actions .btn--live {
        display: none;
    }

    .header__actions .btn--ghost {
        display: none;
    }

    /* Utility for mobile menu items */
    /* Utility for mobile menu items - keep inside media query if specific, or outside */
    .nav__item-mobile {
        display: block;
        /* Visible in mobile menu */
    }

    .header__actions .btn--primary {
        display: inline-flex;
        padding: var(--space-2) var(--space-3);
        font-size: 12px;
    }

    .header__actions {
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }

    .nav__toggle {
        display: flex;
    }
}

/* Utility to hide mobile item on desktop */
@media (min-width: 901px) {
    .nav__item-mobile {
        display: none !important;
    }
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 130px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg-gradient,
.hero__bg-pattern,
.hero__bg-grid {
    display: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 0, 195, 0.75) 0%, rgba(11, 0, 195, 0.6) 40%, transparent 100%);
    /* Slightly lighter Blue gradient as requested */
    z-index: 2;
    /* Removed global blur as requested */
}

.hero__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Give more space to text, move visual closer */
    gap: var(--space-8);
    align-items: center;
}

.hero__text {
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(13, 0, 233, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-secondary);
    margin-bottom: var(--space-6);
}



.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 350px !important;
        /* Reducido para evitar el gap excesivo */
        /* Space for fixed header */
        /* Space for fixed header */
        min-height: 100svh !important;
        /* Ensure it covers full mobile screen height */
        height: auto;
        padding-bottom: var(--space-12);
        align-items: flex-start;
        /* Align content to top, fix large gap */
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
        align-items: flex-start;
        display: flex;
        /* Force stack */
        flex-direction: column;
    }

    .hero__text {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap;
        gap: var(--space-6);
        width: 100%;
    }

    .hero__visual {
        display: none;
        /* Eliminar espacio vacío en móvil como solicitó el usuario */
    }

    .hero__floating-group {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
        margin-bottom: var(--space-6);
        width: 100%;
        z-index: 30;
    }

    .hero__float {
        position: relative;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero__float {
        transform: scale(0.9);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-bold);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: var(--space-6) 0;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-xl);
    cursor: default;
}

.hero-info-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    /* Changed to Blue as requested */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-info-text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #1f2937;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .hero-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .hero-info-bar {
        display: none !important;
        position: relative;
    }
}

@media (max-width: 640px) {
    .hero-info-grid {
        grid-template-columns: 1fr;
    }
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    position: relative;
}

.hero__stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: #ffffff;
}

.hero__visual {
    position: relative;
}

.hero__image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    animation: float 6s ease-in-out infinite;
}

.hero__glow {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 0, 233, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Floating elements */
.hero__floating-group {
    position: absolute;
    top: 50%;
    left: 250px;
    /* Movido un 30% más a la derecha (total 70% desde el inicio) */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    z-index: 20;
}

.hero__float {
    position: relative;
    /* Change from absolute to relative for flex flow */
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero__float--1 {
    animation-delay: 0.5s;
}

.hero__float--2 {
    animation-delay: 2s;
    margin-left: 20px;
    /* Slight offset for dynamic look */
}

/* Animated Globe Styles */
.hero__globe-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Particle Wave Animation Styles */
.hero__particle-container {
    position: relative;
    width: 600px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    z-index: 5;
}

.hero__particle-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

.hero__particle-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__led-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__led-light {
    animation: rotateLed 3s linear infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 8px #00D4FF) drop-shadow(0 0 15px #00D4FF);
}

.hero__globe {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed background/circle styles */
}

.hero__globe-svg {
    width: 100%;
    height: 100%;
}

.hero__continents {
    animation: rotateGlobe 20s linear infinite;
}

@keyframes rotateLed {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1100;
    }
}

@keyframes rotateGlobe {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200px);
    }
}

@keyframes cloudOrbit {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200px);
    }
}

.hero__cloud-group {
    animation: cloudOrbit 15s linear infinite;
}

.hero__clouds {
    animation: cloudOrbit 25s linear infinite;
}

/* Responsive globe */
@media (max-width: 992px) {
    .hero__globe-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero__led-ring {
        width: 300px;
        height: 300px;
    }

    .hero__globe {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero__globe-wrapper {
        width: 250px;
        height: 250px;
    }

    .hero__led-ring {
        width: 250px;
        height: 250px;
    }

    .hero__globe {
        width: 200px;
        height: 200px;
    }
}

/* Responsive particle container */
@media (max-width: 1200px) {
    .hero__particle-container {
        width: 500px;
        height: 375px;
    }
}

@media (max-width: 992px) {
    .hero__particle-container {
        width: 450px;
        height: 340px;
    }
}

@media (max-width: 768px) {
    .hero__particle-container {
        width: 350px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero__particle-container {
        width: 100%;
        max-width: 320px;
        height: 240px;
    }

    .hero__particle-canvas {
        width: 100%;
        height: 100%;
    }
}

/* ============================================
   8. SERVICES SECTION
   ============================================ */
.services {
    background: var(--color-bg-card);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 0, 233, 0.3), transparent);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-4);
}

.section__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.service-card {
    position: relative;
    background: var(--color-bg-dark);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: var(--space-10);
    overflow: hidden;
    transition: all var(--transition-base);
    /* Flex layout for bottom alignment */
    display: flex;
    flex-direction: column;
}

.service-card .btn {
    margin-top: auto;
    align-self: center;
}

.service-card:hover {
    border-color: rgba(13, 0, 233, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-cyan);
}

.service-card__icon {
    width: 100%;
    height: 80px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-6);
}

.service-card__icon svg {
    width: 60px;
    height: 60px;
    fill: none;
    stroke: var(--color-primary);
}

.service-card__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.service-card__description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.service-card__features {
    margin-bottom: var(--space-8);
}

.service-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.service-card__feature-icon {
    color: var(--color-success);
}

/* Service Card Buttons Container */
.service-card__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: auto;
    width: 100%;
}

.service-card__buttons .btn {
    margin-top: 0;
    width: 100%;
    justify-content: center;
}

/* ============================================
   9. CHANNEL GUIDE (EPG)
   ============================================ */
.channel-guide {
    position: relative;
    overflow: hidden;
}

.channel-guide__controls {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
    /* Firefox */
}

.channel-guide__controls::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.btn-control {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-control:hover,
.btn-control.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.epg-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.channel-row {
    display: flex;
    gap: var(--space-2);
    height: 80px;
    /* Fixed height for consistency */
    opacity: 0;
    animation: fadeSlideUp 0.5s forwards;
}

.channel-row:nth-child(1) {
    animation-delay: 0.1s;
}

.channel-row:nth-child(2) {
    animation-delay: 0.2s;
}

.channel-row:nth-child(3) {
    animation-delay: 0.3s;
}

.channel-row:nth-child(4) {
    animation-delay: 0.4s;
}

.channel-row:nth-child(5) {
    animation-delay: 0.5s;
}

/* Channel Identity Info (Left) */
.channel-info {
    width: 180px;
    flex-shrink: 0;
    background: #151a23;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    gap: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.channel-row:hover .channel-info {
    background: #1c222e;
    border-color: rgba(255, 255, 255, 0.1);
}

.channel-number {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-bold);
    min-width: 24px;
    text-align: center;
    width: 100%;
    display: block;
}

.channel-logo {
    height: 40px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter var(--transition-fast);
}

.channel-row:hover .channel-logo {
    filter: grayscale(0);
}

/* Current Program (Middle - Active) */
.program-current {
    flex: 0 0 400px;
    /* Fixed width for current program */
    background: #1f2937;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.program-current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
}

.program-title {
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-time {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
}

/* Progress Bar */
.program-progress-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.program-progress-fill {
    height: 100%;
    background: var(--color-primary);
}

/* Upcoming Programs (Right - Scrollable) */
.programs-upcoming {
    display: flex;
    gap: var(--space-2);
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, black 90%, transparent 100%);
}

.programs-upcoming::-webkit-scrollbar {
    display: none;
}

.program-card {
    flex: 0 0 200px;
    /* Reduced width for upcoming */
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.program-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.program-card .program-title {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.program-card .program-time {
    color: var(--color-text-muted);
}

/* Loading State */
.epg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--color-text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .channel-row {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .channel-info {
        width: 100%;
        margin-bottom: var(--space-2);
    }

    .program-current {
        flex: 1 1 100%;
        margin-bottom: var(--space-2);
    }

    .programs-upcoming {
        flex: 1 1 100%;
        padding-bottom: var(--space-2);
    }
}

.service-card__glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   9. STAFF SECTION (iPhone Card Style)
   ============================================ */
.staff-section {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: var(--space-24);
    text-align: center;
    background: rgba(5, 7, 10, 0.8);
    padding: var(--space-24) 0;
    overflow: hidden;
    /* Bordes degradados suaves para transición vertical */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.staff-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(13, 0, 233, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.staff-section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.staff-section__description {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    max-width: 850px;
    /* Ajustado para que el texto se distribuya en exactamente 2 líneas */
    margin: 0 auto var(--space-12);
    line-height: 1.6;
    padding: 0 var(--space-6);
}

/* Efecto suave de aparición para móviles */
@media (max-width: 768px) {
    .staff-section {
        margin-top: var(--space-16);
        border-radius: 40px;
        /* Bordes un poco menos agresivos en móvil */
    }
}

.staff-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-4);
}

.staff-card {
    flex: 0 1 300px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    /* Super rounded iPhone style */
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Para la biografía absoluta */
}

.staff-card__bio {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 10, 0.85);
    /* Fondo ultra oscuro translúcido */
    backdrop-filter: blur(25px);
    /* Desenfoque profundo estilo iPhone */
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    /* No para que no bloquee clics pero se muestra en hover de la tarjeta */
}

.staff-card:hover .staff-card__bio,
.staff-card.active .staff-card__bio {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.staff-card__bio-text {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    height: 100%;
    overflow-y: auto;
    padding-right: var(--space-2);
    font-weight: 300;
    /* Texto más delgado y ligero */
}

/* Cursor de escritura */
.staff-card__bio-text::after {
    content: '|';
    animation: blink 0.8s infinite;
    margin-left: 2px;
    color: var(--color-secondary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Scrollbar personalizado tipo móvil */
.staff-card__bio-text::-webkit-scrollbar {
    width: 4px;
}

.staff-card__bio-text::-webkit-scrollbar-track {
    background: transparent;
}

.staff-card__bio-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.staff-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.staff-card__image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.staff-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    /* Enfoca hacia arriba para no cortar la cabeza */
    transition: transform var(--transition-slow);
}

.staff-card:hover .staff-card__image {
    transform: scale(1.1);
}

.staff-card__content {
    padding: var(--space-6);
    text-align: center;
}

.staff-card__name {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.staff-card__role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
}

/* ============================================
   10. BENEFITS SECTION
   ============================================ */
.benefits {
    position: relative;
    overflow: hidden;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.benefit-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(13, 0, 233, 0.3);
    transform: translateY(-5px);
}

.benefit-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.benefit-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.benefit-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ============================================
   11. COVERAGE SECTION
   ============================================ */
.coverage {
    background: var(--color-bg-card);
}

.coverage__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.coverage__text {
    max-width: 500px;
}

.coverage__zones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.coverage__zone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.coverage__zone--hidden {
    display: none;
}

.coverage__zones.expanded .coverage__zone--hidden {
    display: flex;
}

.coverage__zone--toggle {
    cursor: pointer;
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid rgba(13, 0, 233, 0.3);
    transition: all var(--transition-fast);
}

.coverage__zone--toggle:hover {
    background: rgba(13, 0, 233, 0.3);
}

.coverage__zones.expanded .coverage__zone--toggle {
    order: 10;
    /* Move to end when expanded */
}

.coverage__zone-icon {
    color: var(--color-success);
}

.coverage__map {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
}

#coverage-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Leaflet Custom Styles */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: var(--font-primary);
    line-height: 1.5;
}

.leaflet-popup-content b {
    color: var(--color-primary-light);
    font-size: 1.1em;
    display: block;
    margin-bottom: 4px;
}

.leaflet-popup-content a {
    display: inline-block;
    margin-top: 8px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--color-text-muted);
    padding: 8px !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--color-text-primary);
}

/* Custom Map Marker Animation */
@keyframes markerBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Fiber Optic Line Animation */
.fiber-line-dim {
    stroke: #00d4ff;
    stroke-width: 1px;
    opacity: 0.2;
}

.fiber-line-light {
    stroke: #ffffff;
    stroke-width: 2px;
    stroke-dasharray: 100 1000;
    /* 100px dash (the light), 1000px gap */
    stroke-linecap: round;
    animation: fiberFlow 3s linear infinite;
    filter: drop-shadow(0 0 8px #00d4ff) drop-shadow(0 0 15px #00d4ff);
    opacity: 1;
}

@keyframes fiberFlow {
    to {
        stroke-dashoffset: -1100;
        /* Matches dash + gap to loop smoothly */
    }
}

/* Wrapper handles the bounce */
.pin-wrapper {
    animation: markerBounce 1.5s infinite ease-in-out;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth landing */
    width: 32px;
    height: 32px;
}

/* SVG handles the appearance and zoom */
.custom-pin svg {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    transform-origin: center bottom;
}

/* Hover State */
.custom-pin:hover .pin-wrapper {
    animation: none;
    transform: translateY(0);
}

.custom-pin:hover svg {
    transform: scale(1.4) translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.9)) !important;
    cursor: pointer;
}

.coverage__map-placeholder {
    text-align: center;
    color: var(--color-text-muted);
}

.coverage__map-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

/* ============================================
   12. TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials__slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Testimonials Carousel */
.testimonials__carousel {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.testimonials__track {
    display: flex;
    gap: var(--space-6);
    animation: scrollCarousel 30s linear infinite;
    width: max-content;
}

.testimonials__track:hover {
    animation-play-state: paused;
}

.testimonials__carousel .testimonial-card {
    flex: 0 0 400px;
    min-width: 350px;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    /* Flex layout for bottom alignment */
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.testimonial-card__stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    color: #fbbf24;
}

.testimonial-card__text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
}

.testimonial-card__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: white;
    padding: 4px;
}

.testimonial-card__info {
    flex: 1;
}

.testimonial-card__name {
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.testimonial-card__location {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================
   13. CTA SECTION
   ============================================ */
.cta {
    background: var(--color-bg-card);
    position: relative;
    overflow: hidden;
}

.cta__inner {
    position: relative;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    text-align: center;
    overflow: hidden;
}

.cta__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-4);
}

.cta__text {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta__buttons .btn--primary {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.cta__buttons .btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   HERO PRICING (PC DEFAULTS) - Restored requested logic
   ============================================ */
.hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero__pricing-main {
    margin-top: 1rem;
}

.pricing-card__speed--hero {
    font-size: 9.2rem;
    font-weight: 900;
    line-height: 0.8;
    margin: 0;
    position: relative;
    display: inline-block;
}

.pricing-card__unit--hero {
    background: #0d00e9;
    color: white;
    font-size: 1.6rem;
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: lowercase;
    position: absolute;
    right: -40px;
    bottom: 55px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pricing-card__price-wrapper-hero {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.pricing-card__price-prefix-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 10px;
}

.pricing-card__promo-hero {
    background: #0d00e9;
    color: white;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pricing-card__currency-hero {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-card__price-hero {
    font-size: 6.5rem;
    font-weight: 800;
    line-height: 0.9;
}

.pricing-card__price-suffix-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
}

.pricing-card__decimal-hero {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-card__period-hero {
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
   STAFF CARDS
   ============================================ */
.staff-cards {
    background: var(--color-bg-dark);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   14. FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.footer__description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-primary);
    color: white;
}

.footer__column h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-text-primary);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer__legal-link:hover {
    color: var(--color-text-primary);
}

/* ============================================
   15. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: var(--z-fixed);
}

.whatsapp-float__button {
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    position: relative;
}

.whatsapp-float__button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-whatsapp);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #1f2937;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
}

/* Promo Bubble (Single Style) */
.whatsapp-promo-bubble {
    position: absolute;
    bottom: 80px;
    /* Above the button */
    right: 0;
    width: 280px;
    background: #1f2937;
    /* Dark Grey Surface */
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    /* Hidden initially */
    transform: translateY(10px);
    transform: translateY(10px);
    /* Animation handled by modifier classes --1 and --2 */
    border-bottom-right-radius: 4px;
    /* Callout shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-icon {
    width: 40px;
    height: 40px;
    /* Soft gradient matching theme */
    background: #0d00e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.promo-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 2px;
}

.promo-text {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.3;
}

.promo-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Bubble 1: Visible 0-6s, hidden 6-18s (total 18s cycle) */
.whatsapp-promo-bubble--1 {
    animation: bubbleAppear1 18s ease-in-out infinite;
}

/* Bubble 2: Hidden 0-9s, visible 9-15s, hidden 15-18s (total 18s cycle) */
.whatsapp-promo-bubble--2 {
    animation: bubbleAppear2 18s ease-in-out infinite;
}

@keyframes bubbleAppear1 {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    /* Appear by 2.8% (~0.5s) */
    2.8% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Stay visible until 33.3% (6s) */
    33.3% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Fade out by 36% (~6.5s) */
    36% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    /* Stay hidden until 100% (18s) */
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
}

@keyframes bubbleAppear2 {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    /* Stay hidden until 50% (9s) */
    50% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    /* Appear by 52.8% (~9.5s) */
    52.8% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Stay visible until 83.3% (15s) */
    83.3% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Fade out by 86% (~15.5s) */
    86% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    /* Stay hidden until 100% (18s) */
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
}




/* ============================================
   15. ANIMATIONS
   ============================================ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   16. RESPONSIVE DESIGN - ENHANCED MOBILE
   ============================================ */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {
    .hero__content {
        gap: var(--space-12);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__carousel .testimonial-card {
        flex: 0 0 350px;
        min-width: 300px;
    }
}

/* Medium devices (tablets, iPads - less than 992px) */
@media (max-width: 992px) {
    :root {
        --container-padding: 1.25rem;
    }

    .nav__list {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: var(--space-4);
        right: var(--space-4);
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-6);
        gap: var(--space-4);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .nav__list.active .nav__link {
        font-size: var(--text-lg);
        padding: var(--space-3) 0;
    }

    .header__pill {
        padding: var(--space-3) var(--space-4);
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .hero__text {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero__visual {
        order: -1;
    }

    .hero__float {
        display: none;
    }

    .hero__globe-wrapper {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .hero__globe {
        width: 240px;
        height: 240px;
    }

    .hero__image {
        max-width: 400px !important;
        width: 100% !important;
        margin: 0 auto;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .service-card {
        padding: var(--space-8);
    }

    .coverage__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .coverage__text {
        margin: 0 auto;
        max-width: 100%;
    }

    .coverage__zones {
        justify-content: center;
    }

    .coverage__map {
        aspect-ratio: 16/10;
        min-height: 350px;
    }

    .testimonials__slider {
        grid-template-columns: 1fr;
    }

    .testimonials__carousel .testimonial-card {
        flex: 0 0 320px;
        min-width: 280px;
    }

    /* EPG Mobile Improvements */
    .channel-row {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-2);
    }

    .channel-info {
        width: 100%;
        margin-bottom: var(--space-3);
        padding: var(--space-3);
        justify-content: center;
    }

    .program-current {
        flex: 1 1 100%;
        margin-bottom: var(--space-3);
    }

    .programs-upcoming {
        flex: 1 1 100%;
        padding-bottom: var(--space-2);
    }

    /* Modal improvements for tablets */
    .modal__content {
        width: 95%;
        max-height: 85vh;
    }

    .channel-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: var(--space-3);
    }

    /* Hero Resize Exact Match (Refined v110.0: Megas +18%, Price -15%) */
    .hero__text {
        align-items: center;
        text-align: center;
    }

    .hero__pricing-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        color: white;
        margin-top: 1rem;
    }

    .pricing-card__speed--hero {
        font-size: 12.4rem !important;
        /* +18% from v100's 10.5rem */
        font-weight: 900 !important;
        line-height: 0.8;
        margin: 0 !important;
        position: relative;
        display: inline-block;
        letter-spacing: -3px;
    }

    .pricing-card__unit--hero {
        background: #0d00e9;
        color: white;
        font-size: 1.9rem !important;
        /* +18% from v100's 1.6rem */
        padding: 4px 12px !important;
        border-radius: 6px;
        font-weight: 800;
        text-transform: lowercase;
        position: absolute;
        right: -45px;
        bottom: 40px;
        letter-spacing: normal;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .pricing-card__price-wrapper-hero {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .pricing-card__price-prefix-hero {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        padding-top: 10px;
    }

    .pricing-card__promo-hero {
        background: #0d00e9;
        color: white;
        font-size: 0.6rem;
        /* -15% from v100's 0.7rem */
        padding: 2px 10px;
        border-radius: 6px;
        font-weight: 900;
        letter-spacing: 0.5px;
    }

    .pricing-card__currency-hero {
        font-size: 1.6rem;
        /* -15% from v100's 1.9rem */
        font-weight: 700;
        line-height: 1;
    }

    .pricing-card__price-hero {
        font-size: 6.9rem;
        /* -15% from v100's 8.1rem */
        font-weight: 800;
        line-height: 0.85;
        letter-spacing: -4px;
    }

    .pricing-card__price-suffix-hero {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 15px;
    }

    .pricing-card__decimal-hero {
        font-size: 3.1rem;
        /* -15% from v100's 3.7rem */
        font-weight: 700;
        line-height: 0.8;
    }

    .pricing-card__period-hero {
        font-size: 0.9rem;
        opacity: 0.8;
        margin-top: 2px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section__header {
        margin-bottom: var(--space-10);
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    .hero {
        min-height: auto;
        padding: var(--space-24) 0 var(--space-12);
    }

    .hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .hero__badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }

    .hero__stat {
        width: 100%;
        max-width: 200px;
    }

    .hero__globe-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero__image {
        max-width: 300px !important;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .benefit-card {
        padding: var(--space-6);
    }

    .coverage__zones {
        grid-template-columns: 1fr;
    }

    .coverage__map {
        min-height: 350px;
        aspect-ratio: 1/1;
        /* Más cuadrado en móviles para ver mejor el mapa */
    }

    .testimonials__carousel .testimonial-card {
        flex: 0 0 280px;
        min-width: 260px;
        padding: var(--space-6);
    }

    /* Staff Section Mobile */
    .staff-section {
        padding: var(--space-12) 0;
        margin-top: var(--space-12);
        mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    }

    .staff-section__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
        max-width: 100%;
    }

    .staff-grid {
        gap: var(--space-4);
        padding: 0 var(--space-4);
    }

    .staff-card {
        flex: 1 1 280px;
        max-width: 340px;
    }

    .staff-card__bio-text {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: var(--space-4);
    }

    .cta__inner {
        padding: var(--space-8);
    }

    .cta__title {
        font-size: var(--text-2xl);
    }

    .cta__text {
        font-size: var(--text-base);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8) var(--space-4);
    }

    .footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--space-4);
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__column {
        text-align: center;
        padding: 0 5px;
    }

    .footer__column h4 {
        margin-bottom: var(--space-4);
    }

    .footer__links {
        align-items: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .footer__legal {
        justify-content: center;
    }

    /* WhatsApp Mobile */
    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .whatsapp-float__button {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }

    .whatsapp-float__tooltip {
        display: none;
    }

    .whatsapp-promo-bubble {
        width: 240px;
        padding: 12px;
        bottom: 70px;
        right: -10px;
    }

    .promo-icon {
        width: 36px;
        height: 36px;
    }

    .promo-title {
        font-size: 0.85rem;
    }

    .promo-text {
        font-size: 0.75rem;
    }

    /* Header Mobile */
    .header {
        top: 10px;
        padding: 0 var(--space-3);
    }

    .header__pill {
        padding: var(--space-2) var(--space-3);
    }

    .header__logo img {
        height: 26px !important;
        /* Logo un poco más visible en móviles */
    }

    .header__actions .btn--primary {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .header__actions .btn--primary svg {
        display: none;
    }

    .btn--live {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2) !important;
    }

    .live-dot {
        width: 5px;
        height: 5px;
        margin-right: 4px;
    }

    /* Modal Mobile */
    .modal__content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .modal__body {
        padding: var(--space-4);
    }

    .channel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
    }

    .channel-card {
        border-radius: var(--radius-lg);
    }

    .channel-card__number {
        font-size: 10px;
        top: 4px;
        right: 6px;
    }

    .video-modal__content {
        width: 95%;
        border-radius: var(--radius-xl);
    }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .hero {
        padding: var(--space-20) 0 var(--space-10);
    }

    .hero__title {
        font-size: 1.45rem;
        line-height: 1.15;
    }


    .staff-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .staff-card__name {
        font-size: 1.25rem;
    }

    .staff-card__role {
        font-size: 0.8rem;
    }

    .staff-section__title {
        font-size: 1.6rem;
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__globe-wrapper {
        width: 180px;
        height: 180px;
    }

    .hero__image {
        max-width: 240px !important;
    }

    .service-card {
        padding: var(--space-6);
    }

    .service-card__icon {
        height: 60px;
    }

    .service-card__icon svg {
        width: 48px;
        height: 48px;
    }

    .service-card__title {
        font-size: var(--text-xl);
    }

    .cta__buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cta__buttons .btn {
        width: 100%;
    }

    .cta__inner {
        padding: var(--space-6);
    }

    /* EPG Extra Small */
    .program-current {
        padding: var(--space-2) var(--space-3);
    }

    .program-card {
        flex: 0 0 160px;
        padding: var(--space-2);
    }

    .channel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-1);
    }

    .channel-card {
        padding: var(--space-1);
        border-radius: var(--radius-md);
    }

    .channel-card__logo {
        max-width: 70%;
        max-height: 50%;
    }

    /* Testimonials carousel smaller */
    .testimonials__carousel .testimonial-card {
        flex: 0 0 260px;
        min-width: 240px;
        padding: var(--space-5);
    }

    .staff-card__name {
        font-size: var(--text-lg);
    }

    .staff-card__role {
        font-size: var(--text-xs);
    }

    .staff-section__title {
        font-size: var(--text-xl);
    }

    .testimonial-card__text {
        font-size: var(--text-sm);
    }

    .testimonial-card__avatar,
    .testimonial-card__logo {
        width: 40px;
        height: 40px;
    }
}

/* iPhone SE and smaller devices (less than 375px) */
@media (max-width: 375px) {
    .hero__title {
        font-size: 1.35rem;
    }

    .hero__subtitle {
        font-size: var(--text-sm);
    }

    .btn--lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .whatsapp-float__button {
        width: 50px;
        height: 50px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-16) 0 var(--space-10);
    }

    .hero__content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero__visual {
        order: 0;
    }

    .hero__text {
        margin: 0;
    }

    .hero__cta {
        justify-content: flex-start;
    }

    .hero__stats {
        justify-content: flex-start;
    }

    .hero__globe-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero__image {
        max-width: 250px !important;
    }
}

/* iPad Pro and large tablets */
@media (min-width: 1024px) and (max-width: 1366px) {
    .hero__globe-wrapper {
        width: 340px;
        height: 340px;
    }

    .hero__image {
        max-width: 480px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects that don't work on touch */
    .btn:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .benefit-card:hover {
        transform: none;
    }

    .channel-card:hover {
        transform: none;
    }

    /* Larger touch targets */
    .nav__link {
        padding: var(--space-3) var(--space-2);
    }

    .footer__link {
        padding: var(--space-2) 0;
    }

    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .service-card:active,
    .benefit-card:active {
        transform: scale(0.98);
    }

    .whatsapp-float__button:active {
        transform: scale(0.95);
    }
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Print styles */
@media print {

    .header,
    .whatsapp-float,
    .cta {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   17. LIVE PLAYER & BUTTON
   ============================================ */
.btn--live {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    animation: pulse-red 2s infinite;
}

.btn--live:hover {
    background: rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    color: white;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: rgba(15, 23, 42, 0.85);
    /* Deep dark blue/slate with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(0, 102, 255, 0.2);
    /* Subtle blue glow */
    border-radius: 24px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.video-modal.active .video-modal__content {
    transform: scale(1);
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.video-modal__close:hover {
    color: var(--color-primary);
}

.video-modal__container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ============================================
   CHANNEL GUIDE MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--color-bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__body {
    overflow-y: auto;
    padding: var(--space-8);
    display: block;
    /* changed from flex to allow full width grid */
    background: #0f1219;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-4);
    width: 100%;
}

.channel-card {
    background: #1a1f2e;
    /* Darker, slightly blueish gray */
    border-radius: var(--radius-xl);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2);
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    /* Prepare for border transition */
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    /* Bright blue border */
    z-index: 1;
    background: #23293a;
    /* Slightly lighter on hover */
}

.channel-card__number {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    /* Subtle white number */
    z-index: 2;
}

.channel-card__logo {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
}

.modal__close:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* ============================================
   ADMIN UI
   ============================================ */
.admin-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    margin-left: 10px;
    vertical-align: middle;
}

.admin-trigger:hover {
    color: var(--color-primary);
}

.modal__content--sm {
    max-width: 400px;
    height: auto;
    padding: 0;
}

.modal__body-sm {
    padding: var(--space-6);
    background: #0f1219;
}

.admin-controls {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: rgba(20, 20, 30, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.channel-card.editing {
    border-style: dashed;
    border-color: var(--color-primary);
}

.edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    border-radius: var(--radius-xl);
}

.channel-card:hover .edit-overlay {
    opacity: 1;
}

.input-field {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.text-error {
    color: #ef4444;
    font-size: 0.875rem;
}

.modal__close-sm {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Fiber Optic Scan Effect */
.hero__scan-effect {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(135deg,
            transparent 35%,
            rgba(255, 255, 255, 0.9) 48%,
            #00D4FF 50%,
            rgba(255, 255, 255, 0.9) 52%,
            transparent 65%);
    background-size: 250% 250%;
    background-position: -150% -150%;
    mix-blend-mode: screen;
    -webkit-mask-image: url('../img/hero-smart-home-v6.png');
    mask-image: url('../img/hero-smart-home-v6.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    animation: fiberScan 4s ease-in-out infinite;
}

@keyframes fiberScan {
    0% {
        background-position: -150% -150%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        background-position: 150% 150%;
        opacity: 0;
    }
}

/* ============================================ */
/* Video Loader */
/* ============================================ */
.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s ease;
}

.video-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-loader__spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   APP SECTION - Movies Slider & Download
   ============================================ */
.app-section {
    padding: var(--space-20) 0;
    overflow: hidden;
}

/* Movies Slider */
.movies-slider {
    position: relative;
    margin: var(--space-12) 0;
    padding: 0 var(--space-10);
}

.movies-slider__track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: var(--space-4) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.movies-slider__track::-webkit-scrollbar {
    display: none;
}

.movie-card {
    flex: 0 0 300px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: 1px solid transparent;
    scroll-snap-align: center;
    /* Prepare for border transition */
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.5);
    /* Blue glow border */
}

.movie-card__image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.movie-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-4);
}

.movie-card__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
    margin-bottom: var(--space-1);
    line-height: 1.3;
}

.movie-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-warning);
}

.movies-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(13, 0, 233, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    color: white;
}

.movies-slider__arrow:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.movies-slider__arrow--left {
    left: 0;
}

.movies-slider__arrow--right {
    right: 0;
}

/* App Download Card */
.app-download {
    margin-top: var(--space-12);
}

.app-download__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    background: linear-gradient(135deg, rgba(13, 0, 233, 0.15) 0%, rgba(13, 0, 233, 0.05) 100%);
    border: 1px solid rgba(13, 0, 233, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.app-download__content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 0, 233, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.app-download__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.app-download__icon svg {
    stroke: white;
}

.app-download__left {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.app-download__left h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    color: white;
}

.app-download__left p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: var(--text-base);
}

.app-download__btn {
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
}

/* Responsive */
@media (max-width: 768px) {
    .app-download__content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8);
        gap: var(--space-6);
    }

    .movie-card {
        flex: 0 0 260px;
    }

    .movies-slider {
        padding: 0;
    }

    .movies-slider__arrow {
        width: 36px;
        height: 36px;
        background: rgba(0, 102, 255, 0.9) !important;
        /* Más contraste azul vibrante */
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex !important;
        opacity: 1;
        z-index: 100;
    }

    .movies-slider__arrow--left {
        left: 0;
    }

    .movies-slider__arrow--right {
        right: 0;
    }
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {

    /* Services Grid - Stack to 1 column */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Service Cards - Reduce padding and border radius */
    .service-card {
        padding: var(--space-6);
        border-radius: 24px;
    }

    /* Benefits Grid - 2 columns on tablet, 1 on mobile */
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    /* Coverage Content - Stack */
    .coverage__content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    /* Section Headers - Smaller margins */
    .section__header {
        margin-bottom: var(--space-8);
    }

    .hero__stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap;
        gap: var(--space-4);
        width: 100%;
    }

    /* Buttons - Full width on mobile */
    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Benefits Grid - 1 column on small mobile */
    .benefits__grid {
        grid-template-columns: 1fr;
    }

    /* Smaller section padding */
    .section {
        padding: var(--space-12) 0;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 350px !important;
        /* Aumentado nuevamente a petición del usuario para bajar la información */
    }

    .hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    /* Smaller service card padding */
    .service-card {
        padding: var(--space-4);
        border-radius: 20px;
    }

    /* Benefit cards */
    .benefit-card {
        padding: var(--space-4);
    }
}

/* ============================================
   AI CHATBOT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-family);
}

/* Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

.chat-toggle__logo-sparkle {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.chat-widget.open .chat-toggle__logo-sparkle {
    opacity: 0;
    transform: scale(0.5);
}

.chat-toggle__logo {
    display: none;
}

.chat-toggle__icon--chat {
    display: none;
}

.chat-toggle__icon--close {
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
}

.chat-toggle__logo {
    display: none;
}

.chat-widget.open .chat-toggle__icon--chat {
    opacity: 0;
    transform: scale(0.5);
}

.chat-widget.open .chat-toggle__icon--close {
    opacity: 1;
    transform: scale(1);
}

/* 🔒 MOBILE SECURITY LOCK - CHATBOT PROMO */
/* --- Chat Bubbles / Promo suggestions --- */
.chat-bubbles {
    position: absolute;
    bottom: 85px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.promo-bubble {
    background: #1a1a1a;
    /* fallback */
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 35px 12px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    pointer-events: auto;
    animation: bubble-fade-in 0.5s ease backwards;
    width: max-content;
    max-width: 260px;
}

@keyframes bubble-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.promo-bubble__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-bubble__content strong {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.promo-bubble__content span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.2;
}

.promo-close-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-close-btn:hover {
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* 🔒 END MOBILE SECURITY LOCK */

/* Chat Window - Gemini Inspired */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #000000;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0) rotate(5deg);
    transform-origin: bottom right;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Gemini Glow Border Effect */
.chat-window::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: transparent;
    z-index: -1;
    border-radius: 30px;
    opacity: 0;
}

@keyframes geminiGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1) rotate(0);
}

.chat-widget.open .chat-window::before {
    opacity: 0.8;
}

/* Gemini Handle */
.chat-window::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Chat Header - Minimal Gemini Style */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 16px;
    background: #202020;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

/* removed pseudo-element background */

.chat-header__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header__avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

.chat-header__text {
    display: flex;
    flex-direction: column;
}

.chat-header__name {
    font-weight: var(--font-semibold);
    font-size: 16px;
}

.chat-header__status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #000000;
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message--user {
    align-self: flex-end;
}

.chat-message--bot {
    align-self: flex-start;
}

.chat-message__bubble {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: messageSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes messageSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message--user .chat-message__bubble {
    background: #ffffff;
    color: #000000;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-message--user .chat-message__time {
    color: rgba(0, 0, 0, 0.5);
}

.chat-message--bot .chat-message__bubble {
    background: #202020;
    color: var(--color-text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message__time {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--color-text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input - Gemini Style Pill with Rainbow Base */
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 24px;
    background: #000000;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.chat-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 40, 0.9);
    color: var(--color-text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.chat-input:focus {
    border-color: rgba(66, 133, 244, 0.5);
    background: rgba(40, 40, 50, 0.95);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}

.chat-input-icons {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    padding: 4px;
}

.chat-input-btn:hover {
    color: white;
    transform: scale(1.1);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #9b72cb 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.chat-send:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 114, 203, 0.5);
}

.chat-send svg {
    color: white;
}

/* Rainbow glow line at the bottom */

/* rainbow glow removed */

/* Mobile Responsive */
/* Chat Bubbles Container */
.chat-bubbles {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    pointer-events: none;
    z-index: 1001;
}

.chat-promo-bubble {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: bubbleFadeIn 0.5s ease-out forwards;
    white-space: nowrap;
}

.promo-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.promo-close-btn:hover {
    color: white;
}

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {

    /* 🔒 MOBILE SECURITY LOCK - CHATBOT ALIGNMENT */
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-toggle {
        width: 56px;
        height: 56px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px) !important;
        height: 400px;
        /* Reduced height on mobile as requested */
        bottom: 72px;
        right: 0;
    }

    /* 🔒 END MOBILE SECURITY LOCK */
}

/* ============================================
   AURORA CHAT ANIMATION (User Request)
   ============================================ */
.chat-toggle {
    background: #0a0f1a;
    /* Dark background behind aurora */
    overflow: hidden;
    /* Mask the rotation */
    box-shadow: 0 0 20px rgba(13, 0, 233, 0.5);
    /* Glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-toggle__aurora {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #0d00e9, #9333ea, #00ccff, #9333ea, #0d00e9);
    animation: aurora-spin 4s linear infinite;
    z-index: 1;
    filter: blur(12px);
    opacity: 0.9;
}

@keyframes aurora-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chat-toggle__icon {
    z-index: 5;
    /* Above aurora */
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.chat-toggle:hover .chat-toggle__aurora {
    animation-duration: 2s;
    /* Faster spin on hover */
    filter: blur(8px);
    /* Sharper */
}