/* ==========================================================================
   MEGATV+ - ESTILOS PROFESIONALES Y 100% RESPONSIVE (MOBILE-FIRST CERTIFIED)
   Paleta: Dark Navy (#060913), Azul Eléctrico (#2563eb), Naranja (#f97316), Cian (#06b6d4)
   ========================================================================== */

:root {
    /* ==========================================================================
       MODO 1: LUZ DÍA / SNOW TITANIUM (PREDETERMINADO - Limpio, Luminoso y Profesional)
       ========================================================================== */
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.94);
    --border-color: #e2e8f0;
    --border-glow: rgba(37, 99, 235, 0.25);

    /* Acentos y Botones */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.25);

    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.35);

    --cyan: #0284c7;
    --cyan-glow: rgba(2, 132, 199, 0.25);

    --whatsapp: #25d366;
    --whatsapp-hover: #128c7e;
    --whatsapp-glow: rgba(37, 211, 102, 0.35);

    --live-green: #10b981;
    --live-pulse: rgba(16, 185, 129, 0.35);

    /* Tipografía y Textos */
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sombras y Radios */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.09);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   MODO 2: CINEMA OLED MATTE (Negro Carbón - Sala de Cine Anti-Fatiga)
   ========================================================================== */
body[data-theme="oled"] {
    --bg-main: #0a0b0f;
    --bg-secondary: #0f1017;
    --bg-card: #13141a;
    --bg-card-hover: #191b24;
    --bg-glass: rgba(19, 20, 26, 0.92);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(249, 115, 22, 0.35);
    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.3);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   MODO 3: TITANIUM SLATE PROFUNDO (Grafito Aterciopelado)
   ========================================================================== */
body[data-theme="slate"] {
    --bg-main: #12141a;
    --bg-secondary: #171a22;
    --bg-card: #1a1d26;
    --bg-card-hover: #222632;
    --bg-glass: rgba(26, 29, 38, 0.92);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(56, 189, 248, 0.3);
    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.3);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.7);
}

/* Reset Global Estricto Anti-Desbordamiento */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

button, input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
    max-width: 100%;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

section {
    padding: 4.5rem 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.75rem auto;
    padding: 0 0.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    color: var(--text-main);
    word-break: break-word;
}

.section-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c37 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px var(--primary-glow));
    transition: transform var(--transition-fast);
}

.logo:hover .logo-icon {
    transform: scale(1.06);
}

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

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

.nav-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.theme-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    user-select: none;
}

