* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.auth-container {
  background: #fafaf9; 
  padding: 0 0 1.8rem 0; 
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 420px;
  overflow: hidden; /* Mantiene la imagen dentro de las esquinas redondeadas superiores */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-header {
  width: 100%;
  margin-bottom: 1.2rem;
  display: block;
}

.auth-logo-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tabs, 
.auth-form, 
.divider, 
.btn-google, 
.message, 
.auth-footer {
  margin-left: 2rem !important;
  margin-right: 2rem !important;
}

.auth-logo-full {
  width: 100%;
  max-width: 240px; 
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-logo {
  width: 52px;              
  height: 52px;             
  border-radius: 50%;       
  object-fit: cover;        
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}

.auth-container h2 i {
  color: #6366f1;
  margin: 0 4px;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  gap: 8px;
}

.tabs button {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  color: #64748b;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.tabs button.active {
  color: #1b4965;
  border-bottom: 2px solid #1b4965;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.active {
  display: flex;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

.input-group input {
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: #1b4965;
  box-shadow: 0 0 0 4px rgba(27, 73, 101, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #1b4965 0%, #0f334a 100%);
  box-shadow: 0 4px 12px rgba(27, 73, 101, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f334a 0%, #0a2333 100%);
  box-shadow: 0 6px 16px rgba(27, 73, 101, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
}

.divider {
  text-align: center;
  margin: 1.25rem 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  background: #fff;
  padding: 0 0.5rem;
  position: relative;
  color: #9ca3af;
  font-size: 0.875rem;
}

.btn-google {
  width: calc(100% - 4rem) !important; 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-google:hover {
  background-color: #f8fafc;
  border-color: #1b4965;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.auth-footer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-footer p {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0;
}

.auth-footer p strong {
  color: #334155;
}

.auth-footer a {
  color: #1b4965;
}

.auth-footer a:hover {
  color: #0f334a;
}

.message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Layout General del Dashboard */
.navbar {
  background-color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.card h3 {
  margin-bottom: 1.2rem;
  color: #1f2937;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.hidden {
  display: none !important;
}

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

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

.btn-secondary {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #dc2626;
}

select, input[type="date"], input[type="time"] {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

/* Tarjetas de Citas */
.citas-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow-x: auto; 
  margin-top: 15px;
}

.cita-card {
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 8px;
  background: #fafafa;
  position: relative;
}

.cita-card.confirmada { border-left: 4px solid #16a34a; }
.cita-card.cancelada { border-left: 4px solid #dc2626; opacity: 0.7; }
.cita-card.completada { border-left: 4px solid #2563eb; }

.cita-card h4 {
  font-size: 1.05rem;
  color: #111827;
  margin-bottom: 0.4rem;
}

.cita-card p {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.cita-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-danger:hover { background: #fca5a5; }

.btn-warning { background: #fef3c7; color: #92400e; }
.btn-warning:hover { background: #fde68a; }

.btn-success { background: #dcfce7; color: #166534; }
.btn-success:hover { background: #86efac; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR FIJO CORREGIDO */
.sidebar {
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-icon {
  font-size: 1.8rem;
  color: #6366f1;
}

.brand-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.local-badge {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e293b;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.role-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #818cf8;
  font-weight: 600;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sidebar-nav li.active a, .sidebar-nav a:hover {
  background-color: #6366f1;
  color: white;
}

.sidebar-footer {
  margin-top: auto;
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.btn-logout:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* MAIN CONTENT CON COMPENSACIÓN DE MARGEN IZQUIERDO */
.main-content {
  flex: 1;
  margin-left: 280px; /* Ancho exacto del sidebar fijo */
  padding: 32px;
  min-height: 100vh;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-header p {
  color: #64748b;
  font-size: 0.9rem;
}

/* CONTENEDOR EN GRILLA (CONFIGURADO A 4 COLUMNAS EN DESKTOP) */
.grid-container,
.cards-container, 
.dashboard-grid, 
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group {
  margin-bottom: 16px;
}

.input-row {
  display: flex;
  gap: 16px;
}

.input-row .input-group {
  flex: 1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #475569;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}

input:focus, select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dias-selector-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dia-checkbox {
  flex: 1;
  min-width: 40px;
  text-align: center;
}

.dia-checkbox input {
  display: none;
}

.dia-checkbox span {
  display: block;
  padding: 8px 0;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
}

.dia-checkbox input:checked + span {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #4f46e5;
}

.hidden {
  display: none !important;
}

/* Indicadores de estado de local */
.local-activo {
  border-left: 4px solid #16a34a !important;
}

.local-inactivo {
  border-left: 4px solid #dc2626 !important;
  background-color: #fef2f2 !important;
}

.badge-success {
  background-color: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Navegación y Subvistas Superadmin */
.sa-subview {
  width: 100%;
}

/* ==========================================
   ESTILOS DE TARJETAS INTERACTIVAS (CARD ACTION)
   ========================================== */

.card.card-action {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.card.card-action:hover {
  background-color: #f8fafc;
  border-color: #6366f1;
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
}

.card.card-action .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: #f1f5f9;
  color: #475569;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card.card-action:hover .card-icon {
  background-color: #6366f1;
  color: #ffffff;
}

.card.card-action h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.card.card-action:hover h3 {
  color: #4338ca;
}

.card.card-action h3 i {
  font-size: 0.95em;
  color: #64748b;
  transition: color 0.3s ease;
}

.card.card-action:hover h3 i {
  color: #6366f1;
}

.card.card-action p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Vista de Filas / Tabla para Locales */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.table-custom th, 
.table-custom td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table-custom th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.table-custom tbody tr:hover {
  background-color: #f1f5f9;
}

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* Subvistas para Administrador y Cliente */
.admin-subview, .cli-subview {
  width: 100%;
}

.table-citas {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table-citas thead tr {
  background-color: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
}

.table-citas th, 
.table-citas td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.table-citas tbody tr:hover {
  background-color: #f9fafb;
}

/* Badges de Estado */
.badge-estado {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-estado.confirmada {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-estado.completada {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-estado.cancelada {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* ==========================================
   ADAPTACIONES RESPONSIVAS (MÓVIL, TABLET Y DESKTOP)
   ========================================== */

/* Laptops Medianas / PANTALLAS HASTA 1200PX */
@media (max-width: 1200px) {
  .grid-container,
  .cards-container, 
  .dashboard-grid, 
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets en Vertical / PANTALLAS HASTA 992PX */
@media (max-width: 992px) {
  .grid-container,
  .cards-container, 
  .dashboard-grid, 
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-layout {
    flex-direction: column;
  }

  /* Ajustes para móviles/tablets donde la barra no debe ser totalmente fija vertical para dar espacio al contenido */
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .sidebar-brand {
    margin-bottom: 16px;
    justify-content: space-between;
  }

  .user-profile-card {
    margin-bottom: 16px;
    padding: 10px 14px;
  }

  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-nav li {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }

  .sidebar-nav a {
    padding: 10px;
    font-size: 0.85rem;
    justify-content: flex-start;
  }

  .sidebar-footer {
    margin-top: 16px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }
}

/* Móviles Pequeños / PANTALLAS HASTA 600PX */
@media (max-width: 600px) {
  .grid-container,
  .cards-container, 
  .dashboard-grid, 
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card.card-action {
    padding: 20px 18px;
  }
  
  .card.card-action .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .card.card-action h3 {
    font-size: 1.05rem;
  }

  .sidebar-nav li {
    flex: 1 1 100%;
  }

  .input-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-container {
    margin: 16px;
    padding: 1.5rem 1rem;
    width: calc(100% - 32px);
  }

  .card {
    padding: 16px 12px;
  }

  .table-citas thead,
  .table-custom thead {
    display: none;
  }

  .table-citas tbody tr,
  .table-custom tbody tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #6366f1;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  }

  .table-citas td,
  .table-custom td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0 !important;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.875rem;
  }

  .table-citas td:last-child,
  .table-custom td:last-child {
    border-bottom: none;
    margin-top: 6px;
  }

  .table-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 4px;
  }

  .btn-sm {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
  }

  #sa-view-consultar .table-custom tbody tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }

  #sa-view-consultar .table-custom td {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: none !important;
  }

  #sa-view-consultar .table-custom td.col-nombre,
  #sa-view-consultar .table-custom td.col-direccion,
  #sa-view-consultar .table-custom td.col-admin,
  #sa-view-consultar .table-custom td.col-id {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    margin-right: 6px;
    margin-bottom: 4px;
  }

  #sa-view-consultar .table-custom td.col-nombre {
    font-size: 0.8rem;
    color: #0f172a;
    width: 100%;
  }

  #sa-view-consultar .table-custom td.col-direccion,
  #sa-view-consultar .table-custom td.col-admin {
    color: #475569;
  }

  #sa-view-consultar .table-custom td.col-id {
    font-size: 0.65rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 4px !important;
    border-radius: 3px;
  }

  #sa-view-consultar .table-custom td.col-estado {
    display: flex;
    align-items: center;
    order: 10;
    margin-top: 4px;
    padding-top: 4px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }

  #sa-view-consultar .table-custom td.col-estado .badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  #sa-view-consultar .table-custom td.col-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    order: 11;
    margin-left: auto;
    margin-top: 4px;
    padding-top: 4px !important;
  }

  #sa-view-consultar .table-custom td.col-acciones .btn-sm {
    padding: 3px 7px !important;
    font-size: 0.68rem !important;
    border-radius: 4px;
  }
}

/* Estilos para el Footer con Logo */
.auth-footer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-logo {
  height: 32px; /* Ajusta según el tamaño deseado */
  width: auto;
  object-fit: contain;
  margin-bottom: 0.2rem;
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.auth-footer p {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0;
}

.auth-footer p strong {
  color: #334155;
}

.auth-footer a {
  font-size: 0.825rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Estilos para opciones de hora inhabilitadas */
option.hora-inhabilitada {
  color: #94a3b8 !important;
  cursor: not-allowed;
}

/* Opción de horas reservadas/agotadas (Rojo claro) */
option.hora-reservada {
  background-color: #fee2e2 !important; /* Rojo claro */
  color: #991b1b !important;
}

/* Opción de horas que ya transcurrieron hoy (Gris claro) */
option.hora-pasada {
  background-color: #f1f5f9 !important; /* Gris claro */
  color: #64748b !important;
}

/* ==========================================
   CRÉDITOS KRYSWEB EN SIDEBAR
   ========================================== */
.sidebar-credits {
  margin-top: auto;
  padding: 1.25rem 1rem 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.credits-logo {
  max-width: 110px;
  height: auto;
  margin: 0 auto 0.5rem auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.credits-logo:hover {
  opacity: 1;
}

.credits-text {
  margin: 0 0 0.4rem 0;
  color: #cbd5e1;
}

.credits-text strong {
  color: #ffffff;
}

.credits-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
}

.credits-link a {
  color: #38bdf8; 
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
  transition: color 0.2s ease;
}

.credits-link a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

#tbody-horarios-dias input[type="time"] {
  padding: 6px 8px;
  font-size: 0.85rem;
}

#tbody-horarios-dias input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* ==========================================
   ESTILOS ESPECÍFICOS PARA VISTA SERVICIOS EN ADMIN
   ========================================== */

/* En PC / Pantallas grandes: 2 columnas asimétricas */
#admin-view-servicios .grid-container {
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}

/* En Tablets y Celulares (≤ 992px): Quedan uno sobre otro */
@media (max-width: 992px) {
  #admin-view-servicios .grid-container {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* ==========================================
   SERVICIOS REGISTRADOS EN MODO RESPONSIVO (TABLETS Y CELULARES)
   ========================================== */
@media (max-width: 992px) {
  /* Ocultar encabezados de la tabla en pantallas pequeñas */
  #admin-view-servicios .table-citas thead {
    display: none !important;
  }

  /* Filas en una sola línea (row) y sin borde azul lateral */
  #tbody-servicios-admin tr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-left: 1px solid #e2e8f0 !important;
    padding: 12px 14px !important;
    gap: 12px;
  }

  #tbody-servicios-admin td {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-bottom: none !important;
    padding: 0 !important;
  }

  #tbody-servicios-admin td:first-child {
    flex: 1;
    padding-right: 8px !important;
    word-break: break-word;
  }

  #tbody-servicios-admin td:nth-child(2) {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  #tbody-servicios-admin td:nth-child(3) {
    white-space: nowrap;
  }

  /* Botón Eliminar */
  #tbody-servicios-admin td:last-child {
    margin-top: 0 !important;
  }
}

/* ==========================================
   GESTIÓN DE EMPLEADOS EN MODO RESPONSIVO (TABLETS Y CELULARES)
   ========================================== */

/* En PC / Pantallas grandes: 2 columnas asimétricas */
#admin-view-empleados .grid-container {
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}

@media (max-width: 992px) {
  /* Apilar contenedores en una sola columna */
  #admin-view-empleados .grid-container {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Ocultar encabezados de la tabla en pantallas pequeñas */
  #admin-view-empleados .table-citas thead {
    display: none !important;
  }

  /* Filas en una sola línea horizontal (row) y sin borde azul lateral */
  #tbody-empleados-admin tr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-left: 1px solid #e2e8f0 !important; /* Borde gris sutil uniforme */
    padding: 12px 14px !important;
    gap: 10px;
  }

  /* Ajuste de celdas internas */
  #tbody-empleados-admin td {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-bottom: none !important;
    padding: 0 !important;
  }

  /* Nombre del empleado utiliza el espacio sobrante */
  #tbody-empleados-admin td:first-child {
    flex: 1;
    padding-right: 8px !important;
    word-break: break-word;
  }

  /* Cargo del empleado */
  #tbody-empleados-admin td:nth-child(2) {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Botones de acción alineados a la derecha */
  #tbody-empleados-admin td:last-child {
    margin-top: 0 !important;
  }
}

/* ==========================================
   CONFIGURACIÓN DE HORARIOS EN MODO RESPONSIVO (TABLETS Y CELULARES)
   ========================================== */
@media (max-width: 992px) {
  /* Ocultar encabezados de la tabla en pantallas pequeñas */
  #admin-view-horarios .table-custom thead {
    display: none !important;
  }

  /* Mostrar la fila completa en una sola línea (row) */
  #tbody-horarios-dias tr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    border-left: 1px solid #e2e8f0 !important; /* Borde gris sutil sin el borde azul */
  }

  /* Ajustar celdas internas en línea sin saltos ni bordes inferiores */
  #tbody-horarios-dias td {
    display: flex !important;
    align-items: center !important;
    border-bottom: none !important;
    padding: 0 !important;
  }

  /* Día (Columna 1) */
  #tbody-horarios-dias td:nth-child(1) {
    flex: 1.2;
    font-size: 0.85rem;
  }

  /* Checkbox Atiende (Columna 2) */
  #tbody-horarios-dias td:nth-child(2) {
    justify-content: center !important;
    width: auto !important;
  }

  /* Apertura (Columna 3) y Cierre (Columna 4) */
  #tbody-horarios-dias td:nth-child(3),
  #tbody-horarios-dias td:nth-child(4) {
    flex: 1;
  }

  /* Ajustar tamaño de inputs de hora en pantallas reducidas */
  #tbody-horarios-dias input[type="time"] {
    width: 100% !important;
    padding: 4px 6px !important;
    font-size: 0.8rem !important;
  }
}

/* ==========================================
   GESTIÓN DE CITAS ADMIN - 2 FILAS HORIZONTALES
   ========================================== */
@media (max-width: 992px) {
  /* Ocultar la cabecera de la tabla */
  #admin-view-citas .table-citas thead {
    display: none !important;
  }

  /* Ficha contenedora en Grilla de 12 columnas */
  #tbody-citas-admin tr {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    align-items: center !important;
    gap: 4px 4px !important;
    border: 1px solid #e2e8f0 !important; /* Borde gris uniforme sin color azul */
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  /* Estilo base ultra compacto para celdas */
  #tbody-citas-admin td {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  /* ------------------------------------------
     FILA 1 (Horizontal): Servicio | Cliente | Estilista
     ------------------------------------------ */
  #tbody-citas-admin td:nth-child(1) { /* Servicio */
    grid-column: span 4 !important;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #tbody-citas-admin td:nth-child(2) { /* Cliente */
    grid-column: span 4 !important;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #tbody-citas-admin td:nth-child(3) { /* Estilista / Especialista */
    grid-column: span 4 !important;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ------------------------------------------
     FILA 2 (Horizontal): Fecha | Hora | Estado | Acciones
     ------------------------------------------ */
  #tbody-citas-admin td:nth-child(4) { /* Fecha */
    grid-column: span 3 !important;
    color: #475569;
  }

  #tbody-citas-admin td:nth-child(5) { /* Hora (Ampliada a 3 columnas) */
    grid-column: span 3 !important;
    color: #475569;
    font-weight: 600;
    overflow: visible !important; /* Garantiza que 'hrs' o texto largo no se corte */
  }

  #tbody-citas-admin td:nth-child(6) { /* Estado */
    grid-column: span 3 !important;
    justify-content: center !important;
  }

  #tbody-citas-admin td:nth-child(7) { /* Acciones */
    grid-column: span 3 !important;
    justify-content: flex-end !important;
  }

  /* Ajustes de badges y botones */
  #tbody-citas-admin .badge-estado,
  #tbody-citas-admin .badge {
    font-size: 0.63rem !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
  }

  #tbody-citas-admin td.table-actions .btn-sm,
  #tbody-citas-admin td.table-actions .btn {
    padding: 2px 4px !important;
    font-size: 0.68rem !important;
  }

