/* ==========================================================================
   contactar.pro — Landing Call Center BPO
   Paleta: Azul #001F3F · Blanco #FFFFFF · Naranja #FF6600
   ========================================================================== */

:root {
  --navy: #001f3f;
  --navy-800: #0a2c52;
  --navy-600: #14406e;
  --orange: #ff6600;
  --orange-600: #e35a00;
  --orange-soft: rgba(255, 102, 0, 0.12);

  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-card: #ffffff;
  --text: #0b1c30;
  --text-muted: #5a6b80;
  --border: #e3e9f2;
  --shadow: 0 20px 50px -20px rgba(0, 31, 63, 0.18);
  --shadow-sm: 0 8px 24px -12px rgba(0, 31, 63, 0.16);
  --ring-color: rgba(0, 31, 63, 0.08);
  --hero-glow-1: rgba(255, 102, 0, 0.10);
  --hero-glow-2: rgba(20, 64, 110, 0.10);
  --header-bg: rgba(255, 255, 255, 0.96);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 3rem); }

svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(255, 102, 0, 0.55);
}
.btn--primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(255, 102, 0, 0.6);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--primary .lucide { transition: transform 0.25s var(--ease-out); }
.btn--primary:hover .lucide { transform: translateX(4px); }
.btn--ghost {
  color: var(--text);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- Header ---------- */
/* Sin backdrop-filter: el desenfoque bajo elementos animados fuerza
   un repintado del blur en cada frame y hunde el framerate del hero. */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.4s ease;
}
.header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: #fff;
}
.logo__text em { font-style: normal; color: var(--orange); }

.nav { display: flex; gap: 1.8rem; }
.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.8rem; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  padding: 0.4rem 0.2rem;
  transition: color 0.25s ease;
}
.header__phone .lucide { width: 17px; height: 17px; color: var(--orange); }
.header__phone:hover { color: var(--orange); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 130px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 10%, var(--hero-glow-1), transparent 60%),
    radial-gradient(ellipse 55% 45% at 25% 20%, var(--hero-glow-2), transparent 60%),
    var(--bg);
}

.hero__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
/* Solo opacidad: escalar 4 capas de >1000px castiga a la GPU */
.ring {
  position: absolute;
  border: 1.5px solid var(--ring-color);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
  will-change: opacity;
}
.ring--1 { width: 480px; height: 480px; animation-delay: 0s; }
.ring--2 { width: 720px; height: 720px; animation-delay: 1.2s; }
.ring--3 { width: 980px; height: 980px; animation-delay: 2.4s; }
.ring--4 { width: 1260px; height: 1260px; animation-delay: 3.6s; }
@keyframes ringPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__avatars { position: absolute; inset: 0; pointer-events: none; }
/* Estáticos: la vida la aportan las insignias pulsantes (badgePop) */
.avatar {
  position: absolute;
  width: 186px; height: 186px;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
}
.avatar__badge {
  position: absolute;
  right: 0; bottom: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--bg);
  animation: badgePop 3.5s ease-in-out infinite;
}
.avatar__badge--alt { background: var(--navy-600); }
.avatar__badge .lucide { width: 22px; height: 22px; }

.avatar--1 { top: 15%; left: 5%; }
.avatar--2 { top: 9%; right: 6%; }
.avatar--3 { top: 48%; left: 2.5%; }
.avatar--4 { top: 42%; right: 3%; }
.avatar--5 { bottom: 10%; left: 13%; }
.avatar--6 { bottom: 13%; right: 14%; }

/* Latidos desincronizados entre insignias */
.avatar--2 .avatar__badge { animation-delay: 0.6s; }
.avatar--3 .avatar__badge { animation-delay: 1.2s; }
.avatar--4 .avatar__badge { animation-delay: 1.8s; }
.avatar--5 .avatar__badge { animation-delay: 2.4s; }
.avatar--6 .avatar__badge { animation-delay: 3s; }

@keyframes badgePop {
  0%, 85%, 100% { transform: scale(1); }
  90% { transform: scale(1.15); }
}

.hero__content { position: relative; text-align: center; max-width: 850px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 102, 0, 0.25);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero__highlight {
  background: linear-gradient(90deg, var(--orange) 0%, #ff9a4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__bar {
  width: 190px; height: 7px;
  margin: 1.6rem auto;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--navy-600), var(--orange));
  background-size: 200% 100%;
  animation: barShimmer 3.5s linear infinite;
}
@keyframes barShimmer { to { background-position: -200% 0; } }

