/* =========================================================
   MANIA · Landing
   Sistema: Geist · blanco / azul claro / azul marino
   Espaciado en múltiplos de 4 · radios 8 / 10 / 12 / 16
   ========================================================= */

:root {
  /* Color */
  --navy: #0e2347;
  --navy-hover: #1b3561;
  --text-2: #5a6a85;
  --text-3: #8391a8;
  --blue: #5f9be0;
  --blue-ink: #3a74c0;
  --blue-soft: #eaf2fc;
  --bg: #ffffff;
  --bg-subtle: #f7f9fc;
  --border: rgba(14, 35, 71, .08);
  --border-strong: rgba(14, 35, 71, .14);

  /* Profundidad */
  --shadow-sm: 0 1px 2px rgba(14, 35, 71, .04);
  --shadow-md: 0 1px 2px rgba(14, 35, 71, .04), 0 8px 24px -12px rgba(14, 35, 71, .10);
  --shadow-lg: 0 1px 2px rgba(14, 35, 71, .04), 0 16px 40px -16px rgba(14, 35, 71, .16);

  /* Radios */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Tipografía */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Solo para el logotipo "MANIA": Didone de alto contraste, como en el banner de la marca */
  --font-brand: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 32px);
  --section-y: clamp(80px, 10vw, 128px);
  --nav-h: 64px;
  --nav-drop: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: var(--blue-soft); color: var(--navy); }

/* Foco de teclado: visible y sin animación */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--blue-ink);
}

.title {
  margin-top: 12px;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.lead {
  max-width: 60ch;
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 17px);
  color: var(--text-2);
}

.muted { color: var(--text-3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 999px;
}
.pill--dark {
  color: #a9cbf2;
  background: rgba(95, 155, 224, .14);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #fff;
  background: var(--navy);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}

.btn--lg { height: 48px; padding: 0 24px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

.btn--secondary {
  color: var(--navy);
  background: var(--bg);
  border-color: var(--border-strong);
}

.btn--light { color: var(--navy); background: #fff; }

.btn--ghost-dark {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: none;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

.btn--whatsapp {
  margin-top: 24px;
  color: var(--navy);
  background: var(--bg);
  border-color: var(--border-strong);
}
.btn--whatsapp svg { width: 18px; height: 18px; fill: #25d366; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--blue-ink);
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--navy-hover); }
  .btn--secondary:hover { background: var(--bg-subtle); border-color: rgba(14, 35, 71, .2); }
  .btn--light:hover { background: #eef3fa; }
  .btn--ghost-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); }
  .btn--whatsapp:hover { background: var(--bg-subtle); }
  .btn:hover .btn__arrow,
  .link:hover .btn__arrow { transform: translateX(2px); }
  .link:hover { color: var(--navy); }
}

/* =========================================================
   Nav
   Arriba: la barra está algo más baja, el logo algo mayor y las opciones
   centradas y más grandes. Al bajar (.is-scrolled) todo se compacta y las
   opciones se deslizan a la derecha. Solo se anima transform y opacity.
   La posición centrada (--links-x/y/s) la calcula js/main.js.
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity 200ms ease;
}
.nav.is-scrolled::before { opacity: 1; }

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav:not(.is-scrolled) .nav__inner { transform: translateY(var(--nav-drop)); }

.nav__brand {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
  transform-origin: left center;
}
.nav:not(.is-scrolled) .nav__brand { transform: scale(1.08); }
.nav__brand img { width: auto; height: 28px; }
.nav__wordmark {
  margin-left: 12px;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .3em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  white-space: nowrap;
  transform-origin: center;
}
.nav:not(.is-scrolled) .nav__links {
  transform: translate(var(--links-x, 0px), var(--links-y, 0px)) scale(var(--links-s, 1));
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text-2);
  transition: color 200ms ease;
}
.nav__links .nav__special {
  padding: 4px 10px;
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 999px;
}

.nav__cta { flex-shrink: 0; gap: 0; margin-left: 24px; }

/* Transiciones activas solo después de colocar la barra (evita saltos al cargar) */
.nav.is-ready .nav__inner,
.nav.is-ready .nav__brand,
.nav.is-ready .nav__links {
  transition: transform 300ms var(--ease-in-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--navy); }
  .nav__links .nav__special:hover { color: var(--navy); }
}