.theme-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-switch-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.theme-switch-text {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .theme-switch-text {
        display: none;
    }
    .theme-switch-btn {
        padding: 0.45rem 0.6rem;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.hero-content {
    min-width: 0;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 1rem;
    max-width: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--live-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--live-pulse);
    animation: pulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
    flex-shrink: 0;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.hero-title .highlight-orange {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.hero-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-feature-item i {
    color: var(--accent);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-mockup-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Chip Flotante de IA en el Hero */
.floating-ai-chip {
    position: absolute;
    bottom: -15px;
    right: 0;
    background: var(--bg-card-hover);
    border: 1px solid var(--accent);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform var(--transition-fast);
    max-width: 100%;
    box-sizing: border-box;
}

.floating-ai-chip:hover {
    transform: scale(1.03);
}

.floating-ai-chip .ai-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), #ff9f43);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.floating-ai-chip .ai-chip-text {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.floating-ai-chip .ai-chip-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--cyan);
}

/* ==========================================================================
   STATS BAR (100% RESPONSIVE)
   ========================================================================== */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.75rem 0;
    width: 100%;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.stat-item {
    min-width: 0;
    padding: 0.25rem;
    box-sizing: border-box;
}

.stat-number {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

body[data-theme="oled"] .stat-number,
body[data-theme="slate"] .stat-number {
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: clamp(0.72rem, 2.5vw, 0.85rem);
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

/* ==========================================================================
   CARACTERÍSTICAS & BENEFICIOS
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    width: 100%;
    min-width: 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all var(--transition-normal);
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

body[data-theme="oled"] .feature-card,
body[data-theme="slate"] .feature-card {
    background: linear-gradient(145deg, rgba(19, 23, 34, 0.75) 0%, rgba(13, 17, 26, 0.85) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="oled"] .feature-card:hover,
body[data-theme="slate"] .feature-card:hover {
    background: linear-gradient(145deg, rgba(25, 32, 48, 0.9) 0%, rgba(16, 21, 32, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

.feature-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.35rem;
    transition: all var(--transition-normal);
    position: relative;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* 1. Anti-Freeze (Fuego / Velocidad / Rayo) */
.feature-freeze .feature-icon-box {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
}
.feature-freeze:hover::before {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

/* 2. Deportes (Oro / Trofeo) */
.feature-sports .feature-icon-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}
.feature-sports:hover::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* 3. Catálogo VOD (Cine / Púrpura Neón) */
.feature-vod .feature-icon-box {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45);
}
.feature-vod:hover::before {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

/* 4. Guía EPG (Cian / Televisor) */
.feature-epg .feature-icon-box {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.45);
}
.feature-epg:hover::before {
    background: linear-gradient(90deg, #06b6d4, #0284c7);
}

/* 5. Sin Contratos (Rosa Neón / Libertad) */
.feature-nocontract .feature-icon-box {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.45);
}
.feature-nocontract:hover::before {
    background: linear-gradient(90deg, #ec4899, #f43f5e);
}

/* 6. Asistencia IA (Azul Inteligente / Robot) */
.feature-ai .feature-icon-box {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.45);
}
.feature-ai:hover::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    color: var(--text-main);
    line-height: 1.25;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   CATÁLOGO VOD & CARRUSEL DE PELÍCULAS Y SERIES (100% RESPONSIVE)
   ========================================================================== */
.vod-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, #0d121c 50%, var(--bg-main) 100%);
    padding: 4.5rem 0 3rem 0;
    overflow: hidden;
    position: relative;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
}

.vod-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.vod-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.vod-filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.vod-filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c37 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.vod-marquee-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 1.5rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}

.vod-marquee-container::-webkit-scrollbar {
    display: none;
}

.vod-marquee-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.vod-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0.5rem 1.5rem;
    will-change: scroll-position;
}

.vod-card {
    width: 220px;
    height: 330px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all var(--transition-normal);
    cursor: pointer;
    user-select: none;
}

.vod-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.vod-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vod-card:hover .vod-card-img {
    transform: scale(1.08);
}

.vod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.04em;
    z-index: 2;
}

.vod-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #facc15;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vod-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, #060913 0%, rgba(6, 9, 19, 0.85) 60%, transparent 100%);
    padding: 1.25rem 1rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.vod-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vod-platform {
    font-size: 0.75rem;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.vod-genre {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vod-quality-tag {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #60a5fa;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* ==========================================================================
   DISPOSITIVOS COMPATIBLES (100% RESPONSIVE)
   ========================================================================== */
.devices-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    width: 100%;
    box-sizing: border-box;
}

.device-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.device-tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.device-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.device-detail-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2.2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.device-detail-title {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    word-break: break-word;
    line-height: 1.25;
}

.device-detail-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.app-pills-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.app-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.app-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.device-guide-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.device-guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.device-guide-steps li span {
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ==========================================================================
   TABLA DE PLANES & PRECIOS (100% RESPONSIVE)
   ========================================================================== */
.pricing-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 50%, var(--bg-main) 100%);
}

.billing-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.3rem;
    border-radius: var(--radius-full);
    max-width: 580px;
    margin: 0 auto 2.5rem auto;
    width: 100%;
    box-sizing: border-box;
}

.billing-tab {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    background: transparent;
    white-space: nowrap;
    box-sizing: border-box;
}

