/* Path · web. Colores y tipografía del brand kit: Path Black, Ultra Orange,
   Path Ivory, Titanium y Steel; Geist. */
:root {
  --bg: #191B1C; --bg2: #141617; --surface: #1F2122; --surface2: #27292B;
  --line: #2C2F31; --line-soft: #232527;
  --fg: #F5F2EA; --fg2: #C7BEAB; --fg3: #8C8F92; --fg4: #5A5E61;
  --orange: #FF6A00; --orange-soft: rgba(255,106,0,0.13); --orange-line: rgba(255,106,0,0.32);
  --ancho: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: Geist, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: #FF8A33; }
h1, h2, h3 { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255,106,0,0.3); }
.wrap { max-width: var(--ancho); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.num { font-variant-numeric: tabular-nums; }
.label, .kicker { font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.kicker { display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--orange); }

/* Fondo que respira */
.aura { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.aura span {
  position: absolute; top: -20vh; right: -20vw; width: 90vw; height: 90vh;
  background: radial-gradient(45% 50% at 50% 50%, rgba(255,106,0,0.16), rgba(255,106,0,0.04) 50%, transparent 72%);
  animation: respira 12s ease-in-out infinite;
}
@keyframes respira { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

/* Navegación */
header.nav { position: sticky; top: 0; z-index: 40; }
.nav-inner { padding: 18px 0; border-bottom: 1px solid transparent; transition: padding .28s, background .28s, border-color .28s; }
.nav.compacta .nav-inner { padding: 10px 0; background: rgba(25,27,28,0.74); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line-soft); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.marca:hover { color: var(--fg); }
.marca img { border-radius: 7px; }
.marca span { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { font-size: 14px; font-weight: 500; color: var(--fg2); }
.nav nav a:hover { color: var(--fg); }
.nav nav a.idioma { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 700px) { .nav nav a.oculta-movil { display: none; } .nav nav { gap: 12px; } }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-size: 16px; font-weight: 700; padding: 16px 28px; transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn--cta { background: var(--orange); color: var(--bg); box-shadow: 0 10px 30px rgba(255,106,0,0.22); }
.btn--cta:hover { color: var(--bg); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,106,0,0.32); }
.nav nav a.btn--peq { font-size: 14px; font-weight: 700; padding: 9px 18px; color: var(--bg); box-shadow: none; }
.btn[aria-disabled="true"] { background: var(--surface2); color: var(--fg2); box-shadow: none; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; color: var(--fg2); }
.nav nav a.btn[aria-disabled="true"] { color: var(--fg2); }
.botonera { display: flex; flex-wrap: wrap; gap: 14px; }

/* Entradas */
.entra { animation: sube .8s cubic-bezier(.2,.7,.2,1) both; }
.entra[data-d="1"] { animation-delay: .08s; } .entra[data-d="2"] { animation-delay: .16s; }
.entra[data-d="3"] { animation-delay: .24s; } .entra[data-d="4"] { animation-delay: .32s; }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.dentro { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .07s; } .rv[data-d="2"] { transition-delay: .14s; } .rv[data-d="3"] { transition-delay: .21s; }

main { position: relative; z-index: 1; }
section { padding-top: 96px; }

/* Portada */
.hero { max-width: var(--ancho); margin: 0 auto; padding: 56px 24px 24px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(86vh, 820px); }
.hero h1 { font-size: clamp(46px, 7vw, 88px); font-weight: 800; line-height: .98; letter-spacing: -0.045em; margin-top: 4px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .sub { margin: 26px 0 0; max-width: 34ch; font-size: 19px; line-height: 1.5; color: var(--fg2); }
.hero .botonera { margin-top: 34px; }
.hero .nota { margin: 16px 0 0; font-size: 13px; letter-spacing: .02em; color: var(--fg3); }
.hero-visual { position: relative; height: 620px; }
.hero-mapa { position: absolute; inset: -40px -80px -40px -40px; width: calc(100% + 120px); height: calc(100% + 80px); }
.curvas ellipse, .curvas path { fill: none; stroke: #C7BEAB; stroke-opacity: .09; stroke-width: 1.4; }
.hero-mapa .curvas { animation: deriva 26s ease-in-out infinite alternate; transform-origin: 300px 320px; }
@keyframes deriva { from { transform: rotate(0deg) scale(1); } to { transform: rotate(8deg) scale(1.06); } }
.ruta-borde { fill: none; stroke: #0E0F10; stroke-width: 16; stroke-linecap: round; opacity: .7; }
.ruta { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; }
.ruta.dibuja { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: dibuja 3.2s .4s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
.reloj { position: absolute; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.hero-visual .reloj { width: 300px; left: 50%; top: 40px; margin-left: -150px; z-index: 2; }
.hero-visual .reloj-2 { width: 200px; left: 4%; top: 300px; margin-left: 0; z-index: 1; opacity: .95; }
.flota { animation: flota 7s ease-in-out infinite; }
.flota-2 { animation: flota 8s ease-in-out -3s infinite; }
@keyframes flota { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: left; min-height: 0; padding-top: 36px; }
  .hero-visual { height: 520px; }
  .hero-visual .reloj { width: 250px; margin-left: -125px; }
  .hero-visual .reloj-2 { width: 150px; top: 290px; left: 0; }
  .hero-visual { overflow: hidden; margin: 0 -24px; padding: 0 24px; }
}

h2.grande { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; max-width: 22ch; }

/* Qué hace */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 38px; }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--orange-line); transform: translateY(-3px); }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.card .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--orange-soft); color: var(--orange); }
.card > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg2); }
.demo { margin-top: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; min-height: 150px; position: relative; overflow: hidden; }