/* ==========================================
   MIS CITAS CLIENTE - FILA 1 CON TEXTO COMPLETO Y MULTILÍNEA
   ========================================== */

  /* Ocultar cabecera de la tabla */
  #cli-view-citas .table-citas thead {
    display: none !important;
  }

  /* Tarjeta contenedora estructurada en Grilla de 12 columnas */
  #tbody-citas-cliente tr {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    align-items: start !important; /* Alineación superior para absorber texto multilínea */
    gap: 6px 4px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  /* Estilo base para las celdas */
  #tbody-citas-cliente td {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.70rem !important;
    min-width: 0 !important;
  }

  /* ------------------------------------------
     FILA 1: Servicio | Valor | Local | Estilista (TEXTO VISIBLE SIN CORTE)
     ------------------------------------------ */
  #tbody-citas-cliente td:nth-child(1),
  #tbody-citas-cliente td:nth-child(2),
  #tbody-citas-cliente td:nth-child(3),
  #tbody-citas-cliente td:nth-child(4) {
    white-space: normal !important;      /* Permite saltos de línea si el texto es muy largo */
    word-break: break-word !important;   /* Evita que palabras súper largas desborden */
    overflow: visible !important;        /* Garantiza que no se oculte nada de texto */
    line-height: 1.15 !important;
  }

  #tbody-citas-cliente td:nth-child(1) { /* Servicio */
    grid-column: span 4 !important;
    font-weight: 700;
    color: #0f172a;
  }

  #tbody-citas-cliente td:nth-child(2) { /* Valor ($) */
    grid-column: span 2 !important;
    font-weight: 600;
  }

  #tbody-citas-cliente td:nth-child(3) { /* Peluquería / Local */
    grid-column: span 3 !important;
    color: #475569;
  }

  #tbody-citas-cliente td:nth-child(4) { /* Estilista / Especialista */
    grid-column: span 3 !important;
    color: #64748b;
  }

  /* ------------------------------------------
     FILA 2: Fecha | Hora | Estado | Acciones
     ------------------------------------------ */
  #tbody-citas-cliente td:nth-child(5),
  #tbody-citas-cliente td:nth-child(6),
  #tbody-citas-cliente td:nth-child(7),
  #tbody-citas-cliente td:nth-child(8) {
    white-space: nowrap !important; /* Mantiene la fila 2 uniforme en una línea */
    align-self: center !important;
  }

  #tbody-citas-cliente td:nth-child(5) { /* Fecha */
    grid-column: span 3 !important;
    color: #475569;
  }

  #tbody-citas-cliente td:nth-child(6) { /* Hora */
    grid-column: span 3 !important;
    color: #475569;
    font-weight: 600;
  }

  #tbody-citas-cliente td:nth-child(7) { /* Estado */
    grid-column: span 3 !important;
    justify-content: center !important;
  }

  #tbody-citas-cliente td:nth-child(8) { /* Acciones */
    grid-column: span 3 !important;
    justify-content: flex-end !important;
  }

  /* Ajustes para badges e iconos */
  #tbody-citas-cliente .badge-estado,
  #tbody-citas-cliente .badge {
    font-size: 0.62rem !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
  }

  #tbody-citas-cliente i {
    margin-right: 2px !important;
    font-size: 0.68rem !important;
  }

  #tbody-citas-cliente td.table-actions .btn-sm {
    padding: 2px 5px !important;
    font-size: 0.65rem !important;
  }

  /* Fila 1: Servicio | Valor | Cliente | Estilista */
  #tbody-citas-admin td:nth-child(1) { /* Servicio */
    grid-column: span 3 !important;
    font-weight: 700;
    color: #0f172a;
  }

  #tbody-citas-admin td:nth-child(2) { /* Valor ($) */
    grid-column: span 2 !important;
    font-weight: 600;
  }

  #tbody-citas-admin td:nth-child(3) { /* Cliente */
    grid-column: span 4 !important;
    color: #334155;
  }

  #tbody-citas-admin td:nth-child(4) { /* Estilista */
    grid-column: span 3 !important;
    color: #64748b;
  }

  /* Fila 2: Fecha | Hora | Estado | Acciones */
  #tbody-citas-admin td:nth-child(5) { grid-column: span 3 !important; } /* Fecha */
  #tbody-citas-admin td:nth-child(6) { grid-column: span 3 !important; } /* Hora */
  #tbody-citas-admin td:nth-child(7) { grid-column: span 3 !important; } /* Estado */
  #tbody-citas-admin td:nth-child(8) { grid-column: span 3 !important; } /* Acciones */

}

