/* Reset and Base Styles */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #f87171;
    --dark: #1f2937;
    --gray-dark: #374151;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --light: #f9fafb;
    --white: #ffffff;
    --success: #059669;
    --warning: #d97706;
    --accent-color: #e60000; /* Rojo intenso */
    --text-color: #404040; /* Gris oscuro para mayor contraste */
    --spacing-lg: 4rem;
    --nav-height: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  position: relative;
}

.logo-image {
  height: 150px;
  width: auto;
  margin-top: -45px !important;
  margin-bottom: -45px;
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Language Selector - Keep original styles */
.language-selector {
    margin-left: 1rem;
    top: -8px;

}

/* Links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  top: -8px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  visibility: hidden;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px auto;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        z-index: 1001;

    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9); /* Fondo ligeramente más transparente */
        border-bottom: 2px solid rgba(255, 255, 255, 0.8); /* Línea blanca */
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: center;
        clip-path: circle(0% at top right);
        transition: 0.4s;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Sombra suave */
    }
    

    .nav-toggle:checked ~ .nav-links {
        clip-path: circle(150% at top right);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

       /* Dropdown Menu Styles */
       .nav-dropdown {
            position: relative;
        }
        
        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        
        .nav-dropdown-menu a {
            display: block;
            padding: 12px 16px;
            color: #374151;
            text-decoration: none;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .nav-dropdown-menu a:last-child {
            border-bottom: none;
        }
        
        .nav-dropdown-menu a:hover {
            background: #f9fafb;
            color: #dc2626;
            padding-left: 20px;
        }
        
        .nav-dropdown-submenu {
            position: relative;
        }
        
        .nav-dropdown-submenu-menu {
            position: absolute;
            top: 0;
            left: 100%;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            min-width: 150px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
        }
        
        .nav-dropdown-submenu:hover .nav-dropdown-submenu-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
        
        .nav-dropdown-submenu-menu a {
            padding: 10px 14px;
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
    .nav-links > a:hover::after,
    .nav-dropdown > .nav-dropdown-toggle:hover::after {
        width: 40%;
        min-width: 30%;
    }

    .logo-image {
    height: 150px; /* Aumenté el tamaño para hacerlo más grande */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: -20px 0 -30px 0; /* Ajusté los márgenes para un mejor posicionamiento */
    margin-bottom: -55px !important;
    }
    
    /* Language selector en móvil */
    .language-selector {
        top: 0;
    }
        }

/* Hero Section */
.hero {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.highlight {
    color: var(--primary);
    display: inline-block;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--gray-dark);
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    min-width: 220px;
    text-align: center;
    flex-direction: column;
    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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.promo-code {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-code:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--primary);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.secondary-button:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.hero-image {
    position: relative;
    perspective: 1000px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
    border: 1px solid var(--gray-light);
}

.hero-image:hover .main-image {
    transform: perspective(1000px) rotateY(0deg);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    font-size: 0.9rem;
    border: 1px solid var(--gray-light);
}

.element.booth {
    top: 20%;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    animation-delay: 0.5s;
}

.element.date {
    bottom: 20%;
    left: -20px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.news-container {
    display: flex;
    justify-content: center;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    max-width: 800px;
    width: 100%;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.news-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
}

.news-category {
    display: inline-block;
    background: #fef2f2;
    color: #991b1b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
    position: relative;
}

.news-category::before {
    content: '🎯';
    margin-right: 0.5rem;
}

.news-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-intro {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 500;
}

.event-details {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
    position: relative;
}

.event-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 0 0 0 12px;
}

.event-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details h4::before {
    content: '📋';
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.9);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-dark);
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label::before {
    font-size: 1.2rem;
}

.detail-item:nth-child(2) .detail-label::before { content: '📅'; }
.detail-item:nth-child(3) .detail-label::before { content: '📍'; }
.detail-item:nth-child(4) .detail-label::before { content: '🏢'; }
.detail-item:nth-child(5) .detail-label::before { content: '🎫'; }

.detail-value {
    font-weight: 700;
    color: var(--dark);
}

.promo-code {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.promo-code:hover::before {
    left: 100%;
}

.promo-code:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.promo-note {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    font-style: italic;
}

.closing-message {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--gray-dark);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-weight: 500;
    line-height: 1.7;
    position: relative;
}

.closing-message::before {
    content: '🤝';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray);
    padding: 1rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-date {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date::before {
    content: '⏰';
}

.cta-section-inline {
    text-align: center;
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.cta-button.primary::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;
}

.cta-button.primary:hover::before {
    left: 100%;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Live Section */
.live-section {
    padding: 80px 0;
    background: var(--white);
}

.live-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.main-stream {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-light);
    position: relative;
    transition: all 0.3s ease;
}

.main-stream:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.16);
}

.main-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    z-index: 1;
}

