/* ==========================================================
   FGMCONNECT — Sistema visual
   Sitio estático listo para VPS (nginx / apache / caddy)
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --c-bg:        #fbfaf7;
  --c-bg-2:      #f3f1ec;
  --c-ink:       #0e1530;
  --c-ink-2:     #2a3357;
  --c-ink-3:     #5b627e;
  --c-ink-4:     #8b91a8;
  --c-line:      #e6e2da;
  --c-line-2:    #d8d3c8;

  --c-primary:   #1a3a8f;
  --c-primary-2: #2a55c9;
  --c-primary-3: #d8e1f7;
  --c-primary-ink:#0a1f4f;

  --c-accent:    #ff7a59;
  --c-accent-2:  #ffb199;
  --c-accent-ink:#7a2a14;

  --c-success:   #1f8a5b;
  --c-warn:      #c8861f;

  /* Type */
  --f-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(14,21,48,.04), 0 2px 6px rgba(14,21,48,.04);
  --sh-2: 0 4px 14px rgba(14,21,48,.08), 0 2px 4px rgba(14,21,48,.04);
  --sh-3: 0 24px 60px -20px rgba(14,21,48,.25), 0 8px 20px -8px rgba(14,21,48,.12);
  --sh-glow: 0 20px 60px -20px rgba(26,58,143,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--c-primary); color: white; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-3);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(26,58,143,.15);
}
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }
p  { margin: 0; color: var(--c-ink-2); text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--c-ink-2); max-width: 60ch; }
.muted { color: var(--c-ink-3); }
.tiny  { font-size: 13px; color: var(--c-ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--c-ink);
  color: white;
  box-shadow: var(--sh-2);
}
.btn--primary:hover {
  background: var(--c-primary);
  box-shadow: var(--sh-glow);
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--c-accent);
  color: white;
  box-shadow: 0 12px 30px -10px rgba(255,122,89,.6);
}
.btn--accent:hover {
  background: #ff5c33;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -10px rgba(255,122,89,.7);
}
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-2);
}
.btn--ghost:hover { background: white; border-color: var(--c-ink); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Icon button */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: white; border: 1px solid var(--c-line);
  color: var(--c-ink);
  transition: all .18s ease;
}
.icon-btn:hover { border-color: var(--c-ink); transform: translateY(-1px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(251,250,247,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--c-line); background: rgba(251,250,247,.92); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 20px;
  letter-spacing: -.02em;
}
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #3a6dff 50%, var(--c-accent) 100%);
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px -2px rgba(26,58,143,.4);
}
.logo__mark::before, .logo__mark::after {
  content: ""; position: absolute; border: 1.5px solid white; border-radius: 50%;
  opacity: .9;
}
.logo__mark::before { width: 14px; height: 14px; left: 9px; top: 9px; }
.logo__mark::after { width: 24px; height: 24px; left: 4px; top: 4px; opacity: .5; }
.logo__name b { color: var(--c-primary); }
.logo__name span { color: var(--c-accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--c-ink-2); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav a:hover { color: var(--c-ink); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--c-ink);
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: white;
}
.phone .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 0 rgba(31,138,91,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,138,91,.5); }
  70% { box-shadow: 0 0 0 10px rgba(31,138,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,138,91,0); }
}
.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__cta .phone { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header__cta .btn--primary { display: none; }
}

/* Mobile menu — fuera del header para evitar el stacking context del backdrop-filter */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14,21,48,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu[hidden] { display: block; } /* override default */
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--c-bg);
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 16px 40px -12px rgba(14,21,48,.25);
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  max-height: 100dvh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(20px, env(safe-area-inset-top));
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateY(0); }
.mobile-menu__close {
  align-self: flex-end;
  margin-bottom: 4px;
}
.mobile-menu a {
  padding: 14px 0; border-bottom: 1px solid var(--c-line);
  font-family: var(--f-display); font-size: 20px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--c-ink);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }
