/* =========================================================================
   Klikeando — fx-holo.css  (10/11/2026)
   Efectos de scroll inspirados en tryholo.ai, montados sobre scroll-fx.js.
   Usa los tokens de styles.css (--accent, --magenta, --surface...). Todo lo
   oculto de partida lo pone fx-holo.js: sin JS, la página se ve completa.
   ========================================================================= */

/* ---------- Cabecera que se esconde al bajar y vuelve al subir ---------- */
.nav { transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease), transform .5s var(--ease); }
.nav.fx-oculta { transform: translateY(-105%); }

/* ---------- Halo que sigue al cursor (solo con ratón) ---------- */
.fx-halo {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,46,158,.10), rgba(18,240,228,.06) 40%, transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.fx-halo.is-on { opacity: 1; }
@media (hover: none) { .fx-halo { display: none; } }

/* ---------- Volver arriba con anillo de progreso (a la izquierda: WhatsApp va a la derecha) ---------- */
.fx-arriba {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); font-size: 18px; cursor: pointer;
  background: rgba(13,19,28,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-str);
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.fx-arriba.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fx-arriba svg { position: absolute; inset: -1px; transform: rotate(-90deg); }
.fx-arriba circle { fill: none; stroke: url(#fxGrad); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
/* Móvil: más pequeño (40 px). Sale tras dos pantallas y se esconde mientras se baja (fx-holo.js) */
@media (max-width: 767px) {
  .fx-arriba { width: 40px; height: 40px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 16px; }
  .fx-arriba svg { width: calc(100% + 2px); height: calc(100% + 2px); }
}

/* ---------- Hero: tira de resultados de Google (ejemplo) ---------- */
/* El hero de portada es flex en fila: lo pasamos a columna para que la tira vaya debajo */
.hero--home { flex-direction: column; justify-content: center; align-items: stretch; }
.hero--home > .wrap { width: min(100% - 2.5rem, var(--wrap)); }
.fx-serp { position: relative; z-index: 2; width: 100%; margin-top: clamp(1.8rem, 5vh, 3rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.fx-serp__pista { display: flex; gap: 16px; width: max-content; animation: fxDesliza 60s linear infinite; }
@keyframes fxDesliza { to { transform: translateX(-50%); } }
.fx-serp__item {
  width: 320px; flex: none; padding: 15px 17px; border-radius: 18px; background: #fff; color: #202124; text-align: left;
  font-family: Arial, var(--font-body), sans-serif; box-shadow: 0 20px 50px -22px rgba(0,0,0,.7);
}
.fx-serp__q { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #e3e3e3; border-radius: 999px; font-size: 13px; color: #4d5156; margin-bottom: 11px; }
.fx-serp__q svg { width: 14px; height: 14px; flex: none; }
.fx-serp__sitio { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4d5156; }
.fx-serp__fav { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--accent-deep)); }
.fx-serp__top { margin-left: auto; font-size: 11px; font-weight: 800; background: #e6fbf9; color: #0b8a82; padding: 3px 8px; border-radius: 999px; }
.fx-serp__t { font-size: 17px; color: #1a0dab; margin: 4px 0 2px; line-height: 1.3; }
.fx-serp__e { color: #f4b400; font-size: 12px; }
.fx-serp__d { font-size: 12.5px; color: #4d5156; line-height: 1.45; }
@media (max-width: 640px) { .fx-serp__item { width: 262px; } }

/* ---------- Texto que se ilumina palabra a palabra (sección fijada) ---------- */
.fx-ilumina { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; position: relative; padding-inline: 1.25rem; }
.fx-ilumina__texto { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.14;
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4rem); max-width: 22ch; text-align: center; margin: 0; color: var(--text); }
/* Con JS: la sección mide 230 % de pantalla y su contenido va fijo (sticky) */
.fx-ilumina.fx-ilumina--sticky { display: block; min-height: 0; height: 230vh; height: 230svh; overflow: visible; overflow: clip; padding-inline: 0; }
.fx-ilumina__fijo { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; padding-inline: 1.25rem; }
.fx-ilumina__texto .c { color: var(--accent); } .fx-ilumina__texto .m { color: var(--magenta); }
.fx-icono { position: absolute; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  font: 700 24px var(--font-display); background: var(--surface-2); border: 1px solid var(--border-str);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.06); }
.fx-icono--1 { left: 8%; top: 18%; color: #4C8CFF; } .fx-icono--2 { right: 9%; top: 22%; color: var(--accent); }
.fx-icono--3 { left: 12%; bottom: 15%; color: #1877F2; } .fx-icono--4 { right: 13%; bottom: 12%; color: #25D366; }
/* Móvil y tablet estrecha: sin fijar ni reservar altura. La sección mide lo que
   su contenido (72 px arriba; abajo 16 + los 64 de «Cómo empezamos») y los iconos van en una fila pequeña encima del
   texto, en el flujo, sin taparlo ni moverse. */
@media (max-width: 767px) {
  .fx-ilumina, .fx-ilumina.fx-ilumina--sticky { min-height: 0 !important; height: auto !important; display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center; align-content: flex-start; gap: 10px; padding: 72px 1.25rem 16px; overflow: visible; }
  .fx-ilumina__fijo { position: static; height: auto; display: contents; }
  .fx-icono { position: static !important; inset: auto !important; width: 40px; height: 40px; font-size: 14px; border-radius: 12px;
    transform: none !important; translate: none !important; }
  .fx-ilumina__texto { flex: 0 0 100%; margin-top: 14px; font-size: clamp(1.75rem, 1.2rem + 3vw, 2.4rem); }
}

/* «El problema real» es ahora una pila [data-fx-pila] más: su CSS está en
   scroll-fx.css («Tarjetas apiladas») y la anima initPila de scroll-fx.js. */

/* ---------- Resultados: tarjetas en horizontal (fijado en escritorio) ---------- */
.fx-horizontal { overflow: hidden; }
.fx-horizontal__pista { display: flex; gap: 22px; width: max-content; padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.fx-panel { width: min(500px, 84vw); flex: none; padding: 26px; border-radius: var(--r-xl);
  background: linear-gradient(170deg, var(--surface-2), var(--bg-elev)); border: 1px solid var(--border-str); }
.fx-panel h3 { margin-bottom: .2rem; }
.fx-panel__sub { color: var(--dim); font-size: var(--step--1); margin-bottom: 1.1rem; }
.fx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 1rem; }
.fx-kpi { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.fx-kpi small { display: block; font-size: 11px; color: var(--dim); }
.fx-kpi b { font: 700 1.05rem var(--font-display); }
.fx-kpi:nth-child(1) b { color: var(--blue); } .fx-kpi:nth-child(2) b { color: #B884FF; }
.fx-kpi:nth-child(3) b { color: var(--accent); } .fx-kpi:nth-child(4) b { color: var(--magenta); }
.fx-grafica { width: 100%; height: 160px; display: block; }
.fx-grafica .linea { fill: none; stroke-width: 3; stroke-linecap: round; }
.fx-grafica .area { opacity: .22; }
.fx-nota { color: var(--dim); font-size: var(--step--1); text-align: center; margin-top: 1.4rem; }
@media (max-width: 899px) {
  .fx-horizontal__pista { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: none; }
  .fx-horizontal__pista::-webkit-scrollbar { display: none; }
  .fx-panel { scroll-snap-align: center; }
  .fx-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Frase del precio con máscara que se abre ---------- */
.fx-precio { position: relative; }
.fx-precio__fijo { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; overflow: hidden; padding-inline: 1.25rem; }
.fx-precio__mascara { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,46,158,.18), transparent 70%), radial-gradient(50% 50% at 50% 60%, rgba(18,240,228,.14), transparent 70%), var(--bg-elev); }
.fx-precio h2 { position: relative; z-index: 1; text-align: center; font-size: clamp(2.6rem, 1rem + 7vw, 8.5rem); line-height: 1; margin: 0; }
.fx-precio__peq { display: block; font: 400 var(--step-1)/1.5 var(--font-body); color: var(--text-2); letter-spacing: 0; margin: 1.4rem auto 0; max-width: 46ch; }
.fx-precio .btn-row { justify-content: center; margin-top: 2rem; position: relative; z-index: 1; }

/* ---------- Cuentakilómetros ---------- */
.fx-odo-sec { text-align: center; }
.fx-odo { display: inline-flex; font: 700 clamp(4rem, 2rem + 10vw, 10.5rem)/1 var(--font-display); letter-spacing: -.05em; height: 1em; overflow: hidden; color: var(--text); }
.fx-odo__col { display: flex; flex-direction: column; }
.fx-odo__col span, .fx-odo__sep { display: block; height: 1em; }
.fx-odo__sep { color: var(--magenta); }
.fx-odo-lbl { color: var(--text-2); font-size: var(--step-1); margin-top: .8rem; }
.fx-sellos { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.fx-sellos span { padding: .6rem 1rem; border: 1px solid var(--border); border-radius: 999px; font-size: var(--step--1); color: var(--text-2); }
.fx-sellos b { color: var(--accent); margin-right: .35rem; }

/* ---------- Trabajos: carrusel que se arrastra ---------- */
.carrusel-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.carrusel-flechas { display: flex; gap: .6rem; }
.carrusel-flechas button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-str); background: transparent; color: var(--text); font-size: 20px; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.carrusel-flechas button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.grid.carrusel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 24px; cursor: grab; }
.grid.carrusel::-webkit-scrollbar { display: none; }
.grid.carrusel.arrastrando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.grid.carrusel.arrastrando a { pointer-events: none; }
.grid.carrusel > .card { flex: none; width: min(380px, 80vw); scroll-snap-align: start; padding-top: 0; overflow: hidden; }
.grid.carrusel > .card::before { content: ""; display: block; height: 150px; margin: 0 calc(-1 * var(--sp-4, 2rem)) 1.2rem;
  background:
    radial-gradient(4px 4px at 18px 16px, #ff5f57 98%, transparent), radial-gradient(4px 4px at 32px 16px, #febc2e 98%, transparent), radial-gradient(4px 4px at 46px 16px, #28c840 98%, transparent),
    linear-gradient(rgba(0,0,0,.35) 0 32px, transparent 32px),
    linear-gradient(135deg, var(--c1, var(--magenta)), var(--c2, #3B1D9E)); }
.grid.carrusel > .card:nth-child(2) { --c1: var(--accent-deep); --c2: #0B1030; }
.grid.carrusel > .card:nth-child(3) { --c1: #2bb673; --c2: #0B1030; }
.grid.carrusel > .card:nth-child(4) { --c1: #ffb35c; --c2: #8b1d4a; }
.grid.carrusel > .card:nth-child(5) { --c1: #5b6b8c; --c2: #0B1030; }
.grid.carrusel > .card:nth-child(6) { --c1: var(--blue); --c2: #0B1030; }

/* ---------- Redes en automático: calendario + móvil ---------- */
.fx-duo { display: grid; gap: var(--sp-3); }
@media (min-width: 900px) { .fx-duo { grid-template-columns: 1fr 1fr; } }
.fx-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 1rem; }
.fx-cal__dh { font-size: 11px; color: var(--dim); text-align: center; }
.fx-cal__d { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); position: relative; font-size: 10px; color: var(--dim); padding: 4px; }
.fx-cal__p { position: absolute; inset: auto 4px 4px; height: 40%; border-radius: 6px; }
.fx-cal__p.r { background: var(--magenta); } .fx-cal__p.i { background: var(--accent); } .fx-cal__p.c { background: #8b5cf6; }
.fx-leyenda { display: flex; gap: 1rem; margin-top: 1rem; font-size: var(--step--1); color: var(--text-2); flex-wrap: wrap; }
.fx-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: middle; }
.fx-movil { width: 100%; max-width: 260px; margin: 1rem auto 0; border-radius: 38px; border: 8px solid var(--surface-3); background: var(--bg); padding: 18px 14px; box-shadow: 0 40px 80px -30px rgba(255,46,158,.35); }
.fx-movil__notch { width: 80px; height: 6px; border-radius: 6px; background: var(--surface-3); margin: 0 auto 16px; }
.fx-movil__item { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.04); margin-bottom: 8px; font-size: 13px; }
.fx-movil__mini { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.fx-movil__ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-str); display: grid; place-items: center; font-size: 12px; flex: none; transition: .3s; color: transparent; }
.fx-movil__item.ok .fx-movil__ck { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fx-movil__btn { margin-top: 12px; padding: 13px; border-radius: 14px; background: var(--magenta); color: #fff; font-weight: 700; text-align: center; position: relative; overflow: hidden; }
.fx-movil__onda { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255,255,255,.6); transform: scale(0); }
.fx-movil__ok { text-align: center; margin-top: 10px; font-weight: 700; color: var(--accent); }

/* ---------- Tarjetas con inclinación 3D (servicios) ---------- */
@media (hover: hover) { [data-tilt] { transform-style: preserve-3d; will-change: transform; } }

/* ---------- Olas animadas encima del pie ---------- */
.fx-olas { display: block; width: 100%; height: clamp(110px, 16vw, 200px); margin-top: var(--sp-6); }
.fx-olas + .footer { margin-top: 0; border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .fx-serp__pista { animation-duration: 160s; }
  .nav.fx-oculta { transform: none; }
}
