/* --- PALETA Y VARIABLES --- */
:root {
    --bg: #F9129C;
    --bg-card: rgba(0, 0, 0, 0.25);
    --bg-card-hover: rgba(0, 0, 0, 0.4);
    --accent-glow: rgba(255, 255, 255, 0.3);
    --text: #ffffff;
    --text-dim: #f3e5f5;
    --font-head: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* RESET COMPLETO (PREVIENE SCROLL HORIZONTAL) */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.4;
}

/* Canvas de Partículas (Estelas) - Forzado para móviles */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    z-index: 0; /* Asegura que se dibuje justo detrás del contenido pero visible */
    opacity: 0.6; /* Un poco más visible para pantallas de móvil */
    pointer-events: none;
}

/* Aseguramos que el fondo del body sea transparente en las capas necesarias */
body {
    background-color: var(--bg);
    position: relative;
}

section {
    position: relative;
    z-index: 1; /* El contenido se sitúa encima del canvas sin ocultarlo */
}

/* HEADER FIJO (ESTILO PC EN TODOS LOS DISPOSITIVOS) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.brand-logo-img {
    height: clamp(24px, 5vw, 42px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(0.3rem, 1.5vw, 1rem);
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.6rem, 2vw, 0.85rem);
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

.menu-toggle {
    display: none !important;
}

/* SECCIONES Y CONTENEDORES */
section {
    padding: 5rem 1rem 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.section-header {
    margin-bottom: 1.8rem;
    width: 100%;
}

.section-subtitle {
    color: #ffffff;
    font-size: clamp(0.65rem, 2vw, 0.85rem);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    display: block;
}

/* TITULOS ADAPTABLES Y SIN DESBORDAMIENTO */
h1, .section-title {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 6.5vw, 3.8rem) !important;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100%;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.5rem;
    padding-top: 7rem;
}

.hero-text {
    width: 100%;
    max-width: 100%;
}

.badge-live {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: clamp(0.65rem, 2vw, 0.8rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-live .pulse-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
}

.hero p.tagline {
    font-size: clamp(0.8rem, 2.5vw, 1.15rem);
    color: var(--text-dim);
    margin: 1rem 0 1.5rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.hero-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 380px;
    max-height: 400px;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    margin: 0 auto;
}

.cta-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    width: 100%;
}

.btn-glow, .btn-outline {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 2.2vw, 0.85rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* BIOGRAFÍA Y SHOWCASE CON CONTROL DE IMÁGENES */
.bio-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.bio-img {
    width: 100%;
    max-width: 380px;
    max-height: 350px;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.live-showcase {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: clamp(1.2rem, 3vw, 2.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    backdrop-filter: blur(8px);
    width: 100%;
}

.showcase-img {
    width: 100%;
    max-width: 400px;
    max-height: 280px;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* TARJETAS Y SECCIÓN CONTACTO */
.contact-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.8rem 1rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-contact {
    width: 100%;
    padding: 0.9rem 0.8rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 2.3vw, 0.85rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    word-break: break-all;
}

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-instagram { background: #000; color: #fff; }
.btn-email { background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.card-custom {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(8px);
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* GALERÍA DE FOTOS */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    width: 100%;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto al marco sin estirarla */
    object-position: center;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    width: 100%;
}

.social-bar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.social-bar a {
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* REGLAS ESPECÍFICAS PARA MÓVIL Y PANTALLAS PEQUEÑAS (<= 850px) */
@media (max-width: 850px) {
    header {
        flex-direction: column;
        gap: 0.4rem;
    }

    nav {
        justify-content: center;
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7.5rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-img {
        max-width: 260px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        margin: 0 auto !important;
    }

    /* APILADO VERTICAL Y CENTRADO DE CONTENEDORES */
    .bio-wrapper, .live-showcase {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    /* IMAGEN SOBRE DJ GONZA (BIO) */
    .bio-img {
        width: 100% !important;
        max-width: 260px !important;
        max-height: 220px !important;
        object-fit: cover !important;
        margin: 0 auto 1.5rem auto !important;
        display: block !important;
        border-radius: 16px !important;
    }

    /* IMAGEN ELEMENTO DIFERENCIADOR (SHOWCASE) */
    .showcase-img {
        width: 100% !important;
        max-width: 280px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        margin: 1.2rem auto 0 auto !important;
        display: block !important;
        border-radius: 14px !important;
    }

    .gallery-item {
        height: 180px;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .btn-glow, .btn-outline {
        width: 100%;
    }
}