/* =========================================================
   MOVIAVATARS PUBLICIDAD · styles.css (v1 borrador)
   ========================================================= */
:root {
  --blue: #4a90e2;
  --blue-dark: #2f74c8;
  --orange: #f5a623;
  --orange-dark: #e08e0b;
  --green: #7ed321;
  --green-dark: #5fa814;
  --bg: #f8faff;
  --white: #ffffff;
  --tint: #eaf3fe;
  --text: #2d3436;
  --muted: #636e72;
  --navy: #12206e; /* marino de la marca, solo footer */
  --radius-xl: 60px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow-sm: 0 4px 14px rgba(45, 52, 54, .08);
  --shadow-md: 0 14px 40px rgba(45, 52, 54, .10);
  --shadow-lg: 0 24px 60px rgba(74, 144, 226, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Bloqueo horizontal: clip (no hidden) para que nada se pueda desplazar de lado
   (ni con el dedo ni por código) y sin romper la navbar fija. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
/* Anclas: que el título de cada sección no quede debajo de la navbar fija */
main [id], footer [id] { scroll-margin-top: 104px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* ---------- Íconos SVG (Lucide ISC + Simple Icons CC0, sprite embebido en index.html) ---------- */
.ico {
  width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -.125em;
  stroke-width: 2; overflow: visible;
}
.ico--inline { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .2em; }
.ico--blue { color: var(--blue); }
.ico--orange { color: var(--orange-dark); }
.arrow-ico { display: inline-flex; align-items: center; }
.arrow-ico .ico { width: 1.05em; height: 1.05em; stroke-width: 2.25; }
.nowrap { white-space: nowrap; }
.flag-co { display: inline-block; width: 1.3em; height: .87em; vertical-align: -.08em; margin-left: .25em; border-radius: 2px; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; position: relative; z-index: 2; }

/* Highlighter (resaltador naranja) */
.hl {
  background-image: linear-gradient(transparent 0, transparent 100%);
  background: linear-gradient(120deg, rgba(245,166,35,.55), rgba(245,166,35,.75)) no-repeat 0 88% / 0% 38%;
  padding: 0 .12em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1s .45s var(--ease);
}
.visible .hl, .hl.visible, .no-anim .hl, html:not(.js) .hl { background-size: 100% 38%; }
.hl--light { background-image: linear-gradient(120deg, rgba(245,166,35,.85), rgba(245,166,35,.95)); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--blue);
  background: rgba(74,144,226,.1);
  padding: .4em 1em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(74,144,226,.35); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 12px 28px rgba(74,144,226,.45); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(245,166,35,.35); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--white { background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: .6em 1.2em; font-size: .92rem; }
.btn--lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn__icon { width: 1.25em; height: 1.25em; }

.pulse-btn { position: relative; isolation: isolate; }
.pulse-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  border: 2px solid rgba(74,144,226,.7);
  animation: pulse-ring 2.4s cubic-bezier(.2,.6,.3,1) infinite;
  pointer-events: none; will-change: transform, opacity;
}
.btn--white.pulse-btn::after { border-color: rgba(255,255,255,.85); }
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(1.12, 1.45); opacity: 0; }
}
.show-xs { display: none; }

/* ---------- Navbar flotante ---------- */
.navbar {
  /* Siempre visible: fija, encima de todo y sin translateX(-50%) (centrada con márgenes) */
  position: fixed; top: 16px; left: 0; right: 0; margin-inline: auto;
  z-index: 1000; isolation: isolate; transform: translate3d(0, 0, 0);
  width: min(1160px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 12px 10px 24px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, background-color .3s, top .3s;
}
.navbar.is-scrolled { background: rgba(255,255,255,.88); box-shadow: var(--shadow-md); top: 10px; }
.navbar__logo img { height: 40px; width: auto; }
.navbar__links { display: flex; gap: .4rem; }
.navbar__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--text); text-decoration: none; padding: .5em .9em; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.navbar__links a:hover, .navbar__links a.is-active { background: rgba(74,144,226,.12); color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 160px 0 150px;
  background: radial-gradient(circle at 85% 20%, rgba(74,144,226,.10), transparent 45%), var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__grid > *, .split > * { min-width: 0; } /* que un botón largo no ensanche la columna en móvil */
.hero__visual { touch-action: pan-y pinch-zoom; }
.hero__brand { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--blue); margin-top: -.4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8rem 0 1.6rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: #fff; border-radius: 999px; padding: .35em .95em; font-weight: 700; font-size: .9rem;
  color: var(--muted); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease);
  display: inline-flex; align-items: center; gap: .4em;
}
.chips .ico { width: 1.05em; height: 1.05em; color: var(--blue); }
.chips li:hover { transform: translateY(-3px) rotate(-2deg); }

