/* ==============================
   TIPOGRAFÍA INTER
================================ */
@font-face {
  font-family: 'Inter';
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuOKfMZg.ttf);
}

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfMZg.ttf);
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  src: url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYMZg.ttf);
}

/* ==============================
   BASE
================================ */
body.login-body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #0c0f1a, #111827);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  letter-spacing: 0.2px;
}

.login-wrapper {
  width: 100%;
  padding: 40px 20px;
}

.login-container {
  max-width: 420px;
  margin: auto;
  text-align: center;
}

/* ==============================
   ANIMACIÓN ENTRADA
================================ */
.fade-in {
  animation: fadeInUp .8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   LOGO Y HEADER
================================ */
.login-logo img {
  max-width: 260px;
  margin-bottom: 20px;
  filter: drop-shadow(0 12px 30px rgba(250, 204, 21, .25));
}

.login-header h1 {
  font-weight: 600;
  margin-bottom: 4px;
}

.login-header p {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 30px;
}

/* ==============================
   CARD LOGIN
================================ */
.login-card {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .45);
}

.login-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* ==============================
   INPUTS
================================ */
.login-card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all .3s ease;
}

.login-card input::placeholder {
  color: #9ca3af;
}

.login-card input:focus {
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .35);
}

/* ==============================
   OPCIONES
================================ */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #facc15;
  /* dorado SOXPRIME */
  cursor: pointer;
}

.remember-me span {
  user-select: none;
}

.login-options a {
  color: #d1d5db;
  text-decoration: none;
}

.login-options a:hover {
  color: #facc15;
}

.login-header h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

/* ==============================
   BOTÓN LOGIN
================================ */
.login-card button[type="submit"] {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #111827;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.login-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(250, 204, 21, .45);
}

/* ==============================
   SOCIAL LOGIN
================================ */
.social-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  font-size: 12px;
  color: #9ca3af;
}

.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .15);
}

.social-divider span {
  padding: 0 12px;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .03);
  color: #e5e7eb;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s ease;
}

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

.btn-social:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.btn-social.google:hover {
  border-color: #ea4335;
}

.btn-social.microsoft:hover {
  border-color: #2563eb;
}

.btn-social.apple:hover {
  border-color: #ffffff;
}

/* ==============================
   FOOTER
================================ */
.login-footer {
  margin-top: 25px;
  font-size: 12px;
  color: #6b7280;
}


/* ==============================
   SELECCIONA EMPRESA
================================ */

.empresa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.empresa-card {
  background: rgba(255, 255, 255, .05);
  border: none;
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  text-align: center;
}

.empresa-card img {
  max-width: 90px;
  margin-bottom: 10px;
}

.empresa-card span {
  display: block;
  font-weight: 600;
}

.empresa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(250, 204, 21, .25);
}

.estado-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.estado-verde {
  background-color: #198754;
}

.estado-rojo {
  background-color: #dc3545;
}

.estado-azul {
  background-color: #0d6efd;
}

.estado-amarillo {
  background-color: #ffc107;
}

/* ================= BASE ================= */
.content-modern {
  background: #f3f5f9;
  min-height: calc(100vh - 70px);
  font-family: "Inter", system-ui, sans-serif;
}

