/* Variables de Colores Principales - Juegos */
:root {
    --color-primary: #8B4513;
    --color-secondary: #A0522D;
    --color-accent: #CD853F;
    --color-dark: #5C3317;
    --color-light: #FFF8F0;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --overlay-dark: rgba(92, 51, 23, 0.7);
    --gradient-primary: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
}

/* Hero Section Juegos */
.juegos-hero {
    height: 60vh;
    min-height: 400px;
    background: var(--color-dark);
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 76px;
    overflow: hidden;
}

.juegos-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.juegos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(92, 51, 23, 0.6) 0%, rgba(139, 69, 19, 0.8) 100%);
}

.juegos-hero .container {
    position: relative;
    z-index: 2;
}

.juegos-hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.juegos-hero p {
    animation: fadeInUp 1s ease 0.3s both;
}

.juegos-hero .btn {
    animation: fadeInUp 1s ease 0.5s both;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Imagen Container de Juegos */
.juego-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.juego-image-container:hover {
    transform: scale(1.02);
}

.juego-image-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.juego-image-container:hover img {
    transform: scale(1.1);
}

.juego-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.juego-badge-secondary {
    background: var(--color-secondary);
}

.juego-badge-accent {
    background: var(--color-accent);
    color: var(--color-dark);
}

.juego-badge-dark {
    background: var(--color-dark);
}

/* Info Card de Juegos */
.juego-info-card {
    padding: 30px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--color-primary);
    transition: all 0.3s ease;
}

.juego-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.juego-info-card h3 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.juego-info-card h3 i {
    margin-right: 10px;
}

/* Lista de Características */
.juego-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.juego-features li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.juego-features li i {
    margin-right: 10px;
    font-size: 1rem;
}

/* Badge de Horario */
.horario-badge {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--color-accent);
}

.horario-badge i {
    margin-right: 8px;
    color: var(--color-primary);
}

/* Galería de Juegos */
.juegos-gallery {
    background: var(--gradient-primary);
    position: relative;
}

.juegos-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 30px 30px;
}

.juegos-gallery .container {
    position: relative;
    z-index: 2;
}

.juegos-gallery .gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 250px;
    cursor: pointer;
}

.juegos-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.juegos-gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.juegos-gallery .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(92, 51, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.juegos-gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.juegos-gallery .gallery-overlay i {
    font-size: 2.5rem;
    color: white;
}

/* Tarjetas de Reglas */
.regla-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.regla-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-bottom-color: var(--color-primary);
}

.regla-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.regla-card:hover .regla-icon {
    transform: rotate(360deg);
}

.regla-icon i {
    font-size: 2rem;
    color: white;
}

.regla-card h5 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.regla-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.juegos-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.juegos-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.juegos-cta h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.juegos-cta .btn {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.juegos-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .juegos-hero {
        height: 50vh;
        margin-top: 56px;
    }
    
    .juegos-hero h1 {
        font-size: 2rem;
    }
    
    .juego-image-container img {
        height: 280px;
    }
    
    .juego-info-card {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .juegos-hero {
        height: 45vh;
    }
    
    .juegos-hero h1 {
        font-size: 1.75rem;
    }
    
    .juego-image-container img {
        height: 250px;
    }
    
    .juegos-gallery .gallery-item {
        height: 200px;
    }
    
    .regla-card {
        padding: 20px;
    }
    
    .regla-icon {
        width: 60px;
        height: 60px;
    }
    
    .regla-icon i {
        font-size: 1.5rem;
    }
}