.billing-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.billing-tab .discount-pill {
    position: absolute;
    top: -10px;
    right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.12rem 0.32rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
    min-width: 0;
    box-sizing: border-box;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.1) 0%, var(--bg-card) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 40px -10px rgba(249, 115, 22, 0.35);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent) 0%, #ff8c37 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px var(--accent-glow);
    white-space: nowrap;
}

.card-header {
    text-align: center;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.15rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.plan-devices-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.currency-sym {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
}

.price-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.plan-features li i {
    color: #34d399;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ==========================================================================
   BANNER DE PRUEBA GRATIS (DEMO)
   ========================================================================== */
.demo-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
}

.demo-content-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.75rem;
    align-items: center;
}

.demo-title {
    color: #ffffff !important;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.demo-desc {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
}

.demo-security-note {
    color: #94a3b8 !important;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.demo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.demo-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.demo-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: #ffffff !important;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-list {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 0.85rem;
    min-height: 64px;
    box-sizing: border-box;
}

.faq-icon {
    font-size: 0.95rem;
    color: var(--cyan);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.1rem 1.25rem;
    max-height: 400px;
}

/* ==========================================================================
   CONTACTO & SOPORTE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.contact-info-card, .contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    min-width: 0;
    box-sizing: border-box;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.contact-channel-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-width: 0;
}

.contact-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-wa { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp); }
.icon-mail { background: rgba(37, 99, 235, 0.15); color: var(--cyan); }
.icon-ai { background: rgba(249, 115, 22, 0.15); color: var(--accent); }

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 95px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #060911;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 0 2rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
    width: 100%;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    min-width: 0;
}

.footer-brand .logo-text {
    color: #ffffff !important;
}

.footer-brand .logo-text span {
    color: var(--accent) !important;
}

.footer-brand p {
    margin-top: 0.75rem;
    line-height: 1.6;
    color: #94a3b8 !important;
}

.footer-col h4 {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: #94a3b8 !important;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #38bdf8 !important;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.payment-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    color: #f1f5f9 !important;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.78rem;
    color: #64748b;
}

/* ==========================================================================
   BOTONES FLOTANTES (WHATSAPP & CHATBOT)
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-trigger-btn {
    width: 54px;
    height: 54px;
    background: var(--whatsapp);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px var(--whatsapp-glow);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    text-decoration: none;
}

.whatsapp-trigger-btn:hover {
    transform: scale(1.06);
}

.whatsapp-trigger-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    animation: waRipple 2s infinite;
}

@keyframes waRipple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c37 100%);
    color: #ffffff;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 6px 25px var(--accent-glow);
    transition: all var(--transition-normal);
    position: relative;
}

.chatbot-trigger:hover {
    transform: translateY(-2px) scale(1.02);
}

.chatbot-trigger-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.chatbot-trigger-text {
    font-weight: 800;
    font-size: 0.88rem;
}

.chatbot-trigger-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 17px;
    height: 17px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

.chatbot-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.chatbot-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.chatbot-header {
    background: linear-gradient(135deg, #111e40 0%, #0d152c 100%);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-agent-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chatbot-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff9f43 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    position: relative;
    flex-shrink: 0;
}

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--live-green);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
}

.chatbot-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
}

.chatbot-status {
    font-size: 0.7rem;
    color: #34d399;
    font-weight: 600;
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chatbot-close-btn svg {
    stroke: #ffffff;
}

.chatbot-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.chatbot-body {
    flex: 1;
    padding: 0.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background-color: var(--bg-main);
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
}

.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.msg-bubble {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    border-radius: var(--radius-md);
}

.chat-msg.bot .msg-bubble {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

.chat-msg.user .msg-bubble {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.msg-time {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
    align-self: flex-end;
}

.bot-action-card {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-md);
    padding: 0.7rem;
    margin-top: 0.45rem;
    text-align: center;
}

.bot-action-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.quick-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    max-height: 85px;
    overflow-y: auto;
}

.quick-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
}

.chatbot-footer {
    padding: 0.55rem 0.75rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.82rem;
}

.chatbot-send-btn {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.45rem 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.typing-dot {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   MODAL DE REPRODUCTOR DE TRÁILER EN VIDEO (100% RESPONSIVE & ACCESIBLE)
   ========================================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1rem;
    box-sizing: border-box;
}

.video-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    background: #091226;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(37, 99, 235, 0.25);
    overflow-y: auto;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.video-modal.open .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #ffffff;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 100;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.7);
}

.video-modal-close svg {
    stroke: #ffffff;
    display: block;
    transition: transform var(--transition-fast);
}

.video-modal-close:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.9);
}

.video-modal-close:hover svg {
    transform: rotate(90deg);
}

.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000000;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.video-modal-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.video-badge-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c37 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.video-badge-rating {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.video-badge-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
}

.video-modal-title {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.video-modal-meta {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 600;
}

.video-synopsis-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.video-modal-synopsis {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.video-modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.video-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.video-detail-item:last-child {
    grid-column: 1 / -1;
}

.video-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.video-detail-label i {
    color: var(--cyan);
}

.video-detail-value {
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 600;
}

.video-modal-footer {
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.85rem;
    position: sticky;
    bottom: 0;
}

@media (max-width: 640px) {
    .video-modal-body {
        padding: 1.15rem 1rem;
        gap: 0.9rem;
    }

    .video-modal-details-grid {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .video-modal-footer {
        padding: 0.9rem 1rem;
        flex-direction: column;
    }

    .video-modal-footer .btn {
        width: 100%;
    }
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN (MÓVILES & TABLETS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 1.5rem auto;
    }

    .hero-cta-group, .hero-features-list {
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .device-detail-box {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.85rem;
    }

    section {
        padding: 3rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1.25rem;
        gap: 1.25rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

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

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 5.8rem;
        padding-bottom: 2.75rem;
    }

    /* En móvil, el chip de IA se centra debajo del mockup sin salirse */
    .floating-ai-chip {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1.25rem auto 0 auto;
        width: fit-content;
        max-width: 100%;
        justify-content: center;
    }

    /* Grid de Estadísticas 2x2 sin cortes */
    .stats-bar {
        padding: 1.25rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.5rem;
    }

    .stat-item {
        padding: 0.2rem 0.1rem;
    }

    .devices-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.35rem 0.2rem 0.75rem 0.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .devices-tabs::-webkit-scrollbar {
        display: none;
    }

    .device-tab-btn {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }

    .device-detail-box {
        padding: 1.25rem 0.85rem;
        border-radius: var(--radius-md);
    }

    .billing-switcher {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
        border-radius: var(--radius-md);
        padding: 0.35rem;
    }

    .billing-tab {
        border-radius: var(--radius-sm);
        padding: 0.5rem 0.25rem;
        font-size: 0.76rem;
    }

    .billing-tab .discount-pill {
        position: static;
        display: inline-block;
        margin-left: 3px;
    }

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

    .demo-banner {
        padding: 1.75rem 1rem;
    }

    .contact-info-card, .contact-form-card {
        padding: 1.35rem 1rem;
    }

    .faq-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .floating-whatsapp {
        bottom: 14px;
        left: 14px;
    }

    .whatsapp-trigger-btn {
        width: 48px;
        height: 48px;
        font-size: 1.55rem;
    }

    .chatbot-widget {
        bottom: 14px;
        right: 14px;
    }

    .chatbot-trigger {
        padding: 0.7rem;
        width: 48px;
        height: 48px;
        justify-content: center;
    }

    .chatbot-trigger-text {
        display: none;
    }

    .chatbot-window {
        width: calc(100vw - 28px);
        right: -6px;
        bottom: 56px;
        height: 460px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 420px) {
    .nav-actions .btn-sm {
        display: none; /* Evita que el header se sature en celulares pequeños */
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }
}
