/* ===== FIESTAS GAMESTINY STYLES ===== */

/* Hero Section Especial para Fiestas */
/* ===== HERO CON GIF ANIMADO ===== */
.hero-fiesta .gif-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-gif-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) saturate(1.2);
    animation: fadeIn 1s ease;
}

.gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,20,10,0.6) 100%);
    mix-blend-mode: multiply;
}

.gif-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gif-fallback video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

/* Animación de entrada para el GIF */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Efecto sutil de movimiento para el GIF */
.hero-gif-bg {
    animation: 
        fadeIn 1s ease,
        subtleMove 20s ease-in-out infinite alternate;
}

@keyframes subtleMove {
    0% {
        transform: scale(1) translateX(0) translateY(0);
    }
    100% {
        transform: scale(1.05) translateX(-1%) translateY(-1%);
    }
}

/* Optimización para móviles */
@media (max-width: 768px) {
    .hero-gif-bg {
        animation: none; /* Desactivar animación de movimiento en móviles para performance */
    }
    
    .gif-overlay {
        background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,20,10,0.7) 100%);
    }
}

.hero-fiesta .video-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 50, 25, 0.7) 100%);
}

.hero-fiesta .hero-text {
    text-shadow: 0 0 40px rgba(0, 255, 140, 0.7);
}

.hero-fiesta .hero-subtitle {
    color: var(--accent-color);
    font-weight: 600;
}

/* Catálogo de Juegos */
.catalogo-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.filtros-categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.filtro-btn {
    padding: 0.8rem 1.8rem;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.juegos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.juego-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.juego-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 140, 0.2);
    border-color: var(--primary-color);
}

.juego-imagen {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.juego-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.juego-card:hover .juego-imagen img {
    transform: scale(1.1);
}

.juego-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.juego-tag {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.juego-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.juego-nombre {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.juego-detalles {
    flex: 1;
    margin-bottom: 1rem;
}

.juego-detalles p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.juego-detalles i {
    color: var(--accent-color);
    width: 16px;
}

.juego-precio {
    margin: 1rem 0;
    text-align: center;
}

.precio-actual {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.precio-periodo {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-agregar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-bg);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-agregar:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 140, 0.4);
}

.btn-agregar.agregado {
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
}

/* Cotizador Section */
.cotizador-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #00140a 100%);
    padding: 5rem 0;
}

.cotizador-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .cotizador-container {
        grid-template-columns: 1fr 1fr;
    }
}

.juegos-seleccionados {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 140, 0.1);
}

.juegos-seleccionados h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-juegos {
    min-height: 300px;
}

.lista-vacia {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.lista-vacia i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.juego-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.juego-item-info {
    flex: 1;
}

.juego-item-nombre {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.juego-item-precio {
    color: var(--text-light);
    font-size: 0.9rem;
}

.juego-item-eliminar {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.juego-item-eliminar:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: scale(1.1);
}

/* Resumen de Cotización */
.resumen-cotizacion {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 140, 0.1);
}

.resumen-cotizacion h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resumen-detalle {
    margin-bottom: 2rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.resumen-item.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: none;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.promociones {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.promociones h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promocion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.promocion-item .descuento {
    color: #4CAF50;
    font-weight: 600;
}

.promocion-item.desactivada {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Botones del Cotizador */
.cotizador-acciones {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-limpiar {
    padding: 1rem 1.5rem;
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.btn-limpiar:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp {
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 2;
    min-width: 250px;
    justify-content: center;
    text-align: center;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Información del Cotizador */
.cotizador-info {
    background: rgba(0, 255, 140, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 140, 0.1);
}

.cotizador-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cotizador-info ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-light);
}

.cotizador-info li {
    margin-bottom: 0.5rem;
    position: relative;
}

.cotizador-info li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

.cotizador-info .nota {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
    font-style: italic;
}

/* Galería de Fiestas */
.galeria-fiestas-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.galeria-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1rem;
    color: white;
}

.galeria-info span {
    font-weight: 600;
    display: block;
}

.galeria-info small {
    opacity: 0.8;
}

/* Videos Section */
.videos-section {
    margin-top: 4rem;
}

.videos-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.video-item p {
    padding: 1rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

/* FAQ Fiestas */
.faq-fiestas-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #00140a 100%);
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 140, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3:before {
    content: '❓';
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.faq-contacto {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 255, 140, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 140, 0.1);
}

.faq-contacto p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-faq {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-bg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-faq:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 140, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .juegos-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .cotizador-acciones {
        flex-direction: column;
    }
    
    .btn-limpiar,
    .btn-whatsapp {
        width: 100%;
        min-width: auto;
    }
    
    .filtros-categorias {
        flex-direction: column;
        align-items: center;
    }
    
    .filtro-btn {
        width: 200px;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .juego-card {
        margin: 0 0.5rem;
    }
    
    .video-item iframe {
        height: 180px;
    }
    
    .faq-item {
        padding: 1rem;
    }
}



/* ===== CORRECCIÓN PARA IMÁGENES DEL CATÁLOGO ===== */

/* Contenedor de imagen igual que en página principal */
.juego-imagen {
    position: relative;
    width: 100%;
    height: 220px; /* Altura fija igual que las otras cards */
    overflow: hidden;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 255, 140, 0.1);
}

/* Imagen responsiva - Misma técnica que página principal */
.juego-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambia de cover a contain si quieres ver toda la imagen */
    transition: all 0.5s ease;
    filter: brightness(0.9);
    object-position: center;
}

/* Si prefieres mostrar toda la imagen sin cortar (como en principal) */
.juego-imagen img {
    object-fit: contain;
    padding: 10px;
    max-width: 100%;
    max-height: 100%;
}

/* Efecto hover consistente */
.juego-card:hover .juego-imagen img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Para imágenes muy grandes o con proporciones diferentes */
.juego-imagen {
    overflow: hidden;
}

/* Asegurar que todas las imágenes tengan el mismo aspecto */
.juego-card .juego-imagen img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilos específicos por categoría (opcional, para consistencia visual) */
.juego-card[data-categoria="consolas"] .juego-imagen {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.juego-card[data-categoria="arcade"] .juego-imagen {
    background: linear-gradient(45deg, #2a1a2a, #3a2a3a);
}

.juego-card[data-categoria="deportes"] .juego-imagen {
    background: linear-gradient(45deg, #1a2a1a, #2a3a2a);
}

.juego-card[data-categoria="especiales"] .juego-imagen {
    background: linear-gradient(45deg, #2a2a1a, #3a3a2a);
}

/* Icono de fallback si no hay imagen */
.juego-imagen:before {
    content: '\f11b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.3;
    display: none;
    z-index: 1;
}

.juego-imagen:has(img[src=""])::before,
.juego-imagen:not(:has(img))::before {
    display: block;
}

/* Tag de categoría - posicionamiento mejorado */
.juego-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.juego-tag {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive para imágenes */
@media (max-width: 1200px) {
    .juego-imagen {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .juego-imagen {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .juego-imagen {
        height: 160px;
    }
    
    .juego-imagen img {
        object-fit: contain;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .juego-imagen {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .juego-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .juego-imagen {
        height: 170px;
    }
}

/* ===== AREA DE SERVICIO ===== */
.local-service-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #00140a 100%);
    padding: 4rem 0;
    border-top: 2px solid var(--primary-color);
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .service-area-content {
        grid-template-columns: 1fr 1fr;
    }
}

.area-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 140, 0.1);
}

.area-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.area-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.area-list li {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.area-list i {
    color: var(--primary-color);
}

.area-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.local-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--text-color);
    margin: 0.5rem 0;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}
