/* =========================================================
   One page médico — Propuesta visual
   Tokens: sobreescribir por médico (logo/colores propios)
   ========================================================= */
:root {
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --navy-3: #1b4c7e;
  --blue: #1e6fd9;
  --blue-2: #4c8fea;
  --sky: #e8f1fb;
  --sky-2: #d3e4f8;
  --white: #ffffff;
  --paper: #f7fafe;
  --ink: #0e1b2b;
  --muted: #5b6b7f;
  --line: #dce6f2;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --error: #d64545;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(11, 42, 74, 0.06);
  --shadow: 0 12px 40px -12px rgba(11, 42, 74, 0.18);
  --shadow-lg: 0 30px 80px -24px rgba(11, 42, 74, 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(40px, 8vw, 80px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
iframe,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--blue);
  color: var(--white);
}
:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.hero__eyebrow::before {
  display: none;
}
.eyebrow--light {
  color: var(--blue-2);
}

.section-title,
.hero__title,
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--navy);
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 18ch;
}
.section-title em,
.hero__title em,
.cta-band__title em {
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}
.section-title--light {
  color: var(--white);
}
.section-title--light em {
  color: var(--blue-2);
}
.section-lead {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 52ch;
}
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.3s,
    color 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.45s var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn--sm {
  padding: 11px 20px;
  font-size: 0.88rem;
}
.btn--lg {
  padding: 18px 30px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  --btn-bg: var(--blue);
}
.btn--wa {
  --btn-bg: var(--wa);
  --btn-fg: #06331a;
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.6);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost::after {
  background: var(--sky);
}
.btn .icon {
  width: 1.3em;
  height: 1.3em;
  transition: transform 0.35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after {
    transform: translateY(0);
  }
  .btn--ghost:hover .icon {
    transform: translateX(4px);
  }
  .btn--primary:hover,
  .btn--wa:hover {
    box-shadow: var(--shadow);
  }
}

.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--navy);
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.2s var(--ease-out);
}
.icon-btn:active {
  transform: scale(0.94);
}
@media (hover: hover) {
  .icon-btn:hover {
    background: var(--navy);
    color: var(--white);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}
.link-arrow .icon {
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--line);
}

