/* ═══════════════════════════════════════════════════════════
   CLEVERIO AI — STYLESHEET
   Order: Tokens → Reset → Base → Layout → Components → Sections → Utilities → Media Queries
═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────
   DESIGN TOKENS
─────────────────────────────────────────── */
:root {
  --white: #ffffff;
  --black: #000000;
  --gray-50: #fafafa;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --text-primary-light: #1d1d1f;
  --text-secondary-light: #6e6e73;
  --text-primary-dark: #f5f5f7;
  --text-secondary-dark: #86868b;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;

  --nav-h: 60px;
  --container-max: 1200px;
  --container-pad: clamp(24px, 5vw, 48px);
  --section-py: clamp(80px, 12vh, 160px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Focus visible — accessible */
:focus-visible {
  outline: 2px solid var(--text-primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───────────────────────────────────────────
   SCROLL PROGRESS BAR
─────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--black);
  z-index: 1000;
  transform-origin: left;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ───────────────────────────────────────────
   LAYOUT — CONTAINER
─────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ───────────────────────────────────────────
   NAV
─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition:
    background 0.4s var(--ease-standard),
    border-color 0.4s var(--ease-standard),
    backdrop-filter 0.4s var(--ease-standard);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-light);
}

.nav--dark {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-dark);
}

.nav--dark .btn--primary {
  background: var(--white);
  color: var(--black);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  opacity: 0;
  transition: opacity 0.4s var(--ease-standard);
  display: flex;
  align-items: center;
}

.nav__logo--visible {
  opacity: 1;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ───────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stack);
  font-weight: 500;
  border-radius: 980px;
  transition:
    opacity 0.2s,
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.84;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — black bg, white text */
.btn--primary {
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  padding: 10px 22px;
}

/* White — white bg, black text */
.btn--white {
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  padding: 14px 28px;
}

.btn--white:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Ghost — transparent, dark text */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary-dark);
  font-size: 17px;
  padding: 14px 28px;
  border: 1px solid var(--border-dark);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.btn--sm {
  font-size: 14px;
  padding: 9px 20px;
}

.btn--lg {
  font-size: 19px;
  padding: 18px 36px;
}

/* ───────────────────────────────────────────
   EYEBROW
─────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary-light);
  margin-bottom: 20px;
}

.eyebrow--dark {
  color: var(--text-secondary-dark);
}

/* ───────────────────────────────────────────
   SECTIONS — BASE
─────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
}

.section--white { background: var(--white); }
.section--gray  { background: var(--gray-100); }
.section--black { background: var(--black); }

.section__heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary-light);
  margin-bottom: 24px;
}

.section__heading--white {
  color: var(--text-primary-dark);
}

.section__sub {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--text-secondary-light);
  line-height: 1.5;
  margin-bottom: clamp(48px, 7vh, 96px);
}

.section__sub--dark {
  color: var(--text-secondary-dark);
}

/* ───────────────────────────────────────────
   HERO
─────────────────────────────────────────── */
.hero {
  background: var(--black);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: calc(var(--nav-h) + 40px) 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle noise grain overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  height: 112px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.hero__logo--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__eyebrow {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s 0.15s var(--ease-out),
    transform 0.6s 0.15s var(--ease-out);
}

.hero__eyebrow--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__heading {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
}

.hero__line--1 {
  transition-delay: 0.3s;
  color: var(--white);
}

.hero__line--2 {
  transition-delay: 0.5s;
  color: rgba(255, 255, 255, 0.38);
}

.hero__line--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-secondary-dark);
  line-height: 1.55;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s 0.7s var(--ease-out),
    transform 0.7s 0.7s var(--ease-out);
}

.hero__sub--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s 0.9s var(--ease-out),
    transform 0.6s 0.9s var(--ease-out);
}

.hero__ctas--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s 1.2s var(--ease-out);
}

