/* =========================================================
   EAP Marketing — styles.css
   Mobile-first. Fuentes autoalojadas. Sin dependencias.
   ========================================================= */

@font-face{font-family:"Bricolage Grotesque";src:url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --wine-950:#2A0111;
  --wine-900:#3D0217;
  --wine-800:#5C0220;
  --wine-600:#8F0431;
  --gold-500:#C9974A;
  --gold-300:#EBCF9F;
  --tint:#F7EEF1;
  --tint-2:#EAD9DF;
  --line:#E3D9DC;
  --line-strong:#CDBDC3;
  --ink:#241A1E;
  --muted:#5E5257;
  --wa:#0B7F41;
  --err:#B3261E;
  --font-body:"Instrument Sans",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-display:"Bricolage Grotesque","Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --header-h:64px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:var(--wine-950)}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--font-body);font-size:1rem;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip}
img,svg{max-width:100%}
img{height:auto}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
button{font:inherit}
[hidden]{display:none!important}
section[id],div[id="cotizador"]{scroll-margin-top:calc(var(--header-h) + 12px)}

.on-dark{color:#fff;--focus:#EBCF9F}
:focus-visible{outline:3px solid var(--focus,var(--wine-600));outline-offset:3px;border-radius:6px}

.container{width:100%;max-width:1200px;margin-inline:auto;padding-inline:1.25rem}
.skip{position:absolute;left:1rem;top:-4rem;z-index:100;background:#fff;color:var(--wine-800);padding:.7rem 1rem;border-radius:10px;font-weight:600;transition:top .2s}
.skip:focus{top:.75rem}

.i{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.i--fill{fill:currentColor;stroke:none}

/* ---------- Tipografía ---------- */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;letter-spacing:-.02em;text-wrap:balance}
h2{font-size:clamp(1.6rem,1.05rem + 2.8vw,3rem);line-height:1.08}
h3{font-size:1.2rem;line-height:1.25}
.lead{font-size:clamp(1.02rem,.96rem + .3vw,1.2rem);color:var(--muted);max-width:42rem;text-wrap:pretty}
.on-dark .lead{color:rgba(255,255,255,.8)}
.section{padding-block:clamp(3.5rem,8vw,6.5rem)}
.section__head{max-width:46rem;margin-bottom:2.25rem}
.section__head h2{margin-bottom:1rem}

/* ---------- Botones ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.75rem 1.4rem;border-radius:999px;border:1.5px solid transparent;font-weight:600;font-size:1rem;line-height:1.15;text-align:center;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s,transform .15s;-webkit-tap-highlight-color:transparent;max-width:100%}
.btn:active{transform:scale(.98)}
.btn--primary{background:var(--wine-600);color:#fff}
.btn--primary:hover{background:var(--wine-800)}
.btn--light{background:#fff;color:var(--wine-800)}
.btn--light:hover{background:var(--tint)}
.btn--ghost{border-color:var(--wine-600);color:var(--wine-600);background:transparent}
.btn--ghost:hover{background:var(--wine-600);color:#fff}
.btn--ghost-light{border-color:rgba(255,255,255,.55);color:#fff}
.btn--ghost-light:hover{background:rgba(255,255,255,.12)}
.btn--wa{background:var(--wa);color:#fff}
.btn--wa:hover{background:#096A37}
.btn--sm{min-height:42px;padding:.5rem 1rem;font-size:.9rem}
.btn--lg{min-height:54px;padding:.9rem 1.6rem;font-size:1.05rem}
.link-arrow{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;color:var(--wine-600);text-decoration:none;border-bottom:1.5px solid currentColor;padding-bottom:1px}
.link-arrow:hover{color:var(--wine-800)}

/* ---------- Header ---------- */
.site-header{position:fixed;inset:0 0 auto 0;z-index:50;padding-top:env(safe-area-inset-top);color:#fff;--focus:#EBCF9F;transition:background .25s,box-shadow .25s}
.header__in{display:flex;align-items:center;justify-content:space-between;gap:.75rem;height:var(--header-h)}
.logo{display:inline-flex;flex:none}
.logo img{display:block;width:118px;height:auto}
.logo__on-light{display:none!important}
.site-header.is-solid{background:rgba(255,255,255,.95);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);box-shadow:0 1px 0 var(--line);color:var(--ink);--focus:var(--wine-600)}
.site-header.is-solid .logo__on-dark{display:none}
.site-header.is-solid .logo__on-light{display:block!important}
.header__actions{display:flex;align-items:center;gap:.5rem}
.header__cta{background:#fff;color:var(--wine-800)}
.site-header.is-solid .header__cta{background:var(--wine-600);color:#fff}
.cta-long{display:none}
.menu-btn{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:#fff;cursor:pointer}
.site-header.is-solid .menu-btn{color:var(--ink)}
.menu-btn .i{width:26px;height:26px}
.menu-btn__close{display:none}
.menu-btn[aria-expanded="true"] .menu-btn__open{display:none}
.menu-btn[aria-expanded="true"] .menu-btn__close{display:block}

.nav{position:fixed;top:0;left:0;right:0;z-index:-1;max-height:100dvh;overflow:auto;padding:calc(var(--header-h) + env(safe-area-inset-top) + .75rem) 1.25rem 1.5rem;background:#fff;color:var(--ink);box-shadow:0 24px 40px -20px rgba(42,1,17,.35);opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .2s,transform .2s,visibility .2s}
.nav.is-open{opacity:1;visibility:visible;transform:none}
.nav__list a{display:block;padding:.95rem 0;font-family:var(--font-display);font-size:1.3rem;font-weight:600;text-decoration:none;border-bottom:1px solid var(--line)}
.nav__list a[aria-current="true"]{color:var(--wine-600)}
.nav__extra{margin-top:1.25rem}
.nav__extra .btn{width:100%}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:clip;padding-top:calc(var(--header-h) + 2.25rem);background:radial-gradient(60rem 34rem at 85% 0%,rgba(201,151,74,.22),transparent 60%),linear-gradient(135deg,#3A0115 0%,#5C0220 48%,#7A032B 100%)}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at 70% 30%,#000 0,transparent 70%);mask-image:radial-gradient(ellipse at 70% 30%,#000 0,transparent 70%);pointer-events:none}
.hero>.container{position:relative}
.hero__grid{display:grid;gap:2.25rem;padding-bottom:2.5rem}
.hero h1{font-size:clamp(1.85rem,1.1rem + 4.2vw,4.25rem);line-height:1.04;font-weight:800;letter-spacing:-.03em;margin-bottom:1.1rem}
.hero__lead{font-size:clamp(1.02rem,.96rem + .4vw,1.25rem);color:rgba(255,255,255,.86);max-width:36rem;margin-bottom:1.4rem}
.pills{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.75rem}
.pills li{padding:.35rem .8rem;border:1px solid rgba(255,255,255,.3);border-radius:999px;font-size:.84rem;font-weight:500;background:rgba(255,255,255,.06)}
.hero__cta{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.1rem}
.hero__cta .btn{width:100%}
.hero__note{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:rgba(255,255,255,.78)}
.hero__note .i{color:var(--gold-300)}

.console{background:#FFFBFC;color:var(--ink);border-radius:22px;overflow:hidden;box-shadow:0 40px 90px -30px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.1);min-width:0}
.console__bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;border-bottom:1px solid var(--line)}
.console__title{display:inline-flex;align-items:center;gap:.55rem;font-family:var(--mono);font-size:.85rem;font-weight:600;color:var(--wine-800)}
.live{width:9px;height:9px;border-radius:50%;background:#1FA85A;animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(31,168,90,.5)}70%{box-shadow:0 0 0 8px rgba(31,168,90,0)}100%{box-shadow:0 0 0 0 rgba(31,168,90,0)}}
.console__tag{font-size:.72rem;font-weight:600;color:var(--muted);background:var(--tint);padding:.2rem .6rem;border-radius:999px;white-space:nowrap}
.console__list{padding:.5rem}
.ev{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.65rem .6rem;border-radius:14px;transition:opacity .4s,transform .4s,background .3s}
.js .console .ev{opacity:0;transform:translateY(8px)}
.js .console .ev.is-on{opacity:1;transform:none}
.ev__ico{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--tint);color:var(--wine-600)}
.ev__body{display:flex;flex-direction:column;min-width:0}
.ev code{font-family:var(--mono);font-size:.86rem;font-weight:600;color:var(--wine-800);overflow-wrap:anywhere}
.ev__body span{font-size:.8rem;color:var(--muted);line-height:1.35}
.ev__src{display:none;font-size:.72rem;font-weight:600;color:var(--muted);background:var(--tint);padding:.2rem .55rem;border-radius:999px;white-space:nowrap}
.ev--win .ev__ico{background:var(--gold-300);color:var(--wine-800)}
.ev--win.is-on{background:#FBF3E4}
.console__dest{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.8rem 1rem;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted);font-weight:600}
.console__dest ul{display:flex;flex-wrap:wrap;gap:.35rem}
.console__dest li{padding:.15rem .55rem;border:1px solid var(--line-strong);border-radius:999px;color:var(--wine-800)}
.console__cap{padding:0 1rem .9rem;font-size:.75rem;color:var(--muted)}

.loop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem;padding:1.5rem 0 2.25rem;border-top:1px solid rgba(255,255,255,.16)}
.loop li{display:flex;flex-direction:column;gap:.1rem;padding-left:.85rem;border-left:2px solid var(--gold-500)}
.loop li:last-child{grid-column:1/-1}
.loop strong{font-family:var(--font-display);font-size:1.15rem;font-weight:700}
.loop span{font-size:.85rem;color:rgba(255,255,255,.75)}

/* ---------- Franja de experiencia ---------- */
.strip{background:var(--tint);padding-block:2.25rem}
.strip__grid{display:grid;gap:1.75rem}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 1rem}
.facts li{display:flex;flex-direction:column;gap:.25rem;font-size:.92rem;font-weight:500;line-height:1.35}
.num{font-family:var(--font-display);font-weight:800;font-size:2.4rem;line-height:1;letter-spacing:-.03em;color:var(--wine-600);font-variant-numeric:tabular-nums}
.facts__ico{width:2.4rem;height:2.4rem;display:grid;place-items:center;border-radius:12px;background:#fff;color:var(--wine-600);margin-bottom:.15rem}
.stack__title{font-size:.9rem;font-weight:600;color:var(--muted);margin-bottom:.7rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chips li{padding:.4rem .85rem;border:1px solid var(--line-strong);border-radius:999px;font-size:.85rem;font-weight:500;background:#fff}
.chips--dark li{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:#fff}

/* ---------- Problema ---------- */
.split{display:grid;gap:2.25rem}
.split__head h2{margin-bottom:1rem}
.bridge{margin:1.5rem 0 1.25rem;padding-left:1rem;border-left:3px solid var(--gold-500);font-weight:600;font-size:1.05rem;max-width:32rem}
.leaks li{display:flex;gap:1rem;padding:1.15rem 0;border-bottom:1px solid var(--line)}
.leaks li:first-child{border-top:1px solid var(--line)}
.leaks__ico{width:2.5rem;height:2.5rem;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--wine-600)}
.leaks h3{margin-bottom:.25rem}
.leaks p{color:var(--muted);font-size:.97rem}

/* ---------- Ecosistema ---------- */
.eco{background:var(--tint)}
.eco__flow{display:grid;gap:1rem}
.eco__node{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.25rem}
.eco__node::after{content:"";position:absolute;left:2.15rem;bottom:-1rem;width:2px;height:1rem;background:var(--wine-600);opacity:.5}
.eco__node:last-child::after{display:none}
.eco__ico{width:2.75rem;height:2.75rem;display:grid;place-items:center;border-radius:14px;background:var(--wine-600);color:#fff;margin-bottom:.9rem}
.eco__node h3{font-size:1.35rem;margin-bottom:.15rem}
.eco__tools{font-weight:600;font-size:.88rem;color:var(--wine-600);margin-bottom:.5rem}
.eco__node p:last-child{color:var(--muted);font-size:.95rem}
.eco__loop{display:flex;align-items:center;gap:1rem;margin-top:1.75rem;padding:1.1rem 1.25rem;border-radius:20px;background:var(--wine-800);color:#fff}
.eco__loop-ico{flex:none;width:2.75rem;height:2.75rem;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.12);color:var(--gold-300)}
.eco__loop-ico .i{animation:spin 9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.eco__loop p{font-size:.97rem;color:rgba(255,255,255,.88)}
.eco__loop strong{color:#fff}

/* ---------- Servicios ---------- */
.svc-grid{display:grid;gap:1.25rem}
.svc{display:flex;flex-direction:column;gap:1.1rem;min-width:0;background:#fff;border:1px solid var(--line);border-radius:24px;padding:1.35rem}
.svc__head{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.svc__ico{width:2.75rem;height:2.75rem;display:grid;place-items:center;border-radius:14px;background:var(--tint);color:var(--wine-600)}
.svc__badge{margin-left:auto;padding:.2rem .65rem;border-radius:999px;background:var(--gold-500);color:var(--wine-950);font-size:.75rem;font-weight:700}
.svc__facts>div{padding:.7rem 0;border-top:1px solid var(--line)}
.svc__facts dt{font-size:.8rem;font-weight:700;color:var(--wine-600);margin-bottom:.15rem}
.svc__facts dd{font-size:.95rem;color:var(--muted)}
.svc .btn{margin-top:auto;align-self:flex-start}
.tags{display:flex;flex-wrap:wrap;gap:.4rem}
.tags li{padding:.28rem .65rem;border-radius:999px;background:var(--tint);color:var(--wine-800);font-size:.8rem;font-weight:500}
.tags--dark li{background:rgba(255,255,255,.1);color:#fff}
.svc__groups{display:grid;gap:1rem}
.svc__groups h4{font-size:.95rem;margin-bottom:.45rem}
.svc--track{background:var(--wine-800);border-color:transparent;color:#fff;--focus:#EBCF9F}
.svc--track .svc__ico{background:rgba(255,255,255,.12);color:var(--gold-300)}
.svc--track .svc__facts>div{border-color:rgba(255,255,255,.18)}
.svc--track .svc__facts dt{color:var(--gold-300)}
.svc--track .svc__facts dd{color:rgba(255,255,255,.85)}

/* ---------- Método ---------- */
.method{background:var(--wine-800)}
.steps{display:grid}
.step{position:relative;padding:0 0 2rem 4.1rem}
.step::before{content:"";position:absolute;left:1.45rem;top:3.2rem;bottom:.3rem;width:2px;background:rgba(255,255,255,.2)}
.step:last-child::before{display:none}
.step__n{position:absolute;left:0;top:0;width:3rem;height:3rem;border-radius:50%;display:grid;place-items:center;border:2px solid rgba(255,255,255,.35);font-family:var(--font-display);font-weight:700;font-size:1rem;transition:background .4s,color .4s,border-color .4s}
.step.is-in .step__n{background:var(--gold-500);border-color:var(--gold-500);color:var(--wine-950)}
.step h3{margin:.55rem 0 .35rem;font-size:1.3rem}
.step p{color:rgba(255,255,255,.82);max-width:28rem}
.method__cta{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}

/* ---------- Casos ---------- */
.cases{background:var(--tint)}
.case-grid{display:grid;gap:1.25rem}
.case{background:#fff;border:1px solid var(--line);border-radius:24px;padding:1.5rem;min-width:0}
.case--alt{background:var(--wine-800);border-color:transparent;color:#fff}
.case__label{font-weight:600;color:var(--muted);margin-bottom:.4rem}
.case--alt .case__label{color:rgba(255,255,255,.8)}
.case__roas{display:flex;align-items:baseline;gap:.6rem;margin-bottom:1.1rem}
.case__num{font-family:var(--font-display);font-weight:800;font-size:clamp(3.4rem,2rem + 7vw,5.75rem);line-height:.9;letter-spacing:-.04em;color:var(--wine-600);font-variant-numeric:tabular-nums}
.case--alt .case__num{color:var(--gold-300)}
.case__unit{font-family:var(--font-display);font-weight:700;font-size:1.4rem}
.case dl>div{padding:.8rem 0;border-top:1px solid var(--line)}
.case--alt dl>div{border-color:rgba(255,255,255,.2)}
.case dt{font-size:.8rem;font-weight:700;color:var(--wine-600);margin-bottom:.15rem}
.case--alt dt{color:var(--gold-300)}
.case dd{font-size:.97rem}
.case__note{margin-top:1rem;font-size:.85rem;color:var(--muted);max-width:44rem}
.quotes{margin-top:3.25rem}
.quotes__title{font-size:1.45rem;margin-bottom:1.25rem}
.quotes__grid{display:grid;gap:1rem}
.quote{display:flex;flex-direction:column;gap:1rem;background:#fff;border:1px solid var(--line);border-left:4px solid var(--gold-500);border-radius:18px;padding:1.25rem}
.quote p{font-size:.97rem;line-height:1.6}
.quote figcaption{display:flex;flex-direction:column;margin-top:auto}
.quote figcaption span{font-size:.85rem;color:var(--muted)}
.cases__cta{margin-top:2.5rem;display:flex;justify-content:center}

/* ---------- Tracking ---------- */
.track{background:var(--wine-950)}
.pipe{position:relative;display:grid;margin-bottom:2.75rem}
.pipe li{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:1rem;align-items:center;padding-bottom:1.4rem}
.pipe li::before{content:"";position:absolute;left:1.5rem;top:3rem;bottom:0;width:2px;background:rgba(201,151,74,.35)}
.pipe li:last-child::before{display:none}
.pipe__ico{grid-row:span 2;width:3rem;height:3rem;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);color:var(--gold-300)}
.pipe strong{font-family:var(--font-display);font-size:1.1rem}
.pipe li>span:last-child{font-size:.88rem;color:rgba(255,255,255,.72)}
.pipe::after{content:"";position:absolute;left:1.5rem;top:1.5rem;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--gold-300);box-shadow:0 0 14px 4px rgba(235,207,159,.55);animation:pipe-v 5s linear infinite;animation-play-state:paused}
.pipe.is-live::after{animation-play-state:running}
@keyframes pipe-v{0%{top:1.5rem;opacity:0}8%{opacity:1}92%{opacity:1}100%{top:calc(100% - 2.9rem);opacity:0}}
@keyframes pipe-h{0%{left:1.5rem;opacity:0}8%{opacity:1}92%{opacity:1}100%{left:calc(100% - 1.5rem);opacity:0}}
.track__grid{display:grid;gap:2rem}
.track__info h3{font-size:1.15rem;margin-bottom:.9rem}
.checks{display:grid;gap:.65rem;margin-bottom:1.75rem}
.checks li{display:flex;gap:.65rem;align-items:flex-start;color:rgba(255,255,255,.88)}
.checks .i{color:var(--gold-500);margin-top:.15rem}
.track__info .chips{margin-bottom:1.75rem}
.code{background:#1A0009;border:1px solid rgba(255,255,255,.14);border-radius:20px;overflow:hidden;min-width:0;align-self:start}
.code figcaption{padding:.8rem 1.1rem;font-size:.82rem;color:rgba(255,255,255,.72);border-bottom:1px solid rgba(255,255,255,.12)}
.code pre{margin:0;padding:1.1rem;overflow-x:auto;font-family:var(--mono);font-size:.85rem;line-height:1.75;color:#F3E7EB;-webkit-overflow-scrolling:touch}
.c-fn{color:var(--gold-300)}.c-key{color:#F5A8C2}.c-str{color:#BFE3C9}

/* ---------- Industrias ---------- */
.ind-grid{display:grid;gap:.85rem}
.ind-grid li{display:flex;gap:1rem;align-items:flex-start;padding:1.1rem;border:1px solid var(--line);border-radius:18px;background:#fff;transition:border-color .2s}
.ind-grid li:hover{border-color:var(--wine-600)}
.ind__ico{width:2.6rem;height:2.6rem;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--tint);color:var(--wine-600)}
.ind-grid h3{font-size:1.1rem;margin-bottom:.1rem}
.ind-grid p{font-size:.92rem;color:var(--muted)}

/* ---------- Por qué EAP ---------- */
.why{background:var(--tint)}
.why-grid{display:grid;gap:0 2rem}
.why-grid li{padding:1.15rem 0 1.5rem;border-top:2px solid var(--wine-600)}
.why__ico{display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:12px;background:#fff;color:var(--wine-600);margin-bottom:.8rem}
.why-grid h3{font-size:1.1rem;margin-bottom:.3rem}
.why-grid p{font-size:.95rem;color:var(--muted)}
.mv{display:grid;gap:1.5rem;margin-top:1.5rem;padding-top:2rem;border-top:1px solid var(--line-strong)}
.mv h3{margin-bottom:.4rem}
.mv p{color:var(--muted);max-width:30rem}

/* ---------- Cotizador ---------- */
.contact{background:linear-gradient(160deg,var(--wine-900),var(--wine-800))}
.contact__grid{display:grid;gap:2rem}
.contact__aside h2{margin-bottom:1rem}
.contact__list{display:grid;gap:.6rem;margin:1.5rem 0}
.contact__list li{display:flex;gap:.6rem;align-items:flex-start}
.contact__list .i{color:var(--gold-300);margin-top:.15rem}
.contact__direct{padding:1.25rem;border:1px solid rgba(255,255,255,.2);border-radius:20px;background:rgba(255,255,255,.05)}
.contact__direct-title{font-family:var(--font-display);font-weight:700;font-size:1.15rem;margin-bottom:.8rem}
.contact__direct .btn{width:100%}
.contact__links{display:grid;gap:.55rem;margin-top:1.1rem;font-size:.95rem}
.contact__links li,.contact__links a{display:flex;align-items:center;gap:.6rem;text-decoration:none;overflow-wrap:anywhere}
.contact__links a:hover{text-decoration:underline}
.contact__links .i{color:var(--gold-300)}

.quote-card{min-width:0;background:#fff;color:var(--ink);border-radius:26px;padding:1.25rem;box-shadow:0 30px 80px -30px rgba(0,0,0,.6);--focus:var(--wine-600)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.progress__text{display:flex;justify-content:space-between;gap:.75rem;margin-bottom:.5rem;font-size:.85rem;font-weight:600;color:var(--muted)}
.progress__text span:last-child{color:var(--wine-600)}
.progress__bar{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}
.progress__bar i{height:6px;border-radius:99px;background:var(--tint-2);transition:background .3s}
.progress__bar i.is-on{background:var(--wine-600)}
.step-panel{border:0;padding:0;margin:1.35rem 0 0;min-width:0}
.step-panel legend{padding:0;margin-bottom:.35rem;font-family:var(--font-display);font-weight:700;font-size:1.4rem;line-height:1.2;letter-spacing:-.02em;outline:none}
.step-help{font-size:.85rem;color:var(--muted);margin:.35rem 0 .5rem}
.choices{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.7rem}
.choice{position:relative;display:inline-flex;max-width:100%}
.choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.choice span{display:inline-flex;align-items:center;min-height:46px;padding:.5rem 1rem;border:1.5px solid var(--line-strong);border-radius:999px;background:#fff;font-size:.95rem;font-weight:500;line-height:1.2;text-align:left;transition:background .15s,border-color .15s,color .15s}
.choice:hover input:not(:checked)+span{border-color:var(--wine-600)}
.choice input:checked+span{background:var(--wine-600);border-color:var(--wine-600);color:#fff}
.choice input:checked+span::before{content:"";flex:none;width:.95em;height:.95em;margin-right:.5rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.choice input:focus-visible+span{outline:3px solid var(--wine-600);outline-offset:2px}
.choice--help span{border-style:dashed}
.choices--inline .choice span{min-width:5.5rem;justify-content:center}
.field{margin-top:1.1rem;min-width:0}
.field label,.field__label{display:block;margin-bottom:.35rem;font-size:.9rem;font-weight:600}
.field--group .field__label{margin-bottom:0}
.opt{font-weight:400;color:var(--muted)}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{display:block;width:100%;min-height:50px;padding:.7rem .9rem;border:1.5px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:1rem}
.field textarea{min-height:96px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--wine-600);box-shadow:0 0 0 3px rgba(143,4,49,.18)}
.field [aria-invalid="true"]{border-color:var(--err)!important}
.field-row{display:grid;gap:0 1rem}
.field__error,.step-error,.form-fail{margin-top:.4rem;font-size:.86rem;font-weight:500;color:var(--err)}
.form-fail{margin-top:1rem;padding:.8rem 1rem;border-radius:12px;background:#FDECEA}
.form-fail a{font-weight:700}
.consent{display:flex;gap:.7rem;align-items:flex-start;font-size:.9rem;font-weight:400!important;line-height:1.45;cursor:pointer}
.consent input{flex:none;width:22px;height:22px;margin:.05rem 0 0;accent-color:var(--wine-600)}
.consent a{color:var(--wine-600);font-weight:600}
.cond{margin-top:.25rem}
.qform__nav{display:flex;gap:.75rem;margin-top:1.5rem}
.qform__nav [data-next],.qform__nav [data-submit]{flex:1}
.success{text-align:center;padding:1.5rem .25rem;outline:none}
.success__ico{display:inline-grid;place-items:center;width:4rem;height:4rem;border-radius:50%;background:var(--wine-600);color:#fff;margin-bottom:1rem}
.success__ico .i{width:2rem;height:2rem;stroke-width:2.4}
.success h3{font-size:1.7rem;margin-bottom:.5rem}
.success p{color:var(--muted);max-width:26rem;margin:0 auto 1.5rem}
.success__actions{display:flex;flex-direction:column;gap:.75rem}
/* Sin JavaScript: se muestran todos los pasos y el botón de envío */
.no-js .step-panel[hidden]{display:block!important}
.no-js [data-submit][hidden]{display:inline-flex!important}
.no-js [data-next],.no-js .progress{display:none}

/* ---------- Footer ---------- */
.footer{background:var(--wine-950);padding-top:2.75rem}
.footer__grid{display:grid;gap:2rem}
.footer__brand p{margin:1rem 0;max-width:22rem;color:rgba(255,255,255,.75);font-size:.95rem}
.social{display:flex;gap:.6rem}
.social a{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:50%;transition:background .2s}
.social a:hover{background:rgba(255,255,255,.12)}
.footer__h{font-family:var(--font-display);font-size:1rem;font-weight:700;margin-bottom:.8rem;color:var(--gold-300)}
.footer__col ul{display:grid;gap:.5rem;font-size:.93rem;color:rgba(255,255,255,.8)}
.footer__col a{text-decoration:none;overflow-wrap:anywhere}
.footer__col a:hover{text-decoration:underline}
.footer__bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1.5rem;margin-top:2rem;padding-block:1.1rem 1.25rem;border-top:1px solid rgba(255,255,255,.14);font-size:.85rem;color:rgba(255,255,255,.7)}
.footer__bar ul{display:flex;flex-wrap:wrap;gap:.4rem 1.25rem}
.footer__bar a{text-decoration:none}
.footer__bar a:hover{text-decoration:underline}

/* ---------- WhatsApp flotante ---------- */
.wa-float{position:fixed;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:60;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-width:56px;height:56px;padding:0;border-radius:999px;background:var(--wa);color:#fff;text-decoration:none;font-weight:600;box-shadow:0 10px 30px -8px rgba(0,0,0,.5);transition:transform .2s,background .2s;-webkit-tap-highlight-color:transparent;--focus:#fff}
.wa-float:hover{background:#096A37;transform:translateY(-2px)}
.wa-float .i{width:28px;height:28px}
.wa-float__txt{display:none}

/* ---------- Animaciones de entrada ---------- */
.js .reveal{opacity:0;transform:translateY(14px);transition:opacity .55s cubic-bezier(.2,.7,.2,1),transform .55s cubic-bezier(.2,.7,.2,1);transition-delay:var(--rd,0s)}
.js .reveal.is-in{opacity:1;transform:none}

/* ---------- Páginas legales / auxiliares ---------- */
.doc{padding:calc(var(--header-h) + 3rem) 0 3.5rem}
.doc .container{max-width:46rem}
.doc h1{font-size:clamp(1.9rem,1.2rem + 3vw,3rem);line-height:1.08;margin-bottom:.5rem}
.doc h2{font-size:1.35rem;margin:2rem 0 .6rem}
.doc p,.doc li{color:var(--ink);margin-bottom:.8rem}
.doc ul{list-style:disc;padding-left:1.25rem}
.doc a{color:var(--wine-600);font-weight:600}
.doc .meta{color:var(--muted);font-size:.9rem;margin-bottom:1.5rem}
.center-page{min-height:100svh;display:grid;place-items:center;padding:6rem 1.25rem 3rem;text-align:center;background:var(--tint)}
.center-page .box{max-width:32rem}
.center-page h1{font-size:clamp(1.9rem,1.2rem + 3vw,2.8rem);margin:1rem 0 .6rem}
.center-page p{color:var(--muted);margin-bottom:1.5rem}

/* ============ Breakpoints ============ */
@media (min-width:400px){
  .ev__src{display:inline-block}
}
@media (min-width:480px){
  .hero__cta{flex-direction:row;flex-wrap:wrap}
  .hero__cta .btn{width:auto}
  .method__cta{flex-direction:row;flex-wrap:wrap}
  .success__actions{flex-direction:row;justify-content:center}
  .logo img{width:128px}
}
@media (min-width:520px){
  .cta-long{display:inline}
  .cta-short{display:none}
}
@media (min-width:640px){
  .container{padding-inline:2rem}
  .field-row{grid-template-columns:1fr 1fr}
  .quote-card{padding:2rem}
  .eco__flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eco__node::after{display:none}
  .ind-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .svc__groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .svc{padding:1.6rem}
  .footer__bar{padding-right:2rem}
}
@media (min-width:760px){
  .loop{grid-template-columns:repeat(5,minmax(0,1fr))}
  .loop li:last-child{grid-column:auto}
  .quotes__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__grid{grid-template-columns:1.4fr 1fr 1fr}
  .wa-float{padding:0 1.25rem 0 1rem}
  .wa-float__txt{display:inline}
}
@media (min-width:860px){
  .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .facts{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:960px){
  :root{--header-h:72px}
  .logo img{width:140px}
  .menu-btn{display:none}
  .nav{position:static;z-index:auto;max-height:none;overflow:visible;padding:0;background:none;box-shadow:none;opacity:1;visibility:visible;transform:none;color:inherit;display:flex}
  .nav__list{display:flex;gap:1.5rem}
  .nav__list a{padding:.4rem 0;border:0;font-family:var(--font-body);font-size:.92rem;font-weight:500;opacity:.92}
  .nav__list a:hover{opacity:1;text-decoration:underline;text-underline-offset:6px}
  .site-header.is-solid .nav__list a[aria-current="true"]{color:var(--wine-600)}
  .nav__list a[aria-current="true"]{color:inherit;text-decoration:underline;text-underline-offset:6px}
  .nav__extra{display:none}
  .header__in{gap:1.5rem}
  .hero__grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:3.5rem;padding-block:2rem 3.5rem}
  .split{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:4rem;align-items:start}
  .split__head{position:sticky;top:calc(var(--header-h) + 2rem)}
  .strip__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:3rem}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
  .svc-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:1.5rem}
  .svc{grid-column:span 6}
  .svc--paid{grid-column:span 7}
  .svc--track{grid-column:span 5}
  #svc-web,#svc-automatizacion,#svc-creatividad{grid-column:span 4}
  .svc__groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quotes__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .track__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:start}
  .ind-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .why-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .contact__grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:3.5rem;align-items:start}
  .contact__aside{position:sticky;top:calc(var(--header-h) + 2rem)}
  .pipe{grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem}
  .pipe li{grid-template-columns:1fr;row-gap:.35rem;justify-items:start;align-items:start;align-content:start;padding-bottom:0}
  .pipe li::before{left:3.2rem;right:-1rem;top:1.5rem;bottom:auto;width:auto;height:2px}
  .pipe__ico{grid-row:auto;margin-bottom:.6rem}
  .pipe::after{animation-name:pipe-h}
  .steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:1.5rem}
  .step{padding:4.2rem 0 0}
  .step::before{left:3.3rem;right:-1.5rem;top:1.5rem;bottom:auto;width:auto;height:2px}
}
@media (min-width:1100px){
  .eco__flow{grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;align-items:start}
  .eco__node:nth-child(1){margin-top:4rem}
  .eco__node:nth-child(2){margin-top:3rem}
  .eco__node:nth-child(3){margin-top:2rem}
  .eco__node:nth-child(4){margin-top:1rem}
  .eco__node::after{display:block;left:auto;right:-1rem;top:2.6rem;bottom:auto;width:1rem;height:2px}
  .eco__node:last-child::after{display:none}
  .nav__list{gap:1.9rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js .reveal,.js .console .ev{opacity:1;transform:none}
}