/* ---------- Preloader ---------- */
.preloader {
  display: none;
}
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--navy);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out);
}
.preloader__inner {
  position: relative;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
}
.preloader__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.preloader__ring circle {
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 1.5;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: ring-draw 1.1s var(--ease-in-out) forwards;
}
.preloader__mono {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--white);
  opacity: 0;
  animation: fade-in 0.6s 0.3s var(--ease-out) forwards;
}
.is-loaded .preloader {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ---------- Scroll progress + cursor ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
}
.cursor {
  display: none;
}
.has-cursor .cursor {
  display: block;
}
.has-cursor,
.has-cursor a,
.has-cursor button {
  cursor: none;
}
.has-cursor input,
.has-cursor textarea,
.has-cursor select {
  cursor: text;
}
.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  translate: -50% -50%;
}
.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
}
.cursor__ring {
  width: 38px;
  height: 38px;
  box-shadow: inset 0 0 0 1.5px rgba(30, 111, 217, 0.5);
  transition:
    width 0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    background-color 0.35s,
    box-shadow 0.35s,
    opacity 0.3s;
}
.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  background: rgba(30, 111, 217, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(30, 111, 217, 0.2);
}
.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__ring {
  opacity: 0;
}
.cursor.is-down .cursor__ring {
  width: 30px;
  height: 30px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.4s,
    box-shadow 0.4s,
    backdrop-filter 0.4s;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden {
  transform: translateY(-100%);
}
.js .header {
  opacity: 0;
  transform: translateY(-20px);
}
.js.is-loaded .header {
  opacity: 1;
  transform: none;
  transition:
    transform 0.8s 0.6s var(--ease-out),
    opacity 0.8s 0.6s,
    background-color 0.4s,
    box-shadow 0.4s;
}
.js.is-loaded .header.is-hidden {
  transform: translateY(-100%);
  transition-delay: 0s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__text strong {
  font-size: 0.98rem;
  color: var(--navy);
}
.brand__text small {
  font-size: 0.74rem;
  color: var(--muted);
}

.nav {
  display: none;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 999px;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a.is-active {
  color: var(--blue);
}
.header__cta {
  display: none;
}

.burger {
  position: relative;
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.45s var(--ease-out),
    background-color 0.3s;
}
.menu-open .burger {
  background: rgba(255, 255, 255, 0.12);
}
.menu-open .burger span {
  background: var(--white);
}
.menu-open .burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-open .burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.menu-open .brand__text strong {
  color: var(--white);
}
.menu-open .header.is-scrolled {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  clip-path: circle(
    0% at calc(100% - var(--gutter) - 23px) calc(var(--header-h) / 2)
  );
  visibility: hidden;
  transition:
    clip-path 0.8s var(--ease-in-out),
    visibility 0s 0.8s;
}
.menu-open .mobile-menu {
  clip-path: circle(
    150% at calc(100% - var(--gutter) - 23px) calc(var(--header-h) / 2)
  );
  visibility: visible;
  transition:
    clip-path 0.8s var(--ease-in-out),
    visibility 0s;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--white);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.mobile-menu__wa {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.menu-open .mobile-menu__nav a,
.menu-open .mobile-menu__wa {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i, 0) * 60ms);
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .burger,
  .mobile-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 90px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(11, 42, 74, 0.08) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(
    ellipse at 70% 40%,
    #000 0%,
    transparent 65%
  );
}
.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation:
    morph 14s ease-in-out infinite,
    drift 20s ease-in-out infinite;
  will-change: transform, border-radius;
}
.blob--1 {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  right: -10vw;
  top: -8vw;
  background: radial-gradient(circle at 30% 30%, var(--sky-2), transparent 70%);
}
.blob--2 {
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  left: -8vw;
  bottom: 0;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(76, 143, 234, 0.18),
    transparent 70%
  );
  animation-delay:
    -5s,
    -8s;
}
.blob--3 {
  width: 16vw;
  height: 16vw;
  max-width: 200px;
  max-height: 200px;
  left: 42%;
  top: 18%;
  background: radial-gradient(
    circle,
    rgba(30, 111, 217, 0.12),
    transparent 70%
  );
  animation-delay:
    -9s,
    -3s;
}
@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  33% {
    border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%;
  }
  66% {
    border-radius: 30% 70% 38% 62% / 58% 31% 69% 42%;
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  50% {
    transform: translate(3%, 6%) rotate(20deg);
  }
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 15ch;
}
.hero__lead {
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 48ch;
}
.hero__lead strong {
  color: var(--navy);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust .icon {
  color: var(--blue);
}

.hero__media {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}
.hero__frame {
  position: relative;
  aspect-ratio: 11 / 13;
  border-radius: 48% 52% 42% 58% / 38% 36% 64% 62%;
  overflow: hidden;
  background: var(--sky);
  animation: morph-soft 18s ease-in-out infinite;
}
@keyframes morph-soft {
  0%,
  100% {
    border-radius: 48% 52% 42% 58% / 38% 36% 64% 62%;
  }
  50% {
    border-radius: 56% 44% 52% 48% / 44% 50% 50% 56%;
  }
}
.hero__img {
  position: absolute;
  inset: -6% 0;
}
.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--navy);
}
.badge--exp {
  left: -4%;
  bottom: 14%;
}
.badge__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--blue);
}
.badge__label {
  font-weight: 600;
}
.badge--status {
  right: -2%;
  top: 10%;
}
.badge--status small {
  display: block;
  color: var(--muted);
}
.badge__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue);
}

