/* =========================================================
   JFC Soluciones · Landing Licencia de Funcionamiento Cusco
   Mobile first. Rojo solo para acción y énfasis.
   ========================================================= */

:root {
  /* Rojo de marca JFC (rojo puro #FE0000, oscurecido un punto para que el texto blanco se lea bien) */
  --red: #E60000;
  --red-dark: #BF0000;
  --red-soft: #FDEBEB;

  --ink: #111113;
  --ink-2: #3A3A40;
  --muted: #6B6B73;
  --line: #E6E4E1;
  --bg: #FFFFFF;
  --bg-soft: #F6F5F3;
  --dark: #111113;
  --dark-2: #1C1C1F;
  --dark-line: #2E2E33;
  --on-dark: #F4F3F1;
  --on-dark-muted: #A6A6AE;
  --wa: #25D366;
  --wa-dark: #1DA851;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(17 17 19 / .05), 0 2px 8px rgb(17 17 19 / .04);
  --shadow-lg: 0 2px 4px rgb(17 17 19 / .04), 0 24px 60px -12px rgb(17 17 19 / .18);
  --header-h: 64px;

  /* Curvas de animación (las integradas de CSS son demasiado suaves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* sin destello gris al tocar; cada control tiene su :active */
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Controles: respuesta inmediata al tocar y sin selección de texto con pulsación larga */
.btn, .chip, .wa-float, .faq-list summary, .main-nav a, .logo {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow:has(.ico)::before { display: none; }
.eyebrow .ico { width: 16px; height: 16px; }
.eyebrow-light { color: #FF5252; }

h2 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.015em; font-weight: 700; }
.body-lg { font-size: 1.125rem; color: var(--ink-2); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; text-align: center; line-height: 1.2;
  border: 2px solid transparent; border-radius: 12px; cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn .ico { transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary:active { background: var(--red-dark); }
.btn-outline:active { background: var(--bg-soft); }
.btn-wa:active { background: var(--wa-dark); }
.btn-primary {
  background: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 8px 20px -8px rgb(230 0 0 / .55);
}
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline .ico-wa { color: var(--wa-dark); }
.btn-wa { background: var(--wa); color: #0B2915; text-transform: uppercase; letter-spacing: .04em; }
.btn-lg { min-height: 58px; font-size: 16px; padding: 16px 28px; }
.btn-sm { min-height: 42px; padding: 10px 14px; font-size: 13px; box-shadow: none; white-space: nowrap; }
.btn-block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--red); text-decoration: none;
}
.link-arrow .ico { transition: transform 200ms var(--ease-out); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgb(17 17 19 / .2); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.logo-light { color: var(--on-dark); }
.main-nav { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 8.4vw, 3.9rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.hero h1 .hl { color: var(--red); }

/* Entrada del hero al cargar: una sola vez, escalonada */
.hero-copy > * { animation: rise-in 600ms var(--ease-out) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
.hero-visual { animation: rise-in 700ms var(--ease-out) 200ms backwards; }
/* La frase clave se "enciende" en rojo cuando el titular ya llegó */
.hero h1 .hl { animation: key-in 400ms ease 520ms backwards; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes key-in { from { color: var(--ink); } }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.cta-group { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.trust-list { display: grid; gap: 10px; margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list .ico { color: var(--red); width: 20px; height: 20px; padding: 3px; background: var(--red-soft); border-radius: 50%; }
.trust-light { color: var(--on-dark); }
.trust-light .ico { background: rgb(255 82 82 / .15); color: #FF5252; }

.hero { position: relative; }
.hero::before { /* trama sutil de fondo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, rgb(230 0 0 / .07), transparent 70%),
    radial-gradient(circle at 1px 1px, rgb(17 17 19 / .06) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero-visual { position: relative; width: min(100%, 300px); margin: 0 auto; }
.phone {
  position: relative; border-radius: 34px; padding: 8px; background: var(--ink);
  box-shadow: 0 30px 70px -20px rgb(17 17 19 / .45), 0 0 0 1px rgb(255 255 255 / .08) inset;
}
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 27px; background: #222; }
.phone-tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 40px);
  padding: 8px 12px; border-radius: 999px; background: rgb(17 17 19 / .72); color: #fff;
  font-size: 12.5px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF5252; flex: none; animation: pulse 1.8s ease-out infinite; }
.float-note {
  position: absolute; right: -14px; top: 36px;
  display: flex; align-items: center; gap: 10px; max-width: 190px;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow-lg);
  animation: floaty 6s var(--ease-in-out) infinite alternate;
}
.float-note .ico { color: var(--red); width: 22px; height: 22px; }
.float-stat {
  position: absolute; left: -14px; bottom: 84px;
  display: grid; gap: 0; max-width: 150px;
  background: var(--red); color: #fff; padding: 12px 16px; border-radius: 14px;
  box-shadow: 0 18px 40px -14px rgb(230 0 0 / .6);
  animation: floaty 7s var(--ease-in-out) 1s infinite alternate;
}
.float-stat strong { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.float-stat span { font-size: 12px; font-weight: 600; line-height: 1.3; opacity: .95; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 82 82 / .6); }
  100% { box-shadow: 0 0 0 10px rgb(255 82 82 / 0); }
}
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Barra de progreso de lectura (solo navegadores con animaciones ligadas al scroll) */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: var(--red); transform-origin: 0 50%;
    animation: progress linear both; animation-timeline: scroll(root);
  }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* Clientes */
.clients { padding: 8px 0 56px; }
.clients-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 20px; line-height: 1.5; }
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clients-grid li {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.clients-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Con JS: los logos pasan a una cinta en movimiento continuo */
.clients-marquee {
  overflow: hidden; margin-inline: -20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-marquee .clients-grid {
  display: flex; gap: 12px; width: max-content; grid-template-columns: none;
  animation: marquee 48s linear infinite;
}
.clients-marquee .clients-grid li { width: 132px; flex: none; }
.clients-marquee:hover .clients-grid, .clients-marquee:focus-within .clients-grid { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .body-lg { color: var(--on-dark-muted); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
.center-cta .btn { width: 100%; max-width: 420px; }

/* Problema */
.pain-grid { display: grid; gap: 12px; }
.pain {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; font-weight: 600; font-size: 16px;
}
.pain-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.pain-ico .ico { width: 16px; height: 16px; }
.pain-close { margin-top: 40px; display: grid; gap: 12px; }
.statement { font-size: clamp(1.6rem, 5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }

/* Solución */
.split { display: grid; gap: 40px; align-items: center; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy .btn { margin-top: 28px; }
.duo { display: grid; gap: 12px; }
.duo-col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.duo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.duo-col ul li { padding: 8px 0 8px 22px; position: relative; color: var(--ink-2); font-size: 15px; }
.duo-col ul li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); }
.duo-us { background: var(--ink); color: #fff; border-color: var(--ink); }
.duo-us .duo-label { color: #FF5252; }
.flow { display: grid; gap: 4px; counter-reset: f; }
.flow li { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-weight: 600; position: relative; }
.flow li .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); color: #fff; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 50px; height: 12px; width: 2px; background: var(--red); }

/* Qué incluye */
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.inc-card .ico { width: 26px; height: 26px; color: var(--red); margin-bottom: 14px; }
.inc-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.inc-card p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.price-card {
  grid-column: 1 / -1;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px;
  display: grid; gap: 4px; align-content: center;
}
.price-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.price .cur { font-size: 22px; margin-right: 6px; vertical-align: 14px; color: var(--on-dark-muted); }
.price-note { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 16px; }
.price-card .btn { padding-left: 12px; padding-right: 12px; }

/* Beneficios */
.benefits { display: grid; border-top: 1px solid var(--line); }
.benefits li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.b-num { font-size: 14px; font-weight: 800; color: var(--red); padding-top: 3px; min-width: 24px; font-variant-numeric: tabular-nums; }
.benefits h3 { margin-bottom: 4px; font-size: 1.15rem; }
.benefits p { color: var(--muted); font-size: 15.5px; }

/* Proceso */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px;
}
.step:last-child .step-n { background: var(--red); }
.step h3 { margin-bottom: 6px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 15px; }

/* Garantía */
.guarantee {
  display: grid; gap: 24px;
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 32px 24px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}
.guarantee::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.g-seal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 8px var(--red-soft); }
.g-seal .ico { width: 34px; height: 34px; }
.g-badge { width: 150px; height: auto; mix-blend-mode: multiply; margin: -8px 0 -8px -12px; }
.g-body h2 { margin-bottom: 18px; }
.guarantee blockquote { margin: 0 0 18px; font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.g-note { font-size: 15px; color: var(--muted); }
.g-link { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--ink); }

/* Experiencia */
.exp-grid { display: grid; gap: 40px; }
.exp-grid h2 { margin-bottom: 28px; }
.exp-stat { display: flex; align-items: baseline; gap: 14px; font-size: 18px; font-weight: 600; color: var(--on-dark-muted); }
.exp-stat span { font-size: clamp(4.5rem, 18vw, 7.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: #fff; }
.exp-list { display: grid; gap: 4px; }
.exp-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.exp-list .ico { width: 24px; height: 24px; color: #FF5252; margin-top: 2px; }
.exp-list strong { display: block; font-size: 17px; }
.exp-list span { color: var(--on-dark-muted); font-size: 15px; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.photo-row .photo:first-child { grid-column: 1 / -1; }
.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / .75));
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.photo-slot {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius);
  border: 1.5px dashed var(--dark-line); background: var(--dark-2);
  display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center;
  color: var(--on-dark-muted); font-size: 13px;
}
.photo-slot .ico { width: 32px; height: 32px; }
.testimonials { display: grid; gap: 12px; margin-top: 12px; }
.testimonial { margin: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; }
.testimonial blockquote { margin: 0 0 16px; font-size: 17px; line-height: 1.5; }
.testimonial figcaption { display: grid; font-size: 14px; }
.testimonial figcaption span { color: var(--on-dark-muted); }
.testimonial.is-placeholder { border-style: dashed; color: var(--on-dark-muted); }

/* Licencias y certificados gestionados */
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1rem; }
.doc-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: -20px; padding: 4px 20px 12px; scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.doc-grid::-webkit-scrollbar { display: none; }
.doc { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.doc[hidden] { display: none; }
.doc-open {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
  touch-action: manipulation;
}
.doc-open img { width: 100%; height: auto; aspect-ratio: 560 / 788; object-fit: cover; }
.doc-open:active { transform: scale(.98); }
.doc-zoom {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(17 17 19 / .72); color: #fff;
}
.doc-zoom .ico { width: 18px; height: 18px; }
.doc-body h3 { margin: 2px 0 2px; font-size: 1.05rem; }
.doc-body .case-loc { font-size: 14px; color: var(--muted); align-items: flex-start; margin-top: 4px; }
.doc-body .case-loc .ico { margin-top: 3px; }
.doc-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

.section-dark .section-sub, .section-dark .doc-note, .section-dark .doc-body .case-loc { color: var(--on-dark-muted); }
.section-dark .case-type { color: #FF5252; }
.section-dark .doc-open { border-color: var(--dark-line); }

/* Visor */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92dvh;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(10 10 11 / .86); }
.lightbox img { max-width: 100%; max-height: 82dvh; width: auto; margin: 0 auto; border-radius: 10px; background: #fff; }
.lightbox p { color: #fff; text-align: center; font-weight: 600; font-size: 15px; margin-top: 12px; }
.lightbox-close {
  position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  touch-action: manipulation;
}
.lightbox[open] { animation: lightbox-in 200ms var(--ease-out); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.tag-list li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* Casos en video (reels verticales) */
.reel-hint { color: var(--muted); font-size: 15px; margin: -24px 0 20px; }
.reel-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: -20px; padding: 0 20px 8px; scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.reel-grid::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.reel-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); aspect-ratio: 9 / 16; }
.reel-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .35));
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.reel-play .ico {
  width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%;
  background: rgb(255 255 255 / .92); color: var(--red);
  box-shadow: 0 10px 30px rgb(0 0 0 / .3);
  transition: transform 160ms ease-out;
}
.reel-play:active .ico { transform: scale(.92); }
.reel.is-playing .reel-play { display: none; }
.reel-body h3 { margin: 2px 0 2px; }
.reel-body p { font-size: 14.5px; color: var(--muted); }

/* Casos */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 42px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-grid { display: grid; gap: 14px; }
.case { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.case[hidden] { display: none; }
.case-img { aspect-ratio: 16 / 10; background: var(--bg-soft); display: grid; place-items: center; color: #BDBAB5; }
.case-img .ico { width: 40px; height: 40px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 18px 20px 20px; }
.case-type { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 6px; }
.case-body h3 { margin-bottom: 4px; }
.case-body p { font-size: 14.5px; color: var(--muted); }
.case-loc { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.case-loc .ico { width: 16px; height: 16px; }
.case.is-placeholder { border-style: dashed; }
.empty-filter { text-align: center; color: var(--muted); padding: 24px 0; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-aside h2 { margin-bottom: 16px; }
.faq-aside p { color: var(--muted); margin-bottom: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq-list details[open] { border-color: #CFCBC6; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 16px; min-height: 56px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 4px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { padding: 0 20px 20px; color: var(--ink-2); font-size: 15.5px; }

/* CTA final + formulario */
.final { padding-bottom: 96px; }
.final-grid { display: grid; gap: 40px; align-items: start; }
.final-copy h2 { margin-bottom: 18px; }
.final-copy .trust-list { margin-top: 22px; }
.final-alt { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--dark-line); display: grid; gap: 12px; }
.final-alt p { color: var(--on-dark-muted); font-size: 15px; }
.final-alt .phone { font-weight: 700; color: #fff; font-size: 17px; letter-spacing: .02em; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); }
.form-title { font-size: 1.4rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111113' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(17 17 19 / .08); }
.field.has-error input, .field.has-error select { border-color: var(--red); background: #fff; }
.err { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 5px; min-height: 0; }
.err:empty { display: none; }
.form-card .btn-primary { margin-top: 8px; }
.form-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.45; }
.form-success { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px 0; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: #E8F9EF; color: var(--wa-dark); display: grid; place-items: center; }
.ok-ico .ico { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: #0A0A0B; color: var(--on-dark-muted); padding: 40px 0 calc(110px + env(safe-area-inset-bottom, 0px)); font-size: 14px; border-top: 1px solid var(--dark-line); }
.footer-inner { display: grid; gap: 22px; }
.footer-inner .logo { margin-bottom: 8px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; cursor: pointer; }
.copy { font-size: 13px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 10px 20px 10px 14px;
  background: var(--wa); color: #0B2915; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -6px rgb(29 168 81 / .55), 0 2px 6px rgb(0 0 0 / .12);
  transition: transform .2s, box-shadow .2s;
  animation: wa-in .5s .8s backwards cubic-bezier(.2, .9, .3, 1.2);
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.96); }
.chip:active { transform: scale(.96); }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }

/* Aparición al hacer scroll */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 50ms); /* hermanos de una misma cuadrícula entran escalonados */
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Títulos de sección: el texto se descubre de arriba abajo, una sola vez */
.js .section-head.reveal h2,
.js .reveal > h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(.3em);
  transition: clip-path 700ms var(--ease-in-out) 80ms, transform 700ms var(--ease-out) 80ms;
}
.js .section-head.reveal.is-visible h2,
.js .reveal.is-visible > h2 { clip-path: inset(0 0 -.2em 0); transform: none; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .cta-group { flex-direction: row; flex-wrap: wrap; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .clients-marquee { margin-inline: -32px; }
  .clients-marquee .clients-grid li { width: 156px; }
  .hero-visual { width: 320px; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .include-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card { grid-column: span 2; }
  .benefits { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: repeat(3, 1fr); }
  .photo-row .photo:first-child { grid-column: auto; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-auto-columns: 34%; margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; }
  .reel-grid { grid-auto-columns: 38%; margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; }
  .guarantee { grid-template-columns: auto 1fr; padding: 44px 40px 44px 48px; gap: 32px; align-items: center; }
  .g-badge { width: 200px; margin: 0; }
  .form-card { padding: 36px 32px; }
  .center-cta .btn { width: auto; }
  .duo { grid-template-columns: 1fr 1.2fr; }
}

/* ================= Desktop ================= */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  body { font-size: 18px; }
  .main-nav { display: flex; gap: 32px; }
  .main-nav a.is-active { color: var(--red); }
  .main-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
  .btn-sm { min-height: 46px; padding: 12px 20px; font-size: 13.5px; }
  .logo-text { font-size: 13px; letter-spacing: .22em; }

  .hero { padding: 72px 0 96px; }
  .hero-visual { width: 340px; }
  .float-note { right: -56px; }
  .float-stat { left: -56px; }
  .clients { padding-bottom: 88px; }
  .clients-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
  .pain-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pain-close { grid-template-columns: auto auto; justify-content: space-between; align-items: center; margin-top: 56px; }

  .split { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .include-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .price-card { grid-column: span 1; }
  .inc-card { padding: 26px 22px; }

  .benefits { column-gap: 80px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 45px; left: calc(24px + 44px + 12px); right: -8px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  }

  .exp-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding: 0; gap: 24px 20px; }
  .doc-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; }
  .reel-grid.reel-grid-5 { grid-template-columns: repeat(5, 1fr); }
  .reel-grid { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin-inline: 0; padding: 0; gap: 16px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .final-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .final-copy { position: sticky; top: calc(var(--header-h) + 32px); }
  .form-card { padding: 40px; }

  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--dark-line); }
  .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

/* Hover solo con mouse: en táctil el :hover queda "pegado" tras tocar */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--red-dark); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  .btn-outline:hover .ico-wa { color: var(--wa); }
  .btn-wa:hover { background: #3DE07A; }
  .link-arrow:hover .ico { transform: translateX(4px); }
  .inc-card:hover { border-color: #D4D1CC; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .chip:hover { border-color: var(--ink); }
  .main-nav a:hover { color: var(--red); }
  .footer-links a:hover { color: #fff; }
  .wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgb(29 168 81 / .65); }
  .wa-float:hover:active { transform: scale(.96); }
  .reel-media video { transition: transform 400ms var(--ease-out); }
  .reel:not(.is-playing):hover .reel-media video { transform: scale(1.04); }
  .reel:not(.is-playing):hover .reel-play .ico { transform: scale(1.08); }
  .doc-open:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .doc-open:hover:active { transform: scale(.98); }
  .btn-primary:hover { box-shadow: 0 12px 26px -8px rgb(230 0 0 / .6); }
  .btn:hover .ico-arrow { transform: translateX(3px); } /* la flecha del CTA avanza */
  .btn-outline:hover .ico-wa,
  .btn-wa:hover .ico { transform: scale(1.08); }
}

/* Pantallas muy pequeñas: WhatsApp flotante compacto */
@media (max-width: 339px) {
  .wa-float span { display: none; }
  .wa-float { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Menos movimiento, no cero: se mantienen los fundidos, se quitan desplazamientos y escalas */
  .hero-copy > *, .hero-visual, .wa-float { animation-name: fade-only; }
  .hero h1 .hl, .live-dot, .float-note, .float-stat, .scroll-progress { animation: none; }
  .clients-marquee { overflow-x: auto; }
  .clients-marquee .clients-grid { animation: none; }
  .lightbox[open] { animation-name: fade-only; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .section-head.reveal h2, .js .reveal > h2 { clip-path: none; transform: none; transition: none; }
  .btn:active, .chip:active, .wa-float:active, .wa-float:hover, .wa-float:hover:active,
  .inc-card:hover, .doc-open:hover, .doc-open:active, .reel-play:active .ico, .btn .ico, .link-arrow .ico { transform: none !important; }
}
@keyframes fade-only { from { opacity: 0; } }