.hero__emojis, .cta__emojis { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-emoji {
  position: absolute; left: var(--x); top: var(--y);
  font-size: clamp(20px, 2vw, 27px); width: 2.25em; height: 2.25em;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--blue);
  box-shadow: 0 10px 24px rgba(45,52,54,.07), inset 0 0 0 1px rgba(74,144,226,.14);
  opacity: .85;
  transform: rotate(var(--r));
  animation: float var(--d) ease-in-out infinite;
}
.float-emoji .ico { width: 1em; height: 1em; stroke-width: 1.9; }
.float-emoji--orange { color: var(--orange-dark); box-shadow: 0 10px 24px rgba(45,52,54,.07), inset 0 0 0 1px rgba(245,166,35,.22); }
.float-emoji--green { color: var(--green-dark); box-shadow: 0 10px 24px rgba(45,52,54,.07), inset 0 0 0 1px rgba(126,211,33,.25); }
.float-emoji:nth-child(even) { animation-direction: reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-22px) rotate(calc(var(--r) * -1)); }
}

.blob { position: absolute; z-index: 0; filter: blur(4px); }
.blob--blue {
  width: 520px; height: 520px; right: -140px; top: 60px;
  background: rgba(74,144,226,.14);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 16s ease-in-out infinite;
}
.blob--orange {
  width: 300px; height: 300px; left: -120px; bottom: 20px;
  background: rgba(245,166,35,.16);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morph 13s ease-in-out infinite reverse;
}
@keyframes morph {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(14deg) scale(1.06); }
}