/* ================= HERO ================= */
.hero-panel {
  background: linear-gradient(135deg, #1f3c88, #0d1b3f);
  border-radius: 20px;
  padding: 28px 32px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.hero-subtitle {
  margin: 4px 0 0;
  opacity: .85;
}

/* Botón hero */
.btn-hero {
  background: #fff;
  color: #1f3c88;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

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

/* ================= TOOLBAR ================= */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  flex-wrap: wrap;
  gap: 12px;
}

/* FILTROS */
.toolbar-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* BOTONES FILTRO */
.toolbar-chip {
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
}

.toolbar-chip.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* ================= DATA PANEL ================= */
.data-panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

/* Header */
.data-table thead th {
  background: #0f172a;
  color: #cbd5f5;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 14px 12px;
  text-align: center;
}

/* Body */
.data-table tbody td {
  padding: 12px;
  font-size: .8rem;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* Loader */
.loading-cell {
  padding: 60px;
  text-align: center;
  color: #6b7280;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #1f3c88;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* CONTROLES DERECHA */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* TOTAL */
.toolbar-info {
  font-size: .85rem;
  color: #6c757d;
  white-space: nowrap;
}

/* SELECT */
.toolbar-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #6c757d;
}

.toolbar-select select {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  font-size: .8rem;
}

/* PAGINACIÓN */
.toolbar-pagination .pagination {
  margin: 0;
}

.toolbar-pagination .page-link {
  border-radius: 8px;
  font-size: .8rem;
}

.weather-icon-sm {
  width: 48px;
}

.clima-temp {
  font-size: 1.9rem;
  line-height: 1;
}

.weather-card {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.weather-app {
  background: linear-gradient(160deg, #032a6e, #6fa8ff);
  color: #fff;
}

/* CONTENEDOR */
.calendar-card {
  padding: 1rem;
  background: #ffffff;
}

/* FUENTE Y LIMPIEZA */
.fc {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* HEADER */
.fc-toolbar-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.fc-toolbar {
  margin-bottom: 1rem;
}

/* BOTONES */
.fc-button {
  background: #f1f5f9 !important;
  border: none !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.8rem;
}

.fc-button:hover {
  background: #e2e8f0 !important;
}

.fc-button-active {
  background: #0e2558 !important;
  color: #fff !important;
}

/* ===== WEATHER CARD MÁS GRANDE ===== */
.weather-card {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.2rem 1.2rem;
}

.clima-temp {
  font-size: 2.2rem;
  /* más grande */
  font-weight: 700;
  line-height: 1.1;
}

.weather-icon {
  width: 65px;
  /* más grande */
  height: 65px;
  margin-bottom: 0.3rem;
}

.weather-card small,
.weather-card .opacity-75 {
  font-size: 0.85rem;
}

.weather-card .row.small {
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.weather-card hr {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0.7rem 0;
}

/* ===== HORAS MÁS GRANDES ===== */
.clima-hora {
  min-width: 95px;
  /* más ancho */
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 6px;
  /* más padding */
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.clima-hora:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.clima-hora img {
  width: 38px;
  /* más grande */
  margin: 2px 0;
}

.clima-hora .hora {
  font-size: 12px;
  /* más grande */
  opacity: 0.9;
  margin-bottom: 2px;
}

.clima-hora .temp {
  font-size: 15px;
  /* más grande */
  font-weight: 600;
  margin-bottom: 2px;
}

.clima-hora .extra {
  font-size: 11px;
  /* más grande */
  opacity: 0.75;
  line-height: 1.2;
}

/* Scroll horizontal */
#climaHoras::-webkit-scrollbar {
  height: 5px;
}

#climaHoras::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

/* DÍAS */
.fc-daygrid-day-number {
  font-size: 0.75rem;
  color: #64748b;
}

.fc-daygrid-day {
  transition: background 0.2s ease;
}

.fc-daygrid-day:hover {
  background: #f8fafc;
}

/* EVENTOS */
.fc-event {
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
}

/* FESTIVOS */
.fc-event-title {
  white-space: normal;
}

/* HOY */
.fc-day-today {
  background: #eff6ff !important;
}

.empresa-card {
  background-color: #0f0f0f;
  color: #fff;
}

.empresa-card .text-muted {
  color: #aaa !important;
}

/* === EMPRESA ACTIVA | TARJETA COMPLETA === */
.empresa-card {
  background-color: #000 !important;
  /* negro total */
  color: #fff !important;
}

/* Todo el texto dentro de la card en blanco */
.empresa-card * {
  color: #fff !important;
}

/* Ajuste fino para texto secundario */
.empresa-card .text-muted {
  color: #bfbfbf !important;
}

/* Logo visible y centrado */
.empresa-logo {
  height: 80px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;

  object-fit: contain;
  display: block;
  margin: 0 auto 12px;

  /* Para que los logos blancos se vean */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Extra: hace que logos blancos destaquen */
.empresa-logo {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.modal {
  overflow-y: auto !important;
}

.modal-dialog {
  margin: 1.75rem auto;
}

.modal-content {
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

.modal-body {
  overflow-y: auto;
}

/* ==============================
   TABLA MODERNA
================================ */

.table-modern {
border-collapse: separate;
border-spacing: 0;
font-size: .85rem;
}

.table-modern thead th {
background: #0f172a;
color: #cbd5f5;
font-size: .70rem;
text-transform: uppercase;
letter-spacing: .08em;
padding: 14px 12px;
text-align: center;
border: none;
}

.table-modern tbody td {
padding: 14px 12px;
border-bottom: 1px solid #eef2f7;
text-align: center;
}

.table-modern tbody tr {
transition: all .2s ease;
}

.table-modern tbody tr:hover {
background: #f8fafc;
transform: scale(1.002);
}

/* ==============================
   BOTONES TABLA
================================ */

.btn-table{
border:none;
background:#f1f5f9;
padding:6px 10px;
border-radius:8px;
cursor:pointer;
margin:0 3px;
transition:.2s;
}

.btn-table i{
width:16px;
height:16px;
}

.btn-edit:hover{
background:#e0f2fe;
color:#0284c7;
}

.btn-delete:hover{
background:#fee2e2;
color:#dc2626;
}

/* ==============================
   BOTON NUEVO USUARIO
================================ */

.btn-hero-action{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
border:none;
border-radius:10px;
padding:10px 18px;
color:white;
font-weight:600;
display:flex;
align-items:center;
gap:8px;
box-shadow:0 8px 18px rgba(37,99,235,.3);
transition:.25s;
}

.btn-hero-action:hover{
transform:translateY(-1px);
box-shadow:0 10px 25px rgba(37,99,235,.4);
}

/* =========================
MODAL MODERNO
========================= */

.modal-modern{
border:none;
border-radius:18px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,.25);
}

/* HEADER */

.modal-header-modern{
background:linear-gradient(135deg,#1f3c88,#0d1b3f);
color:white;
border:none;
padding:18px 22px;
}

.modal-title-wrap{
display:flex;
align-items:center;
gap:12px;
}

.modal-icon{
width:22px;
height:22px;
}

/* BODY */

.modal-body{
padding:24px;
}

/* INPUTS */

.input-modern{
border-radius:10px;
padding:10px 12px;
border:1px solid #e5e7eb;
transition:.2s;
}

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

/* FOOTER */

.modal-footer-modern{
border-top:1px solid #f1f5f9;
padding:16px 20px;
}

/* BOTON GUARDAR */

.btn-save{
display:flex;
align-items:center;
gap:6px;
border-radius:10px;
padding:8px 16px;
}