.hero__subtitle {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.2rem;
}
.hero__cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero__manifesto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__manifesto .lucide { color: var(--orange); }

/* ---------- Banda de logos ---------- */
.logoband {
  background: linear-gradient(100deg, var(--orange) 0%, #b3541e 30%, var(--navy-600) 70%, var(--navy) 100%);
  padding: 1.6rem 0;
  overflow: hidden;
  position: relative;
}
.logoband::before, .logoband::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.logoband__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.logoband:hover .logoband__track { animation-play-state: paused; }
.logoband__group { display: flex; align-items: center; gap: 4.5rem; padding-right: 4.5rem; }
.logoband__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.logoband__item img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones genéricas ---------- */
.section { padding: 110px 0; }
.section__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.section__title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section__lead { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; }
.section__head { margin-bottom: 3.5rem; }
.section__head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
}
.section__head--center { text-align: center; }
.section__head--center .section__lead { margin: 1.2rem auto 0; }

/* ---------- Tecnología ---------- */
.tech { background: var(--bg-soft); transition: background 0.4s ease; }
.tech__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.tech__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.1rem;
}
.crm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}
.crm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}
.crm-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.crm-card__icon img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.crm-card:hover .crm-card__icon { filter: grayscale(0); opacity: 1; }
.crm-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.35s ease;
}
.crm-card:hover .crm-card__name { color: var(--text); }

.tech__checklist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.tech__checklist-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.4rem; }
.checklist { display: flex; flex-direction: column; gap: 1.4rem; }
.checklist__item { display: flex; gap: 1rem; }
.checklist__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  transition: transform 0.3s var(--ease-spring);
}
.checklist__item:hover .checklist__icon { transform: scale(1.12) rotate(-6deg); }
.checklist__item strong { display: block; margin-bottom: 0.15rem; }
.checklist__item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Proceso ---------- */
.process__steps {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}
.step {
  position: relative;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.9rem;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--orange); }