.mobile-menu .phone { border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 12px 14px; font-size: 16px; }
body.menu-open { overflow: hidden; touch-action: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: -10% -5% -10% -5%;
  background-image:
    linear-gradient(to right, rgba(26,58,143,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,58,143,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.hero__blob {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(80px); opacity: .5; pointer-events: none;
  animation: float 18s ease-in-out infinite alternate;
}
.hero__blob--a { background: radial-gradient(circle, #b8c8ff 0%, transparent 65%); top: -120px; left: -100px; }
.hero__blob--b { background: radial-gradient(circle, #ffd0bf 0%, transparent 65%); top: 100px; right: -120px; animation-delay: -6s; }
@keyframes float {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.hero h1 {
  margin-top: 18px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--c-primary) 0%, #3a6dff 50%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { margin-top: 20px; }
.hero__ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__trust {
  display: flex; align-items: center; gap: 24px; margin-top: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-ink-2); font-size: 14px; font-weight: 500;
}
.trust-item svg { color: var(--c-success); }

/* Hero visual: signal device */
.hero__visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 480px;
  margin-left: auto;
  margin-right: 12px;
  overflow: visible;
}
/* Cuando el visual contiene el formulario, no forzar aspecto cuadrado */
.hero__visual.hero__formwrap { aspect-ratio: auto; max-width: none; }
.hero__col--right { min-width: 0; }
@media (max-width: 980px) { .hero__visual { margin: 0 auto; } }
.signal-card {
  position: absolute; inset: 0;
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.signal-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-line);
}
.signal-card__head .dots { display: flex; gap: 6px; }
.signal-card__head .dots i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-2);
  display: inline-block;
}
.signal-card__head .dots i:first-child { background: #ff6b6b; }
.signal-card__head .dots i:nth-child(2){ background: #ffb84d; }
.signal-card__head .dots i:nth-child(3){ background: #2ec27e; }
.signal-card__head .label {
  font-family: var(--f-mono); font-size: 12px; color: var(--c-ink-3);
}
.signal-card__body {
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 22px;
  height: calc(100% - 57px);
}
.speedo {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display);
}
.speedo .num {
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 600; letter-spacing: -.04em;
  line-height: 1; color: var(--c-ink);
}
.speedo .unit { font-size: 22px; color: var(--c-ink-3); font-weight: 500; }
.speedo .label { font-size: 13px; color: var(--c-ink-3); margin-left: auto; font-family: var(--f-body); text-transform: uppercase; letter-spacing: .1em; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars i {
  flex: 1; border-radius: 4px;
  background: linear-gradient(180deg, var(--c-primary) 0%, #3a6dff 100%);
  animation: barpulse 2.4s ease-in-out infinite;
  transform-origin: bottom;
}
.bars i:nth-child(1) { height: 30%; animation-delay: -.0s; }
.bars i:nth-child(2) { height: 55%; animation-delay: -.3s; }
.bars i:nth-child(3) { height: 40%; animation-delay: -.6s; }
.bars i:nth-child(4) { height: 78%; animation-delay: -.9s; }
.bars i:nth-child(5) { height: 62%; animation-delay: -1.2s; }
.bars i:nth-child(6) { height: 90%; animation-delay: -1.5s; background: linear-gradient(180deg, var(--c-accent) 0%, #ffb199 100%); }
.bars i:nth-child(7) { height: 70%; animation-delay: -1.8s; }
.bars i:nth-child(8) { height: 85%; animation-delay: -2.1s; }
@keyframes barpulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(1.08); opacity: .9; }
}

.signal-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--c-bg-2);
  border-radius: var(--r-md);
}
.signal-stat .k { font-size: 13px; color: var(--c-ink-3); }
.signal-stat .v { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--c-ink); }
.signal-stat .v .ok { color: var(--c-success); }

/* Floating chips around hero card */
.chip {
  position: absolute;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 10px 16px 10px 12px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-2);
  font-size: 13px; font-weight: 500;
  animation: floaty 5s ease-in-out infinite alternate;
}
.chip__icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.chip { max-width: calc(100% - 16px); }
.chip__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip--a { top: -10px; left: 12px; }
.chip--a .chip__icon { background: var(--c-primary); }
.chip--b { bottom: 28px; left: 12px; animation-delay: -2s; }
.chip--b .chip__icon { background: var(--c-accent); }
.chip--c { top: 64px; right: 12px; animation-delay: -1s; }
.chip--c .chip__icon { background: var(--c-success); }
@keyframes floaty {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@media (max-width: 520px) {
  .chip--a, .chip--b, .chip--c { display: none; }
}

/* ---------- Logo strip ---------- */
.logos {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 28px 0;
  background: var(--c-bg);
}
.logos__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.logos__label { font-size: 13px; color: var(--c-ink-3); letter-spacing: .04em; }
.logos__items { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.logos__item {
  font-family: var(--f-display); font-weight: 600; font-size: 18px;
  color: var(--c-ink-3); opacity: .75;
  letter-spacing: -.02em;
  transition: opacity .2s ease, color .2s ease;
}
.logos__item:hover { opacity: 1; color: var(--c-ink); }

/* ---------- Section title block ---------- */
.section-title {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.split { grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; max-width: none; }
@media (max-width: 820px) {
  .section-title.split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Benefits grid ---------- */
.bgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bgrid { grid-template-columns: 1fr; } }
.bcard {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.bcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--c-line-2);
}
.bcard__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--c-primary-3);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.bcard:nth-child(2n) .bcard__icon { background: #ffe6dc; color: #c44a26; }
.bcard:nth-child(3n) .bcard__icon { background: #d8efe2; color: var(--c-success); }
.bcard h3 { margin-bottom: 8px; }
.bcard p { font-size: 15px; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.svc {
  grid-column: span 4;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.svc--feat {
  grid-column: span 6;
  background: linear-gradient(135deg, #102559 0%, var(--c-primary) 60%, #3a6dff 110%);
  color: white;
  border-color: transparent;
}
.svc--feat h3, .svc--feat .svc__title { color: white; }
.svc--feat p { color: rgba(255,255,255,.78); }
.svc--feat::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
}
@media (max-width: 920px) {
  .svc, .svc--feat { grid-column: span 12; }
}
.svc__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--c-primary-3);
  color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.svc--feat .svc__icon { background: rgba(255,255,255,.15); color: white; }
.svc__title {
  font-family: var(--f-display); font-weight: 600; font-size: 22px;
  letter-spacing: -.02em;
}
.svc__price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-display);
}
.svc__price .from { font-size: 13px; color: var(--c-ink-3); }
.svc__price .num { font-size: 36px; font-weight: 600; letter-spacing: -.03em; }
.svc__price .per { font-size: 13px; color: var(--c-ink-3); }
.svc--feat .svc__price .from, .svc--feat .svc__price .per { color: rgba(255,255,255,.7); }
.svc__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.svc__list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--c-ink-2);
}
.svc--feat .svc__list li { color: rgba(255,255,255,.85); }
.svc__list svg { flex-shrink: 0; color: var(--c-success); margin-top: 3px; }
.svc--feat .svc__list svg { color: #6effb0; }
.svc__cta { margin-top: auto; }
.svc__badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--c-accent); color: white;
  padding: 5px 10px; border-radius: var(--r-pill);
}

/* ---------- Why us (split) ---------- */
.why {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .why { grid-template-columns: 1fr; } }
.why__list { display: flex; flex-direction: column; gap: 14px; }
.why__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 18px;
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color .2s ease, transform .2s ease;
}
.why__item:hover { border-color: var(--c-primary); transform: translateX(4px); }
.why__item__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-primary-3); color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.why__item h4 { margin-bottom: 4px; }
.why__item p { font-size: 14px; color: var(--c-ink-3); }
.why__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #f7f4ed 0%, #f3f1ec 100%);
  border: 1px solid var(--c-line);
}
.why__visual::before {
  content: "imagen — familia conectada en casa";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--c-ink-4);
  text-align: center; padding: 24px;
}
.why__visual::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(14,21,48,.04) 12px 13px);
}
.why__bigstat {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  background: white; border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--sh-2);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
}
.why__bigstat .num { font-family: var(--f-display); font-size: 36px; font-weight: 600; letter-spacing: -.03em; color: var(--c-primary); }
.why__bigstat .lab { font-size: 13px; color: var(--c-ink-3); line-height: 1.4; }

