:root {
    --morado: #5e35b1;
    --amarillo: #fbc02d;
    --morado-oscuro: #311b92;
    --glass: rgba(255, 255, 255, 0.03);
    --dark-bg: rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Roboto', sans-serif; 
    background: #000; /* Requisito: Restaurado el fondo negro base */
    color: #fff; 
    overflow-x: hidden; 
    padding-top: 60px; /* Espacio para el header fixed */
    line-height: 1.6;
}

/* --- FONDO PARTICULAS --- */
#particles-js { 
    position: fixed; 
    inset: 0; 
    z-index: -1; 
    /* Requisito: Restaurado fondo.jpeg como base */
    background: url('../images/fondo.jpeg') center/cover no-repeat; 
}

/* --- OVERLAY CRISTALINO (Restaurado Exacto) --- */
#aviso-overlay { 
    position: fixed; 
    inset: 0; 
    z-index: 10000; 
    background: rgba(0,0,0,0.6); /* Un poco más oscuro para mejor contraste */
    backdrop-filter: blur(20px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: opacity 1.5s ease; 
}
.aviso-box { text-align: center; max-width: 90%; margin: 0 auto; }
.linea1 { font-size: 6vw; font-weight: 900; line-height: 1.1; margin-bottom: 20px; font-family: 'Impact', 'Arial Narrow', sans-serif; text-transform: uppercase; color: #fff; }
.linea2 { font-size: 3vw; color: var(--amarillo); font-weight: bold; font-family: 'Impact', 'Arial Narrow', sans-serif; text-transform: uppercase; }

/* --- CONTENEDORES Y CENTRADO --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* --- HEADER (Restaurado y Adaptativo) --- */
#main-header { position: fixed; top: 0; width: 100%; height: 60px; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 1000; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--amarillo); }

/* --- SECCIONES GENERALES --- */
.section { padding: 80px 0; }
.section-first { padding-top: 60px; } /* Ajuste para la primera sección */
.bg-darker { background-color: rgba(0,0,0,0.5); }
.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 50px; text-transform: uppercase; color: #fff; text-align: center; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--amarillo); margin: 15px auto 0; }

/* --- BIO CARD (Requisito: Centrada y Adaptativa) --- */
.glass { background: var(--glass); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.bio-card { 
    display: flex; 
    flex-direction: column; /* Móvil primero */
    align-items: center;
    text-align: center;
    margin: 0 auto;
}
.bio-img { width: 100%; }
.bio-img img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    filter: grayscale(10%);
}
.bio-info { padding: 40px; }
.bio-info h3 { font-size: 2.5rem; font-weight: 900; color: var(--amarillo); margin-bottom: 20px; text-transform: uppercase; }
.check-list { list-style: none; display: inline-block; text-align: left; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #e0e0e0; }
.check-list i { color: var(--amarillo); font-size: 1.2rem; }

/* --- HERO (Estilo secundario) --- */
.hero { padding: 100px 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7)); }
.hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 10px; text-transform: uppercase; }
.hero h1 span { color: var(--amarillo); }
.hero-sub { font-size: 1.5rem; letter-spacing: 5px; color: #fff; font-weight: 300; margin-bottom: 20px; }
.hero-slogan { font-size: 1.2rem; color: #ccc; font-style: italic; max-width: 600px; margin: 0 auto; }

/* --- WIDGET CONTAINERS (Para Elfsight) --- */
.widget-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- FOOTER --- */
.footer { padding: 40px 0; background: rgba(0,0,0,0.9); border-top: 1px solid rgba(255,255,255,0.05); }
.footer p { font-size: 0.85rem; color: #888; letter-spacing: 1px; }

/* --- REDES SOCIALES STICKY (Restaurado) --- */
.social-sticky { position: fixed; bottom: 0; width: 100%; height: 60px; background: rgba(0,0,0,0.95); display: flex; justify-content: space-around; align-items: center; z-index: 2000; border-top: 1px solid rgba(255,255,255,0.05); }
.s-btn { color: white; font-size: 1.5rem; transition: 0.3s; padding: 10px; }
.s-btn:hover { transform: scale(1.1); }
.wa { color: #25d366 !important; }

/* ==============================
   RESPONSIVE DESIGN (Adaptativo)
   ============================== */

/* Tablet (Menor de 992px) */
@media (max-width: 991px) {
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.7rem; }
    .linea1 { font-size: 7vw; }
    .linea2 { font-size: 4vw; }
    .bio-img img { height: 300px; }
}

/* PC Profesional (Mayor de 992px) */
@media (min-width: 992px) {
    body { padding-top: 60px; }
    
    /* Sticky Social a la derecha en PC */
    .social-sticky { 
        width: 60px; height: auto; 
        flex-direction: column; 
        bottom: auto; top: 50%; right: 20px; 
        transform: translateY(-50%); 
        background: rgba(0,0,0,0.7); 
        border-radius: 30px; 
        padding: 20px 0;
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    /* Bio Card Adaptativa en PC */
    .bio-card { 
        flex-direction: row; /* Horizontal */
        text-align: left; 
        align-items: stretch;
    }
    .bio-img { flex: 1; max-width: 400px; }
    .bio-img img { height: 100%; }
    .bio-info { flex: 1.5; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
    
    /* Títulos grandes en PC */
    .linea1 { font-size: 5vw; } 
    .linea2 { font-size: 2.5vw; }
    .hero h1 { font-size: 5rem; }
}

/* Móvil Pequeño */
@media (max-width: 480px) {
    .nav-links { display: none; } /* Ocultar menú en móviles muy pequeños o usar hamburguesa */
    .section-title { font-size: 2rem; }
    .bio-info { padding: 25px; }
    .bio-info h3 { font-size: 2rem; }
}
/* =========================================
   --- BIO CARD (Corregido para Móvil) ---
   ========================================= */

.glass { 
    background: var(--glass); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

.bio-card { 
    display: flex; 
    flex-direction: column; /* Móvil primero: Apilado vertical */
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%; /* Asegura que ocupe todo el contenedor */
}

.bio-img { 
    width: 100%; 
    padding: 10px; /* Pequeño margen para que no toque los bordes en móvil */
}

.bio-img img { 
    width: 100%; 
    height: auto; /* IMPORTANTE: Altura automática para NO cortar en móvil */
    max-height: 450px; /* Evita que la foto sea gigante si es vertical */
    object-fit: contain; /* Muestra la imagen completa sin recortar */
    border-radius: 15px; /* Bordes redondeados también para la foto */
    filter: grayscale(10%);
    display: block; /* Elimina espacio inferior no deseado */
    margin: 0 auto; /* Centra la imagen */
}

.bio-info { 
    padding: 30px 20px; /* Ajuste de padding para móvil */
}

.bio-info h3 { 
    font-size: 2rem; /* Tamaño de título ajustado para móvil */
    font-weight: 900; 
    color: var(--amarillo); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.check-list { 
    list-style: none; 
    display: inline-block; 
    text-align: left; 
}

.check-list li { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.95rem; /* Tamaño de fuente ajustado */
    color: #e0e0e0; 
}

.check-list i { 
    color: var(--amarillo); 
    font-size: 1.1rem; 
}


/* --- RESPONSIVE DESIGN (PC Profesional - Mayor de 992px) --- */
@media (min-width: 992px) {
    
    /* Restaurar disposición horizontal en PC */
    .bio-card { 
        flex-direction: row; 
        text-align: left; 
        align-items: stretch;
    }
    
    .bio-img { 
        flex: 1; 
        max-width: 400px; 
        padding: 0; /* Quitar padding de móvil */
    }
    
    .bio-img img { 
        height: 100%; /* Altura fija para PC */
        max-height: none; /* Quitar limitación de móvil */
        object-fit: cover; /* Escalar para llenar el espacio en PC */
        border-radius: 0; /* Quitar bordes redondeados internos */
    }
    
    .bio-info { 
        flex: 1.5; 
        padding: 60px; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
    }

    .bio-info h3 { 
        font-size: 2.5rem; 
    }
}
/* --- CONTENEDORES DE FEEDS HORIZONTALES --- */
.feed-wrapper {
    width: 100%;
    max-width: 1100px; /* Evita que el carrusel sea demasiado ancho en PC */
    margin: 0 auto;
    text-align: center;
}

.horizontal-widget-container {
    width: 100%;
    overflow: hidden; /* Limpia los desbordes */
    padding: 20px 0;
}

/* Ajuste de los títulos para los carruseles */
.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* --- MEJORA DE IMAGEN BIO (PARA NO CORTARSE) --- */
.bio-img img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain; /* Garantiza que la foto se vea COMPLETA */
    background: rgba(0,0,0,0.2); /* Fondo sutil para el área vacía si la foto es estrecha */
    border-radius: 15px;
}

/* --- ADAPTACIÓN PARA SMARTPHONES --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .feed-wrapper {
        padding: 0 10px;
    }
    .horizontal-widget-container {
        padding: 10px 0;
    }
}
/* =========================================
   --- CONTENEDORES SOCIALES Y EFECTOS ---
   ========================================= */

:root {
    /* Mantenemos tus colores originales */
    --morado: #5e35b1;
    --morado-brillante: #8e68ff; /* Un tono más claro para el efecto glow */
    --amarillo: #fbc02d;
}

.feed-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 1. EFECTO GLOW MORADO NEÓN */
.neon-glow {
    /* Múltiples capas de sombra para efecto neón real */
    box-shadow: 0 0 10px rgba(94, 53, 177, 0.7), /* Núcleo morado sutil */
                0 0 25px rgba(142, 104, 255, 0.4), /* Brillo medio brillante */
                0 0 50px rgba(49, 27, 146, 0.3);  /* Brillo exterior suave y oscuro */
    border: 1px solid rgba(142, 104, 255, 0.2); /* Borde sutil */
    border-radius: 20px;
    transition: box-shadow 0.4s ease;
}

.neon-glow:hover {
    box-shadow: 0 0 15px rgba(94, 53, 177, 0.9),
                0 0 35px rgba(142, 104, 255, 0.6),
                0 0 70px rgba(49, 27, 146, 0.5);
}

/* 2. SOLUCIÓN AL ERROR DE TAMAÑO INCONSISTENTE */
.horizontal-widget-container {
    width: 100%;
    /* Altura mínima estable para evitar saltos antes de cargar */
    min-height: 420px; 
    overflow: hidden;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.4); /* Fondo sutil para que el neón resalte */
}

/* --- ESTABILIZACIÓN DE TIKTOK (Proporción 9/16) --- */
/* Target general de las tarjetas de Elfsight TikTok */
#video-section .eapps-widget-content-posts-item {
    aspect-ratio: 9 / 16 !important; /* Forzamos proporción vertical uniforme */
    height: auto !important; /* Permitimos que la altura se calcule sola */
    border-radius: 12px;
}

#video-section .eapps-widget-content-posts-item-image {
    object-fit: cover !important; /* Garantizamos que la imagen llene la tarjeta */
}

/* --- ESTABILIZACIÓN DE INSTAGRAM (Proporción 1/1 - Cuadrado) --- */
/* Target general de las tarjetas de Elfsight Instagram */
#photo-section .eapps-widget-content-posts-item {
    aspect-ratio: 1 / 1 !important; /* Forzamos proporción cuadrada uniforme */
    height: auto !important;
    border-radius: 12px;
}

/* --- TÍTULOS GENERALES --- */
.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #fff;
}

.accent {
    color: var(--amarillo);
}

/* --- ADAPTACIÓN PARA SMARTPHONES --- */
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .horizontal-widget-container { min-height: 350px; padding: 10px; }
}