/* =========================================
   1. VARIABLES GLOBALES
   ========================================= */
:root {
    --bg-main: #050505;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;     
    --dj-gold: #fbbf24;       
    --dj-gold-hover: #d97706; 
    --dj-card-bg: #111111;    
    --dj-border: #333333;     
    --tech-cyan: #06b6d4;
    --tech-purple: #8b5cf6;
    --av-red: #f43f5e;
    --tech-card-bg: #0f172a;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================
   2. RESET Y BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { 
    background-color: var(--bg-main); 
    color: var(--text-white); 
    font-family: var(--font-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
iframe, video { max-width: 100%; }

/* UTILIDADES GLOBALES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* =================================================================
   SECCIÓN A: ESTILOS DJ / CANDELA PARTY (RESTAURADOS)
   NO MODIFICAR ESTA SECCIÓN PARA NO ROMPER LA VISTA DE DJ.HTML
   ================================================================= */
.dj-nav { padding: 20px 0; background-color: #000; }
.dj-header { padding: 40px 0 20px 0; }
.dj-section { padding: 60px 0; background-color: #050505; }
/* Grid original del DJ restaurado */
.dj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }

.dj-card { 
    background-color: #111111; 
    border: 1px solid #333; 
    border-radius: 20px; 
    padding: 35px 25px; 
    text-align: center; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.3s ease, border-color 0.3s ease; 
}
.dj-card:hover { border-color: #555; transform: translateY(-5px); }
.dj-icon { font-size: 2rem; color: var(--text-white); margin-bottom: 15px; }
.dj-card h3 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin: 0; color: #fff; }
.dj-sub { color: #888; font-size: 0.9rem; margin-top: 5px; margin-bottom: 20px; }
.dj-features-title { color: var(--dj-gold); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; text-align: left; margin-bottom: 15px; }
.dj-list { text-align: left; margin-bottom: 30px; }
.dj-list li { color: #ccc; font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.dj-list li i { color: var(--dj-gold); margin-top: 3px; }

/* Botones Específicos DJ */
.dj-btn-outline { display: block; width: 100%; padding: 14px 0; border: 1px solid #444; border-radius: 50px; color: #fff; font-weight: 700; text-transform: uppercase; background: transparent; transition: all 0.3s; }
.dj-btn-outline:hover { background: #222; border-color: #fff; }
.dj-btn-filled { display: block; width: 100%; padding: 14px 0; background: var(--text-white); color: #000; border: none; border-radius: 50px; font-weight: 800; text-transform: uppercase; transition: all 0.3s; }
.dj-btn-filled:hover { background: var(--dj-gold); }

.pro-card { border: 1px solid var(--dj-gold); box-shadow: 0 0 15px rgba(251, 191, 36, 0.1); }
.dj-ribbon { position: absolute; top: 0; right: 0; background: var(--text-white); color: #000; font-size: 0.7rem; font-weight: 800; padding: 5px 20px; border-bottom-left-radius: 10px; border-top-right-radius: 20px; z-index: 10; }

/* Lightbox Imágenes DJ */
.btn-foto-container { margin-top: auto; margin-bottom: 15px; display: flex; justify-content: center; }
.btn-foto { background: transparent; border: 1px solid #444; color: #aaa; padding: 8px 20px; border-radius: 50px; font-size: 0.75rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-foto:hover { border-color: var(--text-white); color: var(--text-white); background: rgba(255,255,255,0.05); }
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.5); border: 2px solid #333; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

/* Testimonios DJ */
.testimonials-section { padding: 40px 0 80px 0; background-color: #050505; text-align: center; }
.testimonials-title { font-size: 1.8rem; color: #fff; margin-bottom: 40px; font-weight: 300; }
.testimonials-title span { color: var(--dj-gold); font-weight: 700; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.review-card { background: #111; border: 1px solid #222; border-radius: 15px; padding: 30px; text-align: left; transition: all 0.3s ease; position: relative; }
.review-card:hover { border-color: var(--dj-gold); transform: translateY(-3px); }
.stars { color: var(--dj-gold); font-size: 0.9rem; margin-bottom: 15px; }
.review-text { color: #ccc; font-size: 0.95rem; font-style: italic; margin-bottom: 20px; }
.client-info { display: flex; align-items: center; gap: 12px; }
.client-avatar { width: 40px; height: 40px; background: #222; color: var(--dj-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 1px solid #444; }
.client-name { font-size: 0.9rem; font-weight: 700; color: #fff; display: block; }
.client-event { font-size: 0.75rem; color: #666; display: block; }
.quote-icon { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: #222; font-family: serif; }

/* FAQ Acordeón DJ (Estilo Clásico) */
.faq-container { max-width: 800px; margin: 60px auto 0 auto; text-align: left; }
.faq-title { text-align: center; font-size: 1.5rem; color: #fff; margin-bottom: 30px; text-transform: uppercase; }
.accordion { background-color: #111; color: #eee; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 1rem; transition: 0.4s; border-bottom: 1px solid #222; border-radius: 5px; margin-bottom: 5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion:after { content: '\002B'; color: var(--dj-gold); font-weight: bold; font-size: 1.2rem; }
.active, .accordion:hover { background-color: #1a1a1a; color: var(--dj-gold); }
.active:after { content: "\2212"; }
.panel { padding: 0 18px; background-color: #0a0a0a; max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; border-left: 2px solid var(--dj-gold); }
.panel p { padding: 15px 0; color: #ccc; }


/* =================================================================
   SECCIÓN B: ESTILOS DIGITAL / TECH (AGENCIA)
   AQUÍ ESTÁN LOS CAMBIOS NUEVOS PARA DIGITAL.HTML
   ================================================================= */

/* Navegación Tech */
.tech-nav { padding: 20px 0; border-bottom: 1px solid #1e293b; background: rgba(15, 23, 42, 0.95); }

/* Hero Tech (Nuevo diseño responsive) */
.hero-header-split { 
    position: relative; 
    background-color: #020617; 
    padding: 60px 0 80px 0; 
    overflow: hidden; 
}
.hero-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px; 
    align-items: center; 
}

/* Tipografía Fluida */
.hero-content-left .hero-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    margin-bottom: 20px; 
    line-height: 1.1;
    font-weight: 800;
}
.hero-subtitle { 
    color: var(--tech-cyan); 
    font-weight: 700; 
    letter-spacing: 2px; 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
}
.highlight-blue { 
    color: #3b82f6; 
    background: linear-gradient(to right, #3b82f6, #06b6d4); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Cajas Promo Tech */
.promo-box-gold { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05)); 
    border: 1px solid var(--dj-gold); 
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 25px; 
    position: relative; 
}
.price-tag { 
    position: absolute; 
    top: -15px; right: 20px; 
    background: var(--dj-gold); 
    color: #000; 
    font-weight: 800; 
    padding: 5px 15px; 
    border-radius: 50px; 
    font-size: 1.2rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    transform: rotate(3deg); 
}
.benefit-box { margin-bottom: 30px; border-left: 3px solid var(--tech-cyan); padding-left: 15px; }

/* Video Frame Tech */
.hero-content-right { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.phone-frame { 
    width: 280px; 
    height: 500px; 
    background: #000; 
    border-radius: 30px; 
    border: 8px solid #333; 
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4); 
    overflow: hidden; 
}
.phone-frame iframe { width: 100%; height: 100%; object-fit: cover; }

/* Utilidades Tech Generales */
.tech-section { padding: 50px 0; }
.section-header-center { text-align: center; margin-bottom: 50px; }
.title-xl { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.subtitle-lg { font-size: 1.1rem; color: #94a3b8; font-weight: 400; }
.divider-center { width: 60px; height: 4px; background: var(--av-red); margin: 20px auto 0 auto; border-radius: 2px; }
.highlight-gold { 
    background-color: var(--dj-gold); 
    color: #000; 
    padding: 0px 12px; 
    border-radius: 6px; 
    display: inline-block; 
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.25); 
    line-height: 1.2; 
}

/* Grid de Audio (Demos) */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.media-card { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 15px; transition: transform 0.3s; }
.media-card:hover { border-color: var(--av-red); transform: translateX(5px); background: #253045; }
.audio-icon { width: 50px; height: 50px; background: rgba(244, 63, 94, 0.1); color: var(--av-red); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.media-info { flex-grow: 1; overflow: hidden; } 
.media-info h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; font-weight: 600; }
.custom-audio-player { width: 100%; height: 30px; filter: invert(0.9) hue-rotate(180deg); }

/* FAQ Tech (Estilo Moderno) */
.faq-section-tech { padding: 60px 0; background: #0f172a; }
.faq-container-tech { max-width: 800px; margin: 0 auto; }
.accordion-tech { background-color: #1e293b; color: #fff; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; outline: none; font-size: 1rem; transition: 0.4s; border-radius: 8px; margin-bottom: 10px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; border: 1px solid transparent; }
.accordion-tech:after { content: '\002B'; color: var(--tech-cyan); font-weight: bold; font-size: 1.2rem; }
.active-tech, .accordion-tech:hover { background-color: #334155; border-color: var(--tech-cyan); }
.active-tech:after { content: "\2212"; }
.panel-tech { padding: 0 18px; background-color: #0f172a; max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; border-left: 2px solid var(--tech-cyan); margin-bottom: 10px; }
.accordion-gold { background-color: #1a1a1a; color: var(--dj-gold); border: 1px solid var(--dj-gold); font-weight: 800; text-transform: uppercase; box-shadow: 0 0 10px rgba(251, 191, 36, 0.1); }
.accordion-gold:after { color: var(--dj-gold); }
.accordion-gold:hover, .accordion-gold.active-tech { background-color: var(--dj-gold); color: #000; }

/* Why Us Tech */
.why-us-section { padding: 80px 0; background-color: #020617; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.feature-card { background: linear-gradient(145deg, #1e293b, #0f172a); padding: 30px 20px; border-radius: 12px; text-align: center; border: 1px solid #334155; transition: all 0.3s ease; }
.feature-icon { font-size: 2.5rem; color: var(--tech-cyan); margin-bottom: 20px; }

/* Modal Video */
.lightbox-video { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.video-modal-content { text-align: center; width: 90%; max-width: 600px; }
.close-video { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; transition: 0.3s; z-index: 10002; padding: 10px; }

/* Botón Especial WhatsApp Gigante (Centrado con Flex) */
.btn-whatsapp-giant { 
    background-color: #25D366; 
    color: #ffffff; 
    font-size: 1.1rem; 
    font-weight: 800; 
    padding: 18px 40px; 
    border-radius: 50px; 
    border: none; 
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 12px; 
    text-transform: uppercase; 
    transition: all 0.3s ease; 
    width: fit-content;
}
.btn-whatsapp-giant:hover { 
    background-color: #128C7E; 
    transform: scale(1.05); 
    box-shadow: 0 0 35px rgba(37, 211, 102, 0.6); 
    color: #ffffff; 
}

/* Botón Demo Video */
.btn-demo-video {
    background: transparent;
    border: 1px solid var(--tech-cyan);
    color: var(--tech-cyan);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px;
}
.btn-demo-video:hover { background: var(--tech-cyan); color: #000; }

/* Contenedor Final CTA (Corrección de centrado) */
.cta-final-container {
    display: flex;
    justify-content: center; /* Centrado Horizontal */
    align-items: center;
    width: 100%;
}

/* Portal Home */
.main-nav { padding: 20px 0; text-align: center; border-bottom: 1px solid #222; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; color: var(--text-white); }
.portal-wrapper { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 40px 0; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.portal-card { background: var(--dj-card-bg); border: 1px solid var(--dj-border); border-radius: 20px; padding: 50px 30px; text-align: center; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.portal-card h2 { font-size: 1.8rem; margin-bottom: 5px; }
.portal-card p { color: var(--text-gray); font-size: 1rem; max-width: 300px; }
.icon-box { font-size: 3rem; margin-bottom: 10px; }
.btn-portal { margin-top: auto; font-weight: 700; text-transform: uppercase; }
.digital-side:hover { border-color: var(--tech-cyan); transform: translateY(-5px); }
.digital-side .icon-box, .digital-side .btn-portal { color: var(--tech-cyan); }
.dj-side:hover { border-color: var(--dj-gold); transform: translateY(-5px); }
.dj-side .icon-box, .dj-side .btn-portal { color: var(--dj-gold); }


/* =================================================================
   SECCIÓN C: MEDIA QUERIES (MÓVIL)
   Aplica cambios solo en pantallas pequeñas
   ================================================================= */
@media (max-width: 900px) {
    /* Ajustes específicos para el Hero Digital */
    .hero-header-split { padding: 40px 0 60px 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    
    .hero-content-left { order: 1; padding: 0 10px; }
    .hero-content-right { order: 2; margin-top: -20px; }

    /* Texto fluido para móvil */
    .hero-content-left .hero-title { 
        font-size: clamp(2.2rem, 8vw, 3rem); 
        width: 100%; 
        word-wrap: break-word; 
    }

    /* Video en móvil (se ve como video normal, no teléfono) */
    .phone-frame {
        width: 100%; 
        max-width: 100%;
        height: auto; 
        aspect-ratio: 16/9; 
        border: none;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    }
    
    .promo-box-gold, .benefit-box { 
        text-align: center; 
        border-left: none; 
        border-top: 3px solid var(--tech-cyan); 
    }
    .price-tag { right: 50%; transform: translateX(50%) rotate(0deg); top: -18px; }
}

@media (max-width: 768px) {
    .portal-grid { grid-template-columns: 1fr; }
    .dj-grid { grid-template-columns: 1fr; }
    .btn-whatsapp-giant { width: 90%; padding: 15px; font-size: 1rem; }
    .close-video { top: 15px; right: 15px; background: rgba(0,0,0,0.6); border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
}
/* Estado inicial: un poco más claro para que no se vea "apagado" */
.card-visual-header::after {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado inicial más suave para no oscurecer tanto la foto */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
    transition: background 0.4s ease; /* Transición suave */
    z-index: 1;
}

/* EFECTO DE BRILLO AL PASAR EL MOUSE */
.dj-card:hover .card-visual-header::after {
    /* Al pasar el mouse, el degradado se vuelve casi invisible */
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}

.dj-card:hover .card-visual-header {
    /* Aumentamos el brillo y escalamos ligeramente la imagen para dar dinamismo */
    filter: brightness(1.2);
    transition: filter 0.4s ease;
}

/* Asegurar que el título siempre esté por encima del brillo */
.card-visual-header h3 {
    z-index: 2;
    transition: transform 0.4s ease;
}

.dj-card:hover .card-visual-header h3 {
    transform: translateY(-5px); /* El título sube ligeramente al iluminarse */
}
/* Ajuste de alineación para evitar el espacio vacío */
.dj-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* Esto centra el paquete solo en la última fila */
    gap: 25px; 
}

/* Mantenemos el ancho de las tarjetas para que sigan pareciendo un grid de 3 */
.dj-card { 
    width: calc(33.333% - 25px); 
    min-width: 320px; /* Evita que se encojan demasiado */
}

/* Ajuste para tablets y móviles para mantener la responsividad */
@media (max-width: 1100px) {
    .dj-card { 
        width: calc(50% - 25px); 
    }
}

@media (max-width: 768px) {
    .dj-card { 
        width: 100%; 
    }
}
/* Resaltado Global de Botones */
.btn-send-wa, .dj-btn-outline, .dj-btn-filled {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.btn-send-wa:hover, .dj-btn-outline:hover, .dj-btn-filled:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--dj-gold);
    border-color: var(--dj-gold);
}
/* Estilo Premium para el Más Pedido */
.dj-card:has(.dj-ribbon) {
    border: 2px solid var(--dj-gold);
    position: relative;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}

.dj-ribbon {
    background: linear-gradient(45deg, #f43f5e, #fb7185) !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}