:root {
  --ink: #16191f;
  --muted: #646b78;
  --line: #e7e9ee;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --red: #c7192f;
  --red-dark: #951425;
  --teal: #0e7c7b;
  --gold: #c79a2b;
  --charcoal: #252a32;
  --shadow: 0 24px 70px rgba(22, 25, 31, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(231, 233, 238, .85);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 168px;
  height: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 12px;
  background: #151a21;
  box-shadow: 0 10px 24px rgba(22, 25, 31, .14);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a {
  padding: 10px 0;
}

.nav-menu a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #11151b;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 21, 27, .92) 0%, rgba(17, 21, 27, .74) 48%, rgba(17, 21, 27, .34) 100%),
    url("assets/clientes-2.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: end;
  padding: 96px 0 74px;
}

.hero-copy {
  max-width: 720px;
}

.hero-logo {
  width: 230px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(10, 12, 16, .66);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ff6476;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 82px;
  line-height: .96;
  letter-spacing: 0;
  max-width: 780px;
}

h2 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 34px rgba(199, 25, 47, .28);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.metric {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.intro {
  background: var(--surface);
}

.split,
.coverage-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.rich-text {
  color: var(--muted);
  font-size: 18px;
}

.rich-text p:last-child,
.section-heading p:last-child,
.coverage p:last-child {
  margin-bottom: 0;
}

.values {
  padding-top: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-grid article,
.service-grid article,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.value-grid article {
  padding: 28px;
}

.value-grid span,
.steps span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.value-grid p,
.service-grid p,
.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

.services,
.clients {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  max-width: 620px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-grid article,
.service-card {
  min-height: 156px;
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-grid article:hover,
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 25, 47, .2);
  box-shadow: 0 16px 42px rgba(22, 25, 31, .08);
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.service-card summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--red);
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.service-card[open] summary::after {
  content: "-";
  background: var(--red);
  color: #fff;
  transform: rotate(180deg);
}

.service-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.research-spotlight {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(199, 25, 47, .16);
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(199, 25, 47, .08), rgba(14, 124, 123, .09)),
    #fff;
  box-shadow: 0 22px 56px rgba(22, 25, 31, .08);
}

.research-spotlight h3 {
  margin-bottom: 12px;
  font-size: 30px;
}

.research-spotlight p {
  color: var(--muted);
}

.research-icon {
  position: relative;
  min-height: 230px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), transparent 0 18px),
    linear-gradient(145deg, #151a21, #2c3440);
}

.lens {
  position: absolute;
  width: 92px;
  height: 92px;
  left: 72px;
  top: 54px;
  border: 12px solid #fff;
  border-radius: 50%;
  animation: scan 4s ease-in-out infinite;
}

.lens::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 12px;
  right: -62px;
  bottom: -32px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(43deg);
  transform-origin: left center;
}

.pulse {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  animation: pulse 3.2s ease-out infinite;
}

.pulse-a {
  width: 140px;
  height: 140px;
  left: 48px;
  top: 30px;
}

.pulse-b {
  width: 184px;
  height: 184px;
  left: 26px;
  top: 8px;
  animation-delay: .8s;
}

.data-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(199, 25, 47, .18);
  animation: floatDot 3.6s ease-in-out infinite;
}

.dot-a {
  left: 45px;
  bottom: 45px;
}

.dot-b {
  right: 55px;
  top: 54px;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(14, 124, 123, .18);
  animation-delay: .5s;
}

.dot-c {
  right: 74px;
  bottom: 42px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(199, 154, 43, .18);
  animation-delay: 1s;
}

.study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.study-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(199, 25, 47, .18);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps article {
  padding: 24px;
}

.coverage {
  background: #151a21;
  color: #fff;
}

.coverage p {
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
}

.map-card {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 124, 123, .28), rgba(199, 25, 47, .22)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 22px),
    #202630;
  box-shadow: var(--shadow);
}

.map-line {
  position: absolute;
  width: 70%;
  height: 52%;
  left: 16%;
  top: 24%;
  border: 2px solid rgba(255, 255, 255, .2);
  border-right-color: var(--gold);
  border-bottom-color: var(--teal);
  transform: rotate(-8deg);
}

.pin {
  position: absolute;
  min-width: 92px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .2);
}

.pin-a {
  top: 25%;
  left: 18%;
}

.pin-b {
  top: 56%;
  right: 16%;
}

.pin-c {
  bottom: 20%;
  left: 34%;
  background: var(--red);
  color: #fff;
}

.pin-d {
  top: 34%;
  right: 11%;
}

.pin-e {
  bottom: 18%;
  right: 28%;
}

.pin-f {
  top: 12%;
  left: 40%;
}

.pin-g {
  bottom: 38%;
  left: 10%;
}

.client-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}

.client-list {
  display: grid;
  gap: 12px;
}

.client-list span {
  display: flex;
  align-items: center;
  min-height: 68px;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 16px 18px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(22, 25, 31, .05);
}

.client-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.client-images img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact {
  background: #fff;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-info a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--charcoal);
  font-weight: 800;
}

.contact-info a:hover {
  border-color: rgba(199, 25, 47, .32);
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9dde5;
  border-radius: 6px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(199, 25, 47, .14);
  border-color: var(--red);
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 30px 0;
  background: var(--charcoal);
  color: rgba(255, 255, 255, .76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer img {
  width: 130px;
}

.footer-logo {
  display: inline-flex;
  border-radius: 8px;
  padding: 10px 12px;
  background: #151a21;
}

.footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 12px;
    border-radius: 6px;
  }

  .nav-menu a:hover {
    background: var(--soft);
  }

  .hero {
    min-height: 0;
  }

  .hero-grid,
  .split,
  .coverage-grid,
  .contact-grid,
  .client-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
    padding-top: 78px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 138px;
  }

  .hero-logo {
    width: 196px;
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text,
  .section-heading p,
  .coverage p,
  .rich-text {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel,
  .service-grid,
  .value-grid,
  .steps,
  .client-images,
  .research-spotlight {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: 28px;
  }

  .map-card {
    min-height: 300px;
  }

  .client-images img {
    min-height: 220px;
  }

  .research-spotlight {
    padding: 22px;
  }

  .research-icon {
    min-height: 210px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan {
  0%, 100% {
    transform: translate(0, 0) rotate(0);
  }

  50% {
    transform: translate(18px, 10px) rotate(-6deg);
  }
}

@keyframes pulse {
  0% {
    opacity: .75;
    transform: scale(.88);
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes floatDot {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