.hero__scroll-indicator--visible {
  opacity: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ───────────────────────────────────────────
   SPLIT TEXT ANIMATION
─────────────────────────────────────────── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.word--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Preserve em/strong styling inside split text */
.split-text em { font-style: normal; color: var(--text-secondary-light); }
.split-text strong { font-weight: 600; color: var(--text-primary-light); }
.section--black .split-text strong { color: var(--text-primary-dark); }

/* ───────────────────────────────────────────
   02 — PROBLEMA — STATS
─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-light);
}

.stat-card {
  padding: 48px 40px 48px 0;
  border-right: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.stat-card:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 40px;
}

.stat-card:nth-child(2) {
  padding-left: 40px;
}

.stat-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card__number {
  display: block;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary-light);
  margin-bottom: 16px;
}

.stat-card__text {
  font-size: 15px;
  color: var(--text-secondary-light);
  line-height: 1.5;
  max-width: 240px;
}

/* ───────────────────────────────────────────
   03 — LEAD JOURNEY CANVAS
─────────────────────────────────────────── */
.journey-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 48px;
}

.journey-wrapper::-webkit-scrollbar {
  display: none;
}

.journey-canvas {
  display: block;
  margin-inline: auto;
  max-width: 100%;
}

.journey-caption {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary-light);
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  padding-inline: var(--container-pad);
  line-height: 1.6;
}

/* ───────────────────────────────────────────
   04 — FUNNELS GRID
─────────────────────────────────────────── */
.funnels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.funnel-card {
  background: var(--gray-100);
  border-radius: 24px;
  padding: 48px;
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    box-shadow 0.3s var(--ease-standard),
    translateY 0.3s var(--ease-standard);
}

.funnel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #1d1d1f;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.funnel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
}

.funnel-card:hover::before {
  opacity: 1;
}

.funnel-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.funnel-card--visible:hover {
  transform: translateY(-6px);
}

.funnel-card__num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary-light);
  margin-bottom: 20px;
}

.funnel-card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary-light);
  margin-bottom: 16px;
  line-height: 1.2;
}

.funnel-card__desc {
  font-size: 15px;
  color: var(--text-secondary-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 32px;
}

.funnel-card__trigger {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary-light);
  background: var(--gray-200);
  border-radius: 980px;
  padding: 7px 16px;
  align-self: flex-start;
}

/* ───────────────────────────────────────────
   05 — RESULTADOS — METRICS
─────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  border-top: 1px solid var(--border-dark);
}

.metric {
  padding: 64px 32px;
  border-right: 1px solid var(--border-dark);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.metric:last-child {
  border-right: none;
}

.metric--visible {
  opacity: 1;
  transform: translateY(0);
}

.metric__number {
  display: block;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 16px;
}

.metric__number--small {
  font-size: clamp(40px, 5.5vw, 80px);
}

.metric__label {
  font-size: 15px;
  color: var(--text-secondary-dark);
  line-height: 1.5;
  max-width: 200px;
  margin-inline: auto;
}

/* ───────────────────────────────────────────
   04b — DIFERENCIACIÓN (qué no / qué sí somos)
─────────────────────────────────────────── */
.diferen-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 64px;
  align-items: start;
}

.diferen-divider {
  background: var(--border-light);
  width: 1px;
  align-self: stretch;
}

.diferen-col__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  line-height: 1.2;
}

.diferen-col--no .diferen-col__title {
  color: var(--text-secondary-light);
}

.diferen-col--yes .diferen-col__title {
  color: var(--text-primary-light);
}

.diferen-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.diferen-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.diferen-col--yes .diferen-item {
  grid-template-columns: 16px 1fr;
  column-gap: 10px;
}

.diferen-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.diferen-item__dot {
  font-size: 8px;
  line-height: 1.6;
  color: var(--text-primary-light);
  padding-top: 3px;
  grid-row: 1;
}

.diferen-item__label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.diferen-col--no .diferen-item__label {
  color: var(--text-secondary-light);
}