.demo-nav svg { width: 100%; height: 150px; display: block; }
.demo-nav .ruta-borde { stroke-width: 12; }
.demo-nav .ruta { stroke-width: 6; opacity: .9; }
.demo-nav .rastro { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 15; opacity: .9; }
.demo-nav .yo { fill: var(--orange); stroke: var(--fg); stroke-width: 5; }
.demo-nav .hud { position: absolute; left: 14px; bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.demo-nav .hud b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.demo-nav .hud span { font-size: 12px; color: var(--fg2); }

.demo-cifras { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 22px 10px; text-align: center; }
.demo-cifras { gap: 8px; }
.demo-cifras b { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.03em; }
.demo-cifras b.naranja { color: var(--orange); }
.demo-cifras span { display: block; margin-top: 4px; font-size: 12px; color: var(--fg3); }

.demo-sync { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 6px; padding: 26px 10px; }
.aparato span { text-align: center; line-height: 1.2; }
.aparato { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--fg2); }
.aparato svg { width: 40px; height: 40px; fill: none; stroke: var(--fg); stroke-width: 1.6; }
.carril { position: relative; height: 70px; margin: 0 4px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.carril i { position: absolute; left: 0; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; padding: 5px 10px; border-radius: 999px; }
.carril .ida { top: 7px; background: var(--orange); color: var(--bg); animation: ida 4s ease-in-out infinite; }
.carril .vuelta { bottom: 7px; background: var(--surface2); color: var(--fg); border: 1px solid var(--line); animation: vuelta 4s ease-in-out 2s infinite; }
@keyframes ida { 0% { left: 0; opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; transform: translateX(-100%); opacity: 0; } }
@keyframes vuelta { 0% { left: 100%; transform: translateX(-100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; transform: translateX(0); opacity: 0; } }

.demo-analisis { padding: 16px; }
.demo-analisis svg { width: 100%; height: 80px; display: block; }
.demo-analisis .area { fill: rgba(255,106,0,0.16); opacity: 0; transition: opacity 1s .6s; }
.demo-analisis .linea { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s cubic-bezier(.4,.1,.2,1); }
.demo-analisis.dentro .area { opacity: 1; }
.demo-analisis.dentro .linea { stroke-dashoffset: 0; }
.parciales { display: grid; grid-template-columns: auto repeat(6, 1fr); gap: 6px; align-items: end; height: 34px; margin-top: 10px; }
.parciales span { font-size: 11px; color: var(--fg3); align-self: center; margin-right: 4px; }
.parciales i { display: block; height: calc(var(--w) * 0.34px); border-radius: 4px; background: rgba(255,106,0,0.4); transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.parciales i:nth-of-type(5) { background: var(--orange); }
.demo-analisis.dentro .parciales i { transform: scaleY(1); }
.parciales i:nth-of-type(2) { transition-delay: .08s; } .parciales i:nth-of-type(3) { transition-delay: .16s; }
.parciales i:nth-of-type(4) { transition-delay: .24s; } .parciales i:nth-of-type(5) { transition-delay: .32s; } .parciales i:nth-of-type(6) { transition-delay: .4s; }

/* El reloj funciona solo */
.solo { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.solo img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); animation: flota 8s ease-in-out infinite; }
.solo p { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--fg2); max-width: 44ch; }
@media (max-width: 760px) { .solo { grid-template-columns: 1fr; } .solo img { max-width: 260px; } }

/* Capturas */
.capturas { overflow: hidden; }
.tira { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px max(24px, calc((100vw - var(--ancho)) / 2 + 24px)) 60px; perspective: 1400px; scrollbar-width: none; }
.tira::-webkit-scrollbar { display: none; }
.tira figure { flex: 0 0 auto; width: min(250px, 66vw); margin: 0; scroll-snap-align: center; }
.tira img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); }
@supports (animation-timeline: view(x)) {
  .tira figure { animation: tira linear both; animation-timeline: view(x); animation-range: entry 0% exit 100%; }
  .tira figure:nth-child(even) { animation-name: tiraAlt; }
  @keyframes tira { from { transform: translateY(24px) rotateY(5deg); } to { transform: translateY(-24px) rotateY(-5deg); } }
  @keyframes tiraAlt { from { transform: translateY(-20px) rotateY(-5deg); } to { transform: translateY(20px) rotateY(5deg); } }
}