/* ---------- Process ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step__num {
  font-family: var(--f-display); font-weight: 600;
  font-size: 14px; letter-spacing: .12em;
  color: var(--c-primary);
}
.step h3 { font-size: 19px; }
.step p { font-size: 14px; color: var(--c-ink-3); }
.step__arrow {
  position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: white; border: 1px solid var(--c-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-ink-3); z-index: 1;
}
.step:last-child .step__arrow { display: none; }
@media (max-width: 920px) { .step__arrow { display: none; } }

/* ---------- Testimonials ---------- */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .tgrid { grid-template-columns: 1fr; } }
.tcard {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tcard__quote { font-family: var(--f-display); font-size: 18px; line-height: 1.45; color: var(--c-ink); letter-spacing: -.01em; }
.tcard__stars { display: flex; gap: 3px; color: #ffb400; }
.tcard__person {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  margin-top: auto;
  padding-top: 18px; border-top: 1px solid var(--c-line);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; color: white;
  background: linear-gradient(135deg, var(--c-primary), #3a6dff);
}
.tcard:nth-child(2) .avatar { background: linear-gradient(135deg, var(--c-accent), #ffb199); }
.tcard:nth-child(3) .avatar { background: linear-gradient(135deg, #1f8a5b, #6effb0); }
.tcard__name { font-weight: 600; font-size: 15px; }
.tcard__loc  { font-size: 13px; color: var(--c-ink-3); }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  max-width: 820px; margin: 0 auto;
}
.faq details {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 4px 4px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--c-primary); box-shadow: var(--sh-1); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--f-display); font-weight: 500; font-size: 17px;
  letter-spacing: -.01em;
  color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230e1530' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 22px 20px;
  color: var(--c-ink-2); font-size: 15px; line-height: 1.6;
}

/* ---------- Lead form ---------- */
.lead {
  position: relative;
  background: linear-gradient(160deg, var(--c-ink) 0%, #14224d 50%, var(--c-primary) 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: 56px;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: center;
}
.lead::before {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,89,.35), transparent 60%);
  pointer-events: none;
}
.lead::after {
  content: ""; position: absolute; left: -120px; bottom: -180px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,109,255,.35), transparent 60%);
  pointer-events: none;
}
@media (max-width: 980px) {
  .lead { grid-template-columns: 1fr; padding: 40px 28px; }
}
.lead__copy { position: relative; z-index: 1; }
.lead h2 { color: white; font-size: clamp(28px, 3.4vw, 40px); }
.lead p  { color: rgba(255,255,255,.78); }
.lead__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.92);
}
.badge svg { color: #6effb0; }

.form {
  position: relative; z-index: 1;
  background: white; color: var(--c-ink);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-3);
  display: grid; gap: 14px;
}
.form__head { display: grid; gap: 4px; margin-bottom: 4px; }
.form__head h3 { font-size: 22px; }
.form__head p { font-size: 14px; color: var(--c-ink-3); }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 500; color: var(--c-ink-2);
  display: flex; justify-content: space-between;
}
.field label .opt { color: var(--c-ink-4); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line-2);
  background: var(--c-bg);
  color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(26,58,143,.12);
}
.field--error input, .field--error select, .field--error textarea {
  border-color: #d64545;
  box-shadow: 0 0 0 4px rgba(214,69,69,.08);
}
.field__err {
  font-size: 12px; color: #d64545; min-height: 0;
  transition: min-height .15s ease;
}
.field--error .field__err { min-height: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
@media (max-width: 540px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
.consent {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 12px; color: var(--c-ink-3); line-height: 1.5;
  padding-top: 4px;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); }
.form__submit {
  width: 100%;
  background: var(--c-accent);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 16px;
  border: 0; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 30px -10px rgba(255,122,89,.6);
}
.form__submit:hover { background: #ff5c33; transform: translateY(-1px); box-shadow: 0 18px 40px -10px rgba(255,122,89,.7); }
.form__submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.form__submit .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  animation: spin .8s linear infinite;
  display: none;
}
.form.is-loading .form__submit .spin { display: inline-block; }
.form.is-loading .form__submit .label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Extra motion ---------- */
@keyframes shine {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}
.btn--accent::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-150%);
  pointer-events: none;
}
.btn--accent { overflow: hidden; }
.btn--accent:hover::after { animation: shine 1s ease forwards; }

