@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&family=Permanent+Marker&display=swap');

:root {
    --bg-color: #080808;
    --neon-pink: #ff0099;
    --neon-green: #ccff00;
    --neon-yellow: #ffea00;
    --text-color: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Ocultar cursor */
html, body, a, button, input, textarea, select, .shop-category, .artist-card, summary {
    cursor: none !important;
}

/* Animaciones */
@keyframes pageEntrance {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    animation: pageEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), gridScroll 20s linear infinite; 
}

/* Fondos sutiles en secciones */
section, .about-content, .values-section, .lineup-section, .contact-form-wrapper, .cart-sidebar, .ticket-card, .product-card, details {
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%) !important;
}

/* --- NAVEGACIÓN --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 50px; background: rgba(0,0,0,0.95);
    border-bottom: 2px solid var(--neon-pink);
    position: sticky; top: 0; z-index: 1000;
}
.logo img { height: 50px; transition: 0.3s; }
.logo img:hover { transform: scale(1.1) rotate(-5deg); }

.menu a {
    color: #fff; text-decoration: none; margin-left: 20px;
    font-weight: bold; text-transform: uppercase; transition: 0.3s;
}
.menu a:hover { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }

/* --- TIPOGRAFÍA --- */
h1, h2, h3 { font-family: 'Permanent Marker', cursive; text-transform: uppercase; }

