/* ReserveHub – Estilos completos
 Conserva TODOS los selectores originales + añade auth/toast/mis-reservas */

:root {
  --primary: #1a5c38;
  --primary-hover: #124027;
  --bg-light: #f4f7f4;
  --text-dark: #1a2e1a;
  --text-muted: #5a7060;
  --border: #d4e4d4;
  --danger: #c0392b;
  --danger-hover: #a93226;
  --success: #1a7a3c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

/* fondo con imagen difuminada fija */
body {
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/imgs/1.jpg");
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  filter: blur(3px) brightness(0.5);
  transform: scale(1.06);
  z-index: -1;
}

main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*Header*/
.navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  color: var(--primary);
  font-size: 1.5rem;
}

.btn-text {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
}
.btn-text:hover {
  color: var(--primary);
}

/* Info del usuario logado en el nav */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.nav-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}
.btn-nav-secondary {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s;
}
.btn-nav-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-nav-danger {
  background: none;
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--danger);
  transition: all 0.2s;
}
.btn-nav-danger:hover {
  background: var(--danger);
  color: #fff;
}

/*Categorías y fila de filtros*/
.filtros-section {
  margin: 2rem 0;
}

.filtros-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.filtros-row h2 {
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* botones de toggle vista */
.vista-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 3px;
  backdrop-filter: blur(6px);
}
.btn-vista {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: all 0.2s;
}
.btn-vista:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.btn-vista.activa {
  background: #fff;
  color: var(--primary);
}
.categorias-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.categorias-scroll::-webkit-scrollbar {
  display: none;
}
.btn-categoria {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.btn-categoria.activa {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/*Grid de Recursos*/
.grid-recursos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
/* vista lista: una sola columna */
.grid-recursos.vista-lista {
  grid-template-columns: 1fr;
}

/*Tarjetas*/
.card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeIn 0.4s ease forwards;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.25);
}

/* imagen de cabecera (modo grid) */
.card-img {
  height: 135px;
  margin: -1.5rem -1.5rem 1rem;
  background-size: cover;
  background-position: center;
  border-radius: 0.75rem 0.75rem 0 0;
  flex-shrink: 0;
}

.card-img-proyector {
  background-position: 50% 35% !important;
  background-size: cover !important;
}

/* el cuerpo de texto ocupa todo el espacio disponible para empujar el botón al fondo */
.card-body {
  flex: 1;
}

/*Vista lista*/
.grid-recursos.vista-lista .card {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  min-height: 110px;
}
.grid-recursos.vista-lista .card-img {
  width: 155px;
  min-width: 155px;
  height: auto;
  border-radius: 0.75rem 0 0 0.75rem;
  margin: 0;
}
.grid-recursos.vista-lista .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
}
.grid-recursos.vista-lista .card-desc {
  margin: 0.25rem 0 0;
}
.grid-recursos.vista-lista .btn-card {
  width: auto;
  white-space: nowrap;
  padding: 0.6rem 1.5rem;
  margin: 0 1.25rem 0 0;
  align-self: center;
  flex-shrink: 0;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}