.step__number {
  position: absolute;
  top: 0.6rem; right: 1.1rem;
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--text);
  opacity: 0.06;
  line-height: 1;
}
.step__timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.step__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: #fff;
  margin-bottom: 1.1rem;
  transition: transform 0.3s var(--ease-spring);
}
.step:hover .step__icon { transform: scale(1.1) rotate(6deg); }
.step__icon .lucide { width: 24px; height: 24px; }
.step__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.step__text { color: var(--text-muted); font-size: 0.95rem; }
.step__connector {
  align-self: center;
  color: var(--orange);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* ---------- Casos ---------- */
.cases { background: var(--bg-soft); transition: background 0.4s ease; }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.case-card__media { height: 180px; overflow: hidden; }
.case-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.case-card:hover .case-card__media img { transform: scale(1.06); }
.case-card__body { padding: 1.7rem; }
.case-card__metric {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
}
.case-card__metric-label { font-weight: 600; font-size: 0.94rem; margin: 0.35rem 0 1rem; }
.case-card__quote {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 0.9rem;
  margin-bottom: 0.9rem;
}
.case-card__author { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

/* ---------- Comparativa ---------- */
.compare__wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 720px;
}
.compare__table th, .compare__table td {
  padding: 1.05rem 1.4rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.compare__table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-soft);
}
.compare__table tbody th { font-weight: 600; }
.compare__table tbody tr { transition: background 0.25s ease; }
.compare__table tbody tr:hover { background: var(--bg-soft); }
.compare__table tbody td { color: var(--text-muted); }
.compare__table td.compare__us { color: var(--text); font-weight: 600; }
.compare__us { background: var(--orange-soft); }
.compare__us-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
}
.ico-bad { color: #d64545; vertical-align: -0.2em; margin-right: 0.35rem; }
.ico-good { color: #1a9e5c; vertical-align: -0.2em; margin-right: 0.35rem; }
.compare__table td .lucide { width: 1em; height: 1em; }

/* En móvil la tabla se reformatea como tarjetas apiladas */
@media (max-width: 768px) {
  .compare__wrap { overflow-x: visible; }
  .compare__table { min-width: 0; }
  .compare__table thead { display: none; }

  .compare__table tbody tr {
    display: block;
    padding: 1.25rem 1.3rem;
    border-bottom: 1px solid var(--border);
  }
  .compare__table tbody tr:last-child { border-bottom: none; }
  .compare__table tbody tr:hover { background: none; }

  .compare__table tbody th,
  .compare__table tbody td {
    display: block;
    padding: 0;
    border: none;
  }
  .compare__table tbody th {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
  }
  .compare__table tbody td::before {
    content: "Call center tradicional";
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
  }
  .compare__table tbody td.compare__us::before {
    content: "contactar.pro (BPO técnico)";
    color: var(--orange);
  }
  .compare__table tbody td.compare__us {
    background: var(--orange-soft);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    margin-top: 0.7rem;
  }
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card--featured {
  border-color: var(--orange);
  border-width: 2px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--orange-soft), transparent 70%),
    var(--bg-card);
}
.price-card__icon {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--orange-soft);
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.price-card__icon .lucide { width: 26px; height: 26px; }
.price-card__title { font-size: 1.3rem; font-weight: 800; }
.price-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin: 0.5rem 0 1rem;
}
.price-card__text { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); transition: background 0.4s ease; }
.faq__list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq__item[open] { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--orange); }
.faq__chevron {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  transition: transform 0.35s var(--ease-out);
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 1.5rem; }
.faq__answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-bottom: 1.3rem;
  animation: faqIn 0.4s var(--ease-out);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 85% 30%, var(--hero-glow-1), transparent 65%);
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: start;
}
.contact__lead { color: var(--text-muted); margin-top: 1.2rem; font-size: 1.02rem; }
.contact__lead strong { color: var(--orange); font-weight: 800; }
.contact__trust { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact__trust li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.contact__trust .lucide { color: var(--orange); }
.contact__data { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.contact__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  width: fit-content;
}
.contact__channel .lucide { color: var(--orange); }
a.contact__channel:hover { color: var(--orange); }

.contact__form {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form__field label { font-size: 0.86rem; font-weight: 600; }
.form__field input, .form__field select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  width: 100%;
}
.form__field input::placeholder { color: var(--text-muted); opacity: 0.7; }
.form__field input:focus, .form__field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.form__field input.is-invalid, .form__field select.is-invalid { border-color: #d64545; animation: shake 0.35s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form__score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.2rem;
  animation: scoreIn 0.45s var(--ease-spring);
}
.form__score[hidden] { display: none; }
.form__score .lucide { color: var(--orange); }
@keyframes scoreIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form__submit { width: 100%; justify-content: center; }
.form__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form__success {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
  animation: scoreIn 0.5s var(--ease-spring);
}
.form__success[hidden] { display: none; }
.form__success-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(26, 158, 92, 0.12);
  color: #1a9e5c;
  margin-bottom: 0.6rem;
}
.form__success-icon .lucide { width: 34px; height: 34px; }
.form__success h3 { font-size: 1.4rem; font-weight: 800; }
.form__success p { color: var(--text-muted); max-width: 320px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #dbe6f2;
  padding: 90px 0 30px;
}
.footer__statement { text-align: center; margin-bottom: 4rem; }
.footer__claim {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer__claim span {
  background: linear-gradient(90deg, var(--orange), #ff9a4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__compliance { margin-top: 0.9rem; color: #9db2c9; font-size: 0.96rem; }
.footer__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}
.footer__badge:hover { border-color: var(--orange); transform: translateY(-3px); }
.footer__badge .lucide { color: var(--orange); }
.stars { display: inline-flex; gap: 2px; color: #ffb020; }
.stars .lucide { width: 14px; height: 14px; fill: currentColor; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.logo--footer .logo__mark { background: var(--orange); }
.logo--footer .logo__text { color: #fff; }
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__nav a { font-size: 0.9rem; color: #9db2c9; transition: color 0.25s ease; }
.footer__nav a:hover { color: var(--orange); }
.footer__contact { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #9db2c9;
}
.footer__contact .lucide { color: var(--orange); width: 1em; height: 1em; }
.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: #6d84a0;
  margin-top: 2.2rem;
}

/* ---------- Widget flotante ---------- */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}
.chat-widget__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 56px;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 12px 28px -10px rgba(255, 102, 0, 0.55);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease;
}
.chat-widget__call:hover { background: var(--orange-600); transform: translateY(-2px); }
.chat-widget__call:active { transform: translateY(0) scale(0.97); }
.chat-widget__call .lucide { width: 20px; height: 20px; }

/* En móvil el botón ocupa todo el ancho de la pantalla */
@media (max-width: 768px) {
  .chat-widget { left: 1rem; right: 1rem; }
  .chat-widget__call { flex: 1; }
}


/* Mientras se redimensiona la ventana no se anima ningún cambio de layout */
.is-resizing *,
.is-resizing *::before,
.is-resizing *::after {
  transition: none !important;
}

/* ---------- Animaciones de scroll (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal[data-reveal-delay="1"] { transition-delay: 0.12s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.36s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.48s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.6s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Los avatares se reducen y se pegan a los bordes a medida que se
   estrecha el hueco lateral junto a la columna de texto (850px) */
@media (max-width: 1440px) {
  .avatar { width: 150px; height: 150px; }
  .avatar__badge { width: 40px; height: 40px; }
  .avatar__badge .lucide { width: 19px; height: 19px; }
  .avatar--1 { left: 3%; }
  .avatar--2 { right: 3%; }
  .avatar--3 { left: 1.5%; }
  .avatar--4 { right: 1.5%; }
  .avatar--5 { bottom: 8%; left: 7%; }
  .avatar--6 { bottom: 11%; right: 8%; }
}

@media (max-width: 1220px) {
  .avatar { width: 130px; height: 130px; }
  .avatar__badge { width: 36px; height: 36px; }
  .avatar__badge .lucide { width: 17px; height: 17px; }
  .avatar--5, .avatar--6 { display: none; }
  .avatar--1 { top: 13%; left: 3%; }
  .avatar--2 { top: 9%; right: 3%; }
  .avatar--3 { top: 52%; left: 2%; }
  .avatar--4 { top: 47%; right: 2%; }
}

/* Por debajo de 850px ya no hay pasillo lateral: fuera avatares */
@media (max-width: 850px) {
  .hero__avatars { display: none; }
}

@media (max-width: 1024px) {
  .tech__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr 1fr; }
  .case-card:last-child { grid-column: 1 / -1; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }

}

/* El menú colapsa antes de que los enlaces choquen con el logo y el CTA */
@media (max-width: 1000px) {
  .nav {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1.5rem 1.2rem;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.8rem 0; font-size: 1.05rem; }
  .nav-burger { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 100px; }
  .header__cta { display: none; }
  /* Ya hay un botón de llamada fijo abajo: aquí basta el icono */
  .header__phone span { display: none; }
  .header__phone { padding: 0.4rem; }

  .process__steps { flex-direction: column; }
  .step__connector { transform: rotate(90deg); animation: none; }
  .cases__grid { grid-template-columns: 1fr; }
  .case-card:last-child { grid-column: auto; }
  .pricing__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Pantallas estrechas (hasta 320px) ---------- */
@media (max-width: 480px) {
  .container, .container--narrow { width: calc(100% - 2rem); }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 2.4rem; }
  .section__title { font-size: clamp(1.6rem, 7vw, 1.9rem); }

  .hero { padding: 118px 0 78px; }
  .hero__title { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero__eyebrow { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .btn--lg { padding: 0.9rem 1.4rem; font-size: 0.98rem; }
  .hero__manifesto { text-align: left; font-size: 0.85rem; }

  .logoband__group { gap: 2.6rem; padding-right: 2.6rem; }
  .logoband__item { font-size: 0.92rem; }

  .tech__logos { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .crm-card { padding: 1.2rem 0.5rem; }
  .crm-card__name { font-size: 0.82rem; }
  .tech__checklist { padding: 1.4rem; }

  .step { padding: 1.6rem 1.3rem 1.4rem; }
  .case-card__body { padding: 1.3rem; }
  .case-card__metric { font-size: 2.1rem; }
  .price-card { padding: 1.8rem 1.3rem; }

  .compare__table tbody tr { padding: 1.1rem 1rem; }

  .faq__question { padding: 1rem 1.1rem; font-size: 0.95rem; }
  .faq__answer { padding: 0 1.1rem; }

  .contact__form { padding: 1.4rem 1.2rem; }
  .form__field input, .form__field select { padding: 0.75rem 0.85rem; }

  .footer { padding: 64px 0 24px; }
  .footer__badge { font-size: 0.8rem; padding: 0.5rem 0.9rem; }

  .chat-widget { bottom: 1rem; }
}
