/* =========================================
   ESTILOS DE LA HOME (index.html)
   ========================================= */

/* --- 1. HEADER --- */
.bc-header {
  position: fixed; top: 0; width: 100%; height: var(--header-height);
  z-index: 100; display: flex; align-items: center; border-radius: 0 0 16px 16px;
  transition: background 0.3s ease; padding: 0 1.5rem;
}
.glass-panel {
  background: rgba(5, 1, 13, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
}
.header-content {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%;
  max-width: 1200px; margin: 0 auto;
}

.brand-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: white; text-decoration: none; white-space: nowrap; justify-self: start;
}
.brand-logo .dot { color: var(--primary-glow); }

.nav-center { display: flex; justify-content: center; gap: 2rem; }
.nav-link { color: var(--text-muted); font-weight: 500; text-decoration: none; transition: 0.3s; }
.nav-link:hover { color: white; text-shadow: 0 0 8px rgba(255,255,255,0.4); }

/* --- BOTÓN UNIFICADO (Saldo + Mi Espacio) --- */
.header-tools {display: flex; justify-content: flex-end; align-items: center; gap: 12px; justify-self: end;}

@media (max-width: 768px) {
  .nav-center { display: none; }
  .bc-header { padding: 0 1rem; }
}

/* --- 2. HERO SECTION --- */
.hero-section {
  padding-top: 20px;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 1rem; padding-right: 1rem;
}

.badge-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.soul-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 2rem 0;
}

.search-icon-btn {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  margin-top: 1.5rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  animation: pulse-slow 3s infinite;
}
@keyframes pulse-slow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  50% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* --- 3. CARDS GRID --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 0 1rem;
}
.w-100 { width: 100%; }
.mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: 0.8rem; }
.text-center { text-align: center; }
.link-subtle { font-size: 0.9rem; color: var(--text-muted); text-decoration: underline; transition: 0.2s; cursor: pointer; }
.link-subtle:hover { color: white; }