/* badges sin color: solo texto muted */
.badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.btn-card {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.75rem;
}
.btn-card:not([disabled]) {
  background-color: #edf6f0;
  color: var(--primary);
}
.btn-card:not([disabled]):hover {
  background-color: var(--primary);
  color: #fff;
}
.btn-card[disabled] {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(6px);
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal.oculto {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.modal.oculto .modal-content {
  transform: translateY(20px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.recurso-info-box {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/*Formularios*/
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 92, 56, 0.2);
}
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-primary:disabled {
  background: #7abf97;
  cursor: not-allowed;
}

/*Modal Auth (login / registro)*/
.modal-content.wide {
  max-width: 440px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.auth-tab.activa {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-tab:hover:not(.activa) {
  color: var(--text-dark);
}

.auth-panel {
  display: none;
}
.auth-panel.activo {
  display: block;
}

.form-msg {
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
}
.form-msg-img {
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
}
.form-msg.error {
  background: #fee2e2;
  color: #b91c1c;
  display: flex;
}
.form-msg.success {
  background: #dcfce7;
  color: #15803d;
  display: flex;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

/*Toast notifications*/
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  min-width: 220px;
  max-width: 340px;
}
.toast.success {
  background: var(--success);
}
.toast.error {
  background: var(--danger);
}
.toast.info {
  background: var(--primary);
}

/*Botón de perfil en navbar*/
.btn-perfil {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-perfil:hover {
  border-color: var(--primary);
  background: #edf6f0;
  color: var(--primary);
}

.perfil-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/*Modal perfil*/
.modal-content.perfil-content {
  max-width: 420px;
}

.perfil-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0 0.5rem;
}
.perfil-avatar-grande {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.perfil-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.perfil-email {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.perfil-rol {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.perfil-reservas-section {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.perfil-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.perfil-reservas-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}
.perfil-reserva-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-light);
  border-radius: 0.4rem;
}
.perfil-reserva-info {
  flex: 1;
  min-width: 0;
}
.perfil-reserva-nombre {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perfil-reserva-detalle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.perfil-reserva-estado-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.btn-cancelar-reserva {
  background: none;
  border: 1px solid var(--danger);
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-cancelar-reserva:hover {
  background: var(--danger);
  color: #fff;
}
.btn-cancelar-reserva:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*Footer*/
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/*Timeline de disponibilidad*/
.timeline-container {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.timeline-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.timeline-legend {
  display: flex;
  gap: 0.75rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.libre-dot {
  background: #fff;
  border: 1px solid var(--border);
}
.ocupado-dot {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.timeline-slots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.slot {
  padding: 0.35rem 0.15rem;
  border-radius: 0.2rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
  white-space: nowrap;
  user-select: none;
  line-height: 1.2;
}
.slot.libre {
  background: #fff;
  border-color: var(--border);
  color: var(--text-dark);
}
.slot.libre:hover {
  background: #edf6f0;
  border-color: var(--primary);
  color: var(--primary);
}
.slot.ocupado {
  background: #e2e8f0;
  border-color: transparent;
  color: #94a3b8;
  cursor: not-allowed;
  font-style: italic;
}
.slot.slot-start {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 0.2rem 0rem 0rem 0.2rem;
}
.slot.slot-end {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 0rem 0.2rem 0.2rem 0rem;
}
.slot.slot-start.slot-end {
  border-radius: 0.2rem;
}
.slot.en-rango {
  background: #c8e6d4;
  border-color: #7abf97;
  color: var(--primary);
  border-radius: 0;
}
.timeline-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.1em;
  transition: color 0.2s;
}
.timeline-hint.confirmado {
  color: var(--success);
  font-weight: 600;
}
.timeline-loading {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* hace el modal-content scrolleable si la pantalla es pequeña */
.modal-content {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

/*Animaciones*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Panel de administración
   Reutiliza los tokens de diseño generales (colores, tipografía,
   radios, formularios) pero con una cabecera oscura y acentos propios
   para diferenciarse claramente de la web pública.
   ============================================================ */

/* fondo sólido en vez de la foto difuminada del sitio público */
.admin-body::before {
  display: none;
}
.admin-body {
  background: var(--bg-light);
}

.navbar-admin {
  background: var(--text-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.logo-admin-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-admin {
  color: #fff;
}
.badge-admin {
  background: #fff;
  color: var(--primary-hover);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.nav-user-name-admin {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.btn-nav-secondary-admin {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-nav-secondary-admin:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-nav-danger-admin {
  border-color: #ff8a80;
  color: #ff8a80;
}
.btn-nav-danger-admin:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.admin-main {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.admin-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.admin-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

/* filtros del listado de reservas */
.admin-filtros-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-filtros-row .form-group {
  margin-bottom: 0;
  min-width: 180px;
}
.admin-btn-limpiar {
  height: 2.4rem;
}

/* acciones masivas sobre las reservas filtradas */
.admin-bulk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.admin-bulk-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-reservas-grouped {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-sala-grupo {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
}
.admin-sala-titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.admin-sala-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}

.admin-tabla-wrap {
  overflow-x: auto;
}
.admin-tabla-reservas {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-tabla-reservas th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.admin-tabla-reservas td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-estado-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
}
.admin-estado-pendiente {
  background: #fef3c7;
  color: #b45309;
}
.admin-estado-confirmada {
  background: #dcfce7;
  color: #15803d;
}
.admin-estado-cancelada {
  background: #fde2e1;
  color: var(--danger);
}

/* acciones de admin sobre cada reserva: aprobar / cancelar / borrar */
.admin-tabla-reservas td.admin-acciones-cell {
  white-space: normal;
}
.admin-acciones-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-btn-accion {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.admin-btn-aprobar {
  border-color: var(--success);
  color: var(--success);
}
.admin-btn-aprobar:hover {
  background: var(--success);
  color: #fff;
}
.admin-btn-cancelar {
  border-color: #b45309;
  color: #b45309;
}
.admin-btn-cancelar:hover {
  background: #b45309;
  color: #fff;
}
.admin-btn-borrar {
  border-color: var(--danger);
  color: var(--danger);
}
.admin-btn-borrar:hover {
  background: var(--danger);
  color: #fff;
}

/* formulario de creación de sala */
.admin-form-sala {
  max-width: auto;
}
.admin-form-imagen {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-img-preview {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-light);
  flex-shrink: 0;
}
.admin-form-imagen-input {
  flex: 1;
  margin-bottom: 0;
}
.admin-form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .admin-form-imagen {
    flex-direction: column;
  }
  .admin-img-preview {
    width: 100%;
    height: 140px;
  }
}