.hero__orbit {
  position: absolute;
  width: 130px;
  right: -4%;
  bottom: -4%;
  animation: spin 22s linear infinite;
}
.hero__orbit text {
  font-size: 15.5px;
  letter-spacing: 3.3px;
  font-weight: 700;
  fill: var(--navy);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }
  .scroll-cue {
    display: block;
  }
}
@media (max-width: 520px) {
  .badge {
    padding: 10px 14px;
    font-size: 0.74rem;
  }
  .badge__num {
    font-size: 1.7rem;
  }
  .badge--status {
    right: 0;
  }
  .badge--exp {
    left: 0;
  }
  .hero__orbit {
    width: 96px;
    right: 0;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* Intro del hero (tras preloader) */
.js .hero__eyebrow,
.js .hero__lead,
.js .hero__actions,
.js .hero__trust {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out);
}
.js .hero__frame {
  clip-path: inset(100% 0 0 0 round 40px);
  transition: clip-path 1.4s 0.15s var(--ease-in-out);
}
.js .hero__img img {
  transform: scale(1.3);
  transition: transform 1.8s 0.15s var(--ease-out);
}
.js .badge,
.js .hero__orbit {
  opacity: 0;
  scale: 0.7;
  transition:
    opacity 0.6s var(--ease-out),
    scale 0.8s var(--ease-spring);
}
.js.is-loaded .hero__eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.js.is-loaded .hero__lead {
  opacity: 1;
  transform: none;
  transition-delay: 0.7s;
}
.js.is-loaded .hero__actions {
  opacity: 1;
  transform: none;
  transition-delay: 0.85s;
}
.js.is-loaded .hero__trust {
  opacity: 1;
  transform: none;
  transition-delay: 1s;
}
.js.is-loaded .hero__frame {
  clip-path: inset(0 0 0 0 round 0px);
}
.js.is-loaded .hero__img img {
  transform: scale(1);
}
.js.is-loaded .badge--status {
  opacity: 1;
  scale: 1;
  transition-delay: 1.1s;
}
.js.is-loaded .badge--exp {
  opacity: 1;
  scale: 1;
  transition-delay: 1.25s;
}
.js.is-loaded .hero__orbit {
  opacity: 1;
  scale: 1;
  transition-delay: 1.4s;
}
[data-float] {
  animation: float 6s ease-in-out infinite;
}
.badge--exp[data-float] {
  animation-delay: -3s;
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* ---------- Split text ---------- */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.word__inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms + var(--split-delay, 0ms));
}
.is-visible .word__inner,
.is-visible.word__inner,
[data-split].is-visible .word__inner {
  transform: none;
}
.hero__title {
  --split-delay: 250ms;
}
.js.is-loaded .hero__title .word__inner {
  transform: none;
}

/* ---------- Reveals ---------- */
.js [data-reveal] {
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out),
    clip-path 1.2s var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="up"] {
  opacity: 0;
  transform: translateY(40px);
}
.js [data-reveal="left"] {
  opacity: 0;
  transform: translateX(-40px);
}
.js [data-reveal="right"] {
  opacity: 0;
  transform: translateX(40px);
}
.js [data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.9);
}
.js [data-reveal="fade"] {
  opacity: 0;
}
/* clip/mask se aplican al hijo: IntersectionObserver ignora elementos recortados al 0% */
.js [data-reveal="clip"] > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease-in-out);
}
.js [data-reveal="mask"] > * {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.4s var(--ease-in-out);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal="clip"].is-visible > * {
  clip-path: inset(0 0 0 0);
}
.js [data-reveal="mask"].is-visible > * {
  clip-path: circle(75% at 50% 50%);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy);
  color: var(--white);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transform: rotate(-1.5deg) scale(1.04);
  margin-block: -20px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  white-space: nowrap;
  font-weight: 400;
}
.marquee span.o {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
}
.marquee i {
  font-style: normal;
  color: var(--blue-2);
  font-size: 1.2rem;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Servicios ---------- */
.services {
  background: var(--white);
  padding-top: calc(var(--section-y) + 20px);
}
.services__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.service {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  padding: 34px 30px 36px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    box-shadow 0.5s var(--ease-out),
    background-color 0.5s;
}
.js .service[data-reveal] {
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .service.is-visible {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
}
.service.is-tilting {
  transition:
    box-shadow 0.5s var(--ease-out),
    transform 0.12s linear;
  transition-delay: 0s !important;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(30, 111, 217, 0.1),
    transparent 60%
  );
  transition: opacity 0.4s;
}
.service > * {
  position: relative;
  z-index: 1;
}
.service__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue);
  margin-bottom: 26px;
  transition:
    background-color 0.45s var(--ease-out),
    color 0.45s,
    transform 0.6s var(--ease-spring);
}
.service__icon .icon {
  width: 28px;
  height: 28px;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service p {
  color: var(--muted);
  font-size: 0.96rem;
}
.service__num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--sky-2);
  transition: color 0.4s;
}
@media (hover: hover) and (pointer: fine) {
  .service:hover {
    box-shadow:
      var(--shadow),
      inset 0 0 0 1px var(--sky-2);
  }
  .service:hover::before {
    opacity: 1;
  }
  .service:hover .service__icon {
    background: var(--blue);
    color: var(--white);
    transform: rotate(-8deg) scale(1.06);
  }
  .service:hover .service__num {
    color: var(--blue);
  }
}