/* Textos que se acortan en móvil al bajar ("Cómo trabajamos" → "Proceso") */
.label-long,
.label-short {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
}
.label-long { max-width: 14em; }
.label-short { max-width: 0; opacity: 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(152px, 18vw, 192px) 0 clamp(64px, 8vw, 96px);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(95, 155, 224, .10), rgba(95, 155, 224, 0) 70%),
    var(--bg);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo { width: auto; height: 56px; }
.hero .pill { margin-top: 32px; }
.hero__title {
  max-width: 14ch;
  margin-top: 20px;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.hero__title--wide { max-width: 16ch; }
.hero .lead {
  max-width: 54ch;
  margin-top: 24px;
  font-size: clamp(16px, 1.8vw, 18px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-3);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Secciones
   ========================================================= */
.section { padding: var(--section-y) 0; }
.section--subtle { background: var(--bg-subtle); }
.section--flush-top { padding-top: 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .lead { margin-inline: auto; }

/* ---------- Bloque destacado de hoteles ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  color: rgba(255, 255, 255, .72);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(95, 155, 224, .22), rgba(95, 155, 224, 0) 60%),
    var(--navy);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.feature__title {
  margin-top: 20px;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}
.feature__text { margin-top: 16px; max-width: 46ch; }
.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.feature__list {
  display: grid;
  gap: 8px;
  align-content: start;
}
.feature__item {
  padding: 16px 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
}
.feature__item--highlight {
  background: rgba(95, 155, 224, .12);
  border-color: rgba(95, 155, 224, .32);
}
.feature__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature__item h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}
.feature__item p { margin-top: 4px; font-size: 14px; line-height: 1.6; }
.badge {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
  background: var(--blue);
  border-radius: 999px;
}

/* ---------- Ventajas de la presencia digital ---------- */
.benefits {
  padding: clamp(28px, 5vw, 56px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.benefits__head { margin-bottom: 0; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}
.benefit {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.benefit__visual { height: 176px; }
.benefit__body { padding: 20px 24px 24px; }
.benefit h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.benefit p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.benefits__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue-ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Tarjetas (formatos de vídeo en hoteles) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cards--three { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--blue-soft);
  border-radius: var(--r-md);
}
.card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue-ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

@media (hover: hover) and (pointer: fine) {
  /* Sin desplazamiento: las tarjetas no son clicables y no deben parecerlo */
  .card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}

/* =========================================================
   Servicios: bento con ilustraciones hechas en HTML/CSS
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento__card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.bento__card--wide { grid-column: span 4; }

.bento__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 208px;
  padding: 24px;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
/* Retícula de puntos que se desvanece hacia los bordes */
.bento__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 35, 71, .10) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.bento__visual > * { position: relative; }

.bento__body { padding: 24px 28px 28px; }
.bento__body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.bento__body p {
  max-width: 52ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Piezas comunes de las ilustraciones */
.mock-surface {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.sk {
  display: block;
  height: 6px;
  background: rgba(14, 35, 71, .08);
  border-radius: 999px;
}

/* Diseño web: navegador en miniatura */
.mock-browser {
  width: min(100%, 440px);
  transition: transform 300ms var(--ease-out);
}
.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.mock-browser__bar > span {
  width: 8px;
  height: 8px;
  background: rgba(14, 35, 71, .12);
  border-radius: 50%;
}
.mock-browser__url {
  flex: 1;
  max-width: 180px;
  margin: 0 auto;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: var(--text-3);
  background: var(--bg-subtle);
  border-radius: 6px;
}
.mock-browser__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  padding: 18px;
}
.mock-browser__text { display: grid; gap: 8px; align-content: center; }
.mock-browser__text .sk--title { height: 10px; width: 92%; background: var(--navy); opacity: .9; }
.mock-browser__text .sk--title + .sk--title { width: 64%; }
.mock-browser__text .sk:nth-child(3) { margin-top: 6px; width: 100%; }
.mock-browser__text .sk:nth-child(4) { width: 78%; }
.mock-btn {
  justify-self: start;
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
}
.mock-browser__img {
  min-height: 92px;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(135deg, #cfe1f7 0%, var(--blue) 100%);
  border-radius: 8px;
}

/* SEO local: búsqueda y resultado */
.mock-search {
  display: grid;
  gap: 8px;
  width: min(100%, 260px);
}
.mock-search__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-2);
  border-radius: 999px;
}
.mock-search__bar svg,
.mock-result__pin svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  transition: transform 300ms var(--ease-out);
}
.mock-result__pin {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 8px;
}
.mock-result__text { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.mock-result__text strong { font-size: 12px; font-weight: 600; }
.mock-result__text small { font-size: 11px; color: var(--text-3); }
.mock-stars { font-size: 10px; letter-spacing: 1px; color: #f2b84b; }
.mock-result__rank {
  flex-shrink: 0;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
}
.mock-result--ghost {
  opacity: .55;
  box-shadow: var(--shadow-sm);
}
.mock-result--ghost .sk { flex: 1; }

/* Presencia digital: canales al día */
.mock-channels {
  display: grid;
  gap: 8px;
  width: min(100%, 250px);
}
.mock-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  transition: transform 300ms var(--ease-out);
}
.mock-channel__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 7px;
}
.mock-channel__state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: #1d7a4c;
}
.mock-channel__state::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #34b37a;
  border-radius: 50%;
}

/* Contenido: piezas visuales */
.mock-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 8px;
  width: min(100%, 240px);
}
.mock-tile {
  position: relative;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: transform 300ms var(--ease-out);
}
.mock-tile--1 { height: 96px; background: linear-gradient(160deg, #dbe8f8, #b9d3f2); }
.mock-tile--2 {
  height: 144px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 50% at 50% 20%, rgba(95, 155, 224, .55), transparent 70%),
    linear-gradient(180deg, #16305c, var(--navy));
}
.mock-tile--3 { height: 112px; background: linear-gradient(200deg, #eef4fc, #cfe1f7); }
.mock-tile__play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
}
.mock-tile__play::before {
  content: "";
  margin-left: 2px;
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Animaciones: curva de movimiento */
.mock-motion {
  width: min(100%, 250px);
  padding: 14px 14px 12px;
}
.mock-motion__curve { width: 100%; height: auto; overflow: visible; }
.mock-motion__grid { stroke: rgba(14, 35, 71, .08); stroke-width: 1; }
.mock-motion__path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
}
.mock-motion__handle { stroke: rgba(14, 35, 71, .2); stroke-width: 1; stroke-dasharray: 2 3; }
.mock-motion__point { fill: var(--bg); stroke: var(--blue); stroke-width: 1.5; }
.mock-motion__track {
  position: relative;
  height: 4px;
  margin-top: 12px;
  background: var(--bg-subtle);
  border-radius: 999px;
}
.mock-motion__runner {
  position: absolute;
  inset: 0 12px 0 0;
  transition: transform 700ms var(--ease-in-out);
}
.mock-motion__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--navy);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.mock-motion__label {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

/* Te encuentran: mapa */
.mock-map {
  position: relative;
  width: min(100%, 240px);
  height: 128px;
  overflow: hidden;
  background: #eef3fa;
}
.mock-map__roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
}
.mock-map__roads .mock-map__road--thin { stroke-width: 4; }
.mock-map__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: rgba(14, 35, 71, .18);
  border: 2px solid #fff;
  border-radius: 50%;
}
.mock-map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.mock-map__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(95, 155, 224, .22), var(--shadow-md);
  transition: transform 300ms var(--ease-out);
}
.mock-map__label svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #a9cbf2;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Transmites confianza: reseña sobre una ficha cuidada */
.mock-trust {
  position: relative;
  width: min(100%, 230px);
  height: 128px;
}
.mock-trust__back {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  gap: 6px;
  width: 64%;
  padding: 8px 8px 10px;
  transform: rotate(-3deg);
  transition: transform 300ms var(--ease-out);
}
.mock-trust__img {
  height: 52px;
  background: linear-gradient(135deg, #cfe1f7, var(--blue));
  border-radius: 6px;
}
.mock-trust__back .sk:last-child { width: 60%; }
.mock-review {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  width: 70%;
  padding: 10px 12px 12px;
  transition: transform 300ms var(--ease-out);
}
.mock-review__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mock-review__avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--blue-soft), #b9d3f2);
  border-radius: 50%;
}
.mock-review__meta { display: grid; gap: 4px; flex: 1; }
.mock-review__meta .sk { width: 56%; }
.mock-review > .sk:last-child { width: 72%; }

