﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ========================================
   SIDETV LOADER - Estilo Pluto TV
   ======================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

/* Video de fondo del loader */
.loader-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Overlay oscuro sobre el video */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 10, 15, 0.8) 50%, rgba(13, 13, 13, 0.85) 100%);
    z-index: 2;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Logo Container */
.loader-logo {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo SVG real */
.loader-logo-img {
    height: 60px;
    width: auto;
    z-index: 10;
    position: relative;
    animation: logo-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.6))
            drop-shadow(0 0 40px rgba(220, 20, 60, 0.3));
}

/* Fallback texto (deprecated) */
.logo-container {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    z-index: 2;
    animation: logo-float 3s ease-in-out infinite;
}

.logo-container .logo-side {
    color: #ffffff;
}

.logo-container .logo-tv {
    color: #dc143c;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Órbitas animadas */
.orbit-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid transparent;
    border-top-color: #dc143c;
    border-right-color: rgba(220, 20, 60, 0.3);
    border-radius: 50%;
    animation: orbit-rotate 2s linear infinite;
}

.orbit-ring.ring-2 {
    width: 220px;
    height: 220px;
    border-top-color: rgba(220, 20, 60, 0.5);
    border-right-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    animation: orbit-rotate-reverse 3s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #dc143c;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px #dc143c, 0 0 40px rgba(220, 20, 60, 0.5);
}

.ring-2 .orbit-dot {
    width: 6px;
    height: 6px;
    top: auto;
    bottom: -3px;
    background: #ff6b6b;
    box-shadow: 0 0 15px #ff6b6b;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Barra de carga */
.loader-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #dc143c, #ff6b6b, #dc143c);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: progress-fill 2s ease-out forwards, shimmer 1.5s linear infinite;
}

@keyframes progress-fill {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 45%; }
    60% { width: 70%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Pulsos de fondo */
.loader-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    animation: pulse-expand 3s ease-out infinite;
    pointer-events: none;
}

.loader-pulse.pulse-2 {
    width: 400px;
    height: 400px;
    animation-delay: -1.5s;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
}

@keyframes pulse-expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Partículas de fondo (opcional) */
.loader-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 0),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.1) 1px, transparent 0),
        radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,0.05) 1px, transparent 0),
        radial-gradient(2px 2px at 80% 60%, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 200px 200px;
    animation: stars-drift 20s linear infinite;
}

@keyframes stars-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Responsive Loader */
@media (max-width: 480px) {
    .logo-container {
        font-size: 2.2rem;
    }
    
    .loader-logo {
        width: 150px;
        height: 150px;
    }
    
    .orbit-ring {
        width: 130px;
        height: 130px;
    }
    
    .orbit-ring.ring-2 {
        width: 160px;
        height: 160px;
    }
    
    .loader-bar {
        width: 150px;
    }
    
    .loader-text {
        font-size: 0.7rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background-color: #0d0d0d;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #dc143c;
    border-color: #dc143c;
}

.btn-secondary:hover {
    background: #dc143c;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   BARRA DE ALERTAS / NOTIFICACIONES
   ======================================== */
.alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.alert-bar.hidden {
    transform: translateY(-100%);
}

/* Tipos de alertas */
.alert-bar.alert-emergencia {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.5);
}

.alert-bar.alert-advertencia {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000000;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

.alert-bar.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.alert-bar.alert-exito {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

.alert-bar.alert-mantenimiento {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.5);
}

.alert-bar-content {
    display: flex;
    align-items: center;
    padding: 10px 0;
    white-space: nowrap;
    animation: alert-scroll 30s linear infinite;
}

.alert-bar.static .alert-bar-content {
    animation: none;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 10px 20px;
}

@keyframes alert-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.alert-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 50px;
}

.alert-bar-item i {
    font-size: 1rem;
}

.alert-bar-item a {
    color: inherit;
    text-decoration: underline;
    margin-left: 10px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.alert-bar-item a:hover {
    opacity: 0.8;
}

/* Botón de cerrar */
.alert-bar-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: inherit;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    z-index: 10;
}

.alert-bar-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Ajuste del header cuando hay alerta */
body.has-alert .header {
    top: 40px;
}

body.has-alert .hero,
body.has-alert .hero-section,
body.has-alert .hero-video-section {
    margin-top: 120px; /* 80px header + 40px alerta */
    height: calc(100vh - 200px);
    min-height: 350px;
    max-height: calc(100vh - 200px);
}

/* Responsive alertas */
@media (max-width: 768px) {
    .alert-bar {
        font-size: 0.75rem;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .alert-bar-content {
        max-width: 100%;
    }
    
    .alert-bar-item {
        padding: 0 30px;
    }
    
    body.has-alert .header {
        top: 36px;
    }
    
    body.has-alert .hero,
    body.has-alert .hero-section,
    body.has-alert .hero-video-section {
        margin-top: 106px; /* 70px header + 36px alerta */
        height: calc(100vh - 186px);
        min-height: 300px;
        max-height: calc(100vh - 186px);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.2);
    border-bottom: 1px solid rgba(220, 20, 60, 0.4);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    will-change: transform;
    gap: 40px;
}

/* Nav Logo con efectos */
.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo .logo-img {
    height: 45px;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.3));
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.6));
    transform: scale(1.05);
}

