/* =========================================
   DRIVE MY MUSIC - TOPBAR Y REPRODUCTOR
========================================= */
/* TOPBAR (Barra de Navegación) */
.topbar { background: #222325; border-bottom: 2px solid #111; box-shadow: 0 4px 10px rgba(0,0,0,0.5); height: auto; padding: 15px 0; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: center; }
.topbar-inner { width: calc(100% - 160px); max-width: none; height: 100%; display: flex; justify-content: space-between; align-items: center; margin: 0 auto; padding: 0; box-sizing: border-box; }
.topbar-logo img { height: 70px; cursor: pointer; }
.topbar-menu { display: flex; gap: 25px; align-items: center; }
.topbar-menu > a { color: #b3b3b3; text-decoration: none; font-size: 15px; font-family: Arial, Helvetica, sans-serif; transition: color 0.3s ease; }
.topbar-menu > a:hover, .topbar-menu > a.active { color: #ffffff; }
.menu-destacado { color: #4db8ff !important; border: 1px solid #4db8ff; padding: 6px 12px; border-radius: 4px; display: flex; align-items: center; gap: 5px; box-shadow: inset 0 0 5px rgba(77,184,255,0.2); transition: 0.3s; }
.menu-destacado:hover { background: rgba(77, 184, 255, 0.1); box-shadow: 0 0 10px rgba(77,184,255,0.4); text-shadow: 0 0 5px #4db8ff;}
.dropdown { position: relative; display: inline-block; }
.dropdown > a { color: #b3b3b3; text-decoration: none; font-size: 15px; font-family: Arial, Helvetica, sans-serif; transition: 0.3s; cursor: default; }
.dropdown:hover > a { color: #fff; }
.dropdown-content { display: none; position: absolute; background-color: #111; min-width: 220px; box-shadow: 0px 8px 20px rgba(0,0,0,0.8); z-index: 1001; border-radius: 4px; border: 1px solid #333; top: 100%; left: 0; padding: 5px 0; animation: fadeInNav 0.2s ease; }
@keyframes fadeInNav { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-content a { color: #ccc; padding: 12px 20px; text-decoration: none; display: block; font-size: 0.8rem; border-bottom: 1px solid #222; text-transform: uppercase; transition: 0.2s; font-family: 'Segoe UI', sans-serif; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #222; color: #4db8ff; padding-left: 25px;}
.dropdown:hover .dropdown-content { display: block; }
.btn-perfil { color: #4db8ff !important; font-weight: bold; text-transform: uppercase; }
.btn-logout { color: #ff4444 !important; }

/* REPRODUCTOR CAMALEÓN FLOTANTE */
.player-bar { --tema-actual: #4db8ff; position: fixed; bottom: 0; left: 0; width: 100%; height: 80px; background: linear-gradient(to bottom, #2a2b2c, #1a1b1c); border-top: 1px solid #111; box-shadow: 0 -5px 15px rgba(0,0,0,0.8); transform: translateY(100%); transition: transform 0.4s ease; z-index: 1000; display: flex; justify-content: center; }
.player-bar.active { transform: translateY(0); }
.player-bar.is-cover { --tema-actual: #ff9900; }
.player-container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1600px; padding: 0 30px; gap: 20px;}
.track-display { display: flex; align-items: center; gap: 15px; width: 25%; min-width: 0;}
.track-display img { width: 50px; height: 50px; border: 1px solid #111; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); object-fit: cover; flex-shrink: 0;}
.track-details { flex-grow: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center;}
.track-title-wrapper { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.track-details h4 { margin: 0 0 3px 0; color: #fff; font-size: 0.85rem; text-transform: uppercase; white-space: nowrap; display: inline-block;}
.track-details p { margin: 0; color: #888; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.is-marquee { animation: autoMarqueePlayer 5s linear infinite alternate; }
@keyframes autoMarqueePlayer { 0%, 10% { transform: translateX(0); } 90%, 100% { transform: translateX(var(--scroll-amount)); } }
.player-controls { display: flex; align-items: center; gap: 20px; justify-content: center; width: 15%; flex-shrink: 0;}
.ctrl-btn { background: none; border: none; color: var(--tema-actual); cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; padding: 0;}
.ctrl-btn svg { width: 18px; height: 18px; fill: currentColor; filter: drop-shadow(0 0 6px var(--tema-actual)); transition: 0.2s;}
.ctrl-btn:hover { color: #fff; transform: scale(1.1); }
.btn-main-play { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(180deg, #253340 0%, #111 100%); border: 1px solid var(--tema-actual); box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 0 12px rgba(var(--tema-actual), 0.4); color: var(--tema-actual); display: flex; align-items: center; justify-content: center;}
.btn-main-play svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 0 5px var(--tema-actual));}
.btn-main-play:hover { background: linear-gradient(180deg, #2e4354 0%, #1a1b1c 100%); color: #fff; transform: none;}
.progress-container { display: flex; align-items: center; gap: 15px; width: 40%; }
.progress-bar { flex: 1; height: 6px; background: #0a0a0a; border-radius: 3px; cursor: pointer; position: relative; border: 1px solid #222; box-shadow: inset 0 1px 3px rgba(0,0,0,0.8); }
.progress-fill { height: 100%; background: var(--tema-actual); width: 0%; border-radius: 3px; box-shadow: 0 0 10px var(--tema-actual); pointer-events: none;}
#ui-time { font-size: 0.75rem; color: #aaa; font-family: 'Segoe UI', Tahoma, sans-serif; font-weight: bold; white-space: nowrap; width: 85px; text-align: right;}
.volume-container { display: flex; align-items: center; gap: 10px; width: 15%; justify-content: flex-end;}
.vol-icon { color: var(--tema-actual); display: flex; align-items: center;}
.vol-icon svg { width: 18px; height: 18px; filter: drop-shadow(0 0 6px var(--tema-actual)); }
#ui-vol-bar { width: 100px; flex: none; }
#ui-vol-fill { background: var(--tema-actual); width: 100%; }

@media (max-width: 1024px) {
    .topbar { flex-direction: column; padding: 15px; gap: 15px;}
    .topbar-inner { width: 100%; flex-wrap: wrap; justify-content: center; }
}

/* =========================================
   MODAL DE VIDEO YOUTUBE (Oculto por defecto)
   ========================================= */
.modal-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; display: none; align-items: center; justify-content: center; }
.modal-video.show { display: flex; }
.modal-video-content { width: 90%; max-width: 900px; aspect-ratio: 16/9; background: #000; position: relative; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.modal-video-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 2.5rem; cursor: pointer; transition: 0.3s; line-height: 1; }
.modal-video-close:hover { color: var(--dmm-acento); }

/* NAVEGACIÓN GLOBAL */
.top-nav {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: #fff; }

/* BOTONES DINÁMICOS */
.nav-btn-artista {
    background: var(--dmm-acento); /* Azul Turquesa */
    color: #000 !important;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(77, 184, 255, 0.3);
}

.nav-btn-fan {
    background: #ff4d4d; /* Rojo Neón para el Fan */
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid #333;
    padding-left: 20px;
}

.user-name { font-size: 0.8rem; color: #666; }
.logout-icon { color: #ff4d4d !important; cursor: pointer; }


/* =========================================
   TÍTULOS DE SECCIÓN Y BADGES (BIBLIOTECA)
========================================= */
.section-title { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    border-bottom: 2px solid #222; 
    padding-bottom: 12px;
}

.section-title h2 { 
    font-size: 1.4rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin: 0; 
    color: #fff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.badge-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Botón Crear Playlist */
.btn-crear-playlist {
    background: transparent;
    border: 1px dashed var(--dmm-acento);
    color: var(--dmm-acento);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    width: 100%;
    text-decoration: none;
}
.btn-crear-playlist:hover {
    background: rgba(77, 184, 255, 0.1);
    box-shadow: 0 0 15px rgba(77, 184, 255, 0.2);
}


/* =========================================
   CORAZONES: REPRODUCTOR Y LISTAS (FIX FINO)
========================================= */
.heart-button, .track-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px; /* Más espacio interno para que no se corte */
    margin-right: 5px;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    filter: none !important;
}

.heart-button svg, .track-like-btn svg {
    overflow: visible; /* IMPORTANTE: Evita que se corten los bordes */
    filter: none !important;
}

/* 1. STANDBY: Solo contorno blanco muy fino */
.heart-button svg path, .track-like-btn svg path {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 1px; /* Más fino como pediste */
    transition: all 0.2s ease;
}

/* 2. ROLLOVER: Se rellena de blanco */
.heart-button:hover svg path, .track-like-btn:hover svg path {
    fill: #ffffff;
    stroke: #ffffff;
}

/* 3. ACTIVO: Rojo DMM sólido */
.heart-button.active svg path, .track-like-btn.active svg path {
    fill: #ff4d4d !important;
    stroke: #ff4d4d !important;
}

.heart-button:hover, .track-like-btn:hover {
    transform: scale(1.1);
}

/* =========================================
   MENÚ DE OPCIONES (3 PUNTITOS) Y PLAYLIST MODAL
========================================= */

/* Botón de opciones en la lista de canciones */
.btn-options {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-options:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Modal Agregar a Playlist */
.playlist-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.playlist-modal.show { display: flex; }

.playlist-modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-metal);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    position: relative;
}

.playlist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.playlist-modal-header h3 { margin: 0; color: #fff; font-size: 1.2rem; text-transform: uppercase; }
.btn-close-modal { background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0; }
.btn-close-modal:hover { color: #fff; }

.playlist-list-container {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.playlist-list-container::-webkit-scrollbar { width: 6px; }
.playlist-list-container::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.playlist-item-btn {
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}
.playlist-item-btn:hover {
    background: #111;
    border-color: var(--dmm-acento);
}
.playlist-item-btn svg { width: 24px; height: 24px; fill: var(--dmm-acento); flex-shrink: 0; }

#create-new-pl-btn {
    margin-top: 20px;
    width: 100%;
    background: transparent;
    border: 1px dashed var(--dmm-acento);
    color: var(--dmm-acento);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}
#create-new-pl-btn:hover { background: rgba(77, 184, 255, 0.1); }

/* =========================================
   SISTEMA DE NOTIFICACIONES (TOAST)
========================================= */
.dmm-toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px; /* Para centrarlo exacto */
    background-color: var(--dmm-acento); /* Color turquesa por defecto */
    color: #000;
    text-align: center;
    border-radius: 8px;
    padding: 15px 20px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.dmm-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Checkboxes para el Modal de Playlists */
.playlist-checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    color: #fff;
    font-size: 0.95rem;
}
.playlist-checkbox-label:hover {
    background: #111;
    border-color: var(--dmm-acento);
}
.playlist-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--dmm-acento);
    cursor: pointer;
}

/* ======================================================
   FOOTER DMM PREMIUM
====================================================== */
.dmm-footer {
    background: #0a0a0a; border-top: 1px solid #222; padding: 50px 30px 20px 30px; 
    position: relative; overflow: hidden; z-index: 5; margin-top: auto;
}
.dmm-footer-bg {
    position: absolute; right: -5%; bottom: -20%; opacity: 0.03; width: 400px; pointer-events: none;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; max-width: 1600px; margin: 0 auto; position: relative; z-index: 10;
}
.footer-col h4 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; border-bottom: 2px solid var(--dmm-acento); display: inline-block; padding-bottom: 5px;}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #888; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--dmm-acento); }

.social-links { display: flex; gap: 15px; }
.social-links a { background: #111; border: 1px solid #333; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #888; transition: 0.3s; }
.social-links a:hover { background: var(--dmm-acento); color: #000; border-color: var(--dmm-acento); transform: translateY(-3px);}
.social-links a svg { width: 18px; height: 18px; fill: currentColor;}

.footer-bottom { border-top: 1px solid #222; max-width: 1600px; margin: 40px auto 0 auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 10;}
.footer-bottom p { margin: 0; color: #666; font-size: 0.8rem; }
.footer-bottom .ubli-credit { color: #888; text-decoration: none; font-weight: bold; transition: 0.3s;}
.footer-bottom .ubli-credit:hover { color: var(--dmm-acento); }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4 { border-bottom: none; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* =========================================
   MODAL DE CONFIRMACIÓN GENÉRICO (Alertas / Eliminar)
========================================= */
div[id*="confirm"], div[class*="confirm"], div[id*="eliminar"], .modal-confirm {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
div[id*="confirm"] > div, div[class*="confirm"] > div, div[id*="eliminar"] > div, .modal-confirm > div {
    background: #111 !important;
    padding: 30px !important;
    border-radius: 8px !important;
    border: 1px solid #333 !important;
    border-top: 4px solid #ff4d4d !important;
    color: #fff !important;
    text-align: center !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9) !important;
    max-width: 400px !important;
    font-family: 'Segoe UI', sans-serif !important;
}
div[id*="confirm"] button, div[class*="confirm"] button, div[id*="eliminar"] button, .modal-confirm button {
    background: #222 !important; color: #fff !important; border: 1px solid #444 !important;
    padding: 10px 20px !important; margin: 15px 5px 0 5px !important; border-radius: 4px !important;
    cursor: pointer !important; font-weight: bold !important; text-transform: uppercase !important; transition: 0.3s !important;
}
div[id*="confirm"] button:hover, div[class*="confirm"] button:hover { background: #333 !important; }
div[id*="confirm"] button:last-child, div[class*="confirm"] button:last-child, div[id*="eliminar"] button:last-child, .modal-confirm button:last-child {
    background: #ff4d4d !important; color: #000 !important; border-color: #ff4d4d !important;
}
div[id*="confirm"] button:last-child:hover, div[class*="confirm"] button:last-child:hover {
    background: #ff6666 !important; box-shadow: 0 0 10px rgba(255,77,77,0.4) !important;
}


/* --- BLOQUE CAFECITO NAV --- */
.nav-cafecito-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 15px;
}

/* El Botón Verde */
.nav-cafecito {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(46, 221, 92, 0.1) !important;
    color: #2edd5c !important; /* El verde brillante */
    border: 1px solid rgba(46, 221, 92, 0.5) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.nav-cafecito:hover {
    background: #2edd5c !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(46, 221, 92, 0.4) !important;
    transform: translateY(-2px);
}

.nav-cafecito .coffee-icon {
    font-size: 1.1rem;
}

/* El Contenedor Explicativo (Tooltip) */
.cafecito-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 300px;
    background: rgba(15, 16, 18, 0.98);
    color: #eee;
    text-align: left;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(46, 221, 92, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    position: absolute;
    z-index: 9999;
    top: 130%; 
    right: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(15px);
    pointer-events: none; /* Para que no moleste si pasas el mouse rápido */
}

/* Mostrar Tooltip al pasar por el Wrapper */
.nav-cafecito-wrapper:hover .cafecito-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Flecha del Tooltip */
.cafecito-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 40px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent rgba(46, 221, 92, 0.4) transparent;
}

/* Estilos internos del Tooltip */
.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #2edd5c;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

/* El tooltip ahora se alinea a la derecha para no salirse de la pantalla */
.cafecito-tooltip {
    right: 0;
    left: auto;
}

.cafecito-tooltip strong { color: #fff; }

.tooltip-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Estilo aislado para el botón de apoyo */
.contenedor-apoyo-dmm {
    display: inline-flex;
    position: relative;
    align-items: center;
    margin-right: 15px;
    vertical-align: middle;
}

.btn-cafecito-nav {
    background: rgba(46, 221, 92, 0.1) !important;
    color: #2edd5c !important;
    border: 1px solid rgba(46, 221, 92, 0.4) !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.btn-cafecito-nav:hover {
    background: #2edd5c !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(46, 221, 92, 0.3);
}

.tooltip-cafecito-nav {
    visibility: hidden;
    opacity: 0;
    width: 260px;
    background: #0f1012;
    border: 1px solid #2edd5c;
    position: absolute;
    top: 140%;
    right: 0;
    padding: 15px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    transition: 0.3s;
    pointer-events: none;
    color: #ccc;
    line-height: 1.4;
    text-align: left;
}

.contenedor-apoyo-dmm:hover .tooltip-cafecito-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILO LLAMATIVO PARA EL MODAL DE INSIGNIAS (A LA DERECHA) --- */
.badge-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin-left: 6px;
    vertical-align: -0.1em;
}

.badge-modal {
    display: none;
    position: absolute;
    /* --- CAMBIOS ACÁ: Lo movemos a la derecha y lo centramos verticalmente --- */
    top: 50%;
    left: 100%; 
    margin-left: 12px; /* Separación entre el tilde y el cartelito */
    transform: translateY(-50%); /* Centrado vertical exacto */
    /* ------------------------------------------------------------------------ */
    width: 200px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid #333;
    color: #eee;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left; /* Al estar a la derecha, el texto a la izquierda queda mejor */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.05);
    z-index: 9999;
    pointer-events: none;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-transform: none; 
    font-weight: normal;
}

.badge-modal b {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-trigger:hover .badge-modal {
    display: block;
    /* Cambiamos el nombre de la animación */
    animation: badgeFadeInRight 0.3s ease forwards;
}

/* --- NUEVA ANIMACIÓN: Desliza desde la izquierda hacia la derecha --- */
@keyframes badgeFadeInRight {
    from { opacity: 0; transform: translate(-10px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}