/* ==========================================================================
   TCC - Sistema de Diseño Global y Variables
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary-red: #d70000;
  --primary-red-hover: #b80000;
  --primary-red-active: #9c0000;
  --accent-gold: #838045;
  --bg-footer: #001b27;
  --bg-body-dark: #000000;
  --bg-light: #f4f6f8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #d70000;
  --badge-green-bg: #e6f7ef;
  --badge-green-text: #0d8a54;
  --badge-red-bg: #fde8e8;
  --badge-red-text: #e02424;
  --badge-blue-bg: #ebf5ff;
  --badge-blue-text: #1a56db;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-pill: 0 10px 25px rgba(215, 0, 0, 0.35);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Outfit', 'Roboto', Arial, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background-color: var(--bg-body-dark);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body.light-theme {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
}

/* Background overlay for dark pages (Login) */
.bg-image {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2 !important;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(1px);
  z-index: -1;
}

/* Modal Overlay & Backdrop */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Global Loading Spinner Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loading-screen.active {
  opacity: 1;
  visibility: visible;
}

.loading-screen img {
  width: 160px;
  max-width: 80%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.loading-screen p {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100000;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  opacity: 0;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification.success {
  background: #0d8a54;
}

.toast-notification.error {
  background: #d70000;
}
