/* ===== CUSTOM STYLES - Corsos Color Orán 2026 =====
   Solo animaciones y estilos que no pueden replicarse con Tailwind
   ================================================== */

/* ===== GLOBAL STYLES ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Bloquear scroll cuando el menú móvil está abierto */
body.menu-open {
    overflow: hidden;
}

/* ===== VARIABLES CSS ===== */
:root {
    --color-primary: #ff006e;
    --color-secondary: #8338ec;
    --color-accent-1: #3a86ff;
    --color-accent-2: #06d6a0;
    --color-accent-3: #ffbe0b;
    --color-accent-4: #fb5607;
}

/* ===== ANIMACIONES ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(255, 0, 110, 0.8), 0 0 50px rgba(255, 190, 11, 0.6);
    }
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes neon-pulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-around {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(15px, -20px) rotate(90deg);
    }

    50% {
        transform: translate(-8px, 15px) rotate(180deg);
    }

    75% {
        transform: translate(20px, 8px) rotate(270deg);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

@keyframes number-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse-emoji {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===== ESTILOS ESPECÍFICOS ===== */

/* Confetti */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -20px;
    animation: confetti-fall linear infinite;
}

/* Logo animation */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce 2s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-rainbow {
    animation: rainbow-shift 3s linear infinite;
    background-size: 200% 100%;
}

.animate-neon {
    animation: neon-pulse 1.5s ease-in-out infinite;
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

.animate-float-around {
    animation: float-around 20s linear infinite;
}

.animate-icon-bounce {
    animation: icon-bounce 3s ease-in-out infinite;
}

.animate-icon-float {
    animation: icon-float 3s ease-in-out infinite;
}

.animate-heart {
    animation: heartPulse 1.5s ease-in-out infinite;
}

.animate-emoji {
    animation: pulse-emoji 1.5s ease-in-out infinite;
}

/* Rotating border effect */
.rotating-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--color-primary), transparent, var(--color-secondary), transparent);
    animation: rotate-border 4s linear infinite;
    opacity: 0.3;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-3), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-rainbow {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-3), var(--color-accent-2), var(--color-accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: rainbow-shift 3s linear infinite;
}

.gradient-text-gold {
    background: linear-gradient(135deg, var(--color-accent-3), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu - Show when active */
.nav-links.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
}

.nav-overlay.active {
    display: block;
}

/* Mobile menu animation */
.nav-links.active li {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.nav-links.active li:nth-child(1) {
    animation-delay: 0.05s;
}

.nav-links.active li:nth-child(2) {
    animation-delay: 0.1s;
}

.nav-links.active li:nth-child(3) {
    animation-delay: 0.15s;
}

.nav-links.active li:nth-child(4) {
    animation-delay: 0.2s;
}

.nav-links.active li:nth-child(5) {
    animation-delay: 0.25s;
}

.nav-links.active li:nth-child(6) {
    animation-delay: 0.3s;
}

.nav-links.active li:nth-child(7) {
    animation-delay: 0.35s;
}

/* Ticket punch holes */
.ticket-punch::before,
.ticket-punch::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #0a0a1a;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.ticket-punch::before {
    left: -15px;
    box-shadow: inset -3px 0 8px rgba(255, 190, 11, 0.2);
}

.ticket-punch::after {
    right: -15px;
    box-shadow: inset 3px 0 8px rgba(255, 190, 11, 0.2);
}

/* Card accent variable usage */
.card-glow {
    background: var(--card-accent);
    filter: blur(20px);
    transition: all 0.4s ease;
}

/* Stat chip counted state */
.stat-chip.counted .stat-chip-number {
    animation: number-pulse 0.5s ease;
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
}

body.menu-open .logo-text {
    opacity: 0;
    visibility: hidden;
}

body.menu-open .nav {
    background: transparent;
    border-bottom: none;
}

/* Fix: Allow menu to overflow outside header when open */
body.menu-open header {
    overflow: visible !important;
}