/* ==========================================================================
   ATARDECER MELANCÓLICO - SISTEMA DE ESTILOS PREMIUM
   Estética: Spotify Dark Purple + Atardecer Costero (Negro, Morado, Naranja Ocaso)
   ========================================================================== */

/* Importación de Fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800;900&family=Lora:ital,wght@1,300;1,400&display=swap');

:root {
    /* Paleta de Colores Fija */
    --bg-dark-deep: #050209;         /* Fondo negro marino profundo */
    --bg-dark-card: rgba(14, 7, 24, 0.65); /* Tarjetas glassmorphic oscuras */
    --bg-dark-hover: rgba(26, 12, 45, 0.8);
    
    /* Gradientes Crepusculares (Atardecer + Tristeza) */
    --color-purple-neon: #a855f7;    /* Morado neón (Glow principal) */
    --color-indigo-sad: #4f46e5;     /* Índigo (Melancolía de la playa) */
    --color-sunset-orange: #f97316;  /* Naranja ocaso (El último rayo de sol) */
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #c0b7cd;
    --text-muted: #8b809a;
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* 1. Estilos Globales y Reset */
body {
    background-color: var(--bg-dark-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Fondo de Estrellas y Nebulosa sutil */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Olas Marinas Animadas SVG en el Fondo */
.wave-container {
    position: absolute;
    width: 100%;
    height: 150px;
    bottom: 0;
    left: 0;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 150px;
    transform: rotate(180deg);
}

.wave-container .shape-fill {
    fill: rgba(168, 85, 247, 0.03);
}

/* 2. Encabezado / Banner Atardecer */
.hero-banner {
    padding: 120px 0 80px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(20, 10, 36, 0.8) 0%, var(--bg-dark-deep) 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    margin-bottom: 50px;
}

.hero-sunset-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: sunsetPulse 8s infinite alternate ease-in-out;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--color-purple-neon) 70%, var(--color-sunset-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: var(--color-purple-neon);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.hero-lead {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 3. Introducción - Bitácora / Diario */
.intro-diary-card {
    background: var(--bg-dark-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.intro-diary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-purple-neon), var(--color-sunset-orange));
}

.diary-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--color-sunset-orange);
    font-size: 1.25rem;
    border-left: 2px solid rgba(249, 115, 22, 0.4);
    padding-left: 15px;
    margin: 20px 0;
}

/* Onda de Audio Animada en Header */
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    width: 60px;
    margin: 0 auto 20px auto;
}

.sound-wave span {
    display: block;
    width: 4px;
    background: linear-gradient(to top, var(--color-purple-neon), var(--color-sunset-orange));
    border-radius: 4px;
    animation: bounceWave 1.2s infinite ease-in-out alternate;
}

.sound-wave span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.sound-wave span:nth-child(4) { animation-delay: 0.3s; height: 40%; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; height: 80%; }

/* Easter Egg: burbuja de video fija */
.easter-egg-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    animation: floatBubble 8s ease-in-out infinite;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.easter-egg-bubble video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-12px) translateX(-6px);
    }
}

/* 4. Estructura de Grilla y Tarjetas (Songs Grid) */
.song-card {
    background: var(--bg-dark-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(249, 115, 22, 0.03) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
    pointer-events: none;
}

/* Hover de Tarjeta */
.song-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2), 0 0 15px rgba(249, 115, 22, 0.05);
}

.song-card:hover::before {
    opacity: 1;
}

/* Encabezado de la tarjeta (Antes del video - Requisito) */
.song-card-header {
    padding: 24px 20px 15px 20px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.song-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.song-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-purple-neon);
    background: rgba(168, 85, 247, 0.12);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.song-genre-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-sunset-orange);
    background: rgba(249, 115, 22, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
}

.song-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 800;
    transition: var(--transition-fast);
}

.song-card:hover .song-title {
    color: var(--color-purple-neon);
}

.song-artist-album {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 500;
}

.song-artist-album span {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 2px;
}