@keyframes orbit {
  to { transform: rotate(360deg); }
}
.signal-card::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(26,58,143,.18) 78%, transparent 86%);
  animation: orbit 8s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.signal-card { isolation: isolate; }

@keyframes drift {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50%      { transform: translate(8px, -10px) rotate(2deg); }
}
.bcard:hover .bcard__icon { animation: drift 1.6s ease-in-out infinite; }

@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(26,58,143,.45); }
  100% { box-shadow: 0 0 0 18px rgba(26,58,143,0); }
}
.step__num::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-accent);
  margin-right: 8px; vertical-align: middle;
  animation: ripple 1.6s ease-out infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logos__items { animation: marquee 38s linear infinite; }
.logos__items:hover { animation-play-state: paused; }
.logos__inner { overflow: hidden; }

.tcard { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tcard:hover { border-color: var(--c-primary-2); }

.svc, .bcard { will-change: transform; }
.svc:hover .svc__icon { transform: rotate(-6deg) scale(1.06); transition: transform .3s ease; }
.svc__icon { transition: transform .3s ease; }

@keyframes underline {
  from { background-size: 0% 2px; }
  to   { background-size: 100% 2px; }
}
.nav a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .3s ease, color .15s ease;
  padding-bottom: 4px;
}
.nav a:hover { background-size: 100% 2px; }