.diferen-col--yes .diferen-item__label {
  color: var(--text-primary-light);
}

.diferen-item__desc {
  font-size: 15px;
  line-height: 1.55;
  display: block;
}

.diferen-col--no .diferen-item__desc {
  color: var(--text-secondary-light);
  opacity: 0.7;
}

.diferen-col--yes .diferen-item__desc {
  color: var(--text-secondary-light);
}

/* Yes column: desc spans under the label (col 2 only) */
.diferen-col--yes .diferen-item__label {
  grid-column: 2;
}

.diferen-col--yes .diferen-item__desc {
  grid-column: 2;
}

/* ───────────────────────────────────────────
   06b — CÓMO TRABAJAMOS (timeline)
─────────────────────────────────────────── */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: start;
}

.timeline-step {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.timeline-step--visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step__num {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary-light);
  line-height: 1;
  margin-bottom: 10px;
}

.timeline-step__time {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary-light);
  margin-bottom: 14px;
}

.timeline-step__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary-light);
  margin-bottom: 10px;
  line-height: 1.25;
}

.timeline-step__desc {
  font-size: 15px;
  color: var(--text-secondary-light);
  line-height: 1.55;
}

.timeline-connector {
  display: flex;
  align-items: flex-start;
  padding-top: 16px; /* align with top of number */
  justify-content: center;
}

.timeline-connector::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin-top: 15px; /* vertically centers with the number */
}

/* ───────────────────────────────────────────
   10 — GARANTÍAS
─────────────────────────────────────────── */
.garantias-section {
  padding-block: 80px;
}

.garantias-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0 48px;
  align-items: center;
  text-align: center;
}

.garantia-sep {
  background: var(--border-light);
  width: 1px;
  align-self: stretch;
  min-height: 60px;
}

.garantia-item {
  padding-block: 8px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.garantia-item--visible {
  opacity: 1;
  transform: translateY(0);
}

.garantia-item__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary-light);
  margin-bottom: 8px;
  line-height: 1.25;
}

.garantia-item__desc {
  font-size: 15px;
  color: var(--text-secondary-light);
  line-height: 1.5;
}

/* ───────────────────────────────────────────
   06 — SERVICIOS (3 bloques)
─────────────────────────────────────────── */
.services-block {
  margin-bottom: 0;
}

.services-block__header {
  margin-bottom: 36px;
}

.services-block__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary-light);
  margin-bottom: 10px;
}

.services-block__sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary-light);
  line-height: 1.5;
}

.services-divider {
  height: 1px;
  background: var(--border-light);
  margin-block: 80px;
}

/* Mini card grids */
.services-mini-grid {
  display: grid;
  gap: 16px;
}

.services-mini-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.services-mini-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.services-mini-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Mini card */
.services-mini-card {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 28px;
  cursor: default;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    box-shadow 0.25s ease;
}

.services-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.services-mini-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.services-mini-card--visible:hover {
  transform: translateY(-3px);
}

.services-mini-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary-light);
  margin-bottom: 8px;
  line-height: 1.3;
}

.services-mini-card__desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary-light);
}

/* ───────────────────────────────────────────
   07 — PILL GRID (Para Quién)
─────────────────────────────────────────── */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 800px;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.pill-grid--visible {
  opacity: 1;
  transform: translateY(0);
}

.pill {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary-light);
  white-space: nowrap;
}

/* ───────────────────────────────────────────
   08 — CTA SECTION
─────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding-block: clamp(140px, 18vh, 200px);
}

.cta-section__heading {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 0;
}

.cta-hook {
  font-size: clamp(20px, 2.4vw, 28px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary-dark);
  margin-top: 24px;
  margin-bottom: 32px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  margin-top: clamp(48px, 7vh, 96px);
}

.cta-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(36px, 5vw, 60px);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Floating label inputs */
.form-field {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.form-field--visible {
  opacity: 1;
  transform: translateY(0);
}

.form-field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  color: var(--white);
  font-family: var(--font-stack);
  font-size: 17px;
  font-weight: 400;
  padding: 20px 0 8px;
  outline: none;
  transition: border-color 0.3s;
}

