/* ==============================================================
   Workori/YOYO — Modern Polish Overrides
   Artista: Diseñador UX/UI Senior
   Fecha: 2026-08-07
   Propósito: Modernizar la home sin cambiar estructura ni tokens base.
   Carga: Después de styles.css y home-brand-lock.css en index.html
   ============================================================== */

/* ─── 1. MICRO-INTERACCIONES GLOBALES ──────────────────────────── */

/* Transiciones más suaves y naturales en todo interactivo */
.btn,
.service-card,
.project-card,
.guide-grid > a,
.provider-card,
.step-card,
.service-quick-thumb,
.search-form-submit,
.hero-job-card,
.hero-trust-card,
.status-card {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s ease,
              background 0.25s ease;
}

/* Focus visible rings — accesibilidad moderna */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
.search-suggestion:focus,
.project-card:focus-visible,
.guide-grid > a:focus-visible,
.service-card:focus-visible {
  outline: 2.5px solid rgba(7, 95, 228, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.service-quick-thumb:focus-visible {
  outline: 2.5px solid rgba(7, 95, 228, 0.45);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Navegación: hover más suave */
.main-nav a {
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

/* Language switch: suavidad */
.language-option {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}


/* ─── 2. PROFUNDIDAD — SOMBRAS MODERNAS EN CAPAS ─────────────── */

/* Sombras layered modernas (reemplazan sombras planas) */
.service-card {
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.04),
    0 4px 12px rgba(14, 31, 64, 0.04),
    0 10px 24px rgba(14, 31, 64, 0.03);
}

.service-card:hover,
.service-card.selected {
  box-shadow:
    0 2px 4px rgba(14, 31, 64, 0.05),
    0 8px 18px rgba(14, 31, 64, 0.07),
    0 18px 40px rgba(7, 95, 228, 0.08);
  transform: translateY(-3px);
}

.project-card,
.guide-grid > a {
  box-shadow:
    0 1px 2px rgba(14, 31, 64, 0.03),
    0 3px 8px rgba(14, 31, 64, 0.03);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s ease;
}

.project-card:hover,
.guide-grid > a:hover {
  box-shadow:
    0 2px 4px rgba(14, 31, 64, 0.05),
    0 8px 16px rgba(14, 31, 64, 0.06),
    0 14px 28px rgba(7, 95, 228, 0.06);
  transform: translateY(-2px);
}

.provider-card {
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 6px 16px rgba(14, 31, 64, 0.05),
    0 14px 32px rgba(14, 31, 64, 0.04);
}

.provider-card:hover {
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 10px 22px rgba(14, 31, 64, 0.08),
    0 20px 44px rgba(7, 95, 228, 0.07);
  transform: translateY(-3px);
}

/* Search form: sombra en capas */
.search-form {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 6px rgba(14, 31, 64, 0.04),
    0 12px 32px rgba(14, 31, 64, 0.06),
    0 22px 52px rgba(14, 31, 64, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-form:focus-within {
  border-color: rgba(7, 95, 228, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 4px 10px rgba(14, 31, 64, 0.06),
    0 16px 38px rgba(7, 95, 228, 0.08),
    0 26px 58px rgba(14, 31, 64, 0.05);
}


/* ─── 3. BORDES Y RADIUS MODERNOS ──────────────────────────── */

.service-card {
  border-radius: 14px;
}

.project-card {
  border-radius: 12px;
}

.guide-grid > a {
  border-radius: 12px;
}

.provider-card {
  border-radius: 14px;
}

.cta-grid {
  border-radius: 16px;
}

.stats-grid {
  border-radius: 14px;
}

.feature-grid {
  border-radius: 14px;
}

/* Bordes sutiles más modernos */
.service-card {
  border: 1px solid rgba(230, 235, 243, 0.75);
}

.project-card,
.guide-grid > a {
  border: 1px solid rgba(220, 230, 244, 0.7);
}


/* ─── 4. GRADIENTES SUTILES ───────────────────────────────── */

/* Hero: overlay más rico sin cambiar la base */
.hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(7, 95, 228, 0.04), transparent 60%),
    linear-gradient(180deg, #f4f8fc 0%, #f4f7fa 40%, #f0f4f9 100%);
}

/* Hero grid lines: más sutiles */
.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 95, 228, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 95, 228, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.12;
}

/* CTA section: gradient más refinado con profundidad */
.cta-grid {
  background: linear-gradient(135deg, #053fa0 0%, var(--blue) 35%, #0868f2 60%, var(--teal) 100%);
  box-shadow:
    0 4px 12px rgba(7, 95, 228, 0.15),
    0 16px 42px rgba(7, 95, 228, 0.12),
    0 30px 64px rgba(0, 169, 157, 0.08);
}

/* Section mist: gradiente más refinado */
.section-mist {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(7, 95, 228, 0.04), transparent 55%),
    linear-gradient(180deg, #e8eef5 0%, #f4f7fb 50%, #f7f9fc 100%);
}

/* Stats background */
.stats-grid {
  background: linear-gradient(135deg, #f7faff 0%, #f2f6fc 50%, #f7f9fc 100%);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.03),
    0 4px 12px rgba(14, 31, 64, 0.03);
}


/* ─── 5. BOTONES MODERNOS ─────────────────────────────────── */

.btn {
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.22s ease,
              filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0px);
}

/* Botón primario: gradiente sutil + sombra layered */
.btn-primary {
  border-radius: 10px;
  background: linear-gradient(180deg, #1a6ff0 0%, var(--blue) 100%);
  box-shadow:
    0 2px 4px rgba(7, 95, 228, 0.15),
    0 8px 16px rgba(7, 95, 228, 0.12),
    0 16px 32px rgba(7, 95, 228, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2878f2 0%, #0a62e0 100%);
  box-shadow:
    0 3px 6px rgba(7, 95, 228, 0.2),
    0 10px 20px rgba(7, 95, 228, 0.16),
    0 20px 38px rgba(7, 95, 228, 0.12);
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow:
    0 1px 3px rgba(7, 95, 228, 0.15),
    0 6px 12px rgba(7, 95, 228, 0.1);
}

/* Botón secundario */
.btn-secondary {
  border-radius: 10px;
  border: 1.5px solid rgba(7, 95, 228, 0.15);
  box-shadow:
    0 1px 3px rgba(14, 31, 64, 0.04),
    0 4px 10px rgba(14, 31, 64, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(7, 95, 228, 0.3);
  box-shadow:
    0 2px 5px rgba(14, 31, 64, 0.06),
    0 8px 16px rgba(7, 95, 228, 0.08);
  transform: translateY(-2px);
}

/* Search form submit button: en el hero */
.search-form-submit {
  border-radius: 10px;
  background: linear-gradient(180deg, #1a6ff0 0%, var(--blue) 100%);
  box-shadow:
    0 3px 6px rgba(7, 95, 228, 0.18),
    0 10px 20px rgba(7, 95, 228, 0.1);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.22s ease,
              filter 0.22s ease;
}

.search-form-submit:hover {
  background: linear-gradient(180deg, #2878f2 0%, #0a62e0 100%);
  box-shadow:
    0 4px 8px rgba(7, 95, 228, 0.2),
    0 12px 24px rgba(7, 95, 228, 0.14);
  transform: translateY(-2px);
  filter: brightness(1.04);
}


/* ─── 6. TIPOGRAFÍA Y JERARQUÍA ───────────────────────────── */

/* Headings con mejor tracking y font-display */
h1 {
  letter-spacing: -0.025em;
  font-family: var(--font-display);
  font-weight: 750;
}

.hero-copy h1 {
  letter-spacing: -0.028em;
  font-weight: 750;
  line-height: 1.1;
}

h2 {
  letter-spacing: -0.018em;
  font-family: var(--font-display);
  font-weight: 700;
}

.section-heading h2 {
  letter-spacing: -0.018em;
  font-weight: 700;
}

/* Section kicker refinado */
.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}

/* Hero text: mejor line-height */
.hero-text {
  line-height: 1.6;
  color: #162340;
}

/* Service card labels más limpias */
.service-card strong {
  font-weight: 750;
  letter-spacing: -0.01em;
}

.service-card b {
  font-weight: 800;
  letter-spacing: -0.005em;
}

/* Feature grid headings */
.feature-grid h3 {
  font-weight: 750;
  letter-spacing: -0.01em;
}

/* Stats: números más grandes e impactantes */
.stats-grid strong {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #053fa0;
  font-family: var(--font-display);
}


/* ─── 7. DETALLES MODERNOS ───────────────────────────────── */

/* Badges del hero: redondeados y con micro-interacción */
.hero-badges span {
  font-size: 0.82rem;
  letter-spacing: -0.005em;
}

.hero-badges span::before {
  border-color: rgba(0, 169, 157, 0.3);
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.08), rgba(0, 169, 157, 0.02));
  box-shadow: 0 1px 3px rgba(0, 169, 157, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Pilot banner: más refinado */
.pilot-banner {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.015em;
  background: rgba(7, 95, 228, 0.08);
  border: 1px solid rgba(7, 95, 228, 0.12);
  box-shadow: 0 1px 4px rgba(7, 95, 228, 0.06);
}

/* Avatar stack: rings mejorados */
.avatar-stack span {
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(14, 31, 64, 0.12);
  background: linear-gradient(135deg, #0a62df, #1a8a7f);
}

/* Service thumb icons: más elevación */
.service-thumb {
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.08),
    0 6px 16px rgba(14, 31, 64, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover .service-thumb,
.service-card.selected .service-thumb {
  box-shadow:
    0 3px 8px rgba(0, 169, 157, 0.2),
    0 10px 24px rgba(0, 169, 157, 0.15);
  transform: translateY(-2px);
}

.service-quick-thumb:hover .service-thumb,
.service-quick-thumb:focus-visible .service-thumb {
  box-shadow:
    0 4px 10px rgba(0, 169, 157, 0.2),
    0 10px 24px rgba(0, 169, 157, 0.13);
  transform: translateY(-2px);
}

/* Step cards: círculos numerados con gradiente */
.step-card > span {
  width: 44px;
  height: 44px;
  box-shadow:
    0 2px 6px rgba(7, 95, 228, 0.2),
    0 6px 16px rgba(7, 95, 228, 0.1);
  font-size: 1.05rem;
  background: linear-gradient(135deg, #1a6ff0 0%, var(--blue) 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card:nth-child(2) > span {
  background: linear-gradient(135deg, #14b8a8 0%, var(--teal) 100%);
  box-shadow:
    0 2px 6px rgba(0, 169, 157, 0.2),
    0 6px 16px rgba(0, 169, 157, 0.1);
}

.step-card:nth-child(3) > span {
  background: linear-gradient(135deg, #c47a4a 0%, #b56a42 100%);
  box-shadow:
    0 2px 6px rgba(196, 122, 74, 0.2),
    0 6px 16px rgba(196, 122, 74, 0.1);
}

/* Feature icons: círculos con borde sutil */
.feature-grid span {
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(7, 95, 228, 0.08),
    0 4px 10px rgba(7, 95, 228, 0.06);
  border: 1.5px solid rgba(7, 95, 228, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Hero float cards: glassmorphism refinado */
.hero-trust-card,
.hero-job-card {
  border-radius: 12px;
  border: 1px solid rgba(230, 235, 243, 0.8);
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.08),
    0 20px 46px rgba(14, 31, 64, 0.07);
}

.status-card {
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.06),
    0 8px 18px rgba(14, 31, 64, 0.08),
    0 20px 46px rgba(14, 31, 64, 0.07);
}

.hero-trust-card > span {
  box-shadow:
    0 2px 6px rgba(0, 169, 157, 0.18),
    0 6px 14px rgba(0, 169, 157, 0.1);
  background: linear-gradient(135deg, #14b8a8 0%, var(--teal) 100%);
}

/* Trust card checkmark SVG: sutil */
.hero-trust-card__mark svg {
  stroke-width: 2.8;
}

/* Status card separador: gradiente sutil */
.status-card hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #dce6f2 20%, #dce6f2 80%, transparent 100%);
  margin: 10px 0;
}

/* Dot indicador en status card */
.status-card .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.18);
  animation: modern-pulse-dot 2.2s ease-in-out infinite;
}

@keyframes modern-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(0, 169, 157, 0.06); }
}


/* ─── 8. ESPACIADO Y RITMO VERTICAL ──────────────────────── */

.section {
  padding: 64px 0;
}

.compact-section {
  padding-top: 32px;
  padding-bottom: 64px;
}

.section-heading {
  margin-bottom: 32px;
}

/* Más aire entre secciones */
.section + .section {
  /* Ya manejado por padding; solo refuerzo visual */
}

/* Hero más aire en desktop */
.hero-copy {
  gap: 22px;
}

/* CTA: padding más generoso */
.cta-grid {
  padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 64px);
}

/* Stats section más aire */
.stats-grid {
  padding: 34px;
  gap: 1px;
}


/* ─── 9. FOOTER MODERNO ──────────────────────────────────── */

.site-footer {
  padding: 52px 0 32px;
  border-top: 1px solid rgba(220, 230, 242, 0.6);
  background: linear-gradient(180deg, #f8fafe 0%, #f4f7fc 100%);
}

.footer-grid {
  padding-bottom: 32px;
}

.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 4px 0 16px;
}

.footer-links a {
  color: #3d4d6a;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--blue);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(220, 230, 242, 0.5);
}

.footer-tagline {
  font-size: 0.88rem;
  color: #5b6680;
  line-height: 1.6;
}


/* ─── 10. TOAST MODERNO ──────────────────────────────────── */

.toast {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f1f3d 0%, #08142d 100%);
  box-shadow:
    0 2px 6px rgba(14, 31, 64, 0.12),
    0 8px 20px rgba(14, 31, 64, 0.14),
    0 20px 48px rgba(14, 31, 64, 0.1);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ─── 11. SCROLLBAR ESTILIZADA ───────────────────────────── */

.service-quick-strip {
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 95, 228, 0.2) transparent;
}

.service-quick-strip::-webkit-scrollbar {
  height: 4px;
}

.service-quick-strip::-webkit-scrollbar-track {
  background: transparent;
}

.service-quick-strip::-webkit-scrollbar-thumb {
  background: rgba(7, 95, 228, 0.18);
  border-radius: 999px;
}

.service-quick-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(7, 95, 228, 0.3);
}


/* ─── 12. MOBILE BAR ─────────────────────────────────────── */

.home-mobile-bar {
  box-shadow:
    0 -1px 3px rgba(14, 31, 64, 0.05),
    0 -4px 12px rgba(14, 31, 64, 0.06);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.94);
}

/* ─── 13. QUICK-THUMB LABELS ────────────────────────────── */

.service-quick-thumb__label {
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 0.74rem;
}

/* ─── 14. PWA APP CARDS ─────────────────────────────────── */

.pwa-app-card {
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pwa-app-card:hover {
  transform: translateY(-3px);
}


/* ─── 15. RESPONSIVE: MOBILE-FIRST (375px+) ────────────── */

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  .compact-section {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .cta-grid {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .stats-grid {
    padding: 24px;
    border-radius: 12px;
  }

  .stats-grid strong {
    font-size: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .btn {
    border-radius: 10px;
  }

  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    padding-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    letter-spacing: -0.02em;
  }

  .service-card {
    border-radius: 12px;
  }

  .stats-grid strong {
    font-size: 1.4rem;
  }

  .section {
    padding: 40px 0;
  }
}


/* ── Accesibilidad táctil: targets >= 44px (2026-08-07, auditoría home) ── */
.language-option,
.language-toggle button,
[class*="language-option"] {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.location-button,
[class*="location-button"] {
  min-width: 44px;
  min-height: 44px;
}
@media (hover: none) and (pointer: coarse) {
  /* Solo táctil: agrandar sin romper layout */
  .nav a,
  header nav a {
    padding: 10px 8px;
    min-height: 44px;
  }
}
