/* Liga Cope 2025 - Estilos Principales */

:root {
  /* Rojos principales */
  --liga-red-primary: #dc2626;
  --liga-red-secondary: #b91c1c;
  --liga-red-dark: #991b1b;
  --liga-red-light: #ef4444;
  --liga-red-50: #fef2f2;
  
  /* Complementarios */
  --liga-white: #ffffff;
  --liga-black: #1f2937;
  --liga-gray-light: #f9fafb;
  --liga-gray-medium: #6b7280;
  --liga-gray-dark: #374151;
  
  /* Acentos */
  --liga-gold: #f59e0b;
  --liga-green: #10b981;
  --liga-blue: #3b82f6;
  
  /* Additional color utilities */
  --liga-red-100: rgba(254, 242, 242, 1);
  --liga-red-600: #dc2626;
  --liga-red-700: #b91c1c;
  --silver-500: #9ca3af;
  
  /* Gradientes */
  --gradient-red: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-hero: linear-gradient(135deg, rgba(220,38,38,0.9) 0%, rgba(153,27,27,0.8) 100%);
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        color: var(--liga-red-primary);
    }
    50% {
        opacity: 0.7;
        color: var(--liga-red-light);
    }
}

/* Clases de animación */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse-red {
    animation: pulse-red 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delays para animaciones */
.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.animation-delay-900 {
    animation-delay: 900ms;
}

/* Efectos hover personalizados */
.hero-btn-primary:hover {
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.hero-btn-secondary:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
    transform: scale(1.05);
}

.scorer-card:hover {
    transform: translateY(-8px);
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Navbar personalizado */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--liga-red-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botones personalizados */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Font utility classes */
.audiowide-regular {
    font-family: "Audiowide", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Color utility classes */



/* Background gradient utilities */

/* Enhanced button effects for hero */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Contador de estadísticas */
.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* Gradiente de texto */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Responsive adjustments - complementary to hero.css */
@media (max-width: 768px) {
    /* Teams display adjustments */
    .teams-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-indicator {
        transform: rotate(90deg);
    }
    
    /* Match details mobile layout */
    .match-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .match-actions button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    /* Stat and scorer cards mobile adjustments */
    .stat-card {
        padding: 1rem;
    }
    
    .scorer-card {
        padding: 1.5rem;
    }
}

/* Smooth scrolling para toda la página */
html {
    scroll-behavior: smooth;
}

/* Lazy loading de imágenes */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Efectos de glassmorphism */
.backdrop-blur-custom {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--liga-gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--liga-red-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--liga-red-dark);
}

/* Preloader opcional */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--liga-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--liga-red-50);
    border-top: 4px solid var(--liga-red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states para accesibilidad */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--liga-red-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Menú móvil - estilos específicos */
#mobile-menu {
    max-height: calc(100vh - 60px); /* Altura máxima menos la navbar */
    overflow-y: auto; /* Scroll interno si es necesario */
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

#mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

/* Evitar scroll del body cuando el menú está abierto */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mejorar la animación de fade-in */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* ===== SLIDER DE EVENTOS ===== */
.slider-container {
    position: relative;
    z-index: 1;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Controles del slider */
.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Indicadores */
.slider-indicators {
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.indicator:hover,
.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Tarjetas de eventos */
.event-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover img {
    transform: scale(1.1);
}

/* Badge de año */
.event-card .bg-liga-red-600 {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slide img {
        height: 240px;
    }
    
    .event-card img {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .slider-btn {
        display: none; /* Ocultar controles en móviles muy pequeños */
    }
    
    .slide img {
        height: 200px;
    }
}
