/* NF 0.3: sistema "taller de precisión". Ver 02_REFERENCIAS_VISUALES/GUIA_ESTILO_NF.md */
:root{--ease-out:cubic-bezier(.2,.7,.1,1);--ease-io:cubic-bezier(.65,0,.35,1);--r-lg:28px;--r-sm:14px}

/* Botones planos: sin brillo de color */
.btn,.btn:hover{box-shadow:none}
.btn{transition:transform .35s var(--ease-out),background-color .25s}
.btn:hover{background:var(--cyan-soft)}
html[data-theme=light] .btn{background:var(--accent);color:#fff}
html[data-theme=light] .btn .ico{background:#fff}
html[data-theme=light] .btn .ico svg{stroke:var(--accent)}
html[data-theme=light] .btn:hover{background:#00606a}
.btn .ico svg{stroke:var(--cyan)}
.nav__bar{box-shadow:0 12px 40px -24px rgba(0,0,0,.55)}

/* ---------- HERO ---------- */
.hero{flex-direction:column;align-items:stretch;justify-content:flex-end;gap:56px;padding-bottom:0;overflow:hidden}
.hero__bg{overflow:hidden}
.hero__bg img{animation:nf-settle 2.4s var(--ease-out) both;will-change:transform}
@keyframes nf-settle{from{transform:scale(1.08)}to{transform:scale(1)}}
.hero__kicker{display:flex;align-items:center;gap:14px;margin:0;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.hero__kicker::before{content:"";width:36px;height:2px;background:var(--accent)}
.quick{background:var(--ink-2);backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:var(--r-lg)}
html[data-theme=dark] .quick{background:rgba(14,23,38,.92)}
.facts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
.facts__item{padding:28px 32px 34px 0;display:flex;flex-direction:column;gap:6px}
.facts__item+.facts__item{padding-left:32px;border-left:1px solid var(--line)}
.facts__item strong{font-family:var(--f-display);font-weight:800;font-stretch:115%;font-size:clamp(22px,2vw,28px);letter-spacing:-.025em;color:var(--text)}
.facts__item span{font-size:15.5px;line-height:1.5;color:var(--muted)}

/* ---------- TÍTULOS: revelado por palabras ---------- */
.nf-split .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.nf-split .w>span{display:inline-block;transform:translateY(105%);transition:transform .9s var(--ease-out);transition-delay:calc(var(--i)*55ms)}
.nf-split.is-in .w>span{transform:none}

/* ---------- PROCESO: línea de tiempo ---------- */
.proc__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(40px,7vw,120px);align-items:start}
.proc__head{position:sticky;top:140px;display:flex;flex-direction:column;align-items:flex-start;gap:32px}
.proc__link{color:var(--accent);font-size:17px}
.timeline{list-style:none;margin:0;padding:8px 0;position:relative;display:flex;flex-direction:column;gap:clamp(56px,8vw,112px)}
.timeline__rail{position:absolute;left:27px;top:28px;bottom:28px;width:2px;background:var(--line)}
.timeline__rail i{position:absolute;inset:0 0 auto;height:calc(var(--p,0)*100%);background:var(--accent)}
.timeline__step{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);gap:28px;align-items:start;opacity:.35;transform:translateY(18px);transition:opacity .6s var(--ease-out),transform .6s var(--ease-out)}
.timeline__step.is-on{opacity:1;transform:none}
.timeline__node{position:relative;z-index:1;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--ink);border:1px solid var(--line);color:var(--muted);transition:border-color .5s,color .5s,background-color .5s}
.timeline__step.is-on .timeline__node{border-color:var(--accent);color:var(--accent)}
.timeline__step h3{margin:6px 0 10px;font-family:var(--f-display);font-weight:800;font-stretch:112%;font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;line-height:1.05;color:var(--text)}
.timeline__step p{margin:0;max-width:440px;font-size:17px;line-height:1.6;color:var(--muted)}

/* ---------- POR QUÉ: ficha de lo que incluye ---------- */
.why{border-block:1px solid var(--line)}
.why__inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(40px,7vw,120px);align-items:end}
.why__title{font-size:clamp(52px,7.3vw,112px)!important;line-height:.95}
.why__title>span{display:block}
.why__title .why__finish{font-size:.65em;color:var(--accent);margin-top:.14em}
.why__lead{margin:36px 0 28px;max-width:420px;font-size:18px;line-height:1.55;color:var(--muted)}
.why__label{margin:0 0 8px;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.spec{list-style:none;margin:0;padding:0}
.spec__row{display:flex;align-items:center;gap:18px;padding:22px 0;border-top:1px solid var(--line);font-size:clamp(18px,1.6vw,21px);font-weight:500;color:var(--text)}
.spec__row:last-child{border-bottom:1px solid var(--line)}
.spec__check{flex:none;color:var(--accent)}
.spec__check path{stroke-dasharray:24;stroke-dashoffset:0}
.nf-motion .spec__row .spec__check path{stroke-dashoffset:24;transition:stroke-dashoffset .7s var(--ease-out) .35s}
.nf-motion .spec__row.is-in .spec__check path{stroke-dashoffset:0}
.why .nf-video{margin-top:28px}

/* ---------- SERVICIOS: paneles que se expanden ---------- */
.svx{list-style:none;margin:0;padding:0;display:flex;gap:14px;height:clamp(480px,46vw,620px)}
.svx__item{flex:1 1 0;min-width:0;transition:flex-grow .7s var(--ease-io)}
.svx__item.is-active{flex-grow:2.4}
.svx__link{position:relative;display:flex;align-items:flex-end;height:100%;border-radius:var(--r-lg);overflow:hidden;isolation:isolate;border:1px solid var(--line);color:#fff}
.svx__link img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transform:scale(1.04);transition:transform 1.2s var(--ease-out),filter .7s}
.svx__link::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(7,12,21,0) 35%,rgba(7,12,21,.88) 100%)}
.svx__item:not(.is-active) .svx__link img{filter:grayscale(.6) brightness(.7)}
.svx__item.is-active .svx__link img{transform:scale(1)}
.svx__item.is-active .svx__link{border-color:rgba(46,230,240,.45)}
.svx__tag{position:absolute;top:22px;left:22px;padding:7px 12px;border-radius:999px;background:var(--cyan);color:var(--on-cyan);font-size:12px;font-weight:600}
.svx__body{display:flex;flex-direction:column;gap:10px;padding:28px;width:100%;min-width:0}
.svx__title{font-family:var(--f-display);font-weight:900;font-stretch:115%;letter-spacing:-.035em;line-height:1;font-size:clamp(19px,1.9vw,28px);white-space:nowrap;transition:font-size .5s var(--ease-io)}
.svx__item.is-active .svx__title{white-space:normal}
@media(min-width:981px){.svx__item:not(.is-active) .svx__title .thin{display:none}}
.svx__item.is-active .svx__title{font-size:clamp(34px,3.6vw,58px)}
.svx__title .thin{font-weight:300;font-style:italic;font-stretch:100%;color:var(--cyan-soft)}
html[data-theme=light] .svx__title .thin{color:#8ff4f8}
.svx__text{max-width:420px;font-size:16px;line-height:1.5;color:#C9D2DD}
.svx__more{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px;color:var(--cyan)}
.svx__text,.svx__more{max-height:0;opacity:0;overflow:hidden;transition:max-height .6s var(--ease-io),opacity .4s}
.svx__item.is-active .svx__text,.svx__item.is-active .svx__more{max-height:120px;opacity:1;transition-delay:.2s}
.svx__link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* ---------- AGENDA ---------- */
.book{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:clamp(32px,5vw,80px);align-items:start}
.book__pitch{position:sticky;top:130px;padding:8px 0 0;background:none;border:0;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:28px}
.book__lead{margin:0;max-width:400px;font-size:18px;line-height:1.55;color:var(--muted)}
.book__need p{margin:0 0 12px;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.book__need ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.book__need li{padding:14px 0;border-bottom:1px solid var(--line);font-size:16px;color:var(--text)}
.book__wa{margin-top:0}
.form{border-radius:var(--r-lg)}

/* ---------- FAQ ---------- */
.faq{margin-top:clamp(80px,10vw,140px);padding:0;background:none;border:0;border-radius:0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:clamp(32px,5vw,80px)}
.faq__title{margin:0;font-size:clamp(36px,4.2vw,64px)!important}
.faq__list details{border-top:1px solid var(--line)}
.faq__list details:last-child{border-bottom:1px solid var(--line)}
.faq__list details:first-of-type{border-top:1px solid var(--line)}
@supports (interpolate-size:allow-keywords){
  .faq__list{interpolate-size:allow-keywords}
  .faq__list details::details-content{height:0;overflow:clip;transition:height .45s var(--ease-io),content-visibility .45s allow-discrete}
  .faq__list details[open]::details-content{height:auto}
}

/* ---------- CIERRE Y PIE ---------- */
.footer{margin-top:0;padding-top:clamp(32px,4vw,56px)}
.closing{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:28px;padding-bottom:clamp(48px,6vw,80px);margin-bottom:56px;border-bottom:1px solid var(--line)}
.closing__title{margin:0;font-size:clamp(40px,5.6vw,88px)!important}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  .proc__inner,.why__inner,.book,.faq{grid-template-columns:minmax(0,1fr)}
  .proc__head,.book__pitch{position:static}
  .proc__head{flex-direction:row;flex-wrap:wrap;align-items:flex-end;justify-content:space-between}
  .why__inner{align-items:start}
  .svx{flex-direction:column;height:auto}
  .svx__item,.svx__item.is-active{flex:none}
  .svx__link{height:auto;min-height:300px}
  .svx__item:first-child .svx__link{min-height:400px}
  .svx__item:not(.is-active) .svx__link img{filter:none}
  .svx__text,.svx__more{max-height:none;opacity:1}
  .svx__title,.svx__item.is-active .svx__title{font-size:clamp(30px,6vw,44px)}
}
@media(max-width:700px){
  .hero{gap:36px}
  .facts{grid-template-columns:1fr}
  .facts__item,.facts__item+.facts__item{padding:20px 0;border-left:0}
  .facts__item+.facts__item{border-top:1px solid var(--line)}
  .timeline__rail{left:21px}
  .timeline__step{grid-template-columns:44px minmax(0,1fr);gap:18px}
  .timeline__node{width:44px;height:44px}
  .timeline__node svg{width:18px;height:18px}
  .timeline{gap:48px}
  .why__title{font-size:clamp(50px,13vw,80px)!important}
  .spec__row{padding:18px 0}
  .svx__item:first-child .svx__link{min-height:360px}
  .svx__link{min-height:260px}
  .svx__body{padding:22px}
  .closing{align-items:flex-start;flex-direction:column}
  .closing .btn{width:100%;justify-content:space-between;padding-left:22px}
}

/* Sin JS o con movimiento reducido, todo visible y estático */
html:not(.nf-motion) .timeline__step{opacity:1;transform:none}
html:not(.nf-motion) .timeline__rail i{height:100%}
@media(prefers-reduced-motion:reduce){
  .hero__bg img{animation:none}
  .nf-split .w>span{transform:none;transition:none}
  .timeline__step{opacity:1;transform:none}
  .svx__item{transition:none}
}