.nav-logo .logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-logo:hover .logo-glow {
    opacity: 1;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.logo-side {
    color: #ffffff;
}

.logo-com {
    color: #dc143c;
}

.logo-tv {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.nav-link:hover {
    color: #dc143c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc143c, #ff4d6d);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 70%;
}

/* Active nav link */
.nav-link.active {
    color: #dc143c;
}

.nav-link.active::after {
    width: 70%;
}

.cta-button {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 25px;
    border: 2px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
    background: linear-gradient(135deg, #ff1a4a 0%, #dc143c 100%);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button::after {
    display: none !important;
}

/* Nav CTA item */
.nav-cta {
    margin-left: 0.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 12px;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent;
    border: none;
    outline: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    position: relative;
    margin-left: auto;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff !important;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.hamburger:hover {
    background: rgba(220, 20, 60, 0.1);
}

.hamburger:hover .bar {
    background: #dc143c;
}

/* ========================================
   HERO CAROUSEL - Fullscreen Multimedia
   Controlado desde Admin > Carousel
   ======================================== */

/* ======== HERO VIDEO SECTION ======== */
.hero-video-section {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    background: #0d0d0d;
    display: block;
    margin: 0;
    padding: 0;
    margin-top: 70px;
    height: calc(100vh - 70px);
    height: calc(100svh - 70px);
    min-height: 400px;
    max-height: calc(100vh - 70px);
    z-index: 1;
}

/* Versión minimal - solo video */
.hero-video-section.hero-minimal {
    position: relative;
    display: block;
    margin-top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    overflow: hidden !important;
    z-index: 1;
    background: #0d0d0d;
}

/* Forzar que el video no se desborde */
.hero-video-section.hero-minimal video,
.hero-video-section.hero-minimal .hero-video-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0;
}

/* Borde inferior sólido para evitar filtración */
.hero-video-section.hero-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #0d0d0d;
    z-index: 10;
}

/* Video de fondo del Hero */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Video Desktop - visible solo en pantallas grandes */
.hero-video-desktop {
    display: block;
}

.hero-video-mobile {
    display: none;
}

/* Video Mobile - visible solo en pantallas pequeñas */
@media (max-width: 768px) {
    .hero-video-desktop {
        display: none;
    }
    
    .hero-video-mobile {
        display: block;
    }
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Overlay minimal - solo degradado inferior sutil */
.hero-video-overlay-minimal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, 
        #0d0d0d 0%, 
        rgba(13,13,13,0.8) 30%,
        rgba(13,13,13,0.3) 60%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-scroll-indicator .scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #dc143c, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.5; height: 30px; }
}


.hero-video-section.hero-minimal .hero-video-overlay {
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.1) 50%, 
        rgba(13,13,13,0.9) 85%,
        rgba(13,13,13,1) 95%,
        #0d0d0d 100%) !important;
    pointer-events: none;
}

.hero-video-section.hero-minimal .hero-scroll-indicator {
    bottom: 80px;
    z-index: 100;
}

/* Responsive Hero Video */
@media (max-width: 768px) {
    .hero-video-section {
        margin-top: 70px;
        height: calc(100vh - 70px);
        height: calc(100svh - 70px);
        min-height: 350px;
        max-height: calc(100vh - 70px);
    }
    
    .hero-video-section.hero-minimal {
        height: calc(100vh - 70px);
        height: calc(100svh - 70px);
        min-height: 350px;
        max-height: calc(100vh - 70px);
        overflow: hidden !important;
    }
    
    .hero-video-bg {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-scroll-indicator {
        bottom: 100px;
    }
    
    .hero-scroll-indicator span {
        font-size: 0.65rem;
    }
    
    .hero-scroll-indicator .scroll-line {
        height: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .btn-hero-primary, .btn-hero-secondary {
        padding: 14px 25px;
        font-size: 0.9rem;
    }
}

/* ======== CAROUSEL DE IMÁGENES ======== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    min-height: 400px;
    max-height: calc(100vh - 70px);
    margin-top: 0; /* Sin margin cuando viene después del separador */
    overflow: hidden;
    background: #000;
}

/* Cuando el carousel es el inicio (sin hero video) */
.hero-carousel:first-of-type,
section.hero-carousel#inicio {
    margin-top: 70px;
}

/* Slides Container */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Background Image */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 8s ease;
    min-width: 100%;
    min-height: 100%;
}