/* --- 4. FOOTER --- */
.bc-footer {
  background: linear-gradient(to top, #05010d 0%, #0f0518 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 1rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.btn-blog-glow {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-blog-glow:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

.footer-legal p { color: #aaa; font-size: 0.9rem; margin-bottom: 1rem; }
.medical-warning strong { color: #ff8e8e; display: block; margin-top: 5px; }
.legal-links { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; color: #666; font-size: 0.85rem; }
.link-clean { background: none; border: none; padding: 0; color: #aaa; text-decoration: underline; cursor: pointer; }
.link-clean:hover { color: white; }

.footer-nav-row { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.nav-pill { background: transparent; border: 1px solid #333; color: #ccc; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; text-decoration: none; transition: 0.2s; }
.nav-pill:hover { border-color: white; color: white; background: rgba(255,255,255,0.05); }
.coffee-btn { border-color: #ffd700; color: #ffd700; }
.coffee-btn:hover { background: rgba(255, 215, 0, 0.1); }
.footer-copyright { font-size: 0.75rem; color: #444; margin-top: 1rem; }

/* --- 5. POPUP REDES SOCIALES (NUEVO) --- */
.social-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 1, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-overlay.active { opacity: 1; pointer-events: auto; }

.social-glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 0 40px rgba(123, 44, 191, 0.2), inset 0 0 20px rgba(0,0,0,0.5);
  width: 90%; max-width: 400px; border-radius: 30px; padding: 1.5rem; text-align: center;
  transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 95vh; display: flex; flex-direction: column; justify-content: center;
}

.social-overlay.active .social-glass-card { transform: scale(1) translateY(0); }

.social-header h3 {font-family: var(--font-display); color: white; margin-bottom: 0.2rem; font-size: 1.4rem;}
.social-header p {color: #aaa; font-size: 0.85rem; margin-bottom: 1.2rem;}

.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.2rem;}
.social-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0.5rem; border-radius: 20px; text-decoration: none; color: #ccc;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}

.social-tile span { margin-top: 6px; font-size: 0.8rem; font-weight: 500; }
.icon-box { transition: transform 0.3s ease; }

/* Efectos Hover por Marca */
.social-tile:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-5px); color: white; }
.social-tile:hover .icon-box { transform: scale(1.1); }

.social-tile.instagram:hover { box-shadow: 0 0 20px rgba(225, 48, 108, 0.4); }
.social-tile.instagram:hover svg { color: #E1306C; }

.social-tile.tiktok:hover { box-shadow: 0 0 20px rgba(0, 242, 234, 0.4); }
.social-tile.tiktok:hover svg { color: #00f2ea; filter: drop-shadow(2px 0 0 #ff0050); }

.social-tile.youtube:hover { box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
.social-tile.youtube:hover svg { color: #FF0000; }

.social-tile.linkedin:hover { box-shadow: 0 0 20px rgba(0, 119, 181, 0.4); }
.social-tile.linkedin:hover svg { color: #0077b5; }

.social-tile.facebook:hover { box-shadow: 0 0 20px rgba(24, 119, 242, 0.4); }
.social-tile.facebook:hover svg { color: #1877F2; }

.social-tile.twitter:hover { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }

.social-close-text {margin-top: 0.5rem; background: none; border: none; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; text-decoration: underline; transition: 0.2s; letter-spacing: 1px; }
.social-close-text:hover { color: white; }

/* --- MODAL CONSENTIMIENTO  --- */
.consent-card {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
  width: 90%; max-width: 380px; max-height: 85vh; display: flex; flex-direction: column;
  padding: 1.5rem; border-radius: 20px; border: 1px solid rgba(255, 100, 100, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); text-align: center; position: relative;
  transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-overlay.active .consent-card {
  transform: translateY(0);
}
.consent-icon {
  background: rgba(255, 142, 142, 0.1); width: 50px; height: 50px; 
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1rem; 
  box-shadow: 0 0 20px rgba(255, 142, 142, 0.1);
  font-size: 1.2rem; 
}
.consent-title {
  font-family: var(--font-display); font-size: 1.2rem; 
  margin-bottom: 1rem; color: white;
}
.consent-body {
  font-size: 0.85rem; color: #ccc; line-height: 1.4; text-align: left;
  overflow-y: auto; margin-bottom: 1.5rem; padding-right: 5px;
}
.consent-body p { margin-bottom: 0.8rem; }
.highlight-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem; border-radius: 12px; border-left: 3px solid #ff8e8e;
}
.text-warning {
  color: #ff8e8e; font-weight: 600;
}
.consent-actions {
  display: flex; flex-direction: column; gap: 1rem;
}

.btn-text-muted {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}
.btn-text-muted:hover { color: white; }

/* =========================================
   EFECTO PUNTO VIVO (RADAR)
   ========================================= */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espacio entre punto y texto */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff88; /* Verde Neón Intenso */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px #00ff88; /* Brillo interno */
}

/* El aura que se expande */
.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #00ff88;
    animation: ripple 2s infinite ease-out;
    opacity: 0;
}

/* Animación de la onda */
@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 2px;
    }
    100% {
        width: 300%; /* Se hace 3 veces más grande */
        height: 300%;
        opacity: 0;
        border-width: 0px;
    }
}
/* --- UTILIDADES GLOBALES (Helpers) --- */
.mr-1 { margin-right: 5px; } 
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mt-auto { margin-top: auto !important; } 
.w-100 { width: 100%; }
.d-block { display: block; }
/* Contenedor que ahora es el botón completo */
.header-user-combined {
    display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 6px !important; 
    background: rgba(255, 255, 255, 0.05); border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
/* La burbuja oscura del saldo */
.user-balance-pill {
  background: rgba(0, 0, 0, 0.35); padding: 6px 14px; border-radius: 50px;
  display: flex; align-items: center; font-weight: 700; color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.15); cursor: pointer;
}
/* Botón "+" dentro de la cápsula */
.plus-inline {
  background: #10b981; color: white; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center;justify-content: center; font-size: 14px;
}
.profile-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: white;
}
.header-user-combined:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}