/* Six Summit — sixsummitinc.com
   Colores y letra del kit de marca (marca/kit.html). El naranja solo en acentos grandes:
   sobre blanco no pasa el contraste para texto pequeño ni enlaces. */

/* Quicksand 700 recortada a latín (woff2, ~15 KB). El .ttf variable queda de respaldo. */
@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand-700.woff2") format("woff2"), url("fonts/quicksand.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0E1B2E;
  --navy-2: #16263D;
  --orange: #FF5B2E;
  --mist: #F4F6F8;
  --line: #E2E6EB;
  --text: #0E1B2E;
  --muted: #4C5A6B;
  --on-dark-muted: #AEBACB;
  --radius: 16px;
  --head: "Quicksand", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Foco de teclado: visible siempre, azul marino sobre claro y blanco sobre oscuro */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .launch :focus-visible, .contact :focus-visible, footer :focus-visible { outline-color: #fff; }
.btn:focus-visible { border-radius: 999px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--orange); }
main:focus { outline: none; }

/* Barra de progreso de lectura (la crea el JS) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: var(--orange); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Cabecera. El fondo vive en ::before para poder encogerlo sin mover el diseño */
.top { position: sticky; top: 0; z-index: 20; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transform-origin: top; transition: transform .5s var(--ease), background-color .5s, box-shadow .5s; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: transform .5s var(--ease); }
.top .logo { flex-shrink: 0; }
.top .logo img { height: 30px; width: auto; transform-origin: left center; transition: transform .5s var(--ease); }
.top.is-scrolled::before { transform: scaleY(.82); background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 12px 30px -20px rgba(14,27,46,.5); }
.top.is-scrolled .wrap { transform: translateY(-6px); }
.top.is-scrolled .logo img { transform: scale(.88); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; position: relative; }
.nav a:not(.lang):not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.lang):not(.btn):hover, .nav a.active { color: var(--navy); }
.nav a:not(.lang):not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--navy); font-weight: 600; font-size: 13px; transition: border-color .2s; }
.nav .lang:hover { border-color: var(--navy); }
.nav .btn.nav-cta { padding: 8px 16px; font-size: 14px; background: var(--navy); color: #fff; }
.nav .btn.nav-cta:hover { background: var(--navy-2); }

/* Portada */
.hero { background: radial-gradient(120% 90% at 72% 100%, #1A2E4B 0%, var(--navy) 62%); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; padding-block: 104px 132px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 .accent { display: block; width: 110px; height: 8px; border-radius: 4px; background: var(--orange); margin-top: 26px; transform-origin: left center; }
.hero p.lead { font-size: 20px; color: #D9E1EA; max-width: 620px; margin: 28px 0 0; }
.hero .mark-wrap { justify-self: end; width: min(320px, 100%); position: relative; }
.hero .mark { width: 100%; aspect-ratio: 1078 / 1048; overflow: visible; }
.hero .mark .roof, .hero .mark .rhombus, .hero .mark .pulse, .hero .mark g.float { transform-box: fill-box; transform-origin: center; }
.hero .mark .pulse { fill: none; stroke: #fff; stroke-width: .7; opacity: 0; }

/* Paisaje de cumbres: tres cordilleras que derivan, un sol que respira y el frente blanco
   que abre la sección siguiente. Todo decorativo (aria-hidden). */
.scape { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.scape svg { max-width: none; }
.scape .layer { position: absolute; left: 0; right: 0; bottom: 0; height: 66%; }
.scape .drift { position: absolute; left: 0; bottom: 0; width: max(200%, 2400px); height: 100%; }
.scape .fill, .contact-fx .fill { stroke: none; }
.scape .edge, .scape .tracer, .contact-fx .edge { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.l1 .fill { fill: #17293F; } .l1 .edge { stroke: rgba(255,255,255,.16); }
.l2 .fill { fill: #112139; } .l2 .edge { stroke: rgba(255,255,255,.22); }
.scape .l3 .fill { fill: #0A1524; } .scape .l3 .edge { stroke: rgba(255,255,255,.1); }
.scape .tracer { stroke: var(--orange); stroke-width: 2.5; opacity: 0; }
.scape .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,27,46,.82) 0%, rgba(14,27,46,.55) 38%, rgba(14,27,46,0) 62%); }
.scape .front { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 72px); fill: #fff; }
.scape .sun { position: absolute; left: 72%; top: 80%; width: min(1100px, 140vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,91,46,.5), rgba(255,91,46,.2) 42%, rgba(255,120,70,.05) 72%, transparent); }
.scape .stars { position: absolute; inset: 0 0 42% 0; }
.scape .star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .2; }
.scape .flare { position: absolute; left: 91%; bottom: 36%; width: 2px; height: 90px; border-radius: 2px; background: linear-gradient(to top, rgba(255,91,46,0), #FF8A63 60%, #fff); opacity: 0; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; font-family: var(--body); line-height: 1.3; text-decoration: none; border: 0; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: background-color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn.primary { background: var(--orange); color: var(--navy); }
.btn.primary:hover { background: #FF7449; }
.btn.ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; background: rgba(14,27,46,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: #fff; }
.btn .arr { position: relative; display: inline-block; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn .arr svg { position: absolute; inset: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.btn .arr svg + svg { transform: translateX(-120%); }
.btn:hover .arr svg:first-child, .btn:focus-visible .arr svg:first-child { transform: translateX(120%); }
.btn:hover .arr svg + svg, .btn:focus-visible .arr svg + svg { transform: none; }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); translate: -120% 0; }
.btn.primary:hover::after { translate: 120% 0; transition: translate .8s var(--ease); }

/* Secciones */
section.block { padding-block: 96px; position: relative; }
main > section { overflow-x: clip; }
section.alt { background: var(--mist); }
.head { max-width: 720px; margin-bottom: 48px; }
.head h2 { font-size: clamp(32px, 4vw, 44px); }
.head p { color: var(--muted); font-size: 19px; margin: 14px 0 0; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--orange); border-radius: 2px; transform: rotate(45deg); flex: none; }
.kicker.on-dark { color: var(--on-dark-muted); }

/* Divisores de cordillera entre secciones (los crea el JS) */
.divider { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(26px, 4.4vw, 62px); pointer-events: none; z-index: 1; }
.divider svg { width: 100%; height: 100%; max-width: none; }
.divider .fill { fill: var(--df, #fff); }
.divider .edge { fill: none; stroke: var(--de, rgba(14,27,46,.2)); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px; position: relative; }
.service .n { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service h3 { font-size: 23px; margin: 18px 0 10px; }
.service p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; overflow: visible; }
.ico path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; }
.ico .acc { stroke: var(--orange); }
.ico .wire { stroke-dasharray: 3 4; }

/* Casos */
.cases { display: grid; gap: 16px; }
.case { display: grid; grid-template-columns: .9fr 1.4fr; gap: 36px; align-items: center; background: #fff no-repeat left center / 4px 0 linear-gradient(var(--orange), var(--orange)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; position: relative; }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--navy); position: relative; }
.tag.live { background: var(--navy); color: #fff; padding-left: 24px; }
.tag.live::before, .tag.live::after { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--orange); }
.tag.live::after { opacity: 0; }
.case h3 { font-size: 23px; transition: translate .5s var(--ease); }
.case p { margin: 0; color: var(--muted); font-size: 17px; }

/* Tarjetas: se elevan al pasar el ratón */
.service, .case { transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s, background-size .5s var(--ease); }
.service.tilting, .case.tilting { transition: transform .12s linear, box-shadow .4s var(--ease), border-color .3s, background-size .5s var(--ease); }
@media (hover: hover) {
  .service:hover, .case:hover { transform: translateY(-4px); border-color: #CBD3DC; box-shadow: 0 24px 44px -26px rgba(14,27,46,.45); }
  .case:hover { background-size: 4px 100%; }
  .case:hover h3 { translate: 8px 0; }
}
/* Luz que sigue al cursor por toda la rejilla: borde encendido + halo suave */
.service::before, .case::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(255,91,46,.95), rgba(255,91,46,0) 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.service::after, .case::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,91,46,.08), transparent 60%); }
.lit .service::before, .lit .case::before, .lit .service::after, .lit .case::after { opacity: 1; }

/* Marquesina de casos (la crea el JS a partir de los títulos) */
.has-marquee { overflow: clip; }
.marquee { margin: -12px calc(50% - 50vw) 36px; padding-block: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-skew { will-change: transform; }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { display: flex; align-items: center; gap: .5em; padding-right: .5em; white-space: nowrap; font: 700 clamp(30px, 4.6vw, 60px)/1.15 var(--head); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1.5px #AEB9C6; }
.marquee-track span:nth-child(even) { color: var(--navy); -webkit-text-stroke: 0; }
.marquee-track span::after { content: ""; width: .26em; height: .26em; border-radius: 3px; background: var(--orange); transform: rotate(45deg); flex: none; }

/* Lanzamiento propio */
.launch { background: var(--navy); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; overflow: hidden; position: relative; isolation: isolate; transform-origin: center top; }
.launch h2 { font-size: clamp(30px, 3.6vw, 40px); }
.launch p { color: #D9E1EA; margin: 16px 0 0; font-size: 18px; }
.launch img { width: 160px; justify-self: center; }
.launch-art { justify-self: center; position: relative; width: 160px; aspect-ratio: 1; display: grid; place-items: center; }
.launch-art .orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; overflow: visible; }
.launch-art .orbit path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; stroke-dasharray: 4 8; }
.launch-art .orbit circle { fill: var(--orange); }
.launch-art .o1 { width: 270px; height: 270px; }
.launch-art .o2 { width: 380px; height: 380px; }
.launch-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.launch-fx .pt { position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; }
.launch-fx .pt.o { background: var(--orange); width: 4px; height: 4px; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { border-top: 3px solid var(--line); padding-top: 18px; position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 100%; background: var(--navy); transform-origin: left; }
.step h3 { font-size: 21px; margin-bottom: 8px; transition: color .4s; }
.step h3::before { counter-increment: s; content: counter(s, decimal-leading-zero) " "; color: var(--muted); font-size: 15px; margin-right: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.climb { display: none; width: 100%; height: auto; overflow: visible; margin: 0 0 6px; }
.climb .track { fill: none; stroke: #CDD5DE; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.climb .done { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.climb .cp { transform-box: fill-box; transform-origin: center; transition: scale .5s cubic-bezier(.3,1.8,.5,1); }
.climb .cp circle { fill: #fff; stroke: #BFC9D4; stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.climb .cp.on { scale: 1.25; }
.climb .cp.on circle { fill: var(--orange); stroke: #fff; }
.climb .climber path { fill: var(--navy); stroke: #fff; stroke-width: 2.5; }
.climb .summit { fill: var(--orange); transform-box: fill-box; transform-origin: center bottom; opacity: .25; scale: .8; transition: opacity .4s, scale .6s cubic-bezier(.3,1.8,.5,1); }
.climb .summit.on { opacity: 1; scale: 1.1; }

/* Empresa */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.about h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 20px; }
.about p { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts span { color: var(--muted); }
.facts b { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Contacto */
.contact { background: var(--navy); color: #fff; text-align: center; isolation: isolate; }
.contact h2 { font-size: clamp(34px, 4.6vw, 52px); }
.contact p { color: #D9E1EA; font-size: 19px; margin: 16px auto 0; max-width: 560px; }
.contact .cta { justify-content: center; margin-top: 28px; }
.contact-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.contact-fx .layer { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; opacity: .55; }
.contact-fx .drift { position: absolute; left: 0; bottom: 0; width: max(200%, 2400px); height: 100%; max-width: none; }

.contact-fx .sun { left: 50%; top: 80%; width: min(1200px, 160vw); }

/* Formulario */
.cform { max-width: 640px; margin: 36px auto 0; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.cform .full { grid-column: 1 / -1; }
.cform label { display: block; font-size: 14px; font-weight: 600; color: #D9E1EA; margin-bottom: 6px; }
.cform input, .cform textarea { width: 100%; font: 16px/1.5 var(--body); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.45); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background-color .2s; }
.cform textarea { min-height: 132px; resize: vertical; }
.cform input:hover, .cform textarea:hover { border-color: rgba(255,255,255,.7); }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-color: #fff; background: rgba(255,255,255,.1); border-radius: 12px; }
.cform .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform .status { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--navy); font-size: 16px; }
.cform div:has(> .btn) { display: flex; justify-content: center; }

/* Pie */
footer { background: #09121F; color: var(--on-dark-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; }
footer img { height: 24px; width: auto; }
footer nav { display: flex; gap: 20px; }
footer a { color: #fff; text-decoration: none; padding-block: 4px; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Páginas sencillas: privacidad, gracias, 404 */
.page { padding-block: 72px 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 18px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.page a { color: var(--navy); text-underline-offset: 3px; }
.page .cta a.btn.primary { color: var(--navy); }

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .case { grid-template-columns: 1fr; gap: 12px; padding: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 72px 100px; }
  .hero .mark-wrap { display: none; }
  .scape .layer { height: 52%; }
  .scape .sun { left: 62%; top: 86%; }
  section.block { padding-block: 72px; }
  .services, .about { grid-template-columns: 1fr; }
  .launch { grid-template-columns: 1fr; padding: 36px 28px; }
  .launch img, .launch-art { display: none; }
  .cform { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --header-h: 62px; }
  .wrap { padding-inline: 18px; }
  .top .wrap { gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .top .logo img { height: 22px; }
  .nav .lang { padding: 4px 9px; }
  .nav .btn.nav-cta { padding: 7px 12px; font-size: 13px; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 360px) {
  .nav .btn.nav-cta { display: none; }
}

/* ---------------------------------------------------------------------------
   Movimiento. Solo si la persona no pidió reducirlo. Sin JS todo se ve y la
   portada anima solo con CSS; los estados ocultos dependen de .js en <html>,
   que el propio <head> retira si el JS no llega en 3 s.
   Se anima transform / translate / scale / opacity / clip-path: CLS 0.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.js { scroll-behavior: auto; } /* el JS hace su propio desplazamiento suave */

  .paused, .paused *, .tab-hidden * { animation-play-state: paused !important; }

  /* Paisaje */
  .scape .layer { animation: range-in 1.8s var(--ease-out) both; }
  .scape .l2 { animation-delay: .12s; }
  .scape .l3 { animation-delay: .24s; }
  .scape .l1 .drift, .contact-fx .l1 .drift { animation: drift 150s linear infinite; }
  .scape .l2 .drift, .contact-fx .l2 .drift { animation: drift 95s linear infinite; }
  .scape .l3 .drift { animation: drift 60s linear infinite; }
  .scape .tracer { stroke-dasharray: .03 .47; animation: tracer 9s linear 1.6s infinite, fade-in 1s ease 1.6s both; }
  .scape .sun { animation: sun-in 2s var(--ease-out) both, breathe 7s ease-in-out 2s infinite alternate; }
  .scape .star { animation: twinkle var(--t, 4s) ease-in-out var(--dl, 0s) infinite alternate; }
  .scape .flare { animation: launch 9s cubic-bezier(.3,0,.2,1) 2.6s infinite; }

  /* Titular: palabras que suben desde una máscara */
  .js .hero h1:not(.split) { opacity: 0; }
  .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
  .split .wi { display: inline-block; translate: 0 115%; rotate: 7deg; transform-origin: 0 100%; transition: translate 1.1s var(--ease-out), rotate 1.1s var(--ease-out); transition-delay: calc(var(--k, 0) * 65ms + var(--d0, 0s)); }
  .split.go .wi { translate: 0 0; rotate: 0deg; }
  .hero h1.split { --d0: .12s; }
  .split .hot .wi { background: linear-gradient(100deg, #fff 0 40%, #FFC7B5 47%, #FF8F6C 50%, #FFC7B5 53%, #fff 60% 100%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite; animation-delay: calc(2.2s + var(--k, 0) * 90ms); }
  .hero h1 .accent { animation: grow 1s var(--ease-out) .95s both, accent-glow 3.5s ease-in-out 2s infinite; }

  .hero p.lead { animation: lead-in 1.1s var(--ease-out) .7s both; }
  .hero .cta .btn { animation: pop .9s var(--ease-out) both; }
  .hero .cta .btn:nth-child(1) { animation-delay: .95s; }
  .hero .cta .btn:nth-child(2) { animation-delay: 1.07s; }
  .hero .cta .btn.primary::after { animation: sweep 1.2s var(--ease) 1.9s both; }

  /* El isotipo se construye: el tejado se dibuja, se rellena, el rombo encaja girando */
  .hero .mark .roof { stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; animation: roof-draw 1.2s var(--ease) .3s both, roof-fill .7s ease 1.2s both, roof-idle 5s ease-in-out 3s infinite; }
  .hero .mark .rhombus { animation: rh-snap 1s cubic-bezier(.3,1.5,.45,1) 1.25s both; }
  .hero .mark .pulse { animation: pulse 4.2s ease-out 2.3s infinite; }
  .hero .mark .pulse.p2 { animation-delay: 4.4s; }
  .hero .mark g.float { animation: float 7s ease-in-out 2.4s infinite; }
  .hero .mark-wrap { transition: transform .8s var(--ease-out); }

  /* Apariciones con coreografía */
  .js .rv { opacity: 0; translate: 0 44px; transition: opacity .9s var(--ease-out), translate 1s var(--ease-out), scale 1s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .rv.in { opacity: 1; translate: 0 0; }
  .js .rv-card { clip-path: inset(22% 0 0 0 round var(--radius)); scale: .94; }
  .js .rv-card.in { clip-path: inset(0 0 0 0 round var(--radius)); scale: 1; }
  .js .rv-wipe { opacity: .001; translate: -60px 0; clip-path: inset(0 100% 0 0 round var(--radius)); }
  .js .rv-wipe.from-r { translate: 60px 0; clip-path: inset(0 0 0 100% round var(--radius)); }
  .js .rv-wipe.in { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .rv.done { clip-path: none; transition-delay: 0s; }
  .js .rv-kick { opacity: 1; translate: 0 0; clip-path: inset(0 100% 0 0); }
  .js .rv-kick.in { clip-path: inset(0 -2% 0 0); }
  .js .rv-kick::before { rotate: -225deg; scale: 0; transition: rotate .9s var(--ease-out) .15s, scale .9s cubic-bezier(.3,1.6,.5,1) .15s; }
  .js .rv-kick.in::before { rotate: 0deg; scale: 1; }
  .js .rv-side { translate: 48px 0; }
  .js .head h2.split, .js .about h2.split, .js .contact h2.split, .js .launch h2.split { --d0: .1s; }

  /* Iconos que se dibujan */
  .js .service .ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .5s); }
  .js .service .ico .wire { stroke-dasharray: 3 4; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s; transition-delay: calc(var(--i, 0) * 90ms + 1.1s); }
  .js .service .ico .acc { transition-delay: calc(var(--i, 0) * 90ms + .95s); }
  .js .service.in .ico path { stroke-dashoffset: 0; }
  .js .service.in .ico .wire { opacity: 1; }
  @media (hover: hover) {
    .service:hover .i-phone .acc { animation: bob .9s ease-in-out infinite alternate; }
    .service:hover .i-web .bl { animation: nudge-l .8s ease-in-out infinite alternate; }
    .service:hover .i-web .br { animation: nudge-r .8s ease-in-out infinite alternate; }
    .service:hover .i-bag { animation: wiggle 1.2s ease-in-out infinite; transform-origin: 50% 20%; }
    .service:hover .i-bars .b { transform-origin: 50% 100%; animation: bars 1s ease-in-out infinite alternate; }
    .service:hover .i-bars .b2 { animation-delay: .15s; } .service:hover .i-bars .b3 { animation-delay: .3s; } .service:hover .i-bars .b4 { animation-delay: .45s; }
    .service:hover .i-flow .wire { animation: flow .6s linear infinite; }
    .service:hover .i-spark .star { transform-origin: center; animation: spin 2.4s var(--ease) infinite; }
    .service:hover .i-spark .mini { transform-origin: center; animation: twinkle-s .8s ease-in-out infinite alternate; }
  }

  .tag.live::after { animation: ping 2.2s ease-out infinite; }

  /* Lanzamiento */
  .launch-art img { animation: float 6s ease-in-out infinite; }
  .launch-art .o1 { animation: spin 38s linear infinite; }
  .launch-art .o2 { animation: spin 60s linear infinite reverse; }
  .launch-fx .pt { animation: rise var(--t, 7s) linear var(--dl, 0s) infinite; }

  /* Proceso con scroll */
  .js .process .step::before { transform: scaleX(var(--f, 0)); }
  .js .process .step { translate: 0 8px; transition: translate .7s var(--ease-out); }
  .js .process .step.on { translate: 0 0; }
  .js .process .step h3 { color: var(--muted); }
  .js .process .step.on h3 { color: var(--navy); }

  .btn.primary:hover { box-shadow: 0 14px 28px -14px rgba(255,91,46,.8); }
  .btn.mag { transition: background-color .2s, border-color .2s, transform .18s linear, box-shadow .25s var(--ease); }
  .btn.mag-out { transition: background-color .2s, border-color .2s, transform .7s cubic-bezier(.2,1.6,.4,1), box-shadow .25s var(--ease); }
}

/* Proceso fijado (escritorio con altura suficiente): la línea sube a la cumbre */
@media (prefers-reduced-motion: no-preference) and (min-width: 961px) and (min-height: 680px) {
  .js .process { height: 300vh; padding-block: 0; }
  .js .process > .wrap { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding-block: 24px 72px; }
  .js .process .head { margin-bottom: 20px; }
  .js .climb { display: block; }
}
/* Proceso en móvil: línea vertical que se llena */
@media (prefers-reduced-motion: no-preference) and (max-width: 480px) {
  .js .process .steps { padding-left: 30px; }
  .js .process .steps::before, .js .process .steps::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
  .js .process .steps::after { background: var(--orange); transform: scaleY(var(--p, 0)); transform-origin: top; }
  .js .process .step::after { content: ""; position: absolute; left: -30px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); border: 3px solid #BFC9D4; transition: background-color .3s, border-color .3s, scale .5s cubic-bezier(.3,1.8,.5,1); z-index: 1; }
  .js .process .step.on::after { background: var(--orange); border-color: #fff; scale: 1.15; }
}

@keyframes range-in { from { translate: 0 90px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes tracer { to { stroke-dashoffset: -1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sun-in { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
@keyframes breathe { from { scale: 1; opacity: 1; } to { scale: 1.1; opacity: .78; } }
@keyframes twinkle { from { opacity: .08; } to { opacity: .85; } }
@keyframes launch { 0% { opacity: 0; translate: 0 60px; } 3% { opacity: 1; } 16% { opacity: 0; translate: 0 -380px; } 100% { opacity: 0; translate: 0 -380px; } }
@keyframes shine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes accent-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,91,46,0); } 50% { box-shadow: 0 0 26px 2px rgba(255,91,46,.55); } }
@keyframes lead-in { from { opacity: 0; translate: 0 26px; clip-path: inset(0 0 100% 0); } to { opacity: 1; translate: 0 0; clip-path: inset(-10% -5% -20% -5%); } }
@keyframes pop { from { opacity: 0; scale: .7; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes sweep { from { translate: -120% 0; } to { translate: 120% 0; } }
@keyframes roof-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes roof-fill { from { fill-opacity: 0; stroke-opacity: 1; } to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes roof-idle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4%; } }
@keyframes rh-snap { 0% { opacity: 0; scale: 0; rotate: -180deg; } 40% { opacity: 1; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes pulse { 0% { opacity: .55; scale: 1; } 100% { opacity: 0; scale: 2.6; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -3px; } }
@keyframes nudge-l { to { translate: -3px 0; } }
@keyframes nudge-r { to { translate: 3px 0; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
@keyframes bars { from { scale: 1 1; } to { scale: 1 .55; } }
@keyframes flow { to { stroke-dashoffset: -14; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes twinkle-s { from { scale: .6; } to { scale: 1.2; } }
@keyframes ping { 0% { opacity: .7; scale: 1; } 100% { opacity: 0; scale: 3; } }
@keyframes rise { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .7; } 100% { opacity: 0; translate: 0 -460px; } }

/* Portada: subtítulo, promesa de respuesta y prueba (15 sep 2026, textos aprobados por Mario) */
.hero p.sub { font-size: 22px; line-height: 1.4; font-weight: 600; color: #fff; max-width: 620px; margin: 26px 0 0; }
.hero p.sub + p.lead { margin-top: 14px; font-size: 18px; }
.hero p.proof { font-size: 15px; line-height: 1.5; color: #D9E1EA; max-width: 620px; margin: 18px 0 0; }
.hero p.proof .sep { color: var(--on-dark-muted); margin: 0 .45em; }
.hero p.proof .ok { color: var(--orange); font-weight: 700; margin-right: .3em; }
.nav .btn.nav-cta .s { display: none; }
.cform div:has(> .btn) { flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cform .reply { font-size: 14px; color: #D9E1EA; }
@media (max-width: 760px) { .hero p.sub { font-size: 19px; } .hero p.sub + p.lead { font-size: 17px; } .hero p.proof { font-size: 14px; } }
@media (max-width: 480px) { .nav .btn.nav-cta .l { display: none; } .nav .btn.nav-cta .s { display: inline; } }
@media (prefers-reduced-motion: no-preference) {
  .hero p.sub { animation: lead-in 1.1s var(--ease-out) .55s both; }
  .hero p.sub + p.lead { animation-delay: .8s; }
  .hero p.proof { animation: lead-in 1.1s var(--ease-out) 1.25s both; }
}

/* Menú de secciones: en escritorio va en línea; a ≤760 px es un panel que abre el botón hamburguesa */
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links .lang-m { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(14,27,46,.35); padding: 6px 24px 14px; }
  .nav .nav-links a:not(.btn) { display: block; font-size: 17px; color: var(--navy); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-links a:not(.btn):last-child { border-bottom: 0; }
  .nav .nav-links a:not(.lang):not(.btn)::after { display: none; }
}
@media (max-width: 480px) {
  .nav > .lang { display: none; }
  .nav-links .lang-m { display: block; }
  .nav.open .nav-links { padding-inline: 18px; }
}
