body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  background: #fff6e6;
}

/* ========================= */
/* LOGIN                    */
/* ========================= */
.login-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.login-bg {
  display: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 40px 35px 35px;
  background: rgba(20, 20, 40, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  text-align: center;
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  margin-bottom: 15px;
}

.login-logo img {
  width: 160px;
  height: auto;
}

.login-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.login-subtitle {
  margin: 4px 0 25px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* INPUTS */
.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  pointer-events: none;
}

.input-group:focus-within .input-icon {
  color: #f06c00;
}

.login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px 13px 44px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.12);
  font-size: 14px;
  font-family: inherit;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  transition: all 0.2s ease;
  outline: none;
}

.login-form input:focus {
  border-color: #f06c00;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(240,108,0,0.15);
}

.login-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* BOTON */
.login-form button {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #f06c00, #e85d00);
  box-shadow: 0 4px 15px rgba(240,108,0,0.35);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.login-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,108,0,0.45);
}

.login-form button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(240,108,0,0.3);
}

.login-form button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* SPINNER */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ERROR */
.login-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  padding: 10px 14px;
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 10px;
  color: #ff8a80;
  font-size: 13px;
  font-weight: 500;
  animation: errorShake 0.4s ease;
}

.login-error svg {
  flex-shrink: 0;
  stroke: #ff8a80;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* FOOTER */
.login-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  z-index: 1;
  letter-spacing: 0.5px;
}

/* ========================= */
/* DASHBOARD                 */
/* ========================= */
.dash-body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  background: #f0f2f5;
  min-height: 100vh;
}

.dash-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 15px;
}