/* Consigues más clientes: avisos fuera de horario */
.mock-notifs {
  display: grid;
  gap: 8px;
  width: min(100%, 236px);
}
.mock-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  font-size: 12px;
  font-weight: 500;
  transition: transform 300ms var(--ease-out), opacity 300ms ease;
}
.mock-notif:nth-child(2) { opacity: .8; }
.mock-notif:nth-child(3) { opacity: .6; }
.mock-notif__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--blue-soft);
  border-radius: 7px;
}
.mock-notif__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--blue-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock-notif__text { flex: 1; }
.mock-notif time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

/* Hover: las ilustraciones reaccionan con un movimiento mínimo (solo con ratón) */
@media (hover: hover) and (pointer: fine) {
  .bento__card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
  .bento__card:hover .mock-browser { transform: translateY(-4px); }
  .bento__card:hover .mock-result:not(.mock-result--ghost) { transform: translateY(-2px); }
  .bento__card:hover .mock-channel:nth-child(1) { transform: translateX(4px); }
  .bento__card:hover .mock-channel:nth-child(2) { transform: translateX(4px); transition-delay: 40ms; }
  .bento__card:hover .mock-channel:nth-child(3) { transform: translateX(4px); transition-delay: 80ms; }
  .bento__card:hover .mock-tile--1 { transform: translateY(-4px); }
  .bento__card:hover .mock-tile--2 { transform: translateY(-6px); transition-delay: 40ms; }
  .bento__card:hover .mock-tile--3 { transform: translateY(-4px); transition-delay: 80ms; }
  /* Demostración de una curva ease-in-out: más lenta a propósito, es explicativa */
  .bento__card:hover .mock-motion__runner { transform: translateX(100%); }

  .benefit:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
  .benefit:hover .mock-map__label { transform: translateY(-3px); }
  .benefit:hover .mock-trust__back { transform: rotate(-5deg) translateX(-4px); }
  .benefit:hover .mock-review { transform: translateY(-4px); }
  .benefit:hover .mock-notif { transform: translateY(-2px); opacity: 1; }
  .benefit:hover .mock-notif:nth-child(2) { transition-delay: 40ms; }
  .benefit:hover .mock-notif:nth-child(3) { transition-delay: 80ms; }
}

