/* Base */
:root {
  --page: #f8fafc;
  --bg: #ffffff;
  --fg: #0b1220;
  --muted: #52607a;
  --border: #e6e9f2;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
  --radius: 16px;
  --brand-1: #6366f1;
  --brand-2: #818cf8;
  --brand-3: #4f46e5;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: #0b1220;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  border-radius: 10px;
}

.brand-name {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(99, 102, 241, 0.08);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(11, 18, 32, 0.86);
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--fg);
}

.nav-link--cta {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  padding-left: 14px;
  padding-right: 14px;
}

.nav-link--cta:hover {
  background: linear-gradient(90deg, var(--brand-3), var(--brand-2));
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font: inherit;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

.menu-toggle__label {
  font-weight: 600;
}

.menu-toggle__bars {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fg);
  border-radius: 999px;
}

.menu-toggle__bars::before {
  top: 1px;
}

.menu-toggle__bars::after {
  bottom: 1px;
}

/* Hero */
.hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(1200px 420px at 50% 10%, rgba(99, 102, 241, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, rgba(248, 250, 252, 1));
}

.hero-inner {
  text-align: center;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 0 auto;
  font-size: 16px;
  color: rgba(11, 18, 32, 0.72);
  max-width: 74ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--brand-3), var(--brand-2));
}

.btn-ghost {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.08);
}

.btn-ghost:hover {
  background: rgba(11, 18, 32, 0.06);
}

.hero-kpis {
  margin: 26px auto 0;
  padding: 0;
  display: flex;
  gap: 72px;
  justify-content: center;
  align-items: center;
}

.kpi {
  text-align: center;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-1);
}

.kpi-label {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.hero-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 22px;
  border-radius: 999px;
  color: rgba(11, 18, 32, 0.55);
  background: transparent;
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.hero-down:hover {
  color: rgba(11, 18, 32, 0.75);
  border-color: rgba(11, 18, 32, 0.14);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  text-align: center;
}

.section-subtitle {
  margin: 8px auto 0;
  color: rgba(11, 18, 32, 0.7);
  max-width: 88ch;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
}

.card-hover {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card-text {
  margin: 0;
  color: rgba(11, 18, 32, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

/* Services */
.service {
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.08);
}

.service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--brand-1);
  margin-bottom: 10px;
  font-weight: 800;
}

/* Timeline (Metodologia) */
.timeline {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 22px;
  height: 2px;
  background: rgba(82, 96, 122, 0.18);
}

.timeline-step {
  text-align: center;
  padding-top: 4px;
}

.timeline-badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(99, 102, 241, 0.25);
}

.timeline-title {
  margin: 0 0 6px;
  font-size: 14px;
}

.timeline-text {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

/* Cases */
.case {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.08);
}

.case-media {
  position: relative;
  height: 140px;
  background: rgba(99, 102, 241, 0.05);
  border-bottom: 1px solid var(--border);
}

.case-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(99, 102, 241, 0.95);
  padding: 6px 10px;
  border-radius: 999px;
}

.case-graphic {
  position: absolute;
  inset: 0;
  display: block;
}

.case-graphic--circles {
  background:
    radial-gradient(circle at 22% 40%, rgba(99, 102, 241, 0.6) 0 22px, transparent 23px),
    radial-gradient(circle at 48% 40%, rgba(129, 140, 248, 0.55) 0 22px, transparent 23px),
    radial-gradient(circle at 74% 40%, rgba(99, 102, 241, 0.28) 0 22px, transparent 23px);
}

.case-graphic--bars {
  background:
    linear-gradient(to top, rgba(99, 102, 241, 0.6) 0 0) left 22% bottom 18% / 44px 86px no-repeat,
    linear-gradient(to top, rgba(129, 140, 248, 0.55) 0 0) left 48% bottom 18% / 44px 62px no-repeat,
    linear-gradient(to top, rgba(99, 102, 241, 0.5) 0 0) left 74% bottom 18% / 44px 92px no-repeat;
}

.case-graphic--line {
  background:
    linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.55) 41% 43%, transparent 44%) center / 100% 100% no-repeat;
}

.case-graphic--grid {
  background:
    linear-gradient(rgba(99, 102, 241, 0.22) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(99, 102, 241, 0.22) 1px, transparent 1px) 0 0 / 22px 22px;
  opacity: 0.7;
}

.case-graphic--nodes {
  background:
    radial-gradient(circle at 25% 38%, rgba(99, 102, 241, 0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 52% 55%, rgba(129, 140, 248, 0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 75% 35%, rgba(99, 102, 241, 0.4) 0 6px, transparent 7px),
    linear-gradient(135deg, transparent 42%, rgba(99, 102, 241, 0.35) 43% 44%, transparent 45%),
    linear-gradient(45deg, transparent 46%, rgba(129, 140, 248, 0.32) 47% 48%, transparent 49%);
}

.case-graphic--trend {
  background:
    linear-gradient(180deg, transparent 0 65%, rgba(99, 102, 241, 0.1) 66% 100%),
    linear-gradient(135deg, transparent 44%, rgba(99, 102, 241, 0.55) 45% 47%, transparent 48%) center / 100% 100% no-repeat;
}

.case-body {
  padding: 16px 18px 18px;
}

.case-results {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(230, 233, 242, 0.9);
}

.case-results-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.78);
}

/* Bullets */
.bullets {
  margin: 0;
  padding-left: 18px;
  color: rgba(11, 18, 32, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.about-paragraph {
  margin: 10px 0 0;
  color: rgba(11, 18, 32, 0.7);
}

.mission {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
}

.mission-title {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.mission-text {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
}

.values-title {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-align: center;
}

.values-grid {
  display: grid;
  gap: 12px;
}

.value {
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.08);
}

.value-title {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--brand-1);
}

.value-text {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
  font-size: 13px;
}

/* Clients */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.logo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 22px;
  display: grid;
  place-items: center;
  color: rgba(11, 18, 32, 0.72);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
  min-height: 84px;
  font-weight: 700;
}

.logo-card img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.contact-grid--rich {
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
}

.contact-info-title {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.info-cards {
  display: grid;
  gap: 12px;
}

.info-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.08);
}

.info-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.info-value {
  margin: 0;
  color: rgba(11, 18, 32, 0.8);
  font-weight: 600;
}

.why {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
}

.why-title {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
textarea {
  font: inherit;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 2px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-aside .card {
  position: sticky;
  top: 92px;
}

/* Footer */
.site-footer {
  margin-top: 10px;
  padding: 44px 0;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.footer-name {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.footer-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

.footer-copy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.footer-title {
  margin: 0 0 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-list a:hover {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.social-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .hero-kpis {
    gap: 28px;
    flex-wrap: wrap;
  }

  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .logos {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside .card {
    position: static;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: grid;
    gap: 6px;
    padding: 12px 20px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    border: 1px solid var(--border);
    background: #fff;
  }
}

