:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --accent: #2b6ef6;
  --muted: #6b7280;
  --danger: #ef4444;
  --shadow: 0 6px 18px rgba(13,38,76,0.08);
  --radius: 10px;
  --gap: 12px;
  --cell-size: 120px;
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --white: #ffffff;
  --text: #1f2937;
}

/* RESET */
* {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  padding: 0;
}

/* GENERAL LAYOUT */
body {
  background: linear-gradient(180deg, #f7f9fc, #dbeafe);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER - GENERAL */
header.main-header {
  background: linear-gradient(90deg, #2b6ef6, #1e40af);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
}
header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}
header .logo span {
  font-size: 20px;
  letter-spacing: 0.3px;
}
.hamburger {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.hamburger div {
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu {
  position: absolute;
  right: 20px;
  top: 58px;
  background: #fff;
  color: #1e3a8a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  min-width: 180px;
  overflow: hidden;
  z-index: 20;
}
.menu.active {
  display: flex;
}
.menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 500;
  transition: background 0.2s;
}
.menu a:hover {
  background: #eff6ff;
}

/* APP WRAPPER */
.app {
  width: 100%;
  max-width: 98%;
  margin: 30px auto;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CALENDAR & MODALS */
h1 { font-size: 20px; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 13px; }
header.subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.controls { display: flex; gap: 8px; align-items: center; }
.btn { background: var(--card); border: 1px solid #e6e9f0; padding: 8px 12px; border-radius: 8px; cursor: pointer; box-shadow: var(--shadow); background: #0059b3;
  color: white;}
.btn.primary { background: var(--accent); color: #fff; border: none; }
.calendar { background: linear-gradient(180deg,#fff,#f8fafc); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tbjornada { background: linear-gradient(180deg,#fff,#f8fafc); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 6px; }
.weekday { font-weight: 600; color: var(--muted); text-align: center; padding: 6px 0; }
.grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.cell { min-height: var(--cell-size); background: linear-gradient(180deg,#fff,#fbfdff); border-radius: 8px; padding: 8px; position: relative; overflow: auto; border: 1px solid #eef2ff; display: flex; flex-direction: column; gap: 6px; }
.cell.other-month { opacity: .35; }
.cell .daynum { font-weight: 700; }
.cell .items { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.slot { display: flex; align-items: center; justify-content: space-between; padding: 6px; background: #f8fafc; border-radius: 6px; font-size: 13px; border: 1px dashed transparent; }
.open-day-btn { position: absolute; left: 8px; bottom: 8px; background: transparent; border: none; color: var(--accent); font-weight: 700; cursor: pointer; }

/* MODALS */
.overlay { position: fixed; inset: 0; background: rgba(8,12,20,0.45); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 60; }
.overlay.active { display: flex; }
.modal { background: var(--card); border-radius: 12px; max-width: 860px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(11,22,48,0.45); padding: 18px; position: relative; }
.modal .close { position: absolute; right: 12px; top: 12px; border: none; background: transparent; font-size: 18px; cursor: pointer; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab-btn { padding: 8px 12px; border-radius: 8px; border: 1px solid transparent; background: #f5f7ff; cursor: pointer; }
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-content { background: #f8fafc; padding: 12px; border-radius: 8px; border: 1px solid #eef2ff; min-height: 140px; }
.slots-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.slot-item { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid #eef2ff; box-shadow: var(--shadow); }
.plus-btn { padding: 6px 10px; border-radius: 8px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
.user-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 8px; }
.user-card { padding: 10px; border-radius: 8px; border: 1px solid #e6eefc; cursor: pointer; background: #fff; }
.user-card:hover { transform: translateY(-3px); transition: all .12s; }
.remove-btn { background: transparent; border: 1px solid #ffd6d6; color: var(--danger); padding: 6px; border-radius: 8px; cursor: pointer; }
.user-card .mini {font-size:0.8em;}
/* LOGIN PAGE SPECIFIC */
body.login-page {
  background: linear-gradient(180deg, #0f172a, #1e3a8a);
  color: #fff;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-container {
  background: var(--white);
  color: #000;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}

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

.login-header img {
  width: 60px;
  margin-bottom: 10px;
}

h1 {
  font-size: 22px;
  margin: 0;
  color: var(--primary);
}

.form-group {
  text-align: left;
  margin-bottom: 16px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* AJUSTE INPUTS */
.login-container input {
  width: calc(95% - 24px);
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-size: 15px;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}

input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

.login-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 10px;
}

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

.footer {
  margin-top: 16px;
  font-size: 14px;
}

.footer a {
  color: var(--primary-light);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --cell-size: 100px; }
  .modal { max-width: 680px; }
}

@media (max-width: 600px) {
  :root { --cell-size: 86px; }
  .grid { gap: 6px; }
  .modal { padding: 12px; }
  .tab-btn { padding: 6px 8px; }
  header.subhead { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .login-container { padding: 20px; margin: 0 20px; }
}

.flash-messages {
  margin: 20px auto;
  text-align: center;
  width: 80%;
  max-width: 400px;
}

.alert {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: bold;
  animation: fadeIn 0.5s ease;
}

.alert.success {
  background-color: #4CAF50;
  color: white;
}

.alert.warning {
  background-color: #cff741;
  color: rgb(14, 13, 13);
}

.alert.error {
  background-color: #f44336;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==== HEADER: Usuario + Menú hamburguesa ==== */
.user-menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Clase principal del usuario */
.UserLogin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centra verticalmente si es necesario */
  color: white;
  text-align: center; /* asegura que el texto esté centrado */
  font-size: 1em;
  padding-bottom: 0.5em;
}

/* Clase contenedora del usuario */
.UserLoginContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ===== Responsivo ===== */
@media (max-width: 600px) {
  .UserLogin {
    font-size: 0.4em;
  }

  .UserLoginContainer {
    gap: 4px;
  }
}

@media (max-width: 400px) {
  .UserLogin {
    font-size: 0.5em;
  }

  .UserLoginContainer {
    gap: 3px;
  }
}




/* Ajuste del menú hamburguesa dentro del nuevo bloque */
.hamburger {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger div {
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menú desplegable */
.menu {
  position: absolute;
  right: 20px;
  top: 80px; /* desplazado hacia abajo por el nuevo bloque */
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  min-width: 180px;
  overflow: hidden;
  z-index: 20;
}

.menu.active {
  display: flex;
}

.menu a {
  padding: 12px 16px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: background 0.2s;
}

.menu a:hover {
  background: #eff6ff;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
  .user-info svg {
    width: 22px;
    height: 22px;
  }

  .user-info span {
    font-size: 0.7em;
  }

  .menu {
    top: 70px;
    min-width: 150px;
  }
}

/* ===============================
   FORMULARIO DE USUARIO / JORNADA
   =============================== */
.user-info-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-size: 0.8em;
}

.main-box {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-box h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 14px;
}

.info-box {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
  border-bottom: none;
}

.action-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

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

@media (max-width: 480px) {
  .main-box {
    margin: 10px;
    padding: 16px;
  }
  .info-row { font-size: 14px; }
}

.highlighted-day { background-color: rgba(131, 243, 26, 0.5); transition: background-color .25s ease; }


/*.............................*/

.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

#jornadaTable {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

#jornadaTable th,
#jornadaTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}

#jornadaTable th {
  background-color: #f4f4f4;
  color: #333;
  font-weight: bold;
}

@media (max-width: 768px) {
  #jornadaTable th,
  #jornadaTable td {
    padding: 6px;
    font-size: 12px;
  }
}

/* Contenedor de filtros */
.filtro-container {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Espacio entre elementos */
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Inputs de fecha */
.filtro-container input[type="date"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem; /* Bordes redondeados */
  font-size: 0.9rem;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.table-container input[type="text"] {
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem; /* Bordes redondeados */
  font-size: 0.9rem;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.6em;
  margin-top: 0.4em;
}

.table-container input[type="text"]:focus {
  outline: none;
  border-color: #4f46e5; /* color principal de la app */
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.filtro-container input[type="date"]:focus {
  outline: none;
  border-color: #4f46e5; /* color principal de la app */
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Botón de filtrar */
.filtro-container button {
  padding: 0.5rem 1rem;
  background-color: #4f46e5; /* color principal de la app */
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-left: 0.5em;
}

.filtro-container button:hover {
  background-color: #4338ca;
}

.filtro-container button:active {
  transform: scale(0.97);
}

/* Etiquetas "Desde"/"Hasta" opcionales */
.filtro-container label {
  font-size: 0.9rem;
  font-weight: 500;
}


/*....*/

/* ==== Tabs principales (aislados de modales) ==== */
.main-tab-container {
  width: 95%;
  margin: 20px auto;
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.main-tab-header {
  display: flex;
  border-bottom: 2px solid #ddd;
  background: #f5f5f5;
}

.main-tab-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  transition: background 0.3s, color 0.3s;
}

.main-tab-button:hover {
  background: #e0e0e0;
}

.main-tab-button.active {
  background: #fff;
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

.main-tab-content {
  display: none;
  padding: 15px;
}



.main-tab-content.active {
  display: block;
}


/* TAB TUrnos */


/* === Estilos para el calendario tipo tabla === */
.calendar-container {
  width: 95%;
  margin: 30px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow-x: auto;
  padding-bottom: 15px;
}

.month-controls {
  display: flex;
  align-items:flex-end;
  gap: 5px;
  justify-content: right;
  margin-bottom: 10px;
  margin-right: 3em;

}

.month-controls button {
  border: none;
  background: #0059b3;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.month-controls input[type="month"] {
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  /* background-color: #0059b3; 
  color: white;*/
  justify-content: center;
  text-transform: capitalize;
  font-weight: 600;  
}

.month-controls input[type="month"]::-webkit-inner-spin-button,
.month-controls input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
}

table {
  width: 95%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
  min-width: 800px;
  
}

thead {
  background: #f3f6fa;
  color: #333;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}

th, td {
  padding: 6px;
  border: 1px solid #ddd;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 600;
  text-align: left;
  z-index: 3;
  min-width: 160px;
}

tbody tr:nth-child(even) {
  background: #f9fbfd;
}

.cell-turno {
  border-radius: 6px;
  padding: 4px;
  color: white;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 0.75rem;
}

.turno-M { background: #007bff; }
.turno-T { background: #28a745; }
.turno-N { background: #6f42c1; }
.turno-L { background: #adb5bd; }

.cell-turno.Mixta {
  background: #ffeb3b;  /* amarillo */
  color: #000;          /* texto negro para contraste */
  font-weight: 700;
  border: 1px solid #d4b800;
  font-size: 0.65em;
}






.cell-turno:hover {
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s;
}

.muted {
  color: #777;
  font-size: 0.7em;
}

.today {
  border: 2px solid #ff9800;
  border-radius: 6px;
}

.weekend {
  background: #f0f4f8;
}

@media (max-width: 900px) {
  th, td {
    padding: 4px;
    font-size: 0.7rem;
  }

  .cell-turno {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  th:first-child,
  td:first-child {
    min-width: 140px;
  }
}


/*----*/
.asistencia-container {
  width: 95%;
  max-width: 800px;
  margin: 30px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.asistencia-container h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 6px;
}

.asistencia-container p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 20px;
}

.user-listAsist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.user-item:hover {
  transform: translateY(-2px);
}

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

.user-name {
  font-weight: 600;
  color: var(--text);
  
}

.user-turno {
  font-size: 0.9rem;
  color: var(--muted);
}

.confirm-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.25s ease;
}

.confirm-btn:hover {
  background: var(--primary);
}

.confirmado {
  background: #16a34a !important;
  cursor: default;
}

@media (max-width: 600px) {
  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .confirm-btn {
    width: 100%;
    text-align: center;
  }
}
/* Contenedor de filtros */
.filtro-containerAsist {
  display: flex;
  align-items: center; /* alinea inputs y botón verticalmente */
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 2em;
  width: 95%;       /* ocupa el 75% del contenedor padre */
  margin-left: auto;
  margin-right: auto; /* centrado horizontal */
}

/* Agrupar label + input */
.filtro-containerAsist .filtro-item {
  display: flex;
  flex-direction: column; /* label encima del input */
  flex: 1; /* permite que los inputs crezcan uniformemente */
}

/* Inputs de fecha */
.filtro-containerAsist input[type="date"] {
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Botón de filtrar */
.filtro-containerAsist button {
  padding: 8px 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  align-self: flex-end; /* alinea el botón al final de la fila */
}

.filtro-containerAsist button:hover {
  background: var(--primary-light);
}

/* ===== Responsive: móviles ===== */
@media (max-width: 600px) {
  .filtro-containerAsist {
    flex-direction: column; /* todo en columna */
    align-items: stretch;   /* ocupa todo el ancho disponible */
    width: 50%;             /* un poco más ancho en móviles */
  }

  .filtro-containerAsist button {
    align-self: stretch; /* botón ocupa todo el ancho */
  }
}
 /* NUEVO EMPLEADO */

     .empleado-container {
      width: 95%;
      max-width: 900px;
      margin: 30px auto;
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 24px;
    }

    .empleado-container h2 {
      text-align: center;
      color: var(--primary);
      margin-bottom: 16px;
    }

    /* Botón desplegable */
    .toggle-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      background: var(--accent);
      color: white;
      font-weight: 600;
      padding: 12px;
      border: none;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.3s;
      margin-top: 20px;
      position: relative;
      font-size: 1rem;
    }

    .toggle-btn:hover {
      background: var(--primary);
    }

    .toggle-btn .arrow {
      position: absolute;
      right: 16px;
      font-size: 1.2em;
      transition: transform 0.3s ease;
    }

    .toggle-btn.open .arrow {
      transform: rotate(180deg);
    }

    /* Panel oculto */
    .form-panel {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }
    .form-panel.active {
      max-height: 800px;
    }

    form#addEmpleadoForm {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 16px;
      align-items: flex-end;
      justify-content: center;
    }

    form#addEmpleadoForm input,
    form#addEmpleadoForm select {
      flex: 1 1 200px;
      padding: 8px 10px;
      border-radius: var(--radius);
      border: 1px solid #d1d5db;
      font-size: 14px;
    }

    form#addEmpleadoForm button {
      padding: 10px 14px;
      background: var(--accent);
      color: white;
      border: none;
      border-radius: var(--radius);
      cursor: pointer;
      font-weight: 600;
      transition: background 0.3s;
    }

    form#addEmpleadoForm button:hover {
      background: var(--primary);
    }

    .empleado-lista {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 20px;
    }

    .empleado-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8fafc;
      padding: 12px 16px;
      border-radius: var(--radius);
      border: 1px solid #e2e8f0;
      box-shadow: var(--shadow);
      transition: transform 0.15s ease;
    }

    .empleado-item:hover {
      transform: translateY(-2px);
    }

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

    .empleado-nombre {
      font-weight: 600;
      color: var(--text);
    }

    .empleado-puesto {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .edit-btn {
      background: var(--accent);
      color: white;
      border: none;
      border-radius: var(--radius);
      padding: 8px 12px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.25s;
    }

    

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

    .HashAct-btn {
      background:#16a34a;
      color: white;
      border: none;
      border-radius: var(--radius);
      padding: 4px 6px;
      font-weight: 400;
      cursor: pointer;
      transition: background 0.25s;
      font-size: 11px;
      margin-top: 5px;
    }

    .HashAct-btn:hover {
      background: var(--primary);
    }
    




    .modal form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 15px;
    }

    .modal .form-group label {
      font-weight: 600;
      font-size: 0.9em;
      color: var(--text);
      margin-bottom: 3px;
    }

    .modal input, .modal select {
      width: 100%;
      padding: 8px 10px;
      border-radius: var(--radius);
      border: 1px solid #d1d5db;
      font-size: 14px;
    }

    /* MODAL RESTABLECER CONTRASEÑA */
.ResetPWDOverlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,20,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.ResetPWDOverlay.active {
  display: flex;
}

.ResetPWDModal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.ResetPWDClose {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.ResetPWDForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ResetPWDForm label {
  font-weight: 600;
  font-size: 0.9em;
  color: var(--text);
  text-align: left;
}

.ResetPWDForm input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.ResetPWDForm input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

.ResetPWDSubmit {
  padding: 12px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.ResetPWDSubmit:hover {
  background: var(--primary);
}

@media (max-width: 480px) {
  .ResetPWDModal {
    padding: 20px;
  }
}

/* LINK PARA ABRIR EL MODAL */
.ResetPWDLink {
  color: var(--primary-light);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
}

.ResetPWDLink:hover {
  color: var(--primary);
}

/* Contenedor específico del formulario ActvCta */
.ActvCtaContainer {
  max-width: 380px;
  margin: 30px auto;
  padding: 30px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ActvCtaContainer h3 {
  font-style: italic;
}

.ActvCtaContainer h4 {
  font-weight:normal;
  padding-bottom: 5px;
  
}

.ActvCtaContainer h5 {
  font-weight:normal; 
  padding-bottom: 5px;
}
/* Título y subtítulo */
.ActvCtaTitle {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.8em;
}

.ActvCtaSubtitle {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1.2em;
  font-weight:bold;
  
}

.ActvCtaForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ActvCtaForm label {
  font-weight: 600; 
  font-size: 0.9em;
  color: var(--text);
  text-align: left;
  padding-top:0.8 em ;

}

.ActvCtaForm input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.ActvCtaForm input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

.ActvCtaSubmit {
  padding: 12px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.ActvCtaSubmit:hover {
  background: var(--primary);
}

  .modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .switch-container {
    align-self: flex-end;
    margin-top: 0.7em;
  }

  /* Estilo del interruptor */
  .switch {
    position: relative;
    display: inline-block;
    width: 105px;
    height: 30px;
    font-family: sans-serif;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center; /* 👈 por defecto texto a la izquierda */
  padding: 0 10px; /* un poco de espacio lateral */
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 30px;
}

.slider.active-text-right {
  justify-content: flex-start; /* 👈 mueve texto a la derecha */
}
  .slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: #4caf50;
  }

  input:checked + .slider:before {
    transform: translateX(75px);
  }


/* EditPerfil

/* FORMULARIO */
#EditDatPerForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
}

/* BOTONES */
.EditDatPerActions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  background: var(--accent);
  border: none;
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.3s ease;
}

.action-btn:hover { background: var(--primary); }

.cancel-btn {
  flex: 1;
  padding: 12px;
  background: #ccc;
  border: none;
  color: #333;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.cancel-btn:hover { background: #bdbdbd; }