/* =====================================================
   INICIO.CSS – Estilos del dashboard de bienvenida
   ===================================================== */

/* Fondo general del dashboard */
.dashboard-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-principal, #6b46c1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Cabecera con el mensaje de bienvenida */
.dashboard-header {
  text-align: center;
  padding: 30px 20px 10px;
  color: #4a3a6a;
}

.dashboard-header h2 {
  margin: 15px 0 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: #4a3a6a;
}

/* Rectángulo blanco que contiene día, hora y fecha */
.dashboard-datetime-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 15px 30px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(107, 70, 193, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-weight: 500;
  color: #4a3a6a;
}

/* Día de la semana (ej. Lunes) */
#dashboardDayName {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2ecc71;
  text-transform: capitalize;
}

/* Hora actual */
#dashboardTime {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: monospace;
  color: #6b46c1;
}

/* Fecha (ej. mayo 11, 2026) */
#dashboardDate {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6b5b8a;
}

/* Cuadrícula de tarjetas (escritorio) */
.dashboard-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(90px, 1fr);
  gap: 12px;
  padding: 15px 20px 25px;
  overflow-y: auto;
  align-content: start;
}

/* Tarjeta individual */
.dash-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 15px;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(107, 70, 193, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

/* Emoji de la tarjeta */
.dash-card .dash-emoji {
  font-size: 2.8rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Título de la tarjeta */
.dash-card .dash-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a3a6a;
  text-align: center;
}

/* ========== PLACEHOLDER (pantallas no implementadas) ========== */
.placeholder-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.placeholder-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.placeholder-box p {
  font-size: 1.2rem;
  color: #4a3a6a;
  margin-bottom: 20px;
}
.placeholder-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: #6b46c1;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.placeholder-btn:hover {
  background: #553b9e;
}

/* ========== Responsive para móviles ========== */
@media (max-width: 480px) {
  .dashboard-header h2 {
    font-size: 1.1rem;
  }

  .dashboard-datetime-box {
    padding: 12px 20px;
  }

  #dashboardDayName {
    font-size: 1.4rem;
  }

  #dashboardTime {
    font-size: 1.3rem;
  }

  #dashboardDate {
    font-size: 0.95rem;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 15px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .dash-card {
    width: 100%;
    height: auto;
    min-height: 80px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
    gap: 16px;
  }

  .dash-card .dash-emoji {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  .dash-card .dash-title {
    font-size: 1rem;
    text-align: left;
  }

  .dash-card .dash-emoji {
    font-size: 2.2rem;
  }

  .dash-card .dash-title {
    font-size: 0.75rem;
  }
}