@keyframes tilt {
  0%, 100% { transform: rotate(-1deg); }
  50%      { transform: rotate(1deg); }
}
.hero h1 .accent { display: inline-block; }
.hero h1 .accent { background-size: 200% 200%; animation: gradientshift 8s ease infinite; -webkit-background-clip: text; background-clip: text; }
@keyframes gradientshift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.bars i { transition: transform .2s ease; }
.signal-card:hover .bars i { transform: scaleY(1.15); }

@media (prefers-reduced-motion: reduce) {
  .bars i, .chip, .signal-card::before, .step__num::before,
  .logos__items, .hero h1 .accent { animation: none !important; }
}
.form__msg {
  display: none; padding: 14px 16px; border-radius: var(--r-sm);
  font-size: 14px; gap: 10px; align-items: flex-start;
}
.form__msg.is-shown { display: flex; }
.form__msg--ok { background: #e6f4ec; color: #0e5a3a; border: 1px solid #b8dfc8; }
.form__msg--err { background: #fbe6e6; color: #7a1a1a; border: 1px solid #f0b3b3; }

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  padding: 72px 32px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(26,58,143,.07), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255,122,89,.08), transparent 50%);
}
.cta-final > * { position: relative; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final .lede { margin: 0 auto; }
.cta-final .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.78);
  padding: 72px 0 32px;
  margin-top: 96px;
}
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: white; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer .logo { color: white; }
.footer__about p { color: rgba(255,255,255,.65); font-size: 14px; max-width: 36ch; margin-top: 14px; }
.footer__col h5 {
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase;
  color: white; margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.footer__legal { line-height: 1.5; max-width: 64ch; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 30;
  display: none;
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
}
.sticky-cta .btn {
  flex: 1; justify-content: center;
  box-shadow: 0 12px 40px rgba(14,21,48,.25);
  padding: 16px;
}

/* ---------- Scroll reveal ---------- */
/* Estado inicial sólo cuando JS está activo y aún no se observa */
.js .reveal:not(.is-in) {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > *:not(.is-in) {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal-stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .20s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .28s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .36s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .44s; }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
/* Sin JS: todo visible */
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__blob, .bars i, .chip, .logos__items, .step__num::before, .signal-card::before { animation: none !important; }
}

/* ---------- Coverage callout (city pages) ---------- */
.coverage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 40px;
}
@media (max-width: 820px) { .coverage { grid-template-columns: 1fr; padding: 28px; } }
.coverage__map {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: var(--c-bg-2);
  overflow: hidden;
}
.coverage__map svg { width: 100%; height: 100%; }