@keyframes electricBreathe {
    0% { color: #fff; text-shadow: 0 0 15px rgba(255, 0, 153, 0.4); }
    50% { color: #fff; text-shadow: -2px 0 5px rgba(255, 0, 153, 0.8), 2px 0 5px rgba(204, 255, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { color: #fff; text-shadow: 0 0 15px rgba(255, 0, 153, 0.4); }
}
.title-mega-glitch { animation: electricBreathe 3s ease-in-out infinite alternate; }

/* --- BOTONES --- */
.btn-neon {
    display: inline-block; padding: 15px 40px; background: transparent;
    border: 2px solid var(--neon-yellow); color: var(--neon-yellow);
    font-weight: 900; text-decoration: none; text-transform: uppercase;
    font-size: 1.2rem; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-neon:hover {
    background: var(--neon-yellow); color: #000;
    box-shadow: 0 0 30px var(--neon-yellow); transform: scale(1.1) rotate(-2deg); letter-spacing: 2px;
}

.btn-small {
    background: var(--text-color); color: #000; border: none;
    padding: 10px 20px; font-weight: bold; text-transform: uppercase;
    margin-top: 10px; transition: 0.3s;
}
.btn-small:hover { background: var(--neon-yellow); transform: translateY(-3px); }

/* --- REVEAL --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.section-container { padding: 50px 10%; text-align: center; }
.section-title { font-size: 3rem; margin-bottom: 40px; }
footer { text-align: center; padding: 30px; background: #000; border-top: 1px solid var(--neon-pink); margin-top: 50px; color: #666; }

/* --- CARDS --- */
.tickets-container, .merch-grid, .gallery-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.ticket-card, .product-card { padding: 20px; transition: 0.3s; border: 1px solid #333; }
.ticket-card { border: 2px dashed var(--neon-green); width: 300px; }
.ticket-card.featured { border: 2px dashed var(--neon-pink); transform: scale(1.05); }
.ticket-card:hover { transform: translateY(-10px); box-shadow: 0 0 20px rgba(255,255,255,0.1); }
.product-card img, .ticket-img img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; transition: 0.5s; }

/* --- LINE UP --- */
.lineup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; }
.artist-card { position: relative; height: 350px; overflow: hidden; border: 1px solid #333; }
.artist-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.artist-info {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; transition: all 0.4s ease;
}
.artist-info h3 { font-size: 1.8rem; margin-bottom: 5px; text-shadow: 2px 2px 0 #000; transition: 0.4s; }
.genre { font-size: 0.9rem; color: #ccc; font-weight: bold; text-transform: uppercase; }
.description { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; border-top: 1px solid var(--neon-pink); margin-top: 0; }
.description p { margin-top: 10px; font-size: 0.9rem; line-height: 1.3; color: #fff; }
.artist-card:hover img { transform: scale(1.1); filter: grayscale(100%) blur(2px); }
.artist-card:hover .artist-info { background: rgba(0,0,0,0.9); justify-content: center; align-items: center; text-align: center; }
.artist-card:hover .artist-info h3 { margin-bottom: 15px; font-size: 2rem; }
.artist-card:hover .description { max-height: 200px; opacity: 1; }
@media (max-width: 1024px) { .lineup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lineup-grid { grid-template-columns: 1fr; } }

/* --- CURSOR --- */
#magic-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    border: 2px solid var(--neon-green); background: rgba(204, 255, 0, 0.3);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: exclusion;
}
#magic-cursor.hovered {
    width: 50px; height: 50px; background: rgba(255, 0, 153, 0.4); border-color: var(--neon-pink); mix-blend-mode: normal;
}

/* --- CARRITO & SIDEBAR --- */
.cart-trigger {
    position: fixed; bottom: 30px; right: 30px; width: 70px; height: 70px;
    background: #000; border: 2px solid var(--neon-pink); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; z-index: 2000;
    box-shadow: 0 0 20px rgba(255, 0, 153, 0.4); transition: 0.3s;
}
.cart-trigger:hover { transform: scale(1.1) rotate(10deg); background: var(--neon-pink); }
.cart-icon { font-size: 1.5rem; }
.cart-count {
    position: absolute; top: 0; right: 0; background: var(--neon-green); color: #000;
    font-weight: bold; font-size: 0.8rem; width: 25px; height: 25px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}
.cart-sidebar {
    position: fixed; top: 0; right: -450px; width: 400px; height: 100vh;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px);
    border-left: 2px solid var(--neon-green); z-index: 3000; padding: 30px;
    display: flex; flex-direction: column; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 20px; }
.close-cart { font-size: 2rem; color: #fff; background: none; border: none; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding: 10px; border: 1px solid #333; }
.cart-item img { width: 50px; height: 50px; object-fit: cover; }
.remove-item { margin-left: auto; color: #555; background: none; border: none; font-size: 1.2rem; }
.remove-item:hover { color: red; }
.cart-footer { border-top: 1px solid #333; padding-top: 20px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; }

/* --- CHECKOUT --- */
.checkout-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 10; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.checkout-overlay.active { opacity: 1; pointer-events: all; }
.loader {
    width: 50px; height: 50px; border: 5px solid #333; border-top: 5px solid var(--neon-green);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.processing-text { color: #fff; font-family: 'Montserrat', sans-serif; letter-spacing: 2px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }
.success-message { display: none; flex-direction: column; align-items: center; }
.check-icon {
    font-size: 4rem; color: var(--neon-pink); margin-bottom: 20px;
    text-shadow: 0 0 20px var(--neon-pink); animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* --- NOTIFICACIÓN --- */
.cart-notification {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #000; border: 2px solid var(--neon-green); color: var(--neon-green);
    padding: 15px 30px; font-weight: 900; z-index: 5000;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
    animation: slideInOut 3s forwards;
}
@keyframes slideInOut {
    0% { top: -100px; opacity: 0; } 10% { top: 20px; opacity: 1; }
    80% { top: 20px; opacity: 1; } 100% { top: -100px; opacity: 0; }
}

/* --- FAQ (PREGUNTAS FRECUENTES) CON ANIMACIÓN CYBER --- */
.faq-container { max-width: 800px; margin: 0 auto 80px auto; padding: 0 20px; }

/* Animación de entrada para la respuesta */
@keyframes slideDownFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animación de "Chispazo" al abrir */
@keyframes cyberPulse {
    0% { box-shadow: 0 0 0 rgba(255, 0, 153, 0); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 153, 0.5), inset 0 0 10px var(--neon-pink); border-color: #fff; }
    100% { box-shadow: 0 0 15px rgba(255, 0, 153, 0.3); border-color: var(--neon-pink); }
}

details {
    background: #111;
    border: 1px solid #333;
    margin-bottom: 15px;
    transition: all 0.4s ease; /* Transición suave para todo */
    overflow: hidden;
    position: relative;
}

details:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
    transform: translateX(5px); /* Pequeño movimiento al pasar el ratón */
}

/* ESTADO ABIERTO */
details[open] {
    background: #080808;
    /* Aplica el chispazo al abrirse */
    animation: cyberPulse 0.6s ease-out forwards;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* Oculta el triángulo por defecto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: 0.3s;
    user-select: none; /* Evita que se seleccione el texto al hacer doble clic */
}
summary::-webkit-details-marker { display: none; }

/* Efecto al hacer clic en el título */
summary:active {
    transform: scale(0.98); /* Efecto de pulsación */
    background: rgba(255, 255, 255, 0.05);
}

/* El icono '+' */
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--neon-green);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Giro con rebote elástico */
    font-weight: 900;
}

/* Cuando está abierto */
details[open] summary {
    color: var(--neon-pink);
    border-bottom: 1px solid #222; /* Añade una línea separadora */
}
details[open] summary::after {
    transform: rotate(135deg); /* Gira a 'X' */
    color: var(--neon-pink);
}

/* LA RESPUESTA */
.faq-answer {
    padding: 20px;
    color: #ccc;
    line-height: 1.6;
    /* Aquí se aplica la animación de entrada suave */
    animation: slideDownFadeIn 0.5s ease forwards;
}

@media (max-width: 500px) { .cart-sidebar { width: 100%; right: -100%; } }
/* =========================================
   --- OPTIMIZACIÓN MÓVIL (RESPONSIVE) ---
   (Pega esto al final de tu CSS)
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. FUENTES Y TAMAÑOS GENERALES */
    html { font-size: 14px; } /* Reduce un poco todo */
    h1 { font-size: 2.5rem !important; line-height: 1.2 !important; }
    h2 { font-size: 2rem !important; }
    .section-container, .contact-container, .about-content { padding: 40px 5% !important; }

    /* 2. NAVEGACIÓN (Menú apilado) */
    nav {
        flex-direction: column;
        padding: 15px !important;
        gap: 15px;
    }
    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .menu a { margin: 0 !important; font-size: 0.9rem; }

    /* 3. INDEX: CABECERA Y BOTONES */
    header { 
        height: auto !important; 
        min-height: 60vh; 
        padding: 50px 20px !important; 
    }
    
    /* Convertir los bloques de lado a lado en bloques verticales */
    .sub-secciones {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .sub-secciones > div {
        width: 100% !important;
        min-height: 300px; /* Altura para ver la foto */
        border-right: none !important;
        border-bottom: 2px solid var(--neon-pink);
    }

    /* 4. TIENDA & CONTACTO & NOSOTROS (Fuerza columna vertical) */
    .shop-category, /* Selección tienda */
    .contact-container, /* Contacto */
    .about-content, /* Nosotros */
    .gallery-grid { /* Galería años */
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
    }

    /* 5. GRIDS (Line Up y Merch a 1 columna) */
    .lineup-grid, 
    .merch-grid, 
    .tickets-container {
        grid-template-columns: 1fr !important; /* 1 sola columna */
        display: grid !important;
    }
    
    .ticket-card, .product-card, .artist-card {
        width: 100% !important; /* Ocupar todo el ancho */
        margin-bottom: 20px;
    }

    /* 6. MAPAS Y FORMULARIOS */
    .contact-info, .contact-form-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }
    
    /* 7. ARREGLOS TÉCNICOS MÓVIL */
    #magic-cursor { display: none !important; } /* Ocultar bola verde en táctil */
    * { cursor: auto !important; } /* Restaurar cursor normal */
    
    /* Evita que el fondo fijo haga extraños en iPhone */
    body { background-attachment: scroll !important; }
    
    /* Carrito ocupa toda la pantalla al abrirse */
    .cart-sidebar { width: 100% !important; right: -100% !important; }
    .cart-sidebar.open { right: 0 !important; }
}
/* --- ESTADOS DE LAS ENTRADAS (BLOQUEO Y SOLD OUT) --- */

/* 1. ESTADO BLOQUEADO (Aún no disponible) */
.ticket-card.ticket-blocked {
    opacity: 0.5; /* Se ve apagada */
    filter: grayscale(100%); /* En blanco y negro */
    pointer-events: none; /* IMPORTANTE: No se puede hacer clic en nada */
    position: relative;
    border-style: solid; /* Borde continuo aburrido */
}

/* Etiqueta "Próximamente" encima */
.ticket-card.ticket-blocked::after {
    content: "PRÓXIMAMENTE";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: var(--neon-yellow);
    color: #000;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 1.5rem;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 10;
}

/* 2. ESTADO SOLD OUT (Agotado) */
.ticket-card.ticket-soldout {
    opacity: 0.6;
    filter: grayscale(100%);
    pointer-events: none;
    position: relative;
    border-color: red;
}

/* Etiqueta "Agotado" encima */
.ticket-card.ticket-soldout::after {
    content: "SOLD OUT";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(10deg);
    background: red;
    color: #fff;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 2rem;
    border: 2px solid #fff;
    z-index: 10;
}