.live-video {
    height: 400px;
    background: #000;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
}

.live-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 1s ease-out;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

/* Estilos para la imagen de placeholder */
.video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #000; /* Fondo negro por si la imagen no carga */
}

/* Asegurar que el contenedor mantenga sus dimensiones */
.live-video {
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #000; /* Fondo negro para el área no cubierta por la imagen */
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.viewer-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    backdrop-filter: blur(10px);
    animation: slideInRight 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.viewer-count::before {
    content: '👥';
}

.live-content {
    padding: 1.5rem;
    background: var(--white);
}

.live-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-content h3::before {
    content: '🎬';
}

.live-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

.live-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.viewers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 600;
}

.viewers::before {
    content: '👀';
}

.duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration::before {
    content: '⏱️';
}

.upcoming-streams {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.upcoming-streams::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--warning), #f59e0b);
    border-radius: 16px 16px 0 0;
}

.upcoming-streams h3 {
    font-size: clamp(1.2rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-streams h3::before {
    content: '📅';
}

.stream-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.stream-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.stream-item:hover::before {
    transform: scaleY(1);
}

.stream-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stream-time {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stream-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.stream-time:hover::before {
    left: 100%;
}

.stream-info {
    flex: 1;
}

.stream-info h4 {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-item:nth-child(2) .stream-info h4::before { content: '🤖'; }
.stream-item:nth-child(3) .stream-info h4::before { content: '💡'; }
.stream-item:nth-child(4) .stream-info h4::before { content: '🚀'; }

.stream-info p {
    font-size: clamp(0.8rem, 1.2vw, 0.875rem);
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.session-preview {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.session-preview:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
}

/* Upcoming Events Section - Carousel */
.upcoming-events-section {
    padding: 80px 0;
    background: var(--light);
    position: relative;
}

.upcoming-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-light), transparent);
}

.events-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 0px;
}

.events-carousel {
    overflow: hidden;
    border-radius: 16px;
}

.events-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.prev-btn {
    left: 250px;
}

.next-btn {
    right: 250px;
}

/* Oculta las flechas de navegación en móviles (menos de 768px) */
@media (max-width: 768px) {
    .prev-btn,
    .next-btn {
        display: none !important; /* Fuerza la ocultación */
    }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
    border-color: var(--primary-light);
}

.indicator:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.event-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 350px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.event-card.featured::before {
    background: var(--primary);
}

.event-card.live::before {
    background: var(--success);
    animation: livePulseBar 2s infinite;
}

@keyframes livePulseBar {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.7;
    }
}

.event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-category {
    display: inline-block;
    background: #fef2f2;
    color: #991b1b;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.event-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-card p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-location {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.event-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.coming-soon {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.event-status.current {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary-dark);
}

.event-status.live-now {
    background: var(--success);
    color: var(--white);
    border: 1px solid #047857;
    animation: livePulse 2s infinite;
}

