/* ─── Geist (local variable font) ───────────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ─── Paleta del diseño ──────────────────────────────────────── */
:root {
  --dark:        #0B0C10;
  --dark-card:   #111318;
  --light:       #F6F6F4;
  --blue:        #2B2BE6;
  --blue-dim:    #7C7FEC;
  --ink:         #14151A;
  --text:        #4A4C55;
  --muted:       #565963;
  --surface:     #ffffff;
  --border:      #E7E7E2;
  --border-dark: rgba(255,255,255,0.10);
  --off-white:   #F7F8FC;

  --font-display: 'Geist', system-ui, sans-serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-alt:     'Poppins', system-ui, sans-serif;

  --nav-h:    72px;
  --radius:   18px;
  --container: 1240px;
  --pad-x:    clamp(20px, 4vw, 32px);
  --transition: .22s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ─── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(246,246,244,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #E5E5E1;
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* CSS mark logo */
.navbar__logo { display: flex; align-items: center; gap: 12px; }
.navbar__mark {
  width: 34px; height: 34px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  flex-shrink: 0;
}
.navbar__mark::before {
  content: '';
  width: 0; height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 30px solid var(--ink);
}
.navbar__mark::after {
  content: '';
  position: absolute; right: 5px; bottom: 0;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 22px solid var(--blue);
}
.navbar__wordmark { line-height: 1; }
.navbar__wordmark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.navbar__wordmark-tag {
  font-family: var(--font-alt);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: #9A9CA3;
  margin-top: 3px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #3A3C44;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--blue); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  border-radius: 10px;
}
.btn--talk {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
}
.btn--talk:hover { background: var(--blue); }

.btn--lang {
  background: #fff;
  border: 1px solid #DADAD5;
  color: var(--ink);
  font-size: 13px;
  padding: 10px 15px;
}
.btn--lang:hover { background: #f0f0f0; color: var(--ink); }

.btn--hero-primary {
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  padding: 17px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px -8px rgba(43,43,230,0.55);
}
.btn--hero-primary:hover { background: #1B1BB8; transform: translateY(-1px); }
.btn--hero-primary svg { flex-shrink: 0; }

.btn--hero-secondary {
  color: #E8E9EE;
  font-size: 16px;
  padding: 17px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
}
.btn--hero-secondary:hover { background: rgba(255,255,255,0.06); }

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  padding: 18px 34px;
  border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,0.50);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--whatsapp:hover { background: #1DB954; transform: translateY(-1px); }

/* hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__gradient {
  position: absolute; inset: 0;
  background: radial-gradient(900px 520px at 50% 8%, rgba(43,43,230,0.20), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  text-align: center;
  padding: 120px 24px;
  max-width: 960px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(43,43,230,0.50);
  border-radius: 999px;
  background: rgba(43,43,230,0.10);
  margin-bottom: 38px;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4D4DF2;
  box-shadow: 0 0 10px #4D4DF2;
  flex-shrink: 0;
}
.hero__eyebrow-text {
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #C6C7FF;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}
.hero__title-solid {
  display: block;
  font-size: clamp(56px, 9vw, 132px);
  color: var(--off-white);
}
.hero__title-outline {
  display: block;
  font-size: clamp(56px, 9vw, 132px);
  color: transparent;
  -webkit-text-stroke: 1.6px #3C3CF0;
}
.hero__sub {
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #A3A6B0;
  font-weight: 500;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll-label {
  font-family: var(--font-alt);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #6B6E78;
}
.hero__scroll-ring {
  width: 22px; height: 36px;
  border: 1.5px solid #3A3D47;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll-dot {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--blue-dim);
  animation: at-scrollpulse 1.6s ease-in-out infinite;
}
@keyframes at-scrollpulse {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* ─── Sections shared ────────────────────────────────────────── */
.section { padding-block: clamp(80px, 10vw, 130px); }

.section__label {
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section__label--blue { color: var(--blue); }
.section__label--dim  { color: var(--blue-dim); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

/* ─── Nosotros ───────────────────────────────────────────────── */
.nosotros { background: var(--light); }

.nosotros__header {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}
.nosotros .section__title { color: var(--ink); }
.nosotros__title-accent { color: var(--blue); }

.nosotros__body { padding-top: 12px; }
.nosotros__body p {
  font-size: 19px;
  line-height: 1.72;
  color: #4A4C55;
  font-weight: 500;
}
.nosotros__body p + p { margin-top: 20px; }

.nosotros__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nosotros__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.nosotros__card--story   { border-top: 3px solid var(--blue); }
.nosotros__card--mission,
.nosotros__card--vision  { border-top: 3px solid var(--ink); }

.nosotros__card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #F0F0FF;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.nosotros__year {
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 14px;
}
.nosotros__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 16px;
}
.nosotros__card-text {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--muted);
}
.nosotros__card-text em { color: var(--blue); font-style: italic; }

/* ─── Servicios ──────────────────────────────────────────────── */
.servicios { background: var(--light); padding-top: 20px; }
.servicios .section__title { color: var(--ink); max-width: 640px; }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.servicio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.servicio-card:hover {
  box-shadow: 0 8px 32px -8px rgba(43,43,230,0.15);
  transform: translateY(-2px);
}
.servicio-card__icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: #111;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.servicio-card__icon svg { width: 24px; height: 24px; }
.servicio-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
}
.servicio-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ─── Clientes ───────────────────────────────────────────────── */
.clientes {
  background: var(--dark);
  padding: 110px 0 120px;
  overflow: hidden;
}
.clientes .section__label { color: var(--blue-dim); }
.clientes .section__title { color: var(--off-white); max-width: 640px; }
.clientes .container { margin-bottom: 64px; }

.clientes__track-wrapper {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clientes__track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.cliente-card {
  flex: 0 0 210px;
  height: 120px;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition);
}
.cliente-card:hover { border-color: rgba(43,43,230,0.45); }

.cliente-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cliente-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── Contacto ───────────────────────────────────────────────── */
.contacto {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.contacto__bg {
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 50% 120%, rgba(43,43,230,0.22), transparent 65%);
  pointer-events: none;
}
.contacto__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.contacto .section__label { color: var(--blue-dim); }
.contacto__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--off-white);
}
.contacto__sub {
  font-size: 19px;
  line-height: 1.6;
  color: #A3A6B0;
  font-weight: 500;
  margin-top: 24px;
  max-width: 480px;
}
.contacto__cta { margin-top: 40px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px 32px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__mark {
  width: 30px; height: 30px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  flex-shrink: 0;
}
.footer__mark::before {
  content: '';
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid #E8E9EE;
}
.footer__mark::after {
  content: '';
  position: absolute; right: 4px; bottom: 0;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 19px solid var(--blue);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #E8E9EE;
}
.footer__tagline {
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #6B6E78;
}
.footer__copy { font-size: 13px; color: var(--muted); }

/* ─── WhatsApp FAB ───────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nosotros__header      { grid-template-columns: 1fr; gap: 32px; }
  .nosotros__cards       { grid-template-columns: 1fr; }
  .servicios__grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(246,246,244,0.97);
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #E5E5E1;
    padding: 16px 0;
    gap: 0;
  }
  .navbar__links.open { display: flex; }
  .navbar__nav { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-link { width: 100%; padding: 14px var(--pad-x); }
  .navbar__actions { margin: 8px var(--pad-x); flex-wrap: wrap; }
  .btn--talk { width: 100%; justify-content: center; }
  .servicios__grid { grid-template-columns: 1fr; }
  .hero__title-outline { -webkit-text-stroke-width: 1.2px; }
}

@media (max-width: 480px) {
  .cliente-card { flex: 0 0 160px; height: 96px; }
  .whatsapp-fab { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}