.form-field__input::placeholder {
  color: transparent;
}

.form-field__input:focus {
  border-bottom-width: 2px;
  border-color: var(--white);
}

.form-field__input.is-valid {
  border-color: var(--white);
}

.form-field__label {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 17px;
  color: var(--text-secondary-dark);
  pointer-events: none;
  transition:
    top 0.25s var(--ease-standard),
    font-size 0.25s var(--ease-standard),
    color 0.25s var(--ease-standard);
  transform-origin: left;
}

.form-field__input:focus ~ .form-field__label,
.form-field__input:not(:placeholder-shown) ~ .form-field__label {
  top: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary-dark);
}

.form-field__input:focus ~ .form-field__label {
  color: rgba(255, 255, 255, 0.7);
}

.form-field__line {
  display: none;
}

.cta-form__submit {
  align-self: flex-start;
}

.cta-form__confirm {
  font-size: 14px;
  color: var(--text-secondary-dark);
  padding-top: 4px;
}

/* WhatsApp side */
.cta-wa {
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-wa__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-wa__question {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary-dark);
  line-height: 1.2;
}

.cta-wa__note {
  font-size: 13px;
  color: var(--text-secondary-dark);
  line-height: 1.5;
}

/* ───────────────────────────────────────────
   CANALES — franja compacta
─────────────────────────────────────────── */
.section--compact {
  padding-block: clamp(40px, 6vh, 80px);
}

.section__heading--sm {
  font-size: clamp(28px, 3.5vw, 40px);
}

.canales-sub {
  font-size: 15px;
  color: var(--text-secondary-light);
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.6;
}

.canales-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
}

.canal-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary-light);
  padding-inline: 24px;
}

.canal-sep {
  font-size: 16px;
  color: var(--text-secondary-light);
}

/* ───────────────────────────────────────────
   IMPLEMENTACIÓN — garantías inline
─────────────────────────────────────────── */
.impl-garantias {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 60px;
}

.impl-garantia {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary-light);
  padding-inline: 24px;
}

.impl-garantia-sep {
  font-size: 16px;
  color: var(--text-secondary-light);
}

/* ───────────────────────────────────────────
   PRUEBA SOCIAL — testimonials (black bg)
─────────────────────────────────────────── */
.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: clamp(48px, 7vh, 80px);
}

@media (min-width: 1024px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.social-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.social-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary-dark);
}

.social-card__metric {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary-dark);
  line-height: 1;
}

.social-card__label {
  font-size: 15px;
  color: var(--text-primary-dark);
  line-height: 1.5;
}

.social-card__quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary-dark);
  line-height: 1.6;
  margin-top: 4px;
}

/* ───────────────────────────────────────────
   CTA DISCLAIMER
─────────────────────────────────────────── */
.cta-disclaimer {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary-dark);
  text-align: center;
  margin-top: 16px;
}

/* ───────────────────────────────────────────
   STICKY CTA BUTTON
─────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 100px;
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out),
    background 0.3s,
    color 0.3s,
    box-shadow 0.2s;
}

.sticky-cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta--light {
  background: var(--black);
  color: var(--white);
}

.sticky-cta--dark {
  background: var(--white);
  color: var(--black);
}

.sticky-cta--visible:hover {
  transform: translateY(0) scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ───────────────────────────────────────────
   FOOTER
─────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border-dark);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.5;
}

.footer__id {
  font-size: 14px;
  color: var(--text-secondary-dark);
  font-weight: 500;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: 14px;
  color: var(--text-secondary-dark);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text-primary-dark);
}

.footer__sep {
  color: var(--text-secondary-dark);
  opacity: 0.4;
}

.footer__copy {
  font-size: 12px;
  color: rgba(134, 134, 139, 0.5);
}

/* ───────────────────────────────────────────
   UTILITIES
─────────────────────────────────────────── */
.hide-mobile { display: none; }

