/* =========================================
   ESTILOS GENERALES
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Arial', sans-serif;
    background-color: #0f0f0f;
    color: #333;
    overflow-x: hidden;
}

#video-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.6;
}

#fondo {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   HEADER (ESTILO PLANES/CARRITO)
   ========================================= */
#header {
    background: #000;
    padding: 15px 50px;
    display: flex;
    align-items: center;
    gap: 25px; /* Espacio entre logo y breadcrumb */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
    margin-bottom: 40px;
    /* Quitamos el justify-content: space-between para que se junten a la izq */
}

/* Ajuste del logo usando el ID del HTML que me diste */
#logo { 
    height: 60px; 
    width: auto; 
    display: block; /* Evita espacios extra */
}

/* Breadcrumb */
.breadcrumb {
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-family: 'Share Tech Mono', monospace;
    color: #fff; 
    font-size: 18px; 
    text-transform: uppercase;
    flex-wrap: wrap;
}

/* Ícono de Casa (Estilo Neón) */
.home-link { display: inline-block; transition: none; }

.home-icon {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 10px rgba(160, 32, 240, 0.8));
    transition: all 0.35s ease;
}

.home-link:hover .home-icon {
    transform: scale(1.3) rotate(-12deg);
    filter: drop-shadow(0 0 22px #a020f0);
}

.link-nav { color: #fff; text-decoration: none; }
.separator { color: #aaa; font-size: 20px; }
.current-page { 
    color: #a020f0; 
    font-weight: bold; 
    border-bottom: 2px solid #a020f0; 
}

/* =========================================
   SECCIÓN DE VIDEOS
   ========================================= */
#section {
    background: rgba(10, 10, 10, 0.85); 
    border-radius: 20px;
    padding: 40px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(160, 32, 240, 0.2);
}

.page-title {
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    color: #fff;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(160, 32, 240, 0.8);
    text-transform: uppercase;
}

.page-subtitle {
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* Grid Videos */
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    justify-items: center;
    align-items: start;
}

/* Tarjeta Video */
.tiktok-card {
    position: relative;
    width: 100%;
    max-width: 325px; 
    border-radius: 12px;
    padding: 5px; 
    background: #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* --- NEÓN PERMANENTE --- */
.card-glow {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 20px;
    background: linear-gradient(45deg, #a020f0, #ff008c, #00c6ff);
    z-index: -1;
    opacity: 0.6; /* Visible siempre */
    filter: blur(25px);
    animation: glowPulse 3s infinite alternate;
}

/* Animación Neón */
@keyframes glowPulse {
    0% { opacity: 0.5; filter: blur(20px); transform: scale(0.95); }
    100% { opacity: 0.9; filter: blur(30px); transform: scale(1.05); }
}

/* Efecto al pasar el mouse (Solo movimiento) */
.tiktok-card:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}
.tiktok-card:hover .card-glow {
    opacity: 1; /* Brillo máximo */
    filter: blur(30px);
}

/* Ajustes TikTok Embed */
.tiktok-embed {
    margin: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: #000;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
    text-align: center;
    padding: 30px;
    color: #fff;
    font-size: 14px;
    background: #000;
    margin-top: 50px;
    border-top: 2px solid #333;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .breadcrumb {
        justify-content: center;
        margin-top: 10px;
    }

    .page-title { font-size: 2rem; }

    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .tiktok-card:hover { transform: translateY(-5px); }
}