.hero__visual { position: relative; height: 460px; display: grid; place-items: center; }
.hero__shape, .hero__ring { grid-area: 1 / 1; }
.hero__shape {
  position: relative; width: 380px; height: 380px;
  background: linear-gradient(145deg, var(--blue), #7db5f0);
  border-radius: 61% 39% 52% 48% / 44% 56% 44% 56%;
  box-shadow: var(--shadow-lg);
  animation: breathe 5s ease-in-out infinite;
  will-change: transform;
}
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.05) rotate(5deg); }
}
.hero__ring {
  width: 380px; height: 380px; border-radius: 50%;
  border: 3px solid rgba(74,144,226,.7);
  background: radial-gradient(circle, transparent 62%, rgba(74,144,226,.10) 70%);
  animation: ring 4s cubic-bezier(.2,.6,.3,1) infinite;
  opacity: 0; will-change: transform, opacity;
}
.hero__ring--2 { animation-delay: 2s; }
@keyframes ring {
  0%   { transform: scale(.98); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.hero__mascot {
  grid-area: 1 / 1; position: relative; width: 190px; height: auto;
  filter: drop-shadow(0 20px 30px rgba(18,32,110,.25));
  animation: bob 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }

/* Etiquetas: cada una flota en su propio ciclo y aparecen en secuencia
   Reel listo -> Anuncio activo en Meta -> Nuevo mensaje en WhatsApp */
.hero-card {
  position: absolute; z-index: 3;
  animation: pop 9s var(--ease) infinite both;
  will-change: transform, opacity;
}
.hero-card__in {
  display: flex; align-items: center; gap: .5em;
  background: #fff; border-radius: 18px; padding: .7em 1.1em;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text);
  box-shadow: var(--shadow-md); white-space: nowrap;
  animation: float 6s ease-in-out infinite; --r: 0deg;
}
.hero-card__ico {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
}
.hero-card__ico .ico { width: 16px; height: 16px; }
.hero-card__ico--orange { background: rgba(245,166,35,.16); color: var(--orange-dark); }
.hero-card__ico--blue { background: rgba(74,144,226,.14); color: var(--blue); }
.hero-card--1 { top: 34px; left: -10px; }
.hero-card--2 { top: 330px; right: -24px; animation-delay: 1.3s; }
.hero-card--2 .hero-card__in { animation-duration: 7s; animation-delay: -2s; }
.hero-card--3 { bottom: 14px; left: 0; animation-delay: 2.6s; }
.hero-card--3 .hero-card__in { animation-duration: 5.4s; animation-delay: -4s; }
@keyframes pop {
  0%        { opacity: 0; transform: translateY(14px) scale(.6); }
  6%        { opacity: 1; transform: translateY(0) scale(1.08); }
  10%       { transform: translateY(0) scale(1); }
  72%       { opacity: 1; transform: translateY(0) scale(1); }
  80%, 100% { opacity: 0; transform: translateY(-10px) scale(.85); }
}
.dot-green {
  position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: 0 0 auto;
}
.dot-green::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.notif {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #ff5a5f; color: #fff; font-size: .74rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(255,90,95,.4);
}
.notif.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- Secciones con esquinas orgánicas ---------- */
.section {
  position: relative; overflow-x: clip;
  padding: 110px 0 160px;
  margin-top: calc(var(--radius-xl) * -1);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.section--white { background: var(--white); box-shadow: 0 -20px 40px rgba(45,52,54,.04); }
.section--tint  { background: linear-gradient(180deg, var(--tint), #f3f8ff); }
.section--light { background: var(--bg); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__sub { color: var(--muted); font-size: 1.12rem; }

/* ---------- Servicios split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  margin-bottom: 110px;
}
.split:last-child { margin-bottom: 0; }
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }
.split__tag { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--blue); margin: 0 0 .4em; }
.split__tag--orange { color: var(--orange-dark); }
.split__text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
.split__text > p { color: var(--muted); }
.service-icon {
  width: 72px; height: 72px; display: grid; place-items: center; font-size: 2.1rem;
  border-radius: 24px 24px 24px 8px; margin-bottom: 1.2rem;
  transition: transform .5s var(--ease);
}
.service-icon .ico { width: 34px; height: 34px; stroke-width: 1.8; }
/* Números 01 / 02 en lugar de ícono (mismo contenedor, mismos colores) */
.service-icon--num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; }
.service-icon--blue { background: rgba(74,144,226,.14); color: var(--blue); }
.service-icon--orange { background: rgba(245,166,35,.18); color: var(--orange-dark); }
.service-icon:hover, .split__text:hover .service-icon { transform: rotate(-12deg) scale(1.15); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 600; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: rgba(126,211,33,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fa814' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .85rem no-repeat;
}
.quote {
  background: rgba(245,166,35,.1); border-left: 4px solid var(--orange);
  padding: .9em 1.2em; border-radius: 0 16px 16px 0; color: var(--text) !important; font-size: .98rem;
}
.quote .ico { color: var(--orange-dark); }
.split__media { position: relative; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.split__media::before {
  content: ''; position: absolute; inset: 8% 4%; z-index: 0;
  background: rgba(74,144,226,.12);
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  animation: morph 15s ease-in-out infinite;
}
.split--reverse .split__media::before { background: rgba(245,166,35,.16); }
.mock-browser {
  position: relative; z-index: 1; width: 100%; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-md); transform: rotate(-2deg); transition: transform .5s var(--ease);
}
.mock-browser:hover { transform: rotate(0) scale(1.02); }
.mock-browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f4f9; }
.mock-browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.mock-browser__bar i:nth-child(2) { background: var(--orange); }
.mock-browser__bar i:nth-child(3) { background: var(--green); }
.mock-browser__bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-browser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mock-phone {
  position: relative; z-index: 1; width: min(270px, 70%); aspect-ratio: 9 / 17.5;
  border: 10px solid #1f2430; border-radius: 40px; overflow: hidden; background: #000;
  box-shadow: var(--shadow-md); transform: rotate(3deg); transition: transform .5s var(--ease);
}
.mock-phone:hover { transform: rotate(0) scale(1.03); }
.mock-phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.mock-phone__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.88); color: var(--blue); font-size: 1.4rem; padding-left: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.mock-phone__play .ico { width: 24px; height: 24px; }
.mock-phone__cta {
  position: absolute; left: 12px; right: 12px; bottom: 14px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: .6em; border-radius: 14px;
}
.sticker {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: .55em 1em;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite; --r: 0deg;
  display: flex; align-items: center; gap: .45em;
}
.sticker .ico { width: 1.15em; height: 1.15em; }
.sticker--1 { top: 14%; left: 2%; }
.sticker--2 { bottom: 16%; right: 2%; animation-delay: -3s; }

.badge-live {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; padding: .35em .9em; border-radius: 999px; box-shadow: 0 6px 16px rgba(126,211,33,.35);
}
.badge-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink-white 1.6s infinite; }
@keyframes blink-white { 50% { opacity: .35; } }
.badge-live--float { position: absolute; z-index: 2; right: 4%; bottom: 6%; font-size: .9rem; }

/* ---------- Ecosistema ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.flow__step {
  flex: 1 1 0; background: #fff; border-radius: 28px; padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow-sm); border: 2px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.flow__step:hover { transform: translateX(10px); box-shadow: var(--shadow-md); border-color: rgba(74,144,226,.35); }
.flow__step h3 { margin-bottom: .3em; }
.flow__step p { color: var(--muted); font-size: .97rem; margin: 0; }
.flow__icon {
  width: 70px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2rem;
  background: rgba(74,144,226,.12); border-radius: 50% 50% 50% 18%; color: var(--blue);
  transition: transform .5s var(--ease);
}
.flow__icon .ico { width: 32px; height: 32px; stroke-width: 1.8; }
.flow__step:hover .flow__icon { transform: rotate(-12deg) scale(1.12); }
.flow__step--final { background: linear-gradient(160deg, #f2fde6, #fff); border-color: rgba(126,211,33,.55); }
.flow__step--final .flow__icon { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(126,211,33,.4); }
.flow__step--final h3 { color: var(--green-dark); }
.flow__step--final:hover { border-color: var(--green); }
.flow__arrow {
  align-self: center; flex: 0 0 auto; font-size: 1.8rem; color: var(--orange);
  animation: nudge 1.6s ease-in-out infinite;
  display: grid; place-items: center; min-height: 1.65em; /* misma altura que tenía la flecha de texto */
}
.flow__arrow .ico { width: 1.8rem; height: 1.8rem; stroke-width: 2.5; }
.flow__arrow:nth-of-type(4) { animation-delay: .2s; }
.flow__arrow:nth-of-type(6) { animation-delay: .4s; }
@keyframes nudge { 0%,100% { translate: 0 0; } 50% { translate: 8px 0; } }

/* ---------- Cómo trabajamos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step {
  position: relative; background: var(--bg); border-radius: 30px; padding: 34px 26px 28px;
  transition: transform .4s var(--ease), box-shadow .4s, background-color .4s;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: #fff; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.step__num {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff;
  background: var(--blue); border-radius: 18px 18px 18px 6px; box-shadow: 0 10px 22px rgba(74,144,226,.35);
  transition: transform .5s var(--ease);
}
.step:hover .step__num { transform: rotate(-10deg) scale(1.1); }
.step__num--green { background: var(--green); box-shadow: 0 10px 22px rgba(126,211,33,.4); }

/* ---------- Mosaico de clientes ---------- */
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px;
  grid-auto-flow: dense; padding: 10px 0;
}
/* .tile = enlace (toda la tarjeta es clicable). Entrada: translate (reveal). Hover: transform. */
.tile {
  position: relative; display: block; text-decoration: none; color: #fff; border-radius: 28px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), transform .5s var(--ease) !important;
}
.tile--big  { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
/* .tile__card = tarjeta visible que flota sola en bucle */
.tile__card {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: 28px; background: #dde6f3; box-shadow: var(--shadow-sm);
  animation: tile-float 6.5s ease-in-out infinite;
  will-change: transform;
  isolation: isolate;
}
.tile--big .tile__card { border-radius: 40px; }
.tile:nth-child(1) .tile__card { animation-duration: 7.2s; animation-delay: -1.2s; }
.tile:nth-child(2) .tile__card { animation-duration: 6.1s; animation-delay: -3.4s; }
.tile:nth-child(3) .tile__card { animation-duration: 6.8s; animation-delay: -0.6s; }
.tile:nth-child(4) .tile__card { animation-duration: 5.7s; animation-delay: -2.5s; }
@keyframes tile-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(.4deg); }
}
.tile:nth-child(even) .tile__card { animation-name: tile-float-alt; }
@keyframes tile-float-alt {
  0%, 100% { transform: translateY(-4px) rotate(0deg); }
  50%      { transform: translateY(5px) rotate(-.4deg); }
}
/* Imagen: Ken Burns lento (transform) + zoom extra al hover (propiedad scale) */
.tile img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center);
  animation: kenburns 22s ease-in-out infinite alternate;
  transition: scale .8s var(--ease);
  will-change: transform;
}
.tile:nth-child(2) img { animation-name: kenburns-2; animation-duration: 26s; }
.tile:nth-child(3) img { animation-duration: 19s; animation-delay: -6s; }
.tile:nth-child(4) img { animation-name: kenburns-2; animation-duration: 24s; animation-delay: -9s; }
@keyframes kenburns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.16) translate(-2.5%, -2%); }
}
@keyframes kenburns-2 {
  0%   { transform: scale(1.14) translate(2%, 1%); }
  100% { transform: scale(1.04) translate(-1%, -1.5%); }
}
.tile__badge {
  position: absolute; z-index: 2; top: 16px; left: 16px;
  background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  padding: .3em .85em; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: opacity .3s;
}
/* Nombre del negocio siempre visible (abajo a la izquierda). Se oculta al hover, donde el overlay ya lo muestra. */
.tile__name {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  display: inline-flex; align-items: center; gap: .45em;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .8rem; line-height: 1.25;
  padding: .42em .9em .42em .75em; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.16);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .3s;
}
.tile__name::before { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tile--big .tile__name { left: 20px; bottom: 20px; font-size: .9rem; }
@media (max-width: 1080px) { .tile:not(.tile--big) .tile__name { left: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: .72rem; } }
.tile__overlay {
  position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px;
  padding: 22px; background: linear-gradient(180deg, transparent 30%, rgba(18,24,40,.85));
  opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile__overlay strong { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; margin-top: 6px; }
.tile--big .tile__overlay strong { font-size: 1.7rem; }
.tile__overlay small { font-size: .85rem; opacity: .9; }
.tile__cta {
  display: inline-flex; align-items: center; gap: .35em; margin-top: 8px;
  background: #fff; color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: .45em 1em; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.tile__cta span { display: inline-block; transition: transform .35s var(--ease); }
.tile:hover, .tile:focus-visible { transform: translateY(-10px) rotate(-1.2deg) scale(1.02); z-index: 5; }
.tile:nth-child(even):hover, .tile:nth-child(even):focus-visible { transform: translateY(-10px) rotate(1.2deg) scale(1.02); }
.tile:hover .tile__card, .tile:focus-visible .tile__card { box-shadow: 0 26px 50px rgba(18,32,110,.25); }
.tile:hover img, .tile:focus-visible img { scale: 1.1; }
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; transform: none; }
.tile:hover .tile__badge, .tile:focus-visible .tile__badge,
.tile:hover .tile__name, .tile:focus-visible .tile__name { opacity: 0; }
.tile:hover .tile__cta span { transform: translateX(4px); }
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile__card { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- CTA final ---------- */
.section--cta {
  background: linear-gradient(135deg, var(--blue) 0%, #3b7fd4 55%, #5aa0ec 100%);
  color: #fff; overflow: hidden; text-align: center;
}
.section--cta::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px;
  background: rgba(255,255,255,.08); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 16s ease-in-out infinite;
}
.section--cta .float-emoji { opacity: .9; color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.cta { max-width: 780px; }
.cta__mascot { width: 84px; height: auto; margin: 0 auto 18px; animation: bob 5s ease-in-out infinite; }
.section--cta h2 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; margin-bottom: .15em; }
.section--cta .hl { color: #fff; }
.cta__brand { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); opacity: .95; }
.cta__text { font-size: 1.15rem; opacity: .92; max-width: 34em; margin: 0 auto 2rem; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-weight: 700; }
.contact-list li { display: inline-flex; align-items: center; gap: .45em; }
.contact-list .ico { width: 1.15em; height: 1.15em; }
.cta__pending {
  display: inline-block; margin: 1.6rem auto 0; padding: .7em 1.3em; border-radius: 16px;
  background: rgba(255,255,255,.14); font-size: .95rem;
}
.socials { display: flex; gap: 12px; justify-content: center; margin-top: 1.6rem; }
.socials:not(:has(a:not([hidden]))) { display: none; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; transition: transform .3s var(--ease), background-color .3s;
}
.socials a:hover { transform: translateY(-4px) rotate(-8deg); background: rgba(255,255,255,.3); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow-x: clip; margin-top: calc(var(--radius-xl) * -1);
  background: var(--navy); color: rgba(255,255,255,.8);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 80px 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__brand img { width: 210px; height: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 26em; font-size: .97rem; }
.footer__nav { display: grid; gap: 8px; }
.footer__nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; width: fit-content; transition: color .25s, transform .25s; }
.footer__nav a:hover { color: var(--orange); transform: translateX(4px); }
.footer__contact { display: grid; gap: 14px; justify-items: start; }
.footer__title { font-family: var(--font-head); font-weight: 600; color: #fff; margin: 0; font-size: 1.1rem; }
.socials--footer { justify-content: flex-start; margin-top: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: .9rem; text-align: center; }
.footer__bottom p { margin: 0; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0; translate: 0 40px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), transform .4s var(--ease), box-shadow .4s, background-color .4s, border-color .4s;
}
.js .reveal.visible { opacity: 1; translate: 0 0; }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }
/* el retraso solo aplica a la entrada, no a los hovers */
.reveal.visible.is-done { transition-delay: 0s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .navbar__links a { padding: .5em .6em; font-size: .9rem; }
  .flow { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .navbar { padding: 8px 8px 8px 18px; }
  .navbar__links { display: none; }
  .navbar__logo img { height: 34px; }
  .hero { padding: 130px 0 130px; }
  .hero__grid, .split, .footer__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 20px; text-align: left; }
  .hero__visual { height: 340px; }
  .hero__shape { width: 280px; height: 280px; }
  .hero-card__in { font-size: .82rem; }
  .hero-card--1 { top: 18px; left: 0; }
  .hero-card--2 { top: 60px; right: 0; }
  .hero-card--3 { bottom: 10px; left: auto; right: 4%; }
  .hero__mascot { width: 140px; }
  .mock-browser { transform: rotate(-1deg); }
  .tile__overlay { opacity: 1; transform: none; }
  .tile__overlay .badge-live { display: none; }
  .tile__name { display: none; } /* en ≤900px el overlay ya muestra el nombre siempre */
  .tile__overlay { background: linear-gradient(180deg, transparent 40%, rgba(18,24,40,.8)); }
  .tile__cta { font-size: .74rem; padding: .35em .8em; margin-top: 4px; }
  .hero__emojis .float-emoji:nth-child(n+5) { display: none; }
  .split { gap: 40px; margin-bottom: 80px; }
  .split--reverse .split__text, .split__text { order: 2; }
  .split--reverse .split__media, .split__media { order: 1; }
  .section { padding: 90px 0 140px; }
  .section__head { margin-bottom: 44px; }
  .flow { flex-direction: column; align-items: stretch; max-width: 460px; margin: 0 auto; }
  .flow__arrow { transform: rotate(90deg); align-self: center; }
  .flow__step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; text-align: left; align-items: center; padding: 22px; }
  .flow__icon { grid-row: span 2; margin: 0; width: 60px; height: 60px; font-size: 1.7rem; }
  .flow__icon .ico { width: 28px; height: 28px; }
  .flow__step h3 { margin: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
  .footer__grid { gap: 28px; }
}
@media (max-width: 520px) {
  :root { --radius-xl: 40px; }
  body { font-size: 1rem; }
  .container { width: calc(100% - 36px); }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .navbar__logo img { height: 30px; }
  .hero__ctas .btn { width: 100%; }
  .cta__buttons .btn { width: 100%; white-space: normal; }
  .hero__ctas .btn, .split__text .btn { white-space: normal; text-align: center; max-width: 100%; }
  main [id] { scroll-margin-top: 92px; }
  .steps { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 140px; gap: 10px; }
  .tile, .tile__card { border-radius: 20px; }
  .tile--big .tile__card { border-radius: 26px; }
  .tile__cta { display: none; }
  .tile--big .tile__cta { display: inline-flex; }
  .tile__overlay { padding: 12px; }
  .tile__overlay strong { font-size: .92rem; }
  .tile--big .tile__overlay strong { font-size: 1.25rem; }
  .tile__overlay small { font-size: .72rem; }
  .tile__badge { top: 10px; left: 10px; font-size: .66rem; }
  .float-emoji { font-size: 17px; opacity: .7; }
  .cta__emojis { display: none; }
  .hero__emojis .float-emoji:nth-child(2), .hero__emojis .float-emoji:nth-child(3) { display: none; }
  .hero-card--1 { top: 4px; left: 0; }
  .hero-card--2 { top: 52px; right: 0; }
  .hero-card--3 { bottom: 4px; right: 0; }
  .hero__ring { width: 240px; height: 240px; }
  .tile:not(.tile--big):not(.tile--wide) .tile__overlay small { display: none; }
  .hero__visual { height: 340px; }
  .hero__shape { width: 240px; height: 240px; }
  .hero__mascot { width: 120px; }
  .sticker { font-size: .78rem; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
  .hl { background-size: 100% 38%; }
  .pulse-btn::after, .hero__ring { display: none; }
}
@media (max-width: 900px) {
  .flow__arrow { animation-name: nudge-down; }
  @keyframes nudge-down { 0%,100% { translate: 0 0; } 50% { translate: 0 6px; } }
}

/* Vitrina: foto vertical completa, sin recorte */
.mock-browser--vertical { width: min(320px, 82%); margin-inline: auto; }
.mock-browser--vertical img { aspect-ratio: 619 / 1100; object-fit: contain; }

/* Móvil: el nombre del Gimnasio no se monta sobre el texto del afiche */
@media (max-width: 900px) {
  .tile--wide .tile__overlay { background: linear-gradient(90deg, rgba(18,24,40,.8) 0%, rgba(18,24,40,.4) 42%, transparent 58%) left bottom / 100% 62% no-repeat; }
  .tile--wide .tile__overlay > * { max-width: 46%; }
  .tile--wide .tile__overlay small { display: none; }
}

/* Marca de la barra superior +20 % (botón Cotizar y altura de barra sin cambios) */
.navbar__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.navbar__logo img { height: 48px; margin-block: -1px; }
@media (max-width: 900px) {
  .navbar__logo img { height: 41px; margin-block: 0; }
}
@media (max-width: 520px) {
  /* en pantallas muy angostas el aumento se reduce para no tocar el botón */
  .navbar__logo img { height: clamp(31px, calc(10vw - 1px), 36px); }
}