/* Mobile Enhancements */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .live-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        justify-content: center;
    }

    .event-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev-btn {
        left: -20px;
    }

    .next-btn {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .news-section,
    .live-section,
    .upcoming-events-section {
        padding: 60px 0;
    }
    
    .event-details {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .detail-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .detail-value {
        font-size: 1rem;
        margin-left: 1.5rem;
    }
    
    .live-video {
        height: 280px;
    }
    
    .cta-section-inline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .secondary-button {
        margin-left: 0;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
    }
    
    .stream-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stream-time {
        align-self: flex-start;
        min-width: auto;
        padding: 0.75rem 1rem;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .closing-message {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .event-card {
        flex: 0 0 100%;
        min-width: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-btn {
        left: -17px;
    }

    .next-btn {
        right: -17px;
    }

    .events-carousel-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding:  80px 0 40px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .stats {
        gap: 0.75rem;
    }
    
    .stat-item {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .event-details {
        padding: 0.75rem;
    }
    
    .detail-item {
        padding: 0.5rem;
    }
    
    .cta-button {
        min-width: 100%;
        padding: 1.25rem;
    }
    
    .cta-button.primary {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .live-video {
        height: 220px;
    }
    
    .upcoming-streams {
        padding: 1.25rem;
    }
    
    .stream-item {
        padding: 0.75rem;
    }
    
    .floating-elements {
        display: none;
    }

    .event-content {
        padding: 1.25rem;
    }
}

/* iPhone specific optimizations */
@media (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) {
    body {
        -webkit-text-size-adjust: 100%;
    }
    
    .cta-button,
    .secondary-button {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .promo-code {
        -webkit-user-select: all;
        user-select: all;
    }
    
    .news-card,
    .event-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.cta-button:focus,
.secondary-button:focus,
.news-card:focus,
.stream-item:focus,
.promo-code:focus,
.event-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading animation for images */
.news-image img,
.main-image {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .cta-button:active,
    .secondary-button:active,
    .stream-item:active,
    .event-card:active {
        transform: scale(0.98);
    }
    
    .promo-code:active {
        transform: scale(0.95);
    }
}
.event-status.current {
    text-decoration: none; /* Elimina subrayado de enlace */
}
/* ===== ESTILOS MEJORADOS PARA RESOURCES ===== */

/* Estilo del dropdown de Resources en DESKTOP */
.resources-dropdown {
    position: relative;
    display: inline-block;
}

.resources-dropdown .resources-menu {
    position: absolute;
    top: 135%; /* Coloca el menú justo debajo del elemento padre */
    left: 0;
    margin-left: -265px !important;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin-top: 5px; /* Pequeño espacio entre el enlace y el menú */
    transform: translateY(10px);
}

.resources-dropdown:hover .resources-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resources-menu a:not(.back-button) {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    font-size: 1rem;
}

.resources-menu a:not(.back-button):last-child {
    border-bottom: none;
}

.resources-menu a:not(.back-button):hover {
    background: #f9fafb;
    color: #dc2626;
    padding-left: 20px;
}

/* Ocultar back button en desktop */
.resources-menu .back-button {
    display: none;
}

/* ===== ESTILOS PARA MÓVIL ===== */
@media (max-width: 968px) {
    /* Menú de Resources en móvil - pantalla completa */
    .resources-dropdown .resources-menu {
        position: fixed;
        top: 82px; /* antes estaba en 80px → lo ponemos al inicio */
        left: 0;
        width: 100%;
        height: 100vh; /* ocupa toda la pantalla */
        transform: translateX(100%);
        border-radius: 0;
        display: block;
        opacity: 1;
        visibility: visible;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        transition: transform 0.3s ease;
        z-index: 1002;
        margin-left: 0 !important;
        background: white;
    }
    
    .resources-dropdown.active .resources-menu {
        transform: translateX(0); /* entra rectangular desde la derecha */
    }
    
    /* Back button visible solo en móvil */
    .resources-menu .back-button {
        display: flex;
        align-items: center;
        padding: 1rem;
        background-color: #f9fafb;
        color: #374151;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .resources-menu .back-button i {
        margin-right: 10px;
        margin-left: 45px;
    }
    
    .resources-menu a:not(.back-button) {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f3f4f6;
        color: #374151;
        margin-left: 160px;
        text-decoration: none;
        font-size: 1rem;
    }
    
    .resources-menu a:not(.back-button):hover {
        background: #f9fafb;
        color: #dc2626;
        padding-left: 1.2rem;
    }
    
    /* Ocultar/mostrar elementos cuando Resources está activo */
    .resources-dropdown.active .nav-dropdown-toggle {
        display: none;
    }
    
    .nav-links.resources-active > *:not(.resources-dropdown):not(.language-selector) {
        display: none !important;
    }
    
    .resources-dropdown.active {
        width: 100%;
    }
    
    /* Asegurar que el menú de recursos ocupe todo el espacio */
    .nav-links.resources-active {
        display: block;
        height: auto;
    }
    /* Submenu en móvil → forzamos que NO use escala circular */
.resources-dropdown .resources-menu {
    transform: translateX(100%) !important; /* fuera de la pantalla al inicio */
    border-radius: 0 !important; /* quitar el círculo */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Cuando está activo → entra rectangular desde la derecha */
.resources-dropdown.active .resources-menu {
    transform: translateX(0) !important;
}

}