.carousel-slide.active .slide-background img {
    transform: scale(1.08);
}

.fallback-bg {
    background: linear-gradient(135deg, #1a0508 0%, #0d0d0d 50%, #1a0a0a 100%);
}

/* Overlay Gradiente Cinematográfico */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, 
            rgba(0,0,0,0.3) 0%, 
            rgba(0,0,0,0.1) 40%, 
            rgba(0,0,0,0.4) 70%, 
            rgba(0,0,0,0.9) 100%),
        linear-gradient(90deg, 
            rgba(0,0,0,0.7) 0%, 
            transparent 40%, 
            transparent 60%, 
            rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

/* Contenido del Slide */
.slide-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 10;
    max-width: 650px;
    padding-right: 20px;
}

.slide-tag {
    display: inline-block;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.carousel-slide.active .slide-tag {
    opacity: 1;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.carousel-slide.active .slide-title {
    opacity: 1;
}

.slide-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 500px;
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.carousel-slide.active .slide-description {
    opacity: 1;
}

.slide-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.carousel-slide.active .slide-actions {
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones del Slide */
.btn-slide-primary,
.btn-slide-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-slide-primary {
    background: #dc143c;
    color: white;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.btn-slide-primary:hover {
    background: #ff1744;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
    color: white;
}

.btn-slide-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-slide-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    color: white;
}

/* Controles del Carousel */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.carousel-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: #dc143c;
    border-color: #dc143c;
    transform: scale(1.1);
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    position: relative;
    width: 50px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255,255,255,0.4);
}

.indicator.active {
    background: rgba(255,255,255,0.3);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #dc143c;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.indicator.active .indicator-progress {
    animation: progressBar 6s linear forwards;
}

@keyframes progressBar {
    from { width: 0; }
    to { width: 100%; }
}

.indicator-number {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator:hover .indicator-number,
.indicator.active .indicator-number {
    opacity: 1;
}

/* Scroll Indicator */
.carousel-scroll {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.carousel-scroll span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #dc143c;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* ========================================
   HERO CAROUSEL - Responsive
   ======================================== */
@media (max-width: 1200px) {
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-content {
        max-width: 550px;
    }
}

@media (max-width: 992px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .carousel-indicators {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }
    
    .carousel-scroll {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: calc(100vh - 70px);
        min-height: 350px;
        max-height: calc(100vh - 70px);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .carousel-slides,
    .carousel-slide {
        width: 100%;
        max-width: 100%;
    }
    
    .slide-background {
        width: 100%;
        max-width: 100%;
    }
    
    .slide-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .slide-content {
        bottom: 20%;
        left: 20px;
        right: 20px;
        padding-right: 0;
        max-width: 100%;
    }
    
    .slide-tag {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .slide-actions {
        flex-direction: column;
    }
    
    .btn-slide-primary,
    .btn-slide-secondary {
        justify-content: center;
        padding: 14px 25px;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .indicator {
        width: 30px;
    }
    
    .indicator-number {
        display: none;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.6rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide-tag {
        font-size: 0.7rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
    opacity: 0.8;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Add glow effects for dark theme */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

.highlight {
    background: linear-gradient(45deg, #dc143c, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.feature-item i {
    font-size: 1.2rem;
    color: #dc143c;
}

/* TV Mockup */
.tv-mockup {
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.tv-screen {
    width: 400px;
    height: 250px;
    background: #000;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
    margin: 0 auto;
}

.tv-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.channel-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    z-index: 2;
}

.channel-logo.active {
    opacity: 1;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave .shape-fill {
    fill: #0d0d0d;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: #0d0d0d;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: #dc143c;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Efecto especial para contador de clientes */
.stat-item:has(.stat-label:contains("Clientes")) .stat-number {
    background: linear-gradient(135deg, #ffffff, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Animación de pulso para nuevos incrementos */
.stat-number.incrementing {
    animation: pulseIncrement 0.6s ease;
}

@keyframes pulseIncrement {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
    100% { transform: scale(1); }
}

.stat-label {
    color: #cccccc;
    font-weight: 500;
}

/* ========================================
   SEPARADOR DE SECCIONES - Animado
   ======================================== */
.section-divider {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    overflow: hidden;
    z-index: 50;
    margin-top: -1px;
    /* Tapar cualquier pixel que se filtre */
    box-shadow: 0 -20px 0 0 #0d0d0d;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 20, 60, 0.1) 15%,
        rgba(220, 20, 60, 0.3) 50%, 
        rgba(220, 20, 60, 0.1) 85%,
        transparent 100%);
    transform: translateY(-50%);
}

.divider-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    border-radius: 50%;
    border: 1px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.2);
}

.divider-icon i {
    font-size: 1rem;
    color: #dc143c;
    animation: divider-pulse 2s ease-in-out infinite;
}

@keyframes divider-pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Partículas decorativas */
.divider-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.divider-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #dc143c;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
}

.divider-particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.divider-particle:nth-child(2) { left: 35%; animation-delay: 0.8s; }
.divider-particle:nth-child(3) { left: 65%; animation-delay: 1.6s; }
.divider-particle:nth-child(4) { left: 80%; animation-delay: 2.4s; }

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px) scale(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1);
    }
}

/* Líneas animadas laterales */
.divider-line {
    position: absolute;
    top: 50%;
    height: 2px;
    width: 100px;
    transform: translateY(-50%);
}

.divider-line.left {
    left: calc(50% - 150px);
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.5));
    animation: line-pulse-left 2s ease-in-out infinite;
}

.divider-line.right {
    right: calc(50% - 150px);
    background: linear-gradient(270deg, transparent, rgba(220, 20, 60, 0.5));
    animation: line-pulse-right 2s ease-in-out infinite;
}

@keyframes line-pulse-left {
    0%, 100% { width: 60px; opacity: 0.3; }
    50% { width: 100px; opacity: 0.8; }
}

@keyframes line-pulse-right {
    0%, 100% { width: 60px; opacity: 0.3; }
    50% { width: 100px; opacity: 0.8; }
}

/* Variante minimalista */
.section-divider.minimal {
    height: 60px;
}

.section-divider.minimal .divider-icon {
    width: 40px;
    height: 40px;
}

.section-divider.minimal .divider-icon i {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-divider {
        height: 60px;
    }
    
    .divider-icon {
        width: 40px;
        height: 40px;
    }
    
    .divider-line {
        display: none;
    }
}

/* Channels Section */
.channels {
    padding: 5rem 0;
    background: #1a1a1a;
}

.section-header {
    margin-bottom: 3rem;
}

.channel-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Channel Search */
.channel-search {
    position: relative;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #333333;
    color: #ffffff;
    padding: 12px 40px 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    min-width: 250px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    background: rgba(220, 20, 60, 0.1);
}

.search-input::placeholder {
    color: #888888;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888888;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: #dc143c;
}

.search-input:not(:placeholder-shown) + .search-clear {
    display: block;
}

/* Search Results */
.search-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
}

.no-results {
    color: #cccccc;
    max-width: 400px;
    margin: 0 auto;
}

.no-results i {
    font-size: 3rem;
    color: #666666;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.no-results p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-results strong {
    color: #dc143c;
}

.category-btn {
    background: transparent;
    border: 2px solid #333333;
    color: #cccccc;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    border-color: #dc143c;
    color: #dc143c;
    background: rgba(220, 20, 60, 0.1);
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.channel-item {
    background: #000000;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border: 1px solid #333333;
}

.channel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
    border-color: #dc143c;
}

.channel-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    padding: 5px;
    border-radius: 5px;
}

.channel-item.hidden {
    display: none;
}

/* Plans Section */
.plans {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 2rem 2rem 4.5rem 2rem; /* Aumenté el padding inferior */
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.15);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(220, 20, 60, 0.2);
    min-height: 280px; /* Altura mínima para consistencia */
    overflow: hidden; /* Para contener el video de fondo */
}

/* Ensure content is above video with better text readability */
.plan-card > * {
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.plan-card .plan-name {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.plan-card .plan-features li {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Video background for plan cards */
.plan-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}

.plan-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: brightness(0.9) contrast(1.2) saturate(1.1);
    will-change: transform, opacity;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3) 0%, rgba(45, 45, 45, 0.4) 100%);
    z-index: 2;
    backdrop-filter: blur(0.5px);
}

/* Video fallbacks for when video doesn't load */
.video-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.football-fallback {
    background: linear-gradient(135deg, #0d4f3c 0%, #1a7c5a 50%, #0d4f3c 100%);
    background-size: 200% 200%;
    animation: footballGradient 3s ease infinite;
    position: relative;
}

.football-fallback::before {
    content: '⚽';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes footballGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Movies fallback */
.plan-card:has(.plan-name:contains("Películas")) .video-fallback {
    background: linear-gradient(135deg, #4a1a4a 0%, #7a2d7a 50%, #4a1a4a 100%);
    background-size: 200% 200%;
    animation: moviesGradient 4s ease infinite;
    position: relative;
}

.plan-card:has(.plan-name:contains("Películas")) .video-fallback::before {
    content: '🎬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.1;
    animation: rotate 8s linear infinite;
}

@keyframes moviesGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hover effects for video cards */
.plan-card:hover .plan-background-video video {
    opacity: 0.9;
    transform: scale(1.05);
    filter: brightness(1.0) contrast(1.3) saturate(1.2);
}

.plan-card:hover .video-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.2) 0%, rgba(45, 45, 45, 0.3) 100%);
}

/* Loading state for videos */
.plan-background-video video:not([data-loaded]) {
    opacity: 0;
}

.plan-background-video video[data-loaded] {
    opacity: 0.8;
}

/* Specific styling for different video types */
.plan-card:has(.plan-name:contains("Fútbol")) .video-overlay {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.2) 0%, rgba(13, 79, 60, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.plan-card:has(.plan-name:contains("Películas")) .video-overlay {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(74, 26, 74, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* Video loading spinner */
.plan-background-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(220, 20, 60, 0.3);
    border-top: 3px solid #dc143c;
    border-radius: 50%;
    animation: videoLoading 1s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-background-video:has(video:not([data-loaded]))::before {
    opacity: 1;
}

@keyframes videoLoading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .plan-background-video video {
        opacity: 0.3;
        transform: none !important;
    }
    
    .plan-card:hover .plan-background-video video {
        opacity: 0.4;
        transform: none !important;
    }
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.25);
}

.plan-card.featured {
    border: 3px solid #dc143c;
    transform: scale(1.05);
    padding: 2rem 2rem 4.5rem 2rem; /* Asegurar el mismo padding */
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    color: #dc143c;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
}

.period {
    font-size: 1rem;
    color: #cccccc;
}

.plan-features ul {
    list-style: none;
    margin-bottom: 1rem; /* Reducido de 2rem a 1rem */
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0; /* Reducido de 0.5rem a 0.4rem */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    font-size: 0.95rem; /* Ligeramente más pequeño */
}

.plan-features i {
    font-size: 1rem;
    width: 16px;
}

.fa-check {
    color: #28a745;
}

.fa-times {
    color: #dc3545;
}

.plans-note {
    text-align: center;
    color: #cccccc;
    font-style: italic;
}

/* Custom Plan Section */
.custom-plan {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.custom-plan-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.2);
    border: 2px solid rgba(220, 20, 60, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc143c, #ff1744, #dc143c);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.custom-plan-header {
    margin-bottom: 2rem;
}

.custom-plan-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.custom-plan-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    opacity: 0.9;
}

.custom-plan-content {
    margin-bottom: 2.5rem;
}

.custom-plan-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.custom-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 12px;
    border-left: 4px solid #dc143c;
}