/* ---------- Proceso (pin horizontal) ---------- */
.process {
  position: relative;
  background: var(--navy);
  color: var(--white);
}
.process__sticky {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
}
.process__track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-inline: var(--gutter);
  max-width: 1240px;
  margin-inline: auto;
}
.process__intro {
  margin-bottom: 20px;
}
.process__hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
}
.process__hint .icon {
  animation: nudge 1.6s var(--ease-in-out) infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(6px);
  }
}
.step {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-2), rgba(18, 58, 99, 0.4));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.step__num {
  position: absolute;
  right: 24px;
  top: 6px;
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}
.step__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(76, 143, 234, 0.16);
  color: var(--blue-2);
  margin-bottom: 28px;
}
.step__icon .icon {
  width: 26px;
  height: 26px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.step p {
  color: rgba(255, 255, 255, 0.7);
}
.step--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  background: var(--blue);
}
.step--cta h3 {
  font-size: 2rem;
  margin: 0;
}
.process__bar {
  display: none;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .process.is-pinned .process__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 0;
  }
  .process.is-pinned .process__track {
    flex-direction: row;
    align-items: stretch;
    gap: 28px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-inline: max(
      var(--gutter),
      calc((100vw - 1240px) / 2 + var(--gutter))
    );
    will-change: transform;
  }
  .process.is-pinned .process__intro {
    width: 440px;
    flex-shrink: 0;
    margin: 0 40px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .process.is-pinned .process__hint {
    display: inline-flex;
  }
  .process.is-pinned .step {
    width: 400px;
    min-height: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-top: 150px;
  }
  .process.is-pinned .step--cta {
    justify-content: center;
  }
  .process.is-pinned .process__bar {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
  }
  .process.is-pinned .process__bar span {
    display: block;
    height: 100%;
    background: var(--blue-2);
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
  }
}
@media (min-width: 700px) and (max-width: 899px) {
  .process__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .process__intro {
    grid-column: 1 / -1;
  }
}

/* ---------- Trayectoria ---------- */
.about {
  background: var(--paper);
}
.about__grid {
  display: grid;
  gap: 56px;
}
.about__sticky {
  position: relative;
}
.about__img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 520px;
}
.about__img img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}
.about__quote {
  position: absolute;
  right: -8px;
  bottom: -28px;
  max-width: 280px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  box-shadow: var(--shadow-lg);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 44px 56px;
  padding-block: 32px;
  border-block: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
}
.timeline::before {
  background: var(--line);
}
.timeline::after {
  background: linear-gradient(var(--blue-2), var(--blue));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.timeline__item {
  position: relative;
  padding-bottom: 36px;
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--sky-2);
  z-index: 1;
  transition:
    box-shadow 0.5s var(--ease-out),
    background-color 0.5s;
}
.timeline__item.is-visible::before {
  background: var(--blue);
  box-shadow:
    inset 0 0 0 2px var(--blue),
    0 0 0 6px rgba(30, 111, 217, 0.15);
  transition-delay: 0.3s;
}
.timeline__year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--sky);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.timeline h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: start;
  }
  .about__sticky {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
  .about__img {
    aspect-ratio: auto;
    height: min(calc(100vh - var(--header-h) - 120px), 680px);
  }
}