/* ==========================================
   ESTILOS BASE BOTÓN HAMBURGUESA (ESCRITORIO)
   ========================================== */
.menu-toggle {
  display: none; /* Oculto en PC */
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA (TABLETS Y MÓVILES ≤ 992px)
   ========================================== */
@media (max-width: 992px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    left: 0;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .sidebar-brand {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Mostrar botón hamburguesa en pantallas pequeñas */
  .menu-toggle {
    display: flex;
  }

  /* Ocultar contenido secundario de la barra cuando está colapsado */
  .sidebar .user-profile-card,
  .sidebar .sidebar-nav,
  .sidebar .sidebar-footer {
    display: none;
  }

  /* ESTADO DESPLEGADO / ACTIVO */
  .sidebar.active {
    padding-bottom: 24px;
  }

  .sidebar.active .user-profile-card {
    display: flex;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .sidebar.active .sidebar-nav {
    display: block;
    margin-bottom: 16px;
  }

  .sidebar.active .sidebar-footer {
    display: block;
    margin-top: 16px;
  }

  /* Menú desplegable apilado */
  .sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .sidebar-nav li {
    flex: 1 1 100%;
  }

  .sidebar-nav a {
    padding: 12px 14px;
    font-size: 0.95rem;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }
}

/* Listado flotante responsivo para búsqueda de sucursales */
.custom-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  margin-top: 4px;
  -webkit-overflow-scrolling: touch; /* Desplazamiento suave en iOS */
}

.dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1e293b;
  transition: background-color 0.15s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:active,
.dropdown-item:hover {
  background-color: #f0fdf4;
  color: #16a34a;
}

.dropdown-item.empty {
  color: #94a3b8;
  text-align: center;
  font-style: italic;
  cursor: default;
  padding: 14px;
}

.hidden {
  display: none !important;
}

/* Contenedor principal de la marca */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 10px;
  gap: 8px;
  box-sizing: border-box;
}

/* Imagen del logo en escritorio */
.brand-img {
  width: auto;
  max-width: 160px;          /* Limitado en escritorios */
  max-height: 70px;          /* Evita que se expanda verticalmente */
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

/* 📱 Ajuste para Tablets (hasta 768px) */
@media (max-width: 768px) {
  .brand-logo {
    padding: 8px;
    gap: 6px;
  }

  .brand-img {
    max-width: 120px;       
    max-height: 50px;
    border-radius: 8px;
  }

  .local-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  /* Transformación de la tabla a visualización de tarjetas */
  #lista-todas-citas-sa .table-citas,
  #lista-mis-citas .table-citas,
  #lista-todas-citas .table-citas {
    display: block;
    width: 100%;
    border: none;
  }

  /* Ocultar el encabezado clásico de la tabla en pantallas pequeñas */
  #lista-todas-citas-sa .table-citas thead,
  #lista-mis-citas .table-citas thead,
  #lista-todas-citas .table-citas thead {
    display: none;
  }

  #lista-todas-citas-sa .table-citas tbody,
  #lista-mis-citas .table-citas tbody,
  #lista-todas-citas .table-citas tbody {
    display: block;
    width: 100%;
  }

  /* Cada fila (tr) se convierte en una tarjeta independiente */
  #lista-todas-citas-sa .table-citas tr,
  #lista-mis-citas .table-citas tr,
  #lista-todas-citas .table-citas tr {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  #lista-todas-citas-sa .table-citas tr:hover,
  #lista-mis-citas .table-citas tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  }

  /* Cada celda (td) se convierte en una fila interna dentro de la tarjeta */
  #lista-todas-citas-sa .table-citas td,
  #lista-mis-citas .table-citas td,
  #lista-todas-citas .table-citas td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.9rem;
    text-align: right;
  }

  /* Quitar el borde inferior al último elemento de la tarjeta */
  #lista-todas-citas-sa .table-citas td:last-child,
  #lista-mis-citas .table-citas td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Etiquetas automáticas a la izquierda en dispositivos móviles */
  #lista-todas-citas-sa .table-citas td:nth-child(1)::before { content: "Sucursal / Local:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(2)::before { content: "Servicio:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(3)::before { content: "Valor:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(4)::before { content: "Cliente:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(5)::before { content: "Especialista:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(6)::before { content: "Fecha:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(7)::before { content: "Hora:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(8)::before { content: "Estado:"; font-weight: 600; color: #64748b; text-align: left; }
  #lista-todas-citas-sa .table-citas td:nth-child(9)::before { content: "Acciones:"; font-weight: 600; color: #64748b; text-align: left; }

  /* Ajuste de contenedor de acciones al final de la tarjeta */
  #lista-todas-citas-sa .table-actions,
  #lista-mis-citas .table-actions {
    margin-top: 8px;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  /* Ajuste de badges y botones en móvil */
  .badge-estado {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
  }
}

/* 📲 Ajuste fino para Teléfonos Móviles (hasta 480px) */
@media (max-width: 480px) {
  .brand-img {
    max-width: 95px;         /* Compacto para móviles */
    max-height: 40px;
    border-radius: 6px;
  }

  .local-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
}

/* Layout y Tarjetas de Servicios */
#admin-view-servicios .grid-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

.card-nuevo-servicio, 
.card-servicios-registrados {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.card-header h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h3 i {
  color: #2563eb;
}

/* Campos de entrada */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-group label i {
  color: #64748b;
  font-size: 0.85rem;
}

.input-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Botón de envío */
.btn-block {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Ajustes Responsivos para Dispositivos Móviles */
@media (max-width: 992px) {
  #admin-view-servicios .grid-container {
    grid-template-columns: 1fr;
  }
}