/* HEADER */
.dash-header {
  background: linear-gradient(135deg, #f06c00, #e85d00);
  border-radius: 20px;
  padding: 25px 20px 20px;
  margin-bottom: 15px;
  color: white;
  position: relative;
}

.dash-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dash-logo {
  width: 80px;
  border-radius: 10px;
}

.dash-logout {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  width: auto;
}

.dash-logout:hover {
  background: rgba(255,255,255,0.3);
}

.dash-greeting {
  margin: 15px 0 2px;
  font-size: 22px;
  font-weight: 700;
}

.dash-sub {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

/* CARDS */
.dash-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* INFO ROW */
.dash-info-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.dash-info-icon {
  width: 40px;
  height: 40px;
  background: #fff6e6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f06c00;
  flex-shrink: 0;
}

.dash-info-label {
  display: block;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dash-info-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-top: 2px;
}

/* VACACIONES */
.dash-vac-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dash-vac-icon {
  color: #f06c00;
}

.dash-vac-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.dash-barra {
  height: 12px;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.dash-progreso {
  height: 100%;
  background: linear-gradient(90deg, #f06c00, #ff9a3c);
  border-radius: 12px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-vac-info {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.dash-vac-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-vac-num {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.dash-vac-num.highlight {
  color: #f06c00;
}

.dash-vac-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
}

/* BOTONES */
.dash-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  width: 100%;
}

.dash-btn-primary {
  background: linear-gradient(135deg, #f06c00, #e85d00);
  color: white;
  box-shadow: 0 4px 15px rgba(240,108,0,0.3);
}

.dash-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,108,0,0.4);
}

.dash-btn-secondary {
  background: white;
  color: #f06c00;
  border: 2px solid #f06c00;
}

.dash-btn-secondary:hover {
  background: #fff6e6;
}

.dash-btn-success {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.dash-btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.dash-btn-vacation {
  background: linear-gradient(135deg, #6c5ce7, #5a4bd1);
  color: white;
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.dash-btn-vacation:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.4);
}

.dash-btn-admin {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.dash-btn-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

/* ========================= */
/* MODAL VACACIONES          */
/* ========================= */
.vac-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.vac-modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s ease;
}

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

.vac-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.vac-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.vac-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.vac-modal-close:hover {
  color: #333;
}

.vac-modal-body {
  padding: 20px;
}

.vac-disponibles-info {
  display: flex;
  justify-content: space-around;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.vac-disp-item {
  text-align: center;
}

.vac-disp-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #6c5ce7;
}

.vac-disp-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
}

.vac-form-group {
  margin-bottom: 15px;
}

.vac-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.vac-form-group input,
.vac-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.vac-form-group input:focus,
.vac-form-group textarea:focus {
  outline: none;
  border-color: #6c5ce7;
}

.vac-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.vac-dias-info {
  background: #f0ebff;
  color: #6c5ce7;
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}

.vac-dias-num {
  font-size: 20px;
  font-weight: 700;
}

.vac-btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6c5ce7, #5a4bd1);
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
  transition: all 0.2s;
}

.vac-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.4);
}

.vac-msg-envio {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.vac-msg-info {
  background: #f0f4ff;
  color: #3a4fbd;
  border: 1px solid #d3ddfa;
}

.vac-msg-success {
  background: #e9f9ef;
  color: #1e7a45;
  border: 1px solid #bfe8cf;
}

.vac-msg-error {
  background: #fdeceb;
  color: #c0392b;
  border: 1px solid #f5c6c3;
}

/* ========================= */
/* HISTORIAL SOLICITUDES     */
/* ========================= */
.vac-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.vac-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.vac-card-icon {
  color: #6c5ce7;
}

.vac-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.vac-empty {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px;
}

.vac-solicitud-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.vac-solicitud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vac-solicitud-fechas {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.vac-solicitud-dias {
  background: #6c5ce7;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.vac-solicitud-motivo {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.vac-solicitud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vac-solicitud-fecha {
  font-size: 11px;
  color: #999;
}

.vac-solicitud-estado {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.vac-estado-pendiente {
  background: #fff3cd;
  color: #856404;
}

.vac-estado-aprobada {
  background: #d4edda;
  color: #155724;
}

.vac-estado-rechazada {
  background: #f8d7da;
  color: #721c24;
}

.vac-solicitud-obs {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #666;
}

/* ========================= */
/* ADMIN                     */
/* ========================= */
.admin-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.admin-filters select {
  flex: 1;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  cursor: pointer;
}

.admin-filters .dash-btn-secondary {
  width: auto;
  padding: 12px 20px;
}

.admin-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.admin-stat-item {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.admin-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #6c5ce7;
}

.admin-stat-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
}

.admin-solicitud-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.admin-solicitud-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.admin-solicitud-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #333;
}

.admin-solicitud-cedula {
  display: block;
  font-size: 12px;
  color: #999;
}

.admin-solicitud-body {
  margin-bottom: 12px;
}

.admin-solicitud-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.admin-solicitud-motivo {
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
}

.admin-acciones {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.admin-obs-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.admin-obs-input:focus {
  outline: none;
  border-color: #6c5ce7;
}

.admin-btn-group {
  display: flex;
  gap: 10px;
}

.admin-btn-approve,
.admin-btn-reject {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-approve {
  background: #28a745;
  color: white;
}

.admin-btn-approve:hover {
  background: #218838;
}

.admin-btn-reject {
  background: #dc3545;
  color: white;
}

.admin-btn-reject:hover {
  background: #c82333;
}

.admin-respuesta-info {
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 15px;
}

/* VISOR */
#visor {
  display: none;
  width: 100%;
  height: 500px;
  margin-top: 15px;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
}

/* CALENDARIO ADMIN */
.admin-calendar {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.admin-cal-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.admin-cal-sub {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #6c5ce7;
  margin-bottom: 14px;
  text-transform: capitalize;
}

.admin-cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fafafa;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-cal-nav:hover {
  background: #6c5ce7;
  color: white;
  border-color: #6c5ce7;
}

.admin-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.admin-cal-dia {
  min-height: 64px;
  border-radius: 8px;
  padding: 5px;
  background: #f8f9fb;
  border: 1px solid #eef0f5;
  position: relative;
}

.admin-cal-dia-nombre {
  min-height: auto;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  background: transparent;
  border: none;
  padding: 4px 0;
}

.admin-cal-dia-vacio {
  background: transparent;
  border: none;
}

.admin-cal-dia-hoy {
  border: 2px solid #6c5ce7;
}

.admin-cal-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-bottom: 3px;
}

.admin-cal-chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-cal-chip {
  display: block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cal-chip-aprobada {
  background: #e9f9ef;
  color: #1e7a45;
}

.admin-cal-chip-pendiente {
  background: #fff6e0;
  color: #b07d00;
}

.admin-cal-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
  color: #666;
}

.admin-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.admin-cal-dot-aprobada {
  background: #1e7a45;
}

.admin-cal-dot-pendiente {
  background: #b07d00;
}

@media (max-width: 480px) {
  .admin-cal-dia {
    min-height: 48px;
  }
  .admin-cal-chip {
    font-size: 8px;
  }
}

/* CIERRE POR INACTIVIDAD */
.sesion-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sesion-aviso {
  background: white;
  border-radius: 16px;
  padding: 28px 34px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.sesion-aviso-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.sesion-aviso-texto {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sesion-aviso-texto b {
  color: #d63031;
}

#sesionQuedarse {
  background: #6c5ce7;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#sesionQuedarse:hover {
  background: #5b4bce;
}

/* FOOTER */
.dash-footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.5px;
}

/* MOBILE */
@media (max-width: 480px) {
  .dash-container {
    padding: 10px;
  }

  .dash-header {
    padding: 20px 15px 18px;
  }

  .dash-greeting {
    font-size: 20px;
  }

  .dash-card {
    padding: 15px;
  }

  #visor {
    height: 400px;
  }

  .admin-stats {
    flex-direction: column;
  }

  .admin-solicitud-dates {
    grid-template-columns: 1fr;
  }
}