.custom-feature i {
    font-size: 1.5rem;
    color: #dc143c;
    width: 24px;
}

.custom-feature span {
    color: #ffffff;
    font-weight: 500;
}

.custom-plan-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.category-tag {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.custom-plan-footer .btn-custom {
    background: linear-gradient(135deg, #dc143c, #ff1744);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    
}

.custom-plan-footer .btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.4);
    background: linear-gradient(135deg, #ff1744, #dc143c);
}

.custom-plan-footer .btn-custom i {
    font-size: 1rem;
}

/* Plan Builder Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(220, 20, 60, 0.3);
    border: 2px solid rgba(220, 20, 60, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.plan-builder-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    min-height: 500px;
}

.plan-builder-sidebar {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.plan-builder-sidebar h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.category-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-item:hover {
    border-color: rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
}

.category-item input[type="checkbox"] {
    display: none;
}

.category-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.category-item input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.2));
    border-left: 4px solid #dc143c;
}

.category-item label i {
    font-size: 1.5rem;
    color: #dc143c;
    width: 24px;
    text-align: center;
}

.category-item label div {
    flex: 1;
}

.category-name {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-count {
    display: block;
    color: #cccccc;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.category-price {
    display: block;
    color: #dc143c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.plan-builder-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-summary {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 0, 0.1));
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(220, 20, 60, 0.3);
    text-align: center;
}

.plan-summary h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.plan-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.plan-stat {
    text-align: center;
}

.stat-number, .stat-price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #dc143c;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-savings {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 0.75rem;
    color: #28a745;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.selected-categories {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(220, 20, 60, 0.2);
    flex: 1;
}

.selected-categories h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selected-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #dc143c;
}

.selected-item.base-plan {
    border-left-color: #6c757d;
}

.category-icon {
    font-size: 1.2rem;
    color: #dc143c;
    width: 24px;
    text-align: center;
}

.base-plan .category-icon {
    color: #6c757d;
}

.category-info {
    flex: 1;
}

.category-info strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.category-info small {
    display: block;
    color: #cccccc;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.selected-item .category-price {
    color: #dc143c;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-builder-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.plan-builder-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fijar el botón Ver Grilla en la esquina inferior izquierda de la tarjeta */
.plan-footer {
  position: absolute;
  left: 2rem;
  bottom: 1.5rem; /* Ajustado de 2rem a 1.5rem */
  margin: 0;
  padding: 0;
  background: none;
  width: auto;
  z-index: 2;
  display: block;
}
.plan-footer .btn {
  margin: 0;
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 22px;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.plan-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.3);
}

