/* ==========================================
   DASHBOARD BENTO LAYOUT - LAYOUT SPECÍFICO
   Grid 4 cards arriba, debajo: cumple | grande | trayectoria
   ========================================== */

/* Variables para cada tema */
.bento-layout {
  --bento-bg: #ffffff;
  --bento-card-bg: #ffffff;
  --bento-card-border: #e5e7eb;
  --bento-text-primary: #111827;
  --bento-text-secondary: #6b7280;
  --bento-text-muted: #9ca3af;
  --bento-accent-blue: #3b82f6;
  --bento-accent-green: #10b981;
  --bento-radius: 16px;
  --bento-radius-sm: 12px;
}

/* ============================================
   FILA BENTO PRINCIPAL
   Row con: cumple (3 cols) | grande (6 cols) | trayectoria (3 cols)
   ============================================ */

.bento-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.bento-row > [class*="col-"] {
  padding: 0;
}

/* Columna izquierda - Cumpleaños */
.bento-col-cumple {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
}

/* Columna central - Grande placeholder */
.bento-col-center {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

/* Columna derecha - Trayectoria */
.bento-col-trayectoria {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
}

/* ============================================
   CARD GRANDE PLACEHOLDER - BENTO CENTER
   ============================================ */

.bento-center-card {
  background: var(--bento-card-bg);
  border: 2px dashed var(--bento-card-border);
  border-radius: var(--bento-radius);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  transition: all 0.3s ease;
}

.bento-center-card:hover {
  border-color: var(--bento-accent-blue);
  background: rgba(59, 130, 246, 0.02);
}

.bento-center-card .placeholder-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.4;
  color: var(--bento-text-muted);
}

.bento-center-card .placeholder-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--bento-text-primary);
  margin-bottom: 8px;
}

.bento-center-card .placeholder-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--bento-text-muted);
  font-weight: 400;
}

/* ============================================
   MEDIA QUERIES BENTO ROW
   ============================================ */

@media (max-width: 1024px) {
  .bento-row {
    gap: 16px;
    padding: 0 24px;
  }
  
  .bento-col-cumple,
  .bento-col-trayectoria {
    flex: 0 0 calc(30% - 12px);
    max-width: calc(30% - 12px);
  }
  
  .bento-col-center {
    flex: 0 0 calc(40% - 8px);
    max-width: calc(40% - 8px);
  }
}

@media (max-width: 768px) {
  .bento-row {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
  }
  
  .bento-col-cumple,
  .bento-col-center,
  .bento-col-trayectoria {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .bento-center-card {
    min-height: 200px;
    padding: 32px 24px;
  }
  
  .bento-center-card .placeholder-icon {
    font-size: 40px;
  }
  
  .bento-center-card .placeholder-title {
    font-size: 18px;
  }
}

/* ============================================
   ESTILOS ESPECÍFICOS POR TEMA
   ============================================ */

/* TEMA 1: MINIMAL */
body.dashboard-1 .bento-layout {
  --bento-bg: #ffffff;
  --bento-card-bg: #ffffff;
  --bento-card-border: #e5e7eb;
  --bento-text-primary: #111827;
  --bento-text-secondary: #6b7280;
  --bento-text-muted: #9ca3af;
  --bento-accent-blue: #3b82f6;
  --bento-accent-green: #10b981;
  --bento-radius: 12px;
  --bento-radius-sm: 8px;
}

body.dashboard-1 .bento-center-card {
  border: 2px dashed #e5e7eb;
}

body.dashboard-1 .bento-center-card:hover {
  border-color: var(--bento-accent-blue);
}

/* TEMA 2: GRADIENT */
body.dashboard-2 .bento-layout {
  --bento-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bento-card-bg: rgba(255, 255, 255, 0.12);
  --bento-card-border: rgba(255, 255, 255, 0.25);
  --bento-text-primary: #ffffff;
  --bento-text-secondary: rgba(255, 255, 255, 0.8);
  --bento-text-muted: rgba(255, 255, 255, 0.6);
  --bento-accent-blue: #60a5fa;
  --bento-accent-green: #34d399;
  --bento-radius: 20px;
  --bento-radius-sm: 14px;
}

body.dashboard-2 .bento-row {
  background: var(--bento-bg);
  border-radius: var(--bento-radius);
  padding: 24px;
}

body.dashboard-2 .bento-center-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  color: #fff;
}

body.dashboard-2 .bento-center-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--bento-accent-blue);
}

body.dashboard-2 .bento-center-card .placeholder-icon,
body.dashboard-2 .bento-center-card .placeholder-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* TEMA 3: DARK */
body.dashboard-3 .bento-layout {
  --bento-bg: #f8fafc;
  --bento-card-bg: #1e293b;
  --bento-card-border: #334155;
  --bento-text-primary: #e2e8f0;
  --bento-text-secondary: #cbd5e1;
  --bento-text-muted: #94a3b8;
  --bento-accent-blue: #3b82f6;
  --bento-accent-green: #22c55e;
  --bento-radius: 16px;
  --bento-radius-sm: 12px;
}

body.dashboard-3 .bento-center-card {
  background: #1e293b;
  border: 2px dashed #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dashboard-3 .bento-center-card:hover {
  border-color: var(--bento-accent-blue);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

body.dashboard-3 .bento-center-card .placeholder-icon,
body.dashboard-3 .bento-center-card .placeholder-subtitle {
  color: #94a3b8;
}

/* TEMA 4: DATA CENTRIC */
body.dashboard-4 .bento-layout {
  --bento-bg: #f1f5f9;
  --bento-card-bg: #ffffff;
  --bento-card-border: #e2e8f0;
  --bento-text-primary: #0f172a;
  --bento-text-secondary: #475569;
  --bento-text-muted: #94a3b8;
  --bento-accent-blue: #2563eb;
  --bento-accent-green: #16a34a;
  --bento-radius: 12px;
  --bento-radius-sm: 8px;
}

body.dashboard-4 .bento-center-card {
  border: 2px solid #e2e8f0;
  background: #ffffff;
}

body.dashboard-4 .bento-center-card:hover {
  border-color: var(--bento-accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* TEMA 5: BENTO */
body.dashboard-5 .bento-layout {
  --bento-bg: #f8f9fc;
  --bento-card-bg: #ffffff;
  --bento-card-border: #f1f3f9;
  --bento-text-primary: #1e293b;
  --bento-text-secondary: #64748b;
  --bento-text-muted: #94a3b8;
  --bento-accent-blue: #3b82f6;
  --bento-accent-green: #22c55e;
  --bento-radius: 24px;
  --bento-radius-sm: 16px;
}

body.dashboard-5 .bento-center-card {
  border: 2px dashed #f1f3f9;
  border-radius: var(--bento-radius);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
  position: relative;
  overflow: hidden;
}

body.dashboard-5 .bento-center-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

body.dashboard-5 .bento-center-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.15);
  transform: translateY(-4px) scale(1.01);
}

/* ============================================
   AJUSTES PARA CARDS DE CUMPLE Y TRAYECTORIA
   DENTRO DEL LAYOUT BENTO
   ============================================ */

.bento-col-cumple #cardHappy,
.bento-col-trayectoria #cardTray {
  height: 100%;
}

/* Contenedor interno para asegurar altura completa */
.bento-col-cumple .card-body-inner,
.bento-col-trayectoria .card-body-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Responsive ajustes finales */
@media (max-width: 1200px) {
  .bento-row {
    max-width: 100%;
  }
}