:root {
  --color-primary: #005f73;
  --color-secondary: #00b4d8;
  --font-family: 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
}

h1, h2, h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

header.header,
.login-container,
.form-container,
.content,
.admin-container,
.dashboard-container {
  padding: 1rem;
}

.login-container,
.form-container {
  max-width: 450px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-login,
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--color-secondary);
}

.dias-lista {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.dia-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-group,
.form-group-inline {
  display: flex;
  flex-direction: column;
}

.form-group-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
}

.grid-2x3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .grid-2x3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modal {
  /* para modales clásicos, si los usas */
}

dialog {
  border: none;
  border-radius: 8px;
  padding: 1rem;
}

dialog::backdrop {
  background: rgba(0,0,0,0.5);
}

.header img {
  height: 40px;
  margin-right: 1rem;
}
/* ===================================
   VISUALIZAR_CLASES (gym style)
   =================================== */

/* Body ya usa Poppins en tu estilo global */
.content.visualizar {
  padding: 1rem;
}

/* Barrita de días */
.days-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}
.days-nav::-webkit-scrollbar {
  height: 6px;
}
.days-nav::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.day-button {
  flex: 0 0 auto;
  background: #e6f7f9;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  color: #002b5b;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.day-button:hover {
  background: #00c4cc;
  color: #fff;
}
.day-button.active {
  background: #00c4cc;
  color: #fff;
}

/* Listado de clases: grid responsive */
.class-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #555;
}

/* Tarjeta de clase */
.class-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.class-card h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #002b5b;
}
.class-card p {
  margin-bottom: 1rem;
  color: #444;
}
.btn-primary {
  align-self: start;
  background: #00c4cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #009fa9;
}

/* Modal (ya tenías algo similar) */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}
.modal-content h2 {
  color: #002b5b;
  margin-bottom: 1rem;
}
.modal-content .close-modal {
  margin-top: 1rem;
  background: #002b5b;
  color: #fff;
}
.status-banner {
  text-align: center;
  padding: 0.5rem;
  font-weight: 500;
}
.status-banner.online {
  background: #e6f7f9;
  color: #005f73;
}
.status-banner.offline {
  background: #fdecea;
  color: #9b1c1c;
}