/* ---------- Page header (legal / 404) ---------- */
.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.page-hero .lede { margin-top: 16px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 40px; margin-bottom: 14px; font-size: 24px; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; font-size: 19px; }
.prose p, .prose li { color: var(--c-ink-2); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }

/* 404 */
.notfound {
  text-align: center; padding: 120px 24px;
}
.notfound__num {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(120px, 22vw, 240px);
  line-height: .9; letter-spacing: -.06em;
  background: linear-gradient(120deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

/* Thank-you */
.thanks {
  text-align: center; max-width: 640px; margin: 0 auto;
  padding: 80px 24px;
}
.thanks__icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: #d8efe2; color: var(--c-success);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

/* utility */
.center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex.center { justify-content: center; }


/* ============== Conversion improvements v2 ============== */
.hero { overflow: hidden; }
.hero__formwrap { width: min(100%, 520px); justify-self: end; }
.hero-form { box-shadow: 0 28px 90px rgba(16, 38, 84, .24); border: 1px solid rgba(255,255,255,.8); }
.hero-form .form__head { margin-bottom: 18px; }
.mini-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background: rgba(26,58,143,.08); color: var(--c-primary); font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.consent--compact { font-size: 12px; line-height: 1.45; }
.form-note { margin: 12px 0 0; text-align: center; color: var(--c-ink-3); }
.svc__price .num { font-size: clamp(22px, 3vw, 34px); letter-spacing: -1px; }
@media (max-width: 980px) { .hero__formwrap { justify-self: stretch; width: 100%; } .hero__inner { gap: 30px; } }
@media (max-width: 720px) { .hero-form .field-row, .hero-form .field-row-3 { grid-template-columns: 1fr; } .hero-form { padding: 22px; } }

/* ============== Mobile polish v3 ============== */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, canvas { max-width: 100%; }

/* Sticky CTA: reservar espacio para que no tape el footer */
@media (max-width: 720px) {
  body { padding-bottom: 88px; }
  .footer { margin-top: 48px; }
  .sticky-cta {
    left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .sticky-cta .btn { padding: 14px; font-size: 15px; }
}

/* H1 / H2 control en móviles muy chicos */
@media (max-width: 480px) {
  h1 { font-size: clamp(30px, 8.5vw, 40px); letter-spacing: -.02em; }
  h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .hero { padding: 56px 0 64px; }
  .hero__ctas { gap: 8px; margin-top: 24px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero__trust { gap: 12px; margin-top: 24px; font-size: 13px; }
  .lead { padding: 32px 20px; border-radius: var(--r-lg); }
  .form { padding: 22px 18px; }
  .cta-final { padding: 48px 20px; }
}

/* Hero background no debe desbordar horizontal */
.hero__bg { max-width: 100%; }
.hero__blob { will-change: transform; }
@media (max-width: 720px) {
  .hero__blob { width: 320px; height: 320px; filter: blur(60px); opacity: .35; }
  .hero__blob--a { top: -80px; left: -80px; }
  .hero__blob--b { top: 80px; right: -80px; }
}

/* Header + cta, evitar overflow del logo en móviles */
@media (max-width: 380px) {
  .logo__name { font-size: 16px; }
  .header__inner { height: 64px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* Service grid: en móvil resetear los span:6 inline */
@media (max-width: 920px) {
  .svc[style*="span 6"] { grid-column: span 12 !important; }
}

/* Form-row en hero y lead: forzar 1 columna a partir de 640px (no esperar a 540) */
@media (max-width: 640px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr !important; }
}

/* Footer bottom: en móvil que se vea ordenado */
@media (max-width: 540px) {
  .footer { padding: 56px 0 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* FAQ summary: padding y tamaño legible */
@media (max-width: 540px) {
  .faq summary { padding: 16px 18px; font-size: 16px; gap: 12px; }
  .faq__a { padding: 0 18px 18px; font-size: 14px; }
}

/* Section padding más justo en móvil */
@media (max-width: 540px) {
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 36px; }
}

/* Hero__visual: nunca permitir que se rompa con aspect ratio */
@media (max-width: 980px) {
  .hero__visual { aspect-ratio: auto; max-width: 520px; width: 100%; }
}

/* Touch target mínimo 44px */
.mobile-menu a, .nav a, .footer a { min-height: 32px; }
.btn, .icon-btn, .form__submit { min-height: 44px; }

/* Animaciones decorativas: que se vean en móvil aún con prefers-reduced-motion (ligeras) */
@media (max-width: 720px) {
  .bars i { animation-duration: 3s; }
}

/* ==========================================================
   v5 — Visual upgrade: real logos, lifestyle photography
   ========================================================== */

/* ---------- Logos: real SVG marks ---------- */
.logos__items { gap: 40px; }
.logos__item--img {
  height: 26px;
  width: auto;
  max-width: 110px;
  opacity: .55;
  filter: grayscale(1) contrast(.95);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
  display: block;
}
.logos__item--img:hover {
  opacity: 1;
  filter: grayscale(0) contrast(1);
  transform: translateY(-1px);
}
.logos__item--img[alt="WhatsApp"] { height: 28px; }
.logos__item--img[alt="Hulu"]     { height: 18px; }
.logos__item--img[alt="Max"]      { height: 22px; }
@media (max-width: 720px) {
  .logos { padding: 22px 0; }
  .logos__items { gap: 28px; justify-content: center; }
  .logos__inner { justify-content: center; text-align: center; }
}

/* ---------- Why: photo card replaces abstract pattern ---------- */
.why__visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #f7f4ed 0%, #f3f1ec 100%);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
}
.why__visual::before, .why__visual::after { content: none; display: none; } /* override v1 placeholder */
.why__photo {
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
}
.why__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.why__photo-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: 0 8px 24px -8px rgba(14,21,48,.18);
  border: 1px solid rgba(255,255,255,.6);
}
.why__photo-stat {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--c-primary);
  line-height: 1;
}
.why__photo-text {
  font-size: 13px;
  color: var(--c-ink-3);
  line-height: 1.4;
}

/* ---------- Avatares foto reales (testimonios) ---------- */
.avatar--photo {
  width: 48px; height: 48px;
  object-fit: cover;
  background: var(--c-bg-2);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--c-line);
}
/* Override gradient overrides cuando hay foto */
.tcard:nth-child(n) .avatar--photo { background-image: none; }
.tcard__person { grid-template-columns: 48px 1fr; }

/* ---------- Usos / lifestyle strip (zigzag rítmico antes de servicios) ---------- */
#usos { padding-top: 40px; padding-bottom: 40px; }
.usos-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) { .usos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .usos-grid { grid-template-columns: 1fr; gap: 14px; } }

.uso-card {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ink);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  cursor: default;
  transition: transform .35s ease, box-shadow .35s ease;
}
.uso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}
.uso-card > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform .6s ease;
}
.uso-card:hover > img { transform: scale(1.04); }
.uso-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,21,48,0) 35%, rgba(14,21,48,.85) 100%);
  z-index: 1;
}
.uso-card figcaption {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px 22px 22px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-end;
  /* Sit at bottom */
  position: absolute;
  left: 0; right: 0; bottom: 0;
}
.uso-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 4px;
}
.uso-card figcaption h3 {
  color: white;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}
.uso-card figcaption p {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 36ch;
}

/* Primer card ligeramente más alta para asimetría intencional en desktop */
@media (min-width: 981px) {
  .uso-card:first-child { aspect-ratio: 4 / 5.4; }
  .uso-card:first-child figcaption h3 { font-size: 26px; }
}