.plan-footer .btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.95);
}

.plan-footer .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.5);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .plan-builder-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-builder-sidebar {
        order: 2;
    }
    
    .plan-builder-main {
        order: 1;
    }
    
    .plan-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plan-builder-actions {
        flex-direction: column;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #0d0d0d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.service-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: #cccccc;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.testimonial-card {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #dc143c;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-location {
    opacity: 0.8;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1.2rem;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #0d0d0d;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-info .section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-info h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.method-info p {
    color: #cccccc;
    margin: 0;
}

/* Form Styles */
.form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333333;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #000000;
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc143c;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contact Map Section */
.contact-map {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(20%) brightness(0.9);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) brightness(1);
}

.map-info {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
    height: fit-content;
}

.map-info h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.map-info p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.map-info strong {
    color: #dc143c;
}

.map-info ul {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
}

.map-info ul li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.map-info ul li::before {
    content: "•";
    color: #dc143c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
    background: linear-gradient(135deg, #ff1744, #dc143c);
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc143c;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #dc143c;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Custom Alerts */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 10000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.alert-error {
    background: linear-gradient(135deg, #dc143c, #8b0000);
}

.alert-info {
    background: linear-gradient(135deg, #dc143c, #b91c2c);
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    will-change: transform, opacity;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.6);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1040;
    animation: whatsappPulse 2s infinite;
    will-change: transform;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128c7e, #25d366);
    color: white;
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.whatsapp-float:hover::before {
    opacity: 0.3;
}

/* WhatsApp tooltip */
.whatsapp-float::after {
    content: 'Contactanos por WhatsApp';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Admin Corner Button - Esquina superior izquierda */
.admin-corner {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom-right-radius: 8px;
}

.admin-corner:hover {
    background: rgba(220, 20, 60, 0.9);
    color: white;
    width: 36px;
    height: 36px;
}

.admin-corner:hover i {
    transform: scale(1.1);
}

/* Cuando hay alerta, mover el botón debajo */
.has-alert .admin-corner {
    top: 45px;
}

/* Additional dark theme improvements */
::selection {
    background: rgba(220, 20, 60, 0.3);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b0000, #dc143c);
}

/* ========================================
   MOBILE FIXES - Evitar scroll horizontal
   ======================================== */
@media screen and (max-width: 768px) {
    /* Prevenir overflow horizontal global */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Contenedor principal */
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }
    
    /* Header y nav */
    .header {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(220, 20, 60, 0.2);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        gap: 1rem;
        border-top: 1px solid rgba(220, 20, 60, 0.3);
        z-index: 9998;
        display: flex !important;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        padding: 12px;
        background: rgba(220, 20, 60, 0.1);
        border-radius: 6px;
        border: 1px solid rgba(220, 20, 60, 0.3);
        margin-left: auto;
        margin-right: 0;
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 999999;
        visibility: visible;
        opacity: 1;
    }
    
    .hamburger .bar {
        width: 25px !important;
        height: 3px !important;
        background: #ffffff !important;
        display: block !important;
        border-radius: 2px;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 0;
    }
    
    .nav-logo {
        flex-shrink: 0;
    }
    
    .nav-logo .logo-img {
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(220, 20, 60, 0.2);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        gap: 1rem;
        border-top: 1px solid rgba(220, 20, 60, 0.3);
        z-index: 9998;
        display: flex !important;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 1rem 0;
        margin: 0;
        border-radius: 0;
        display: block;
        width: 100%;
    }
    
    .nav-link::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* CTA Button en mobile */
    .nav-cta {
        margin: 1rem 0 0 0;
        padding: 0 2rem;
    }
    
    .nav-cta .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: #dc143c;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: #dc143c;
    }
    
    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tv-mockup {
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .tv-screen {
        width: 320px;
        height: 200px;
        background: #000;
        border: 2px solid #333;
        border-radius: 15px;
        padding: 15px;
        margin: 0 auto;
        box-shadow: 0 15px 40px rgba(220, 20, 60, 0.25);
    }
    
    .section-title {
        font-size: 2rem;
        text-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 100%;
    }
    
    .plan-card {
        padding: 1.5rem 1.5rem 4rem 1.5rem; /* Ajustado para móviles */
        min-height: 240px;
    }
    
    .plan-card.featured {
        transform: none;
        padding: 1.5rem 1.5rem 4rem 1.5rem; /* Consistente en móviles */
    }
    
    .plan-footer {
        left: 1.5rem;
        bottom: 1rem;
    }
    
    .custom-plan-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .custom-plan-title {
        font-size: 1.5rem;
    }
    
    .custom-plan-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .custom-feature {
        padding: 0.75rem;
    }
    
    .custom-plan-categories {
        gap: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .footer-logo h3 {
        margin-bottom: 1rem;
    }
    
    .footer-logo p {
        margin-bottom: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .channel-categories {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .category-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }
    
    /* Fixes adicionales para overflow */
    .hero-carousel,
    .hero-video-section,
    .stats,
    .channels,
    .plans,
    .services,
    .testimonials,
    .contact,
    .news,
    .footer,
    section {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section-divider {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Video fix */
    video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hamburger {
        padding: 10px;
        margin-left: auto;
    }
    
    .bar {
        width: 22px;
        height: 2.5px;
    }
    
    .hero {
        padding-top: 90px;
        min-height: calc(100vh - 90px);
    }
    
    .hero-title {
        font-size: 2rem;
        text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tv-mockup {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
        animation: float 4s ease-in-out infinite;
    }
    
    .tv-screen {
        width: min(280px, 90vw);
        height: min(175px, 56.25vw);
        background: #000;
        border: 2px solid #333;
        border-radius: 12px;
        padding: 12px;
        margin: 0 auto;
        box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
        max-width: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .channel-item {
        padding: 0.75rem;
        min-height: 60px;
    }
    
    .channel-item img {
        max-height: 40px;
    }
    
    .social-links {
        gap: 1.25rem;
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .whatsapp-float::after {
        right: 65px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
        text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
    }
    
    .tv-mockup {
        margin: 1rem 0;
        padding: 0;
        animation: float 3s ease-in-out infinite;
    }
    
    .tv-screen {
        width: min(260px, 85vw);
        height: min(162px, 53vw);
        border-radius: 10px;
        padding: 10px;
        margin: 0 auto;
        box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
        max-width: 260px;
    }
    
    .channel-logo {
        max-width: 120px;
        max-height: 60px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        gap: 1rem;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .whatsapp-float::after {
        right: 60px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* ============================
   NEWS SECTION STYLES
   ============================ */
.news {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(13, 13, 13, 0.95));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(220, 20, 60, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 16px 48px rgba(220, 20, 60, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9), transparent);
    z-index: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #dc143c;
    font-weight: 500;
}

.news-date i {
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc143c;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-link:hover {
    gap: 0.75rem;
    color: #ff4466;
}

.news-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(4px);
}

.news-more {
    text-align: center;
    margin-top: 3rem;
}

/* News Section Responsive */
@media (max-width: 768px) {
    .news {
        padding: 3rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        border-radius: 12px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