.artist-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px auto;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favorite-track {
    font-size: 0.85rem;
    color: #e9d7ff;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.favorite-track strong {
    color: var(--color-sunset-orange);
}

.audio-player {
    width: 100%;
    margin-top: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.song-story {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    /* Diario de desamor itálico elegante */
    border-left: 2px solid rgba(168, 85, 247, 0.3);
    padding-left: 10px;
}

/* Nota personal editable del alumno (Adición interactiva) */
.personal-note {
    background: rgba(249, 115, 22, 0.04);
    border: 1px dashed rgba(249, 115, 22, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    transition: var(--transition-fast);
}

.song-card:hover .personal-note {
    background: rgba(168, 85, 247, 0.03);
    border-color: rgba(168, 85, 247, 0.3);
}

.personal-note-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-sunset-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 5px;
    transition: var(--transition-fast);
}

.song-card:hover .personal-note-title {
    color: var(--color-purple-neon);
}

.personal-note-text {
    font-size: 0.83rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Botón de reproducción interactivo de tarjeta */
.play-card-btn {
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--color-purple-neon);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    align-self: flex-start;
    transition: var(--transition-fast);
    cursor: pointer;
}

.play-card-btn:hover {
    background: var(--color-purple-neon);
    color: var(--bg-dark-deep);
    border-color: var(--color-purple-neon);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Contenedor de Video YouTube (Ratio 16:9 responsivo - Requisito) */
.song-video-wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

.song-video-wrapper iframe {
    transition: var(--transition-smooth);
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

.song-card:hover .song-video-wrapper iframe {
    transform: scale(1.03);
}

/* 5. Sección Colapsable "Capítulos Extra" */
.extra-chapters-section {
    margin-top: 40px;
}

.extra-toggle-container {
    text-align: center;
    margin: 50px 0;
}

.btn-reveal-chapters {
    background: linear-gradient(135deg, var(--bg-dark-card), rgba(168, 85, 247, 0.15));
    border: 1px solid var(--color-purple-neon);
    color: var(--text-primary);
    padding: 16px 36px;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-reveal-chapters:hover {
    background: linear-gradient(135deg, var(--color-purple-neon), var(--color-indigo-sad));
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.35);
    transform: translateY(-3px);
    color: #fff;
}

.btn-reveal-chapters .icon-arrow {
    transition: var(--transition-smooth);
}

.btn-reveal-chapters.active .icon-arrow {
    transform: rotate(180deg);
}

/* Contenedor colapsable con transición */
.extra-collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
}

.extra-collapse-content.show {
    max-height: 5000px; /* Suficiente para las 8 tarjetas */
    opacity: 1;
}

/* 6. Sección de Navegación / Botón a Favoritos y Spotify */
.spotify-playlist-section {
    background: linear-gradient(180deg, var(--bg-dark-deep) 0%, rgba(20, 10, 36, 0.6) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.spotify-btn {
    background: #1db954; /* Color clásico Spotify */
    border: none;
    color: #000000;
    padding: 16px 38px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.3);
    text-decoration: none;
}

.spotify-btn:hover {
    background: #1ed760;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(29, 185, 84, 0.5);
    color: #000;
}

.nav-section-btn {
    background: linear-gradient(135deg, var(--color-purple-neon), var(--color-indigo-sad));
    border: none;
    color: #fff;
    padding: 16px 38px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    text-decoration: none;
    margin-left: 15px;
}

.nav-section-btn:hover {
    background: linear-gradient(135deg, var(--color-sunset-orange), var(--color-purple-neon));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
    color: #fff;
}

/* 7. Barra de Reproducción Simulada Inferior (Estilo Spotify Player) */
.spotify-player-bar {
    position: fixed;
    bottom: -100px; /* Escondido por defecto */
    left: 0;
    width: 100%;
    background: rgba(10, 5, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--color-purple-neon);
    padding: 15px 30px;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.spotify-player-bar.active {
    bottom: 0;
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.player-song-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-disc {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, var(--color-purple-neon), var(--bg-dark-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: rotateDisc 4s linear infinite;
}

.player-disc::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
}

.player-song-details h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.player-song-details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.player-btn:hover {
    color: var(--color-purple-neon);
    transform: scale(1.1);
}

.player-play-btn {
    background: #fff;
    color: #000 !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.player-play-btn:hover {
    background: var(--color-purple-neon);
    color: #000 !important;
}

.player-progress-container {
    flex-grow: 1;
    max-width: 40%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.player-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.player-progress-fill {
    width: 35%; /* Simulado */
    height: 100%;
    background: linear-gradient(to right, var(--color-purple-neon), var(--color-sunset-orange));
    border-radius: 5px;
    animation: simulateProgress 30s linear infinite;
}

/* 8. PÁGINA SECUNDARIA - FAVORITOS */
.top-artist-badge {
    background: linear-gradient(135deg, var(--color-purple-neon), var(--color-indigo-sad));
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

.genre-card {
    background: var(--bg-dark-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.genre-card:hover {
    transform: scale(1.05);
    border-color: var(--color-sunset-orange);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-icon {
    font-size: 2.2rem;
    color: var(--color-sunset-orange);
    margin-bottom: 12px;
    display: inline-block;
    transition: var(--transition-fast);
}

.genre-card:hover .genre-icon {
    transform: rotate(10deg) scale(1.1);
    color: var(--color-purple-neon);
}

/* Pie de Página */
footer {
    padding: 40px 0 140px 0; /* Espacio extra para que no tape la barra de player */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer p {
    margin: 5px 0;
}

/* 9. Animaciones Especiales CSS */
@keyframes bounceWave {
    0% { height: 10%; }
    100% { height: 100%; }
}

@keyframes sunsetPulse {
    0% { transform: translateX(-50%) scale(1); filter: blur(40px); }
    100% { transform: translateX(-50%) scale(1.2); filter: blur(55px); }
}

@keyframes rotateDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes simulateProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Responsive Ajustes */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .spotify-player-bar {
        padding: 15px 15px;
    }
    .player-progress-container {
        display: none; /* Esconder progreso en tablets/móviles para dar espacio */
    }
    .nav-section-btn {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-banner {
        padding: 80px 0 50px 0;
    }
    .intro-diary-card {
        padding: 20px;
    }
    .player-controls {
        gap: 10px;
    }
    .player-btn {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   10. BURBUJA DE VIDEO FLOTANTE (Easter Egg Personal)
   ========================================================================== */
.video-bubble-container {
    position: fixed;
    bottom: 110px; /* Por encima del Spotify Player Bar */
    right: 25px;
    z-index: 1000;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple-neon), var(--color-sunset-orange));
    padding: 3px;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4), 0 0 15px rgba(249, 115, 22, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    /* La animación se hereda de keyframes, pero se combina con hover */
}

/* Animación de flotar suave en estado normal */
.video-bubble-container:not(:hover) {
    animation: bubbleFloat 4s infinite ease-in-out alternate;
}

.video-bubble-container:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.6), 0 0 25px rgba(249, 115, 22, 0.3);
}

.video-bubble-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-bubble-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón de cerrar burbuja */
.video-bubble-close {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e11d48;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    z-index: 1002;
    transition: var(--transition-fast);
}

.video-bubble-close:hover {
    background: #f43f5e;
    transform: scale(1.1);
}

/* Tooltip / Globo de diálogo flotante sutil */
.video-bubble-tooltip {
    position: absolute;
    right: 115px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(10, 5, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.video-bubble-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(10, 5, 20, 0.9);
    border-right: 1px solid rgba(168, 85, 247, 0.3);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
}

.video-bubble-container:hover .video-bubble-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes bubbleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* Adaptación responsive para celulares */
@media (max-width: 575.98px) {
    .video-bubble-container {
        width: 80px;
        height: 80px;
        bottom: 110px;
        right: 15px;
    }
    .video-bubble-tooltip {
        display: none; /* Ocultar tooltip en celulares para evitar desborde */
    }
}