/* Gratis */
.gratis { border: 1px solid var(--line-soft); background: var(--bg2); border-radius: 24px; padding: 48px 36px; display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: center; position: relative; overflow: hidden; }
.gratis .brillo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,106,0,0.08) 50%, transparent 65%); animation: barrido 7s linear infinite; }
@keyframes barrido { from { transform: translateX(-40%); } to { transform: translateX(140%); } }
.gratis h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.gratis ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.gratis li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--fg2); }
.gratis li i { width: 8px; height: 8px; border-radius: 999px; background: var(--orange); flex: 0 0 auto; }

/* Cierre */
.cierre { padding: 120px 24px 130px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cierre h2 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.cierre h2 em { font-style: normal; color: var(--orange); }
.cierre p { margin: 20px 0 0; font-size: 19px; color: var(--fg2); }
.cierre .botonera { margin-top: 32px; justify-content: center; }

/* Pie */
footer.pie { position: relative; z-index: 1; border-top: 1px solid var(--line-soft); background: var(--bg2); }
footer.pie .wrap { padding: 44px 24px 56px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
footer.pie .col { display: flex; flex-direction: column; gap: 14px; }
footer.pie p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--fg3); max-width: 48ch; }
footer.pie p.copy { color: var(--fg4); }
footer.pie nav { display: flex; flex-direction: column; gap: 10px; }
footer.pie nav a { font-size: 14px; color: var(--fg2); }
footer.pie nav a:hover { color: var(--orange); }

/* Privacidad y soporte */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 100px; }
.doc-cab { padding: 24px 0 28px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.04em; }
.doc .meta { margin: 10px 0 0; font-size: 13px; color: var(--fg3); }
.doc .entradilla { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--fg2); }
.doc h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 38px 0 10px; }
.doc p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--fg2); }
.doc strong { color: var(--fg); }
.faq { border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .ruta.dibuja { stroke-dashoffset: 0; }
  .demo-analisis .linea { stroke-dashoffset: 0; } .demo-analisis .area { opacity: 1; } .parciales i { transform: none; }
}