/* =========================================================
   Cómo trabajamos: línea de tiempo
   La línea se dibuja cuando la sección aparece (.is-in).
   ========================================================= */
.timeline {
  --tl-gap: clamp(24px, 4vw, 48px);
  position: relative;
}
/* Del centro del primer punto al centro del último (3 columnas iguales) */
.timeline__track {
  position: absolute;
  top: 20px;
  left: 20px;
  right: calc((100% - 2 * var(--tl-gap)) / 3 - 20px);
  height: 1px;
  background: var(--border-strong);
}
.timeline__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-ink));
  transform: scaleX(0);
  transform-origin: left center;
}
.timeline.is-in .timeline__track::after {
  transform: scaleX(1);
  transition: transform 900ms var(--ease-in-out) 100ms;
}
.timeline__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tl-gap);
}
.timeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg);
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
/* Cada punto se "enciende" cuando la línea llega a él */
.timeline.is-in .timeline__node { color: #fff; background: var(--navy); border-color: var(--navy); }
.timeline.is-in .timeline__step:nth-child(1) .timeline__node { transition-delay: 100ms; }
.timeline.is-in .timeline__step:nth-child(2) .timeline__node { transition-delay: 500ms; }
.timeline.is-in .timeline__step:nth-child(3) .timeline__node { transition-delay: 900ms; }

.timeline__step h3 {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.timeline__step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tags li {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* =========================================================
   Contacto: panel dividido (azul marino + formulario)
   ========================================================= */
.contact-panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.contact-panel__aside {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  color: rgba(255, 255, 255, .72);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(95, 155, 224, .24), rgba(95, 155, 224, 0) 60%),
    var(--navy);
}
.contact-panel__aside .eyebrow { color: #a9cbf2; }
.contact-panel__aside .title { color: #fff; }
.contact-panel__aside .lead { color: rgba(255, 255, 255, .72); }

.next-steps {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}
.next-steps li { display: flex; gap: 14px; }
.next-steps__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #a9cbf2;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}
.next-steps strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
}
.next-steps p { font-size: 14px; line-height: 1.55; }

.contact-panel__email {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
  border-top: 1px solid rgba(255, 255, 255, .12);
  transition: color 200ms ease;
}
.contact-panel__email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: #a9cbf2;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-panel__aside .btn--whatsapp {
  align-self: flex-start;
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
}

.form {
  padding: clamp(24px, 4vw, 48px);
  background: var(--bg);
}
.form__head { margin-bottom: 24px; }
.form__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.form__subtitle { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field textarea {
  height: auto;
  min-height: 128px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.field select:invalid { color: var(--text-3); }
.field ::placeholder { color: var(--text-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(95, 155, 224, .18);
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #c43d3d;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d65c5c; }
.field.is-invalid .field__error { display: block; }

.form .btn { margin-top: 8px; }
.form__note { margin-top: 12px; font-size: 13px; text-align: center; color: var(--text-3); }
.form__status {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}
.form__status:empty { display: none; }
.form__status.is-success { color: #1d7a4c; }
.form__status.is-error { color: #c43d3d; }
.form__status a { text-decoration: underline; text-underline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .contact-panel__email:hover { color: #a9cbf2; }
  .contact-panel__aside .btn--whatsapp:hover { background: rgba(255, 255, 255, .08); }
  .field input:hover:not(:focus),
  .field select:hover:not(:focus),
  .field textarea:hover:not(:focus) { border-color: rgba(14, 35, 71, .22); }
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: auto; height: 28px; }
.footer__name {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .3em;
}
.footer__tagline { font-size: 13px; color: var(--text-3); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--text-2);
}
.footer__nav a,
.footer__email { transition: color 200ms ease; }
.footer__email { font-size: 14px; color: var(--text-2); }
.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover,
  .footer__email:hover { color: var(--navy); }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform 160ms var(--ease-out);
}
.whatsapp-float:active { transform: scale(.97); }
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

/* =========================================================
   Aparición al hacer scroll
   Fundido + 8px hacia arriba, 300ms ease-out, en cascada (50ms).
   Al terminar, js/main.js quita la clase para devolver a cada
   elemento sus propias transiciones de hover.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(8px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--three { grid-template-columns: repeat(3, 1fr); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card { grid-column: span 1; }
  .bento__card--wide { grid-column: 1 / -1; }

  .contact-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Nav móvil. Arriba: logo + botón en la primera fila, opciones centradas
     debajo. Al bajar: solo la M, las opciones y el botón en una línea. */
  :root { --nav-h: 56px; --nav-drop: 6px; }

  .nav__wordmark {
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -11px;
    font-size: 14px;
    line-height: 22px;
  }
  .nav.is-scrolled .nav__wordmark { opacity: 0; transform: translateX(-4px); }
  .nav.is-ready .nav__wordmark {
    transition: opacity 200ms ease, transform 300ms var(--ease-in-out);
  }

  .nav__links {
    gap: clamp(8px, 2.4vw, 16px);
    margin-right: calc(var(--cta-w, 90px) + clamp(8px, 2.4vw, 16px));
  }
  .nav__links a { font-size: clamp(10px, 2.9vw, 13px); }
  .nav__links .nav__special { padding: 2px 8px; }

  .nav__cta {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    margin: -18px 0 0;
  }

  .hero { padding-top: 140px; }

  .feature,
  .contact-panel { grid-template-columns: 1fr; }

  .cards--three,
  .benefits__grid { grid-template-columns: 1fr; }

  /* Línea de tiempo en vertical */
  /* En vertical, un conector entre cada par de pasos (termina justo en el siguiente punto) */
  .timeline__track { display: none; }
  .timeline__steps { grid-template-columns: 1fr; gap: 40px; }
  .timeline__step { position: relative; padding-left: 64px; }
  .timeline__step:not(:last-child)::before,
  .timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    bottom: -40px;
    left: 20px;
    width: 1px;
    background: var(--border-strong);
  }
  .timeline__step:not(:last-child)::after {
    background: linear-gradient(180deg, var(--blue), var(--blue-ink));
    transform: scaleY(0);
    transform-origin: center top;
  }
  .timeline.is-in .timeline__step:not(:last-child)::after {
    transform: scaleY(1);
    transition: transform 400ms var(--ease-in-out);
  }
  .timeline.is-in .timeline__step:nth-child(1)::after { transition-delay: 100ms; }
  .timeline.is-in .timeline__step:nth-child(2)::after { transition-delay: 500ms; }
  .timeline__node { position: absolute; top: 0; left: 0; }
  .timeline__step h3 { margin-top: 6px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }

  .whatsapp-float:not([hidden]) { display: flex; }
}

@media (max-width: 560px) {
  .nav__links .nav__special { padding: 0; background: none; }
  .nav.is-scrolled .label-long { max-width: 0; opacity: 0; }
  .nav.is-scrolled .label-short { max-width: 8em; opacity: 1; }
  .nav.is-ready .label-long,
  .nav.is-ready .label-short {
    transition: max-width 300ms var(--ease-in-out), opacity 200ms ease;
  }
  .nav__cta { padding: 0 12px; }

  .feature__item-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }

  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }
  .feature__actions .btn,
  .benefits__actions .btn { flex: 1 1 100%; }

  .cards,
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: auto; }
  .bento__visual { height: 184px; padding: 20px; }
  .bento__body { padding: 20px 24px 24px; }
  .mock-browser__body { padding: 14px; gap: 12px; }
  .card { padding: 24px; }

  .form__row { grid-template-columns: 1fr; }
}

/* Móviles muy estrechos: al bajar se oculta la M para que quepa todo */
@media (max-width: 359px) {
  /* Fuera del flujo para que no ocupe sitio; las opciones van alineadas a la derecha, así que no se mueven */
  .nav.is-scrolled .nav__brand { position: absolute; opacity: 0; pointer-events: none; }
  .nav__cta { padding: 0 10px; font-size: 13px; }
  .nav.is-ready .nav__brand { transition: transform 300ms var(--ease-in-out), opacity 200ms ease; }
}

/* =========================================================
   Movimiento reducido: sin desplazamientos, solo fundidos
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal { transform: none; }
  .reveal.is-visible { transition: opacity 200ms ease; }

  .nav.is-ready .nav__inner,
  .nav.is-ready .nav__brand,
  .nav.is-ready .nav__links,
  .nav.is-ready .nav__wordmark,
  .nav.is-ready .label-long,
  .nav.is-ready .label-short { transition: opacity 200ms ease; }

  .btn:active,
  .whatsapp-float:active { transform: none; }
  .btn:hover .btn__arrow,
  .link:hover .btn__arrow { transform: none; }

  .bento__card:hover .mock-browser,
  .bento__card:hover .mock-result,
  .bento__card:hover .mock-channel,
  .bento__card:hover .mock-tile,
  .bento__card:hover .mock-motion__runner,
  .benefit:hover .mock-map__label,
  .benefit:hover .mock-review,
  .benefit:hover .mock-notif { transform: none; }
  .benefit:hover .mock-trust__back { transform: rotate(-3deg); }
  .timeline.is-in .timeline__track::after,
  .timeline.is-in .timeline__step::after { transition: none; }
  .timeline.is-in .timeline__node { transition-delay: 0ms; }
}
