/* ==========================================================================
   main.css — Variables globales, reset y layout base
   ========================================================================== */

/* ── Custom Properties (Design Tokens) ── */
:root {
  --color-primary: #3f51b5;
  --color-primary-dark: #303f9f;
  --color-primary-light: #ffffff;
  --color-primary-shadow: rgba(0, 0, 0, 0.05);
  --color-background: #ffffff;
  --color-card-bg: transparent;
  --color-border: #e2e8f0;
  --color-text-main: #1e293b;
  --color-text-label: #64748b;
  --color-text-muted: #94a3b8;
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-input: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.04);
  
  --transition-base: 0.2s ease;
  --container-max-width: 1440px;
}

/* ── Base / Reset ── */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Escudo de Seguridad: oculto hasta que JS valide la sesión */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
}

body.auth-shield-pass {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  user-select: auto !important;
  /* Sin transición — aparece instantáneo */
}

/* ── Logo de fondo global ── */
body.auth-shield-pass::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 70vh);
  height: min(70vw, 70vh);
  background-image: url('../icons/app.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}



/* ── Layout ── */
.container-fluid {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .swal2-popup {
    margin-top: 70px !important;
    min-width: 90% !important;
    max-width: 95% !important;
  }
  
  .swal2-toast {
    min-width: 90% !important;
  }
}

/* Estilos específicos Desktop (PC - Vista Profesional y Espaciosa) */
@media (min-width: 768px) {
  body {
    background-color: #ffffff;
  }
  
  .content-wrapper {
    margin-top: 100px; /* Mayor espacio en desktop para aire visual */
    padding: 0 2rem 4rem;
  }
}





/* ==========================================================================
   SweetAlert2 Modal Position Fix
   ========================================================================== */

/* Asegurar que los modales aparezcan debajo del navbar */
.swal2-container {
  z-index: 9998 !important;
}

.swal2-popup {
  margin-top: 80px !important;
  min-width: 500px !important;
  font-size: 1rem !important;
}

/* Animaciones extremadamente rápidas - 1/4 de velocidad original */
.swal2-show {
  animation: swal2-show 0.02s !important;
}

.swal2-hide {
  animation: swal2-hide 0.0125s !important;
}

/* Toast notifications - rápidas y compactas */
.swal2-toast {
  min-width: 350px !important;
  padding: 12px 20px !important;
}

.swal2-toast .swal2-title {
  font-size: 0.95rem !important;
  margin: 0 !important;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
  .swal2-popup {
    margin-top: 70px !important;
    min-width: 90% !important;
    max-width: 95% !important;
  }
  
  .swal2-toast {
    min-width: 90% !important;
  }
}

/* Backdrop extremadamente rápido */
.swal2-container.swal2-backdrop-show {
  animation: swal2-backdrop-show 0.02s !important;
}

.swal2-container.swal2-backdrop-hide {
  animation: swal2-backdrop-hide 0.0125s !important;
}

