:root {
  --azul-oscuro: #0f1f3d;
  --azul-medio: #16305c;
  --dorado: #d4af37;
  --verde: #2ecc71;
  --rojo: #e74c3c;
  --amarillo: #f1c40f;
  --gris: #95a5a6;
}

body { background: #f4f6f9; font-family: 'Segoe UI', Arial, sans-serif; }

.sidebar {
  background: var(--azul-oscuro);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  overflow-x: auto;
  white-space: nowrap;
  z-index: 1000;
}
.sidebar .logo { display: flex; align-items: center; margin-right: 2rem; flex-shrink: 0; }
.sidebar .logo img { max-height: 68px; }
.sidebar a {
  display: inline-flex;
  align-items: center;
  color: #cfd8e3;
  text-decoration: none;
  padding: .7rem 1.2rem;
  font-size: 1.02rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  gap: .6rem;
}
.sidebar a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 1.15rem;
  transition: background .15s ease;
}
.sidebar a:hover { color: #fff; }
.sidebar a:hover i { background: var(--dorado); color: var(--azul-oscuro); }
.sidebar a.active { color: #fff; border-bottom: 3px solid var(--dorado); }
.sidebar a.active i { background: var(--dorado); color: var(--azul-oscuro); }
.contenido { margin-left: 0; margin-top: 112px; padding: 0 2rem 1.5rem; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: .9rem 1.5rem; border-radius: 8px; margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.card-resumen { border-radius: 10px; border: none; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.card-resumen .icono { width: 42px; height: 42px; border-radius: 8px; display:flex; align-items:center; justify-content:center; font-size:1.2rem; }

.login-wrapper { min-height: 100vh; display: flex; }
.login-lado-izq {
  flex: 1;
  position: relative;
  background:
    linear-gradient(rgba(15,31,61,.88), rgba(15,31,61,.88)),
    url('../img/fachada-hotel.png');
  background-size: cover;
  background-position: center;
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.login-lado-der { flex: 1; display: flex; align-items: center; justify-content: center; background: #eef1f5; }
.login-card { background: #fff; padding: 2.5rem; border-radius: 10px; width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.badge-disponible { background: var(--verde); }
.badge-ocupada { background: var(--rojo); }
.badge-limpieza { background: var(--amarillo); color: #333; }
.badge-mantenimiento { background: var(--gris); }

table td, table th { vertical-align: middle; }
.btn-accion { border: none; background: none; font-size: 1rem; }

.creador-foto {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 180px;
  margin: 0 auto;
  border-radius: 10px;
  border: 2px dashed #ccc;
  background: #f4f6f9;
  background-size: cover;
  background-position: center;
}

.creditos-contenedor {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.creditos-texto {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #fff;
  top: 100%;
  animation: subirCreditos 35s linear forwards;
}
.creditos-texto h2 { color: var(--dorado); font-weight: bold; margin-bottom: .3rem; }
.creditos-texto h3 { color: var(--dorado); font-weight: bold; }
.creditos-texto h4 { color: var(--dorado); margin-top: 2rem; margin-bottom: .5rem; font-size: 1.1rem; }
.creditos-texto p { margin-bottom: .3rem; }
.creditos-texto .subt { color: #cfd8e3; font-size: .9rem; }

@keyframes subirCreditos {
  0%   { top: 100%; }
  100% { top: -200%; }
}

@keyframes eeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes eePop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes eeCaer {
  from { top: -40px; transform: rotate(0deg); }
  to { top: 105vh; transform: rotate(360deg); }
}

html.modo-nocturno body {
  filter: brightness(0.82) sepia(0.12) saturate(0.9);
  transition: filter .4s ease;
}

.boton-modo-nocturno {
  background: rgba(255,255,255,.08);
  border: none;
  color: #cfd8e3;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-left: .5rem;
  cursor: pointer;
}
.boton-modo-nocturno:hover { background: var(--dorado); color: var(--azul-oscuro); }

.cargando-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  color: #8a94a6;
}
.cargando-spinner .spinner-border {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--azul-oscuro);
  margin-bottom: .6rem;
}

.mini-calendario {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: .72rem;
  text-align: center;
}
.mini-calendario .dia-nombre {
  font-weight: bold;
  color: #8a94a6;
  padding: 2px 0;
}
.dia-calendario {
  padding: 3px 0;
  border-radius: 4px;
  cursor: pointer;
}
.dia-calendario:hover {
  background: var(--dorado);
  color: var(--azul-oscuro);
  font-weight: bold;
}