/* ============================================
   EMPYREAN — BASE / LAYOUT
   ============================================ */

body {
  font-family: "Poppins", sans-serif;
  background-image: url("../logoImagenes/fondo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  color: var(--text);
  padding: 20px 15px;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  transition: background 0.5s ease;
}
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

body.logged-in-bg {
  background-color: #faf7fa;
  background-image:
    radial-gradient(at 0% 0%, rgba(96, 32, 96, 0.06) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 200, 98, 0.08) 0%, transparent 50%);
}

/* ─── Pantallas principales ─────────────────── */
#auth-screen,
#app-screen,
#recovery-screen {
  display: none;
  max-width: 1050px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  min-height: 85vh;
  border: 1px solid #f9edf7;
  position: relative;
}
#auth-screen,
#recovery-screen {
  display: block;
  max-width: 420px;
  margin-top: 40px;
  padding: 40px 30px;
  min-height: auto;
}
#recovery-screen { display: none; }

/* ─── Header / Nav ──────────────────────────── */
.nav-header {
  background: linear-gradient(135deg, #ffffff 60%, #fdf4ff);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0e6f5;
  box-shadow: 0 2px 12px rgba(96, 32, 96, 0.04);
}
.logo-header-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}
.header-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(96, 32, 96, 0.25));
}

/* ─── Vistas de la app ──────────────────────── */
#view-agenda,
#view-lista,
#view-config {
  padding: 40px;
  box-sizing: border-box;
}
#view-agenda {
  gap: 50px;
  display: grid;
}
@media (min-width: 768px) {
  #view-agenda { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
@media (max-width: 768px) {
  #view-agenda, #view-lista, #view-config { padding: 20px; padding-bottom: 60px; }
  #view-agenda { display: block; gap: 20px; }
}

/* ─── Auth logo ─────────────────────────────── */
.auth-logo-large {
  display: block;
  width: 95%;
  max-width: 380px;
  height: auto;
  margin: 0 auto 20px;
}

/* ─── Responsive mobile pequeño ─────────────── */
@media (max-width: 450px) {
  .profile-bubble   { width: auto; left: 15px; right: 15px; }
  .add-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 15px;
  }
  .add-row input,
  .add-row select,
  .add-row button { width: 100% !important; height: 50px; border-radius: 14px; }
  .add-row input,
  .add-row select { background: #f5f5f5; }
  .service-item { flex-direction: row; align-items: center; padding: 10px 12px; gap: 6px; border-radius: 14px; }
  .service-item .service-info { font-size: 0.82rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .svc-controls   { width: auto; flex-shrink: 0; gap: 4px; }
  .btn-round      { width: 32px; height: 32px; font-size: 0.85rem; }
  .admin-card     { padding: 15px; }
  .header-logo-img { height: 50px; }
}

/* ─── Banner offline ────────────────────────── */
#offlineBanner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #f39c12;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
#offlineBanner::before { content: "📵"; font-size: 1rem; }
