* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #495057; /* Mejorado para mejor contraste */
    --gray-dark: #212529;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--gray-dark);
    overflow-x: hidden;
    line-height: 1.6;
    /* cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 32 32"><text x="0" y="24" font-size="24">🎮</text></svg>') 14 14, auto; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom cursor for interactive elements */
a, button, .feature-card, .timeline-item, .social-link, .cta-button {
    cursor: pointer;
}

/* Subtle Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 1px 1px, var(--primary) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Floating Emojis */
.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 12s infinite ease-in-out;
    animation-delay: -1s;
    user-select: none;
    filter: blur(0.5px);
    transition: filter 0.3s ease;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% {
        opacity: 0.15;
    }
    50% {
        transform: translateY(50vh) translateX(100px) rotate(180deg) scale(1.2);
    }
    95% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) translateX(-50px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Occasional glow effect */
@keyframes glow {
    0%, 100% { filter: blur(0.5px) brightness(1); }
    50% { filter: blur(0px) brightness(1.3) drop-shadow(0 0 10px rgba(255, 107, 53, 0.5)); }
}

.floating-emoji:nth-child(3n) {
    animation: float 18s infinite ease-in-out, glow 6s infinite ease-in-out;
    animation-delay: -6s, 0s;
    animation-direction: reverse, normal;
}

/* Different animation paths for variety */
.floating-emoji:nth-child(even) {
    animation-duration: 15s;
    animation-delay: -3s;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.floating-emoji:nth-child(3n) {
    animation-duration: 18s;
    animation-delay: -6s;
    animation-direction: reverse;
}

.floating-emoji:nth-child(4n) {
    animation-duration: 21s;
    animation-delay: -9s;
    animation-timing-function: ease-in-out;
}

.floating-emoji:nth-child(5n) {
    animation-duration: 16s;
    animation-delay: -4s;
    animation-timing-function: linear;
}

/* Ultra-fast emojis for immediate visual impact */
.floating-emoji:nth-child(7n) {
    animation-duration: 8s;
    animation-delay: -0.5s;
    animation-timing-function: ease-out;
}

.floating-emoji:nth-child(11n) {
    animation-duration: 10s;
    animation-delay: -1.5s;
    animation-timing-function: ease-in;
}

/* Floating logo background */
.floating-logo-bg {
    position: absolute;
    width: 48px;
    height: auto;
    opacity: 0.10;
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
    filter: blur(0.5px);
    user-select: none;
    transition: filter 0.3s ease;
    z-index: 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    box-shadow: 0 2px 10px var(--shadow);
    border-bottom: 1px solid var(--gray-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}
.nav-links a:focus {
    color: var(--primary-dark);
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

h1 .highlight {
    color: var(--primary);
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
}

.feature-card h3 {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Events Section */
.events-section {
    padding: 5rem 2rem;
}

.next-event {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 3rem;
    border: 2px solid var(--primary);
    text-align: center;
}

.next-event h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.event-countdown {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

.event-detail-item {
    padding: 1rem;
    background: var(--off-white);
    border-radius: 8px;
}

.event-detail-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.past-events {
    margin-top: 4rem;
}

.past-events h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--gray-dark);
}

.events-timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 4px 20px var(--shadow-hover);
}

.timeline-date {
    min-width: 120px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rule-item {
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.rule-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Social Section */
.social-section {
    background: var(--gray-dark);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.social-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--black);
    color: var(--gray-light);
}

.event-link-btn {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.6em 1.4em;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
}
.event-link-btn:hover, .event-link-btn:focus {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px var(--shadow-hover);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .floating-emoji {
        font-size: 1.5rem;
        opacity: 0.1;
        animation-duration: 8s !important;
        animation-delay: -2s !important;
    }

    /* Simplified cursor on mobile */
    body, a, button, .feature-card, .timeline-item, .social-link, .cta-button {
        cursor: auto;
    }
} 

.winner-section {
    margin-top: 1.5rem;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
}
.winner-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.winner-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    background: var(--off-white);
    border: 1px solid var(--gray-light);
}
.winner-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.winner-title {
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
}
.winner-title:hover {
    text-decoration: underline;
    color: var(--primary);
}
.winner-author {
    color: var(--gray);
    font-size: 0.95rem;
} 

.gallery-section {
    padding: 4rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}
.gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}
.gallery-item {
    background: var(--off-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover {
    box-shadow: 0 6px 20px var(--shadow-hover);
    transform: translateY(-4px) scale(1.03);
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: filter 0.2s;
}
.gallery-item:hover .gallery-img {
    filter: brightness(1.08) saturate(1.1);
}
@media (max-width: 600px) {
    .gallery-section {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
    .gallery-grid {
        gap: 0.7rem;
    }
    .gallery-item {
        max-width: 120px;
    }
} 

.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 2rem auto;
    position: relative;
}
.carousel-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--off-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: filter 0.3s;
    display: block;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}
.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    color: var(--primary-dark);
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    opacity: 0.85;
}
.carousel-btn:hover {
    background: var(--primary-light);
    color: #fff;
}
.carousel-btn.prev {
    left: 8px;
}
.carousel-btn.next {
    right: 8px;
}
.carousel-image-wrapper {
    position: relative;
}


@media (max-width: 600px) {
    .carousel-container {
        max-width: 98vw;
    }
    .carousel-image-wrapper {
        aspect-ratio: 1/1;
    }

} 