/* ---------- Testimonios ---------- */
.testimonials {
  overflow: hidden;
}
.carousel__controls {
  display: flex;
  gap: 10px;
}
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 10px var(--gutter) 30px;
  margin-left: calc(var(--gutter) * -1);
  margin-right: min(calc(var(--gutter) * -1), calc(50% - 50vw));
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.testi {
  flex: 0 0 min(86%, 420px);
  scroll-snap-align: start;
  margin: 0;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.6s,
    box-shadow 0.5s,
    background-color 0.5s;
  opacity: 0.7;
  transform: scale(0.96);
}
.testi.is-current {
  opacity: 1;
  transform: none;
  background: var(--white);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--line);
}
.testi::before {
  content: "“";
  position: absolute;
  right: 28px;
  top: 4px;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--sky-2);
}
.testi__stars {
  display: flex;
  gap: 4px;
}
.testi__stars svg {
  width: 18px;
  height: 18px;
  fill: #f5b82e;
}
.testi blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--navy);
  flex: 1;
}
.testi figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi figcaption small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.carousel__dots button {
  position: relative;
  width: 28px;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  transition: width 0.5s var(--ease-out);
}
.carousel__dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.carousel__dots button[aria-selected="true"] {
  width: 56px;
}
.carousel__dots button[aria-selected="true"]::after {
  animation: dot-fill var(--autoplay, 6s) linear forwards;
}
.carousel.is-paused .carousel__dots button[aria-selected="true"]::after {
  animation-play-state: paused;
}
@keyframes dot-fill {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Banda CTA ---------- */
.cta-band {
  --p: 0;
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  clip-path: inset(
    calc((1 - var(--p)) * 6%) calc((1 - var(--p)) * 5%) round
      calc((1 - var(--p)) * 48px)
  );
}
.cta-band__media {
  position: absolute;
  inset: 0;
}
.cta-band__media img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
}
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 42, 74, 0.72),
    rgba(11, 42, 74, 0.88)
  );
}
.cta-band__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-block: 100px;
}
.cta-band__title {
  color: var(--white);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  max-width: 14ch;
}
.cta-band__title em {
  color: var(--blue-2);
}
.cta-band p {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  gap: 48px;
}
.faq__card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 14px 22px 14px 14px;
  border-radius: var(--radius);
  background: var(--sky);
  max-width: 420px;
}
.faq__card img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}
.faq__card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acc {
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    background-color 0.4s,
    box-shadow 0.4s;
}
.acc.is-open {
  background: var(--white);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--sky-2);
}
.acc h3 {
  font-size: inherit;
}
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.4;
}
.acc__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.4s,
    color 0.4s;
}
.acc.is-open .acc__icon {
  transform: rotate(135deg);
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
}
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.acc__panel > div {
  overflow: hidden;
}
.acc__panel p {
  padding: 0 26px 24px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease-out);
}
.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
}
.acc.is-open .acc__panel p {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
  .faq__aside {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

/* ---------- Ubicación ---------- */
.location {
  background: var(--paper);
}
.location__grid {
  display: grid;
  gap: 24px;
}
.hours {
  padding: 34px 30px;
}
.hours__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hours__head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--navy);
}
.hours__head .icon {
  color: var(--blue);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--sky);
  color: var(--muted);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status.is-open {
  background: rgba(37, 211, 102, 0.14);
  color: var(--wa-dark);
}
.status.is-closed {
  background: rgba(214, 69, 69, 0.1);
  color: var(--error);
}
.hours__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 0.94rem;
  color: var(--muted);
  transition: background-color 0.4s;
}
.hours__list li + li {
  border-top: 1px dashed var(--line);
}
.hours__list li span:first-child {
  font-weight: 600;
  color: var(--navy);
}
.hours__address {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}
.hours__address .icon {
  color: var(--blue);
  width: 24px;
  height: 24px;
  margin-top: 2px;
}
.hours__address strong {
  color: var(--navy);
}
.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
}
.map iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--sky-2);
  filter: saturate(0.8) contrast(1.02);
}
@media (min-width: 900px) {
  .location__grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* ---------- Contacto ---------- */
.contact {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -250px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(76, 143, 234, 0.22),
    transparent 65%
  );
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  gap: 56px;
}
.contact__lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  max-width: 44ch;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.4;
}
.contact__list strong {
  color: var(--white);
  font-size: 1rem;
}
.contact__list .icon {
  width: 50px;
  height: 50px;
  padding: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blue-2);
}

