/* ==========================================================================
   TRABAJOSGT.COM — DESIGN SYSTEM & LANDING CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & TOKENS
   -------------------------------------------------------------------------- */
:root {
  --navy-950: #0B1F3A;
  --navy-800: #17375E;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-100: #DBEAFE;

  --green-700: #15803D;
  --green-600: #16A34A;
  --green-100: #DCFCE7;

  --amber-500: #F4B942;
  --amber-100: #FFF4D6;

  --white: #FFFFFF;
  --background: #F7F9FC;
  --surface: #FFFFFF;
  --text: #172033;
  --muted: #5B6574;
  --border: #D9E0EA;

  --success: #067647;
  --warning: #B54708;
  --danger: #B42318;

  --font-heading: 'Manrope', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 31, 58, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-max: 1200px;
  --header-height: 72px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--blue-600);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-950);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw + 0.2rem, 1.5rem); }

p {
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-700);
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background-color: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--navy-950);
  border-color: var(--border);
}
.btn-secondary:hover {
  background-color: var(--background);
  border-color: var(--navy-800);
  color: var(--navy-950);
}

.btn-accent {
  background-color: var(--amber-500);
  color: var(--navy-950);
  border-color: var(--amber-500);
  font-weight: 700;
}
.btn-accent:hover {
  background-color: #E2A732;
  border-color: #E2A732;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--blue-100);
  color: var(--blue-700);
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-img {
  height: 36px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav-link:hover {
  color: var(--blue-600);
}

.header-cta {
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy-950);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:focus-visible {
  outline: 3px solid var(--blue-600);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 1100;
}
.mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 1200;
  transition: right var(--transition-normal);
  overflow-y: auto;
}
.mobile-drawer.is-active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-950);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-950);
  display: block;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--navy-800);
  font-weight: 500;
  margin-top: 0.5rem;
}
.trust-note svg {
  color: var(--green-600);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* --------------------------------------------------------------------------
   6. SELECTOR "QUÉ NECESITAS"
   -------------------------------------------------------------------------- */
.selector-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.selector-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.selector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-600);
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.selector-card:nth-child(2) .card-icon-wrapper {
  background-color: var(--green-100);
  color: var(--green-700);
}
.selector-card:nth-child(3) .card-icon-wrapper {
  background-color: var(--amber-100);
  color: #B54708;
}

.selector-card h3 {
  font-size: 1.25rem;
  color: var(--navy-950);
}

.selector-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

.selector-card .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. GUÍA RÁPIDA (4 PASOS)
   -------------------------------------------------------------------------- */
.guide-section {
  padding: 5rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-badge {
  align-self: flex-start;
  background-color: var(--navy-950);
  color: var(--white);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.checklist-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.checklist-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
}
.checklist-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

.warning-box {
  background-color: var(--amber-100);
  border: 1px solid var(--amber-500);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--warning);
  font-weight: 600;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. CHECKLIST INTERACTIVO
   -------------------------------------------------------------------------- */
.interactive-checklist-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.checklist-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.progress-title {
  font-weight: 700;
  color: var(--navy-950);
}
.progress-percentage {
  font-weight: 800;
  color: var(--blue-600);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2rem;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-600) 0%, var(--green-600) 100%);
  transition: width var(--transition-normal);
}

.checklist-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  font-size: 0.95rem;
  user-select: none;
}
.check-label:hover {
  background-color: var(--blue-100);
  border-color: var(--blue-600);
}

.check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--green-600);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.checklist-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.completion-message {
  background-color: var(--green-100);
  color: var(--green-700);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: none;
}
.completion-message.is-visible {
  display: block;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
}
.reset-btn:hover {
  color: var(--navy-950);
}

/* --------------------------------------------------------------------------
   9. RUTAS RECOMENDADAS & SEGURIDAD
   -------------------------------------------------------------------------- */
.routes-section {
  padding: 5rem 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.route-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--background);
}
.route-card h3 {
  font-size: 1.15rem;
}

.security-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.security-tip-card {
  background-color: var(--surface);
  border-left: 4px solid var(--blue-600);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.security-tip-card:nth-child(even) {
  border-left-color: var(--amber-500);
}

.tip-icon {
  color: var(--blue-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   10. SECCIÓN PARA EMPRESAS & FAQS
   -------------------------------------------------------------------------- */
.employer-section {
  padding: 4rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.employer-card {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.employer-card h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.employer-card p {
  color: var(--blue-100);
  font-size: 1.05rem;
  max-width: 600px;
}

.faq-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-card h3 {
  font-size: 1.1rem;
  color: var(--navy-950);
}
.faq-card p {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   11. FINAL CTA & FOOTER
   -------------------------------------------------------------------------- */
.final-cta-section {
  padding: 5rem 0;
  background-color: var(--navy-950);
  color: var(--white);
  text-align: center;
}

.final-cta-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.final-cta-content h2 {
  color: var(--white);
}
.final-cta-content p {
  color: var(--blue-100);
  font-size: 1.15rem;
}
.final-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer */
.site-footer {
  background-color: #061224;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-editorial {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--blue-600);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: #94A3B8;
}
.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   14. PÁGINAS AMIGAS & DEVELOPER CREDIT
   -------------------------------------------------------------------------- */
.footer-partners-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.partners-title {
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  background-color: #FFFFFF;
  color: var(--blue-600);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.partner-chip:hover {
  color: var(--blue-700);
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.12);
}

.partner-chip svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
  flex-shrink: 0;
}

.developer-credit {
  text-align: center;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-top: 1rem;
}

.developer-link {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.developer-link:hover {
  color: var(--blue-100);
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS (320px to 1920px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual {
    order: -1;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav, .header-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .steps-list {
    grid-template-columns: 1fr;
  }
  .checklist-items-grid {
    grid-template-columns: 1fr;
  }
  .routes-grid {
    grid-template-columns: 1fr;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .employer-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   13. PREFERS REDUCED MOTION ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