/* ───────────────────────────────────────────
   MEDIA QUERIES
─────────────────────────────────────────── */

/* hero__br hidden on mobile, shown as block (line-break) on larger screens */
.hero__br { display: none; }

/* 640px — small tablets / large phones */
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
  .hero__br { display: block; }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 1024px — desktop */
@media (min-width: 1024px) {
  .hide-mobile { display: inline; }
}

/* MOBILE — max 639px */
@media (max-width: 639px) {
  .hero__heading {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .stat-card {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .stat-card:last-child {
    border-bottom: none;
    padding-left: 0;
  }

  .stat-card:nth-child(2) {
    padding-left: 0;
  }

  /* Diferenciación — stack columns on mobile */
  .diferen-grid {
    grid-template-columns: 1fr;
    gap: 48px 0;
  }

  .diferen-divider {
    display: none;
  }

  /* Timeline — vertical on mobile */
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-connector {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--border-light);
    margin-left: 0;
  }

  .timeline-connector::after {
    display: none;
  }

  /* Garantías — stack on mobile */
  .garantias-grid {
    grid-template-columns: 1fr;
    gap: 32px 0;
    text-align: left;
  }

  .garantia-sep {
    display: none;
  }

  .garantias-section {
    padding-block: 60px;
  }

  .funnels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .funnel-card {
    padding: 36px 28px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .metric {
    padding: 48px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }

  .metric:last-child {
    border-bottom: none;
  }

  /* Services blocks — all grids collapse to 1 col on mobile */
  .services-mini-grid--3,
  .services-mini-grid--4,
  .services-mini-grid--2 {
    grid-template-columns: 1fr;
  }

  .services-divider {
    margin-block: 48px;
  }

  .services-block__title {
    font-size: 24px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-wa {
    border-top: 1px solid var(--border-dark);
  }

  .cta-wa__inner {
    width: 100%;
  }

  .cta-wa__inner .btn {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 15px 24px;
    white-space: normal;
    text-align: center;
  }

  .cta-form__submit {
    width: 100%;
    justify-content: center;
  }

  .btn--lg {
    font-size: 16px;
    padding: 15px 24px;
  }

  /* Sticky CTA — más pequeño en móvil */
  .sticky-cta {
    padding: 10px 16px;
    bottom: 16px;
    right: 16px;
    font-size: 13px;
  }

  /* Canales — apilados en móvil */
  .canales-strip {
    flex-direction: column;
    gap: 12px;
  }

  .canal-sep {
    display: none;
  }

  .canal-name {
    padding-inline: 0;
  }

  /* Garantías inline — apiladas en móvil */
  .impl-garantias {
    flex-direction: column;
    gap: 12px;
  }

  .impl-garantia-sep {
    display: none;
  }

  .impl-garantia {
    padding-inline: 0;
  }
}

/* TABLET — 640–1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Timeline: wrap to 3+2 on tablet */
  .timeline-grid {
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
    grid-template-rows: auto auto;
    row-gap: 48px;
  }

  /* Hide connectors that would be orphaned in second row */
  .timeline-connector:nth-child(8),
  .timeline-connector:nth-child(10) {
    display: none;
  }

  /* Steps 4 and 5 span differently */
  .timeline-step:nth-child(7),
  .timeline-step:nth-child(9) {
    grid-row: 2;
  }

  /* Garantías: keep 3 cols on tablet */
  .garantias-grid {
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
  }

  .garantia-sep {
    display: block;
  }

  .funnels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .funnel-card {
    padding: 36px 32px;
  }

  /* Services: 3→2, 4→2, 2→2 */
  .services-mini-grid--3,
  .services-mini-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-mini-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-wa {
    border-top: 1px solid var(--border-dark);
  }
}