.form {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.form__row {
  display: grid;
  gap: 18px;
}
@media (min-width: 560px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  position: relative;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 24px 18px 10px;
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-size: 16px; /* evita zoom en iOS */
  transition:
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field--select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.field label {
  position: absolute;
  left: 19px;
  top: 18px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 0.35s var(--ease-out),
    color 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 111, 217, 0.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label {
  transform: translateY(-10px) scale(0.76);
  color: var(--blue);
}
.field__error {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--error);
  padding-left: 4px;
  transition:
    max-height 0.35s var(--ease-out),
    margin 0.35s;
}
.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--error);
}
.field.is-invalid label {
  color: var(--error);
}
.field.is-invalid .field__error {
  max-height: 30px;
  margin-top: 6px;
}
.field.is-invalid {
  animation: shake 0.45s var(--ease-out);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check__box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition:
    background-color 0.3s,
    border-color 0.3s;
  margin-top: 1px;
}
.check__box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.35s var(--ease-out);
}
.check input:checked + .check__box {
  background: var(--blue);
  border-color: var(--blue);
}
.check input:checked + .check__box svg {
  stroke-dashoffset: 0;
}
.check input:focus-visible + .check__box {
  outline: 3px solid var(--blue-2);
  outline-offset: 2px;
}
.check.is-invalid .check__box {
  border-color: var(--error);
}

.form__submit {
  margin-top: 6px;
}
.btn__spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
.btn__label {
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease-out);
}
.is-loading .btn__label {
  opacity: 0;
  transform: translateY(-8px);
}
.is-loading .btn__spinner {
  opacity: 1;
}
.form__note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.form__success {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  background: var(--white);
  clip-path: circle(0% at 50% 85%);
  visibility: hidden;
  transition:
    clip-path 0.8s var(--ease-in-out),
    visibility 0s 0.8s;
}
.form.is-success .form__success {
  clip-path: circle(150% at 50% 85%);
  visibility: visible;
  transition:
    clip-path 0.8s var(--ease-in-out),
    visibility 0s;
}
.form__success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--navy);
}
.form__success p {
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 12px;
}
.success-check {
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
}
.success-check circle {
  fill: none;
  stroke: var(--wa);
  stroke-width: 2.5;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  transform: rotate(-90deg);
  transform-origin: center;
}
.success-check path {
  fill: none;
  stroke: var(--wa);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}
.form.is-success .success-check circle {
  transition: stroke-dashoffset 0.8s 0.4s var(--ease-in-out);
  stroke-dashoffset: 0;
}
.form.is-success .success-check path {
  transition: stroke-dashoffset 0.5s 1.05s var(--ease-out);
  stroke-dashoffset: 0;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: #071d34;
  color: rgba(255, 255, 255, 0.65);
  padding: 36px 0 24px;
  font-size: 0.86rem;
}
.footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: 24px;
}
.footer__id {
  line-height: 1.6;
}
.footer__id strong {
  color: var(--white);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__links a {
  transition: color 0.3s;
}
.footer__links a:hover {
  color: var(--white);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  font-size: 0.78rem;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__bottom strong {
  color: var(--white);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120px) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.7s var(--ease-spring),
    opacity 0.4s;
  -webkit-tap-highlight-color: transparent;
}
.wa-float.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.wa-float__btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.35s var(--ease-out);
}
.wa-float__btn .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}
.wa-float__btn::before,
.wa-float__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--wa);
  opacity: 0;
  animation: wa-pulse 3s var(--ease-out) infinite;
}
.wa-float__btn::after {
  animation-delay: 0.6s;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  60%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.wa-float__tip {
  padding: 10px 16px;
  border-radius: 14px 14px 4px 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px) scale(0.9);
  transform-origin: right bottom;
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease-spring);
}
.wa-float.show-tip .wa-float__tip {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-float__tip {
    opacity: 1;
    transform: none;
  }
  .wa-float:hover .wa-float__btn {
    transform: scale(1.08);
  }
}
.wa-float:active .wa-float__btn {
  transform: scale(0.94);
}
.menu-open .wa-float {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .preloader {
    display: none;
  }
  .js [data-reveal],
  .js .hero__eyebrow,
  .js .hero__lead,
  .js .hero__actions,
  .js .hero__trust,
  .js .badge,
  .js .hero__orbit,
  .js .header {
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    clip-path: none !important;
  }
  .js .hero__frame,
  .js [data-reveal="clip"] > *,
  .js [data-reveal="mask"] > * {
    clip-path: none !important;
  }
  .js .hero__img img,
  .js [data-reveal] img {
    transform: none !important;
  }
  .word__inner {
    transform: none !important;
  }
  .marquee__track {
    animation: none;
  }
  .cta-band {
    clip-path: none;
  }
  .testi {
    opacity: 1;
    transform: none;
  }
  [data-float],
  .blob,
  .hero__frame,
  .hero__orbit {
    animation: none !important;
  }
}
