:root {
  --primary: #B68A4C;
  --primary-light: #D6B98C;
  --accent: #B68A4C;

  --bg-main: #F7F1EA;
  --bg-card: #EFE5D8;
  --bg-soft: #FFFCF8;

  --text-main: #5E4A34;
  --text-secondary: #8A735A;
  --text-light: #ffffff;
}

/* ======== ESTILOS BASE ======== */
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-main);
  margin: 0;
  color: var(--text-main);

  /* Espacio para header fijo */
  padding-top: 80px;
}

/* ======== HEADER ======== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 80px;
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;

  /* Header fijo */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* ======== LOGO ======== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: bold;
  font-size: 1.3rem;
  white-space: nowrap;
  color: var(--text-light);
  text-decoration: none;
}

/* Imagen del logo */
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* ======== NAV ======== */
nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
}

nav a:hover {
  text-decoration: underline;
}

/* ======== LAYOUT GENERAL ======== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* ======== RESPONSIVE HEADER + HERO ======== */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .logo img {
    height: 36px;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}
/* ======== PERFIL ======== */
.profile {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ======== SERVICIOS ======== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service {
  display: flex;
  flex-direction: column;
}

.service h4 {
  margin: 0.5rem 0 0.3rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.service p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.service-img,
.section-img {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--primary-light);
  margin-bottom: 0.8rem;
}

/* ======== FORMULARIOS ======== */
label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

input,
select,
textarea {
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--primary-light);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
  background: var(--bg-soft);
  color: var(--text-main);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ======== FORM BUTTONS ======== */
.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-buttons .btn {
  flex: 1;
}

/* ======== RESPONSIVE PERFIL / SERVICIOS / FORM ======== */
@media (max-width: 768px) {

  /* PERFIL */
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar-img {
    width: 90px;
    height: 90px;
  }

  .title {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  /* SERVICIOS */
  .services {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service-img,
  .section-img {
    height: 180px;
  }

  /* FORMULARIOS */
  input,
  select,
  textarea {
    font-size: 1rem;
  }

  .form-buttons {
    flex-direction: column;
  }
}
/* ======== LOGIN ======== */
#loginSection {
  align-self: flex-start;
  margin-top: 0;
  width: 100%;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.8rem;
}

.toggle-password {
  position: absolute;
  right: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1;
}

/* ======== TEST ======== */
#test button {
  display: block;
  margin: 1rem auto 0 auto;
}

/* ======== MODALES ======== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(94, 74, 52, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem; /* 🔹 CLAVE móvil */
  z-index: 999;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal .slot {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  color: var(--text-main);
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  margin-top: auto;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Reset y base ===== */
body,
html {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER NAV ===== */
header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header a,
#usernameDisplay {
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
}

/* ===== CONTADOR ===== */
.counter {
  background: var(--bg-soft);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
}

/* ======== RESPONSIVE LOGIN / MODAL / HEADER ======== */
@media (max-width: 768px) {

  header {
    padding: 0 1rem;
  }

  header nav {
    gap: 0.8rem;
    font-size: 0.95rem;
  }

  .toggle-password {
    right: 0.5rem;
    font-size: 1.2rem;
  }

  .modal .slot {
    padding: 1.3rem;
  }
}
/* ===== Grid de productos ===== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Cada tarjeta */
.product-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 240px;
  min-height: 360px; /* 🔹 ya no fija */
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h4 {
  color: var(--primary);
  margin: 0.5rem 0;
}

.product-card p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.product-card .price {
  font-weight: bold;
  margin-top: 0.5rem;
  color: var(--text-main);
}

.product-card button {
  margin-top: auto;
}

/* ===== Header tienda ===== */
.tienda-header {
  text-align: center;
  background: var(--bg-soft);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.tienda-header .title {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tienda-header .welcome {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.tienda-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ===== Bloque cita ===== */
.cita-form-container .card {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cita-form-container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.cita-form-container .welcome {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.cita-form-container .subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 500;
}

.cita-form-container .cita-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Tarjetas de citas ===== */
.cita-card {
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cita-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cita-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.cita-card button.btn-eliminar {
  align-self: flex-end;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.cita-card button.btn-eliminar:hover {
  background: var(--primary-light);
}

.cita-card.historial {
  background: var(--bg-main);
}

.cita-card.historial p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.citas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* ===== Tablas ===== */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 600px; /* 🔹 clave móvil */
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid var(--primary-light);
}

thead {
  background-color: var(--bg-card);
}

tbody tr:nth-child(even) {
  background-color: var(--bg-soft);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .tienda-header .title {
    font-size: 1.5rem;
  }

  .tienda-header .welcome,
  .tienda-header .subtitle {
    font-size: 1rem;
  }

  .product-card {
    max-width: 100%;
  }

  .cita-form-container .card {
    padding: 1.5rem;
  }
}
/* ===== Botones generales ===== */
.btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  background-color: var(--primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Elimina botones con estilos inline viejos */
.btn[style*="background:#e76f51"],
.btn[style*="background:#e76f51"]:hover {
  background-color: var(--primary);
}

/* Botones en tablas */
.td-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap; /* 🔹 clave móvil */
}

/* ======== RESPONSIVO GENERAL ======== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* OJO: store-grid YA ES GRID, no flex */
  .store-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  input,
  select,
  textarea,
  .btn {
    font-size: 1rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cita-card {
    padding: 1rem;
  }

  .tienda-header {
    padding: 1rem;
  }

  .tienda-header .title {
    font-size: 1.4rem;
  }

  .tienda-header .welcome,
  .tienda-header .subtitle {
    font-size: 1rem;
  }

  .slot {
    width: 90%;
    padding: 1.25rem;
  }
}

/* ======== DASHBOARD BASE ======== */
body.dashboard {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-main);
  margin: 0;
  color: var(--text-main);
  min-height: 100vh;
}

/* ======== SIDEBAR ======== */
.sidebar {
  width: 220px;
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
}

/* ======== HEADER DASHBOARD ======== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dashboard-header h1 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
}

.dashboard-header .user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dashboard-header .user-info .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ======== MAIN CONTENT ======== */
.main-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* ======== DASHBOARD RESPONSIVE ======== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .sidebar nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dashboard-header {
    padding: 1rem;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header h1 {
    font-size: 1.2rem;
  }

  .main-content {
    padding: 1rem;
  }
}
/* ======== DASHBOARD CARDS ======== */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.dashboard-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}

.dashboard-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ======== TABLA DASHBOARD CONTENEDOR ======== */
.dashboard-table-wrapper {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  width: 100%;
  margin-bottom: 2rem;
  overflow-x: auto;
}

/* ======== TABLA DASHBOARD ======== */
table.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* 🔹 evita que se rompa */
}

table.dashboard-table th,
table.dashboard-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--primary-light);
  font-size: 0.9rem;
}

table.dashboard-table thead {
  background: var(--primary);
  color: var(--text-light);
}

table.dashboard-table tbody tr:hover {
  background: var(--bg-soft);
}

/* Botones en tablas */
.table-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 2px;
  transition: background 0.2s ease;
}

.table-btn.edit {
  background: var(--primary);
}
.table-btn.edit:hover {
  background: var(--primary-light);
}

.table-btn.delete {
  background: var(--accent);
}
.table-btn.delete:hover {
  filter: brightness(0.9);
}

/* ======== FORMULARIOS DASHBOARD ======== */
.dashboard-form {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dashboard-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dashboard-form input,
.dashboard-form select,
.dashboard-form textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--primary-light);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-soft);
  color: var(--text-main);
}

