/* =====================================================================
   HABITS APP – hoja de estilos principal (app.css) Extensión para Bootstrap 5.3
   Organización por secciones y clases, comentarios en español.
   Objetivos:
   - Look más moderno y armónico (tipografía, espacios, sombras sutiles)
   - Tablas compactas y SIN desbordes horizontales
   - Panel de comentarios optimizado (chips de fecha, tarjetas)
   - Compatibilidad con Bootstrap 5.3 (sin romper utilidades)
   - Código ordenado, sin duplicidades, con nombres consistentes
   - Coherencia con el parche 'HRG – Bootstrap-friendly Patch'

   ===================================================================== */

:root {
  /* Sobrescribir paleta de Bootstrap con tonos BeAtomic */
  --bs-primary: #6366f1;
  /* Indigo 500 */
  --bs-primary-rgb: 99, 102, 241;
  --bs-success: #10b981;
  /* Emerald 500 */
  --bs-warning: #f59e0b;
  /* Amber 500 */
  --bs-danger: #ef4444;
  /* Red 500 */
  --bs-info: #06b6d4;
  /* Cyan 500 */

  /* Variables de Diseño Atómico */
  --at-bg-main: #f8fafc;
  --at-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --at-glass-bg: rgba(255, 255, 255, 0.8);
  --at-border-radius: 1rem;
}

/* 1. Global & Layout */
body {
  background-color: var(--at-bg-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

/* Ocultar scrollbar sin perder funcionalidad */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 2. BeAtomic Cards (Elevadas y Modernas) */
/* Usa: <div class="card ba-card"> */
.ba-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--at-border-radius);
  background: var(--at-glass-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--at-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ba-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 3. Tablas de Seguimiento Atómico */
/* Usa: <table class="table ba-table"> */
.ba-table {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.ba-table thead th {
  border: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  padding: 1rem;
}

.ba-table tbody tr {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}

.ba-table tbody tr:hover {
  background: var(--at-bg-main);
}

.ba-table td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
}

.ba-table td:first-child {
  border-radius: 0.75rem 0 0 0.75rem;
}

.ba-table td:last-child {
  border-radius: 0 0.75rem 0.75rem 0;
}

/* 4. Componentes de Motivación */
/* Distintivo de racha 🔥 */
.streak-fire {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

/* Post-it de Identidad (Ley de James Clear) */
.ba-identity-note {
  background: #fef9c3;
  border-left: 5px solid #eab308;
  padding: 1rem;
  border-radius: 0.5rem;
  font-style: italic;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.05);
}

/* 5. Inputs y Feedback */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
}

/* 6. Comentarios y Social */
.ba-comment {
  border-radius: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  position: relative;
}

.ba-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--at-shadow-sm);
}

/* 7. Botones BeAtomic */
.btn-ba {
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s;
}

.btn-ba-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
}

.btn-ba-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

/* 8. Utilidades de Progreso Atómico */
.ba-progress-thin {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 10px;
}

/* Separación entre secciones */
.section-gap {
  margin-bottom: 1rem;
}

/* 9. Landing Page (BeAtomic) */
.landing-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.landing-hero-section {
    padding: 100px 0;
    text-align: center;
}

.landing-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.landing-glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.btn-atomic {
    background: linear-gradient(45deg, #e94560, #d64057);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-atomic:hover {
    background: linear-gradient(45deg, #d64057, #e94560);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
    color: white;
    transform: scale(1.05);
}

.btn-outline-atomic {
    border: 2px solid #e94560;
    color: #e94560;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-atomic:hover {
    background: #e94560;
    color: white;
}

.landing-feature-icon {
    font-size: 2.5rem;
    color: #e94560;
    margin-bottom: 1rem;
}
