@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Orbitron:wght@600;700;800;900&family=Chakra+Petch:ital,wght@0,600;0,700;1,700&family=Outfit:wght@500;700;800&family=Epilogue:wght@300;400;500;600;700;800;900&display=swap');

/* Racing Font Definitions (Horizon Drift & Russo One) */
@font-face {
    font-family: 'HorizonDrift';
    src: url('../RECURSOS/horizondrift-regular_fontlotdd20.otf') format('opentype'),
         url('RECURSOS/horizondrift-regular_fontlotdd20.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HorizonDriftOblique';
    src: url('../RECURSOS/horizondrift-oblique_fontlot293c.otf') format('opentype'),
         url('RECURSOS/horizondrift-oblique_fontlot293c.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Alias SlugsRacer to local HorizonDrift to eliminate 404 console errors */
@font-face {
    font-family: 'SlugsRacer';
    src: url('../RECURSOS/horizondrift-regular_fontlotdd20.otf') format('opentype'),
         url('RECURSOS/horizondrift-regular_fontlotdd20.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SlugsRacerItalic';
    src: url('../RECURSOS/horizondrift-oblique_fontlot293c.otf') format('opentype'),
         url('RECURSOS/horizondrift-oblique_fontlot293c.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Racing Typography for Brand & Block Section Headers */
.brand-title {
    font-family: 'Orbitron', 'Chakra Petch', 'Russo One', sans-serif !important;
    font-style: italic !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    -webkit-text-stroke: 1.5px #000000 !important;
    paint-order: stroke fill !important;
    text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 4px 14px rgba(0, 0, 0, 0.95);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.section-block-title,
.glass-card > h2,
.pdf-page-block h2,
.pdf-page-block h3,
.block-container h2 {
    font-family: 'Orbitron', 'Chakra Petch', 'Russo One', sans-serif !important;
    font-style: italic !important;
    letter-spacing: 0.06em !important;
    word-spacing: 0.1em !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1f1e29, #14131a) !important;
    border: 1px solid rgba(95, 72, 245, 0.45) !important;
    border-left: 6px solid #97c852 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75) !important;
    margin-bottom: 1.25rem !important;
    -webkit-text-stroke: 1.2px #000000 !important;
    paint-order: stroke fill !important;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 8px rgba(0, 0, 0, 0.9);
}

.font-horizon,
.font-racing,
.font-outfit {
    font-family: 'Orbitron', 'Chakra Petch', 'Russo One', sans-serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    -webkit-text-stroke: 1.2px #000000 !important;
    paint-order: stroke fill !important;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

:root {
  --rb-primary: #5f48f5;
  --rb-primary-light: #7b6bf9;
  --rb-primary-hover: #4b36db;
  --rb-bg-dark: #121118;
  --rb-bg-surface: #22212b;
  --rb-bg-card: #282736;
  --rb-bg-input: #14131a;
  --rb-text-white: #ffffff;
  --rb-text-muted: #f1f5f9;
  --rb-text-subtle: #cbd5e1;
  --rb-border: rgba(255, 255, 255, 0.25);
  
  --rb-neon-green: #97c852;
  --rb-status-bueno: #97c852;
  --rb-status-regular: #ffeb3b;
  --rb-status-defectuoso: #ff5252;
}

/* Base styles with High Contrast */
#particles-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -10 !important;
  pointer-events: none !important;
}

body {
  font-family: 'Epilogue', sans-serif;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 35%, #e2e8f0 70%, #94a3b8 100%) fixed !important;
  color: var(--rb-text-white);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Orbitron', 'Chakra Petch', 'Russo One', sans-serif !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 1.2px #000000 !important;
  paint-order: stroke fill !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--rb-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--rb-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rb-primary-hover);
}

::selection {
  background: var(--rb-primary);
  color: #ffffff;
}

/* High Contrast Utility Overrides for Tailwind classes */
.text-gray-400, .text-slate-400, .text-zinc-400, .text-neutral-400 {
  color: #cbd5e1 !important; /* Bright silver/slate for high readability */
}

.text-gray-500, .text-slate-500, .text-zinc-500, .text-neutral-500 {
  color: #e2e8f0 !important; /* High contrast light slate */
}

.text-gray-600, .text-slate-600 {
  color: #f1f5f9 !important;
}

.text-gray-300, .text-slate-300 {
  color: #f8fafc !important;
}

.text-gray-200, .text-slate-200 {
  color: #ffffff !important;
}

.text-neon-green {
  color: #97c852 !important;
}

/* Form Labels with High Contrast */
label {
  color: #f8fafc !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* Form Inputs with High Contrast */
input, select, textarea, .input-rb, .input-custom, .select-custom {
  background-color: #14131a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

input:focus, select:focus, textarea:focus, .input-rb:focus, .input-custom:focus {
  outline: none !important;
  border-color: #7b6bf9 !important;
  box-shadow: 0 0 0 3px rgba(123, 107, 249, 0.35) !important;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

/* Native select dropdown options background override */
select option {
  background-color: #1e1d24 !important;
  color: #ffffff !important;
  padding: 10px !important;
}

/* High Contrast Cards & Glass Containers */
.glass, .glass-card {
  background: #22212b !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(123, 107, 249, 0.7) !important;
}

/* Border overrides for Tailwind border utilities */
.border-gray-800, .border-gray-700, .border-slate-800, .border-slate-700, .border-zinc-800, .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Tables High Contrast */
table th {
  color: #ffffff !important;
  font-weight: 700 !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25) !important;
}

table td {
  color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

table tr:hover td {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Tab Contrast */
.step-active {
  background-color: #5f48f5 !important;
  color: #ffffff !important;
  border-color: #7b6bf9 !important;
  font-weight: 700 !important;
}

.step-inactive {
  background-color: #181722 !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.step-inactive:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* High Contrast Badges (Semi-transparent Status Background + Pure Black Text & Solid Border) */
.badge-bueno,
.badge-conforme {
  background-color: rgba(151, 200, 82, 0.18) !important;
  color: #000000 !important;
  border: 1.5px solid #97c852 !important;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 900 !important;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.badge-regular,
.badge-leve {
  background-color: rgba(255, 84, 0, 0.18) !important;
  color: #000000 !important;
  border: 1.5px solid #ff5400 !important;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 900 !important;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.badge-defectuoso,
.badge-reemplazar {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #000000 !important;
  border: 1.5px solid #ef4444 !important;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 900 !important;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* High Contrast Cards */
.card-bueno,
.card-conforme {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #d4e8b0 !important;
  border-left: 4px solid #97c852 !important;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-regular,
.card-leve {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffd6a5 !important;
  border-left: 4px solid #ff5400 !important;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-defectuoso,
.card-reemplazar {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #fecaca !important;
  border-left: 4px solid #ef4444 !important;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* High Contrast Buttons */
.btn-primary {
  background-color: #5f48f5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(95, 72, 245, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #4b36db !important;
  box-shadow: 0 6px 18px rgba(95, 72, 245, 0.6) !important;
}

.btn-secondary {
  background: #181722 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
}

/* Clean High-Contrast Progress Bar (No Neon Glows) */
.progress-bar-container, #progress-bar-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.15) !important;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar, #progress-bar {
  height: 100%;
  background-color: #97c852 !important;
  box-shadow: none !important;
  border-radius: 4px;
  transition: width 0.4s ease-in-out;
}

/* Green Icon Accent System (#97c852) */
.icon-fluorescent,
.text-rb-cyan,
.text-cyan-400,
.text-teal-400 {
  color: #97c852 !important;
}

i[data-lucide], svg.lucide {
  color: #97c852;
}

/* Ensure buttons, badges, white text containers, and explicit color classes retain proper icon colors */
i[data-lucide].text-white, svg.lucide.text-white,
.text-white i[data-lucide], .text-white svg.lucide,
i[data-lucide].text-\[\#5c46ed\], svg.lucide.text-\[\#5c46ed\],
.text-\[\#5c46ed\] i[data-lucide], .text-\[\#5c46ed\] svg.lucide,
.btn-primary i[data-lucide], .btn-primary svg.lucide,
.badge-bueno i[data-lucide], .badge-bueno svg.lucide,
.badge-regular i[data-lucide], .badge-regular svg.lucide,
.badge-defectuoso i[data-lucide], .badge-defectuoso svg.lucide {
  color: inherit !important;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #22212b !important;
  border: 2px solid #7b6bf9 !important;
  color: #ffffff !important;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.toast.show,
.toast.toast-enter {
  opacity: 1;
  transform: translateY(0);
}
.toast.toast-exit {
  opacity: 0;
  transform: translateY(20px);
}

/* Printable Formal PDF Export Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print, nav {
    display: none !important;
  }
  .pdf-page-block {
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   GLOBAL RESPONSIVE & MOBILE-FIRST OPTIMIZATIONS (ALL SCREENS & SMARTPHONES)
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .section-block-title,
  .glass-card > h2,
  .pdf-page-block h2,
  .pdf-page-block h3,
  .block-container h2 {
    font-size: 1.05rem !important;
    padding: 0.65rem 1rem !important;
    letter-spacing: 0.03em !important;
    line-height: 1.35 !important;
    word-break: break-word;
  }
}

@media (max-width: 640px) {
  /* Prevent iOS Safari & Mobile Chrome automatic zoom when focusing form inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .section-block-title,
  .glass-card > h2,
  .pdf-page-block h2,
  .pdf-page-block h3,
  .block-container h2 {
    font-size: 0.92rem !important;
    padding: 0.6rem 0.85rem !important;
    letter-spacing: 0.02em !important;
  }

  /* Toast notification fitted cleanly inside mobile viewport */
  .toast {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
  }
}