/* ======== DASHBOARD RESPONSIVE ======== */
@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr; /* 🔹 una card por fila */
  }

  .dashboard-card {
    padding: 1.2rem;
  }

  .dashboard-table-wrapper {
    padding: 0.75rem;
  }

  table.dashboard-table th,
  table.dashboard-table td {
    padding: 8px;
    font-size: 0.85rem;
  }

  .dashboard-form {
    padding: 1.2rem;
  }
}
/* ======== MODALES DASHBOARD ======== */
.modal-dashboard {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(94, 74, 52, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.modal-dashboard.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dashboard .slot {
  background: var(--bg-soft);
  padding: 1.8rem;
  border-radius: 14px;
  width: 92%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  color: var(--text-main);
  animation: modalUp 0.3s ease;
}

@keyframes modalUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======== DASHBOARD RESPONSIVE ======== */

/* Tablets */
@media (max-width: 1024px) {
  body.dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
  }

  .sidebar .logo {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .sidebar nav {
    display: flex;
    gap: 0.8rem;
  }

  .sidebar nav a {
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .main-content {
    padding: 1.2rem;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr); /* 🔹 tablets = 2 columnas */
  }
}

/* Móviles */
@media (max-width: 600px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .dashboard-header h1 {
    font-size: 1.25rem;
  }

  .sidebar {
    justify-content: flex-start;
    padding: 0.8rem;
  }

  .sidebar nav a {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }

  .dashboard-cards {
    grid-template-columns: 1fr; /* 🔹 móvil real */
  }

  .dashboard-form {
    padding: 1.1rem;
  }

  .dashboard-form input,
  .dashboard-form select,
  .dashboard-form textarea,
  .dashboard-form button {
    font-size: 0.9rem;
  }

  .modal-dashboard .slot {
    padding: 1.4rem;
  }
}
/* ====== ACCIONES EN TABLA DE CITAS ====== */
.tabla-acciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 110px;
}

.tabla-acciones .btn {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.15s ease;
}

.tabla-acciones .btn:hover {
  transform: translateY(-1px);
}

/* Botón Finalizar */
.btn-finalizar {
  background: var(--accent);
  color: var(--text-light);
}
.btn-finalizar:hover {
  filter: brightness(0.9);
}

/* Botón Actualizar Datos */
.btn-actualizar {
  background: var(--primary-light);
  color: var(--text-main);
}
.btn-actualizar:hover {
  filter: brightness(0.95);
}

/* Botón Crear Dieta */
.btn-dieta {
  background: var(--primary);
  color: var(--text-light);
}
.btn-dieta:hover {
  background: var(--primary-light);
}

/* ======== MODAL GENERAL (UNIFICADO) ======== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(94, 74, 52, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 14px;
  width: 92%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: modalUp 0.25s ease;
  color: var(--text-main);
}

@keyframes modalUp {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botón cerrar */
.close {
  float: right;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.close:hover {
  color: var(--text-main);
}

/* ======== TABLAS ======== */
#tablaCitas td.fecha,
#tablaCitas td.nombre {
  white-space: nowrap;
}

/* Usuarios */
#tablaUsuarios td.nombre-completo {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======== RESPONSIVE TABLA ACCIONES ======== */
@media (max-width: 600px) {
  .tabla-acciones {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .tabla-acciones .btn {
    width: auto;
    font-size: 0.75rem;
    padding: 5px 6px;
  }
}
/* --- ESTILO DEL LOGO (HEADER) --- */
.logo-img {
  height: 50px;           /* Altura ajustable de tu logo */
  width: auto;
  object-fit: contain;
  border-radius: 5px;     /* Opcional: suaviza esquinas del logo */
}

/* --- ESTILO DEL BOTÓN WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.whatsapp-float:hover,
.social-icon:hover {
  transform: scale(1.1);
}


.whatsapp-float img {
  width: 100%;            /* Si tu imagen ya es el logo de WA */
  height: 100%;
  object-fit: cover;
}

header nav a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
}

header nav a:hover {
  text-decoration: none;
  opacity: 0.85;
}