/* diegocuesta.com — shared landing styles (ES + EN) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #07080f;
  --bg2:   #0d1117;
  --bg3:   #111820;
  --card:  rgba(255,255,255,.04);
  --cardh: rgba(255,255,255,.07);
  --bdr:   rgba(255,255,255,.08);
  --bdrh:  rgba(249,115,22,.42);
  --acc:   #f97316;
  --cy:    #22d3ee;
  --vi:    #a78bfa;
  --gn:    #4ade80;
  --t1:    #f1f5f9;
  --t2:    #94a3b8;
  --t3:    #475569;
  --r:     13px;
  --r2:    20px;
  --mono:  'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--t1); line-height: 1.6; overflow-x: hidden; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,.4); border-radius: 99px; }
::selection { background: rgba(249,115,22,.2); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem,3vw,2.5rem); height: 58px;
  background: rgba(7,8,15,.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
}
.n-brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--t1);
  font-weight: 800; font-size: .92rem; letter-spacing: -.03em;
}
.n-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--acc); display: flex; align-items: center;
  justify-content: center; font-size: .62rem; color: #fff; font-weight: 900;
}
.n-links { display: flex; align-items: center; gap: 1.6rem; }
.n-links a {
  font-size: .8rem; font-weight: 500; color: var(--t2);
  text-decoration: none; position: relative; transition: color .2s;
  padding-bottom: 2px;
}
.n-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 1px; background: var(--acc); transition: right .22s ease;
}
.n-links a:hover { color: var(--t1); }
.n-links a:hover::after { right: 0; }
.n-cta {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .42rem .95rem; border-radius: 8px;
  background: var(--acc); color: #fff;
  font-size: .78rem; font-weight: 700; text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.n-cta:hover { opacity: .88; transform: translateY(-1px); }
.n-cta:hover { opacity: .88; transform: translateY(-1px); }
.n-mb { display: none; background: none; border: none; color: var(--t2); font-size: 1.1rem; cursor: pointer; }
.lang-sw { display:flex; align-items:center; gap:.3rem; font-family:var(--mono); font-size:.72rem; font-weight:700; }
.la { color:var(--t3); text-decoration:none; padding:.2rem .3rem; border-radius:4px; transition:color .2s; }
.la:hover { color:var(--t1); }
.la-on { color:var(--acc); }
.drawer {
  display: none; position: fixed; inset: 58px 0 0; z-index: 190;
  background: rgba(7,8,15,.97); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
}
.drawer.open { display: flex; }
.drawer a { font-size: 1.15rem; font-weight: 700; color: var(--t1); text-decoration: none; transition: color .2s; }
.drawer a:hover { color: var(--acc); }

/* HERO */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem clamp(1rem,3vw,2.5rem) 4rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(249,115,22,.13) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 90% at 30% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 40%, black, transparent);
}
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(72px); }
.orb1 { width: 480px; height: 480px; top: -120px; right: 5%; background: radial-gradient(circle, rgba(249,115,22,.09), transparent 68%); animation: fl 10s ease-in-out infinite; }
.orb2 { width: 300px; height: 300px; bottom: 5%; left: -40px; background: radial-gradient(circle, rgba(34,211,238,.07), transparent 68%); animation: fl 12s ease-in-out infinite reverse; }
@keyframes fl { 0%,100%{transform:translateY(0)}50%{transform:translateY(-30px)} }

.hero-in {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 290px; gap: 4rem; align-items: center;
}
.h-right { display: flex; flex-direction: column; gap: .9rem; }
.h-avatar { width: 100%; height: auto; border-radius: var(--r2); border: 1px solid var(--bdr); display: block; box-shadow: 0 24px 64px rgba(0,0,0,.55); transition: box-shadow .3s; }
.h-avatar:hover { box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(249,115,22,.2); }
.h-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .28rem .78rem; border-radius: 999px; margin-bottom: 1.3rem;
  background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.2);
  font-size: .67rem; font-weight: 700; color: var(--acc);
  letter-spacing: .1em; text-transform: uppercase;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: pd 2.2s ease-in-out infinite; }
@keyframes pd { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.55)} }

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900; letter-spacing: -.05em; line-height: .95;
  margin-bottom: 1.1rem;
}
h1 .n1 { display: block; color: var(--t1); }
h1 .n2 { display: block; color: var(--acc); }

.h-sub { font-size: clamp(.88rem, 1.5vw, 1rem); color: var(--t2); line-height: 1.85; max-width: 490px; margin-bottom: 2rem; }
.h-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 3rem; }

.bp {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .68rem 1.55rem; border-radius: 10px;
  background: var(--acc); color: #fff; font-weight: 700; font-size: .86rem;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.bp:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(249,115,22,.3); }
.bs {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .68rem 1.55rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--bdr);
  color: var(--t1); font-weight: 600; font-size: .86rem;
  text-decoration: none; transition: background .2s, border-color .2s, transform .15s;
}
.bs:hover { background: var(--cardh); border-color: rgba(255,255,255,.15); transform: translateY(-2px); }

.h-stats { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.hst { display: flex; flex-direction: column; }
.hst-n { font-size: 1.8rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.hst-l { font-size: .62rem; color: var(--t3); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; margin-top: .2rem; font-family: var(--mono); }
.hst-sep { width: 1px; background: var(--bdr); align-self: stretch; }

/* terminal */
.term {
  background: var(--bg3); border: 1px solid var(--bdr); border-radius: var(--r2);
  overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 32px 80px rgba(0,0,0,.65);
}
.t-bar { display: flex; align-items: center; gap: .38rem; padding: .65rem .9rem; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--bdr); }
.td { width: 10px; height: 10px; border-radius: 50%; }
.td1{background:#ff5f57}.td2{background:#febc2e}.td3{background:#28c840}
.t-ttl { font-family: var(--mono); font-size: .67rem; color: var(--t3); margin-left: .4rem; }
.t-body { padding: 1.15rem 1.2rem; font-family: var(--mono); font-size: .74rem; line-height: 2; }
.tp{color:var(--acc)}.tc{color:var(--t2)}.tok{color:var(--gn)}.tcy{color:var(--cy)}.tam{color:#fbbf24}.tdm{color:var(--t3)}
.cur { animation: bk .9s step-end infinite; }
@keyframes bk { 0%,100%{opacity:1}50%{opacity:0} }

/* SHARED */
section { padding: 5.5rem clamp(1rem,3vw,2.5rem); }
.ctr { max-width: 1180px; margin: 0 auto; }
.lbl {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  color: var(--acc); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem;
}
.lbl::before { content:''; width: 20px; height: 1.5px; background: var(--acc); }
.stitle { font-size: clamp(1.65rem, 3.8vw, 2.8rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.1; margin-bottom: .6rem; }
.ssub { font-size: .92rem; color: var(--t2); line-height: 1.8; max-width: 490px; margin-bottom: 2.6rem; }

/* SECTORS */
#sectores { padding: 2.2rem clamp(1rem,3vw,2.5rem); background: var(--bg2); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.sl { font-family: var(--mono); font-size: .63rem; color: var(--t3); letter-spacing: .09em; text-transform: uppercase; text-align: center; margin-bottom: .8rem; }
.schips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.sc {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .26rem .72rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--bdr);
  font-size: .71rem; color: var(--t2); font-weight: 500;
  transition: border-color .2s, color .2s, background .2s; cursor: default;
}
.sc:hover { border-color: rgba(249,115,22,.38); color: var(--t1); background: rgba(249,115,22,.06); }
.sc i { color: var(--acc); font-size: .63rem; }

/* BENTO SERVICES */
#servicios { background: var(--bg2); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.bc {
  background: var(--card); border: 1px solid var(--bdr);
  border-radius: var(--r2); padding: 1.5rem;
  transition: background .22s, border-color .22s, transform .22s;
}
.bc:hover { background: var(--cardh); border-color: var(--bdrh); transform: scale(1.018); }
.bc.s2 { grid-column: span 2; }
.bc.feat { background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(249,115,22,.03)); border-color: rgba(249,115,22,.16); }
.bc.feat:hover { border-color: rgba(249,115,22,.5); }
.bc.cy:hover { border-color: rgba(34,211,238,.42); }
.bc.vi:hover { border-color: rgba(167,139,250,.42); }
.bc.gn:hover { border-color: rgba(74,222,128,.42); }
.bi { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: .9rem; margin-bottom: .9rem; background: rgba(249,115,22,.1); color: var(--acc); }
.bc.cy .bi { background: rgba(34,211,238,.1); color: var(--cy); }
.bc.vi .bi { background: rgba(167,139,250,.1); color: var(--vi); }
.bc.gn .bi { background: rgba(74,222,128,.1); color: var(--gn); }
.bc h3 { font-size: .92rem; font-weight: 700; letter-spacing: -.022em; margin-bottom: .32rem; }
.bc.feat h3 { font-size: 1.1rem; }
.bc p { font-size: .78rem; color: var(--t2); line-height: 1.62; }
.btag { display: inline-block; margin-top: .7rem; padding: .1rem .44rem; border-radius: 4px; background: rgba(249,115,22,.1); color: var(--acc); font-size: .6rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-family: var(--mono); }
.bc.cy .btag { background: rgba(34,211,238,.1); color: var(--cy); }
.bc.vi .btag { background: rgba(167,139,250,.1); color: var(--vi); }

/* REMOTE */
#soporte-remoto { background: var(--bg); }
.rg { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.rl h2 { font-size: clamp(1.65rem, 3.4vw, 2.55rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.1; margin-bottom: .8rem; }
.rl h2 em { font-style: normal; color: var(--acc); }
.rl > p { color: var(--t2); line-height: 1.8; margin-bottom: 2rem; font-size: .9rem; }
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; gap: .85rem; align-items: flex-start; }
.sn { width: 29px; height: 29px; border-radius: 7px; flex-shrink: 0; background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: var(--acc); font-family: var(--mono); }
.step h4 { font-size: .86rem; font-weight: 700; margin-bottom: .15rem; }
.step p { font-size: .78rem; color: var(--t2); }
.dls { display: flex; flex-direction: column; gap: .8rem; }
.dlc { background: var(--bg3); border: 1px solid var(--bdr); border-radius: var(--r); padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; transition: border-color .2s; }
.dlc:hover { border-color: rgba(255,255,255,.13); }
.dlcl { display: flex; align-items: center; gap: .75rem; }
.dico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .82rem; flex-shrink: 0; }
.dcy { background: rgba(34,211,238,.1); color: var(--cy); }
.drd { background: rgba(251,113,133,.1); color: #fb7185; }
.dli h4 { font-size: .82rem; font-weight: 700; }
.dli p { font-size: .7rem; color: var(--t3); }
.bdl { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; border-radius: 7px; font-size: .73rem; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: opacity .2s, transform .15s; }
.bdl:hover { opacity: .82; transform: translateY(-1px); }
.bdl-cy { background: rgba(34,211,238,.1); color: var(--cy); border: 1px solid rgba(34,211,238,.18); }
.bdl-rd { background: rgba(251,113,133,.1); color: #fb7185; border: 1px solid rgba(251,113,133,.18); }
.rc { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.bwa { display: inline-flex; align-items: center; gap: .38rem; padding: .48rem 1.05rem; border-radius: 8px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.18); color: var(--gn); font-weight: 700; font-size: .78rem; text-decoration: none; transition: background .2s; }
.bwa:hover { background: rgba(34,197,94,.18); }
.bem { display: inline-flex; align-items: center; gap: .38rem; padding: .48rem 1.05rem; border-radius: 8px; background: var(--card); border: 1px solid var(--bdr); color: var(--t2); font-weight: 600; font-size: .78rem; text-decoration: none; transition: background .2s; }
.bem:hover { background: var(--cardh); }

/* CLIENTS TEXT MARQUEE */
#clientes { padding: 3rem 0; background: var(--bg2); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); overflow: hidden; }
.cl-lbl { font-family: var(--mono); font-size: .63rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; text-align: center; margin-bottom: 1.6rem; }
.mqwrap { position: relative; overflow: hidden; }
.mqwrap::before, .mqwrap::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: 120px; pointer-events: none; }
.mqwrap::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.mqwrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }
.mqtrack { display: flex; gap: 3.5rem; align-items: center; animation: mq 30s linear infinite; width: max-content; }
@keyframes mq { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }
.mqtrack img { height: 34px; width: auto; max-width: 120px; object-fit: contain; opacity: .75; transition: opacity .3s, transform .3s; flex-shrink: 0; }
.mqtrack img:hover { opacity: 1; transform: scale(1.12); }

/* REVIEWS */
#resenas { background: var(--bg); border-top: 1px solid var(--bdr); }
.rvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }
.rvcard { position: relative; background: var(--bg3); border: 1px solid var(--bdr); border-radius: var(--r2); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; overflow: hidden; transition: border-color .22s, transform .22s, box-shadow .22s; }
.rvcard::before { content: '\201C'; position: absolute; top: -28px; left: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 11rem; line-height: 1; color: var(--acc); opacity: .06; pointer-events: none; font-weight: 900; }
.rvcard:hover { border-color: var(--bdrh); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.rvcard:hover::before { opacity: .09; }
.rv-top { position: relative; display: flex; align-items: center; justify-content: space-between; z-index: 1; }
.rv-stars { color: var(--acc); font-size: .82rem; display: inline-flex; gap: 2px; filter: drop-shadow(0 0 6px rgba(249,115,22,.35)); }
.rv-g { color: var(--t3); font-size: 1.05rem; transition: color .2s; }
.rvcard:hover .rv-g { color: var(--t2); }
.rv-text { position: relative; color: var(--t1); font-size: .92rem; line-height: 1.64; flex: 1; font-weight: 400; z-index: 1; }
.rv-meta { position: relative; display: flex; align-items: center; gap: .65rem; padding-top: .75rem; border-top: 1px solid var(--bdr); z-index: 1; }
.rv-av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .88rem; color: #fff; flex-shrink: 0; letter-spacing: -.02em; box-shadow: inset 0 -1px 2px rgba(0,0,0,.18); }
.rv-av-img { background: #fff; padding: 4px; overflow: hidden; }
.rv-av-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rv-author-w { display: flex; flex-direction: column; gap: .12rem; min-width: 0; flex: 1; }
.rv-author { font-weight: 700; font-size: .85rem; color: var(--t1); letter-spacing: -.012em; line-height: 1.2; }
.rv-date { font-family: var(--mono); font-size: .62rem; color: var(--t3); letter-spacing: .06em; text-transform: lowercase; }
.rv-tag { font-family: var(--mono); font-size: .55rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); padding: .2rem .5rem; border-radius: 99px; background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.22); align-self: center; }
.rvcard-feat { border-color: rgba(249,115,22,.3); background: linear-gradient(180deg, rgba(249,115,22,.04), var(--bg3) 60%); }
.rvcard-feat::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--acc), #fb923c); }
.rvcard-feat .rv-text { font-size: .98rem; line-height: 1.62; }
.rv-feat-lbl { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: .54rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--acc); z-index: 2; }
.rv-cta { text-align: center; margin-top: 2.4rem; display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.rv-all { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--t2); text-decoration: none; padding: .72rem 1.15rem; border: 1px solid var(--bdr); border-radius: 99px; transition: color .2s, border-color .2s, background .2s; }
.rv-all:hover { color: var(--t1); border-color: var(--bdrh); background: rgba(249,115,22,.06); }

/* PROJECTS */
#proyectos { background: var(--bg); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.pcard { background: var(--bg3); border: 1px solid var(--bdr); border-radius: var(--r2); overflow: hidden; transition: border-color .22s, transform .22s, box-shadow .22s; }
.pcard:hover { border-color: rgba(255,255,255,.13); transform: translateY(-5px); box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.pstripe { height: 3px; }
.pbody { padding: 1.35rem 1.45rem; }
.pbadges { display: flex; flex-wrap: wrap; gap: .32rem; margin-bottom: .75rem; }
.pb { display: inline-flex; align-items: center; gap: .26rem; padding: .14rem .5rem; border-radius: 999px; font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pbl { background: rgba(74,222,128,.08);  color: var(--gn); border: 1px solid rgba(74,222,128,.18); }
.pbx { background: rgba(245,158,11,.08);  color: #fbbf24;  border: 1px solid rgba(245,158,11,.18); }
.pbc { background: rgba(34,211,238,.08);  color: var(--cy); border: 1px solid rgba(34,211,238,.18); }
.pbody h3 { font-size: .98rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: .35rem; }
.pbody p  { font-size: .79rem; color: var(--t2); line-height: 1.64; }
.pfoot { padding: .85rem 1.45rem; border-top: 1px solid var(--bdr); display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.purl { font-family: var(--mono); font-size: .68rem; color: var(--t3); }
.btn-v { display: inline-flex; align-items: center; gap: .3rem; padding: .33rem .78rem; border-radius: 7px; font-size: .72rem; font-weight: 700; text-decoration: none; background: var(--card); border: 1px solid var(--bdr); color: var(--t2); transition: background .2s, border-color .2s, color .2s; }
.btn-v:hover { background: var(--cardh); border-color: rgba(255,255,255,.15); color: var(--t1); }
.btn-demo { display: inline-flex; align-items: center; gap: .3rem; padding: .33rem .78rem; border-radius: 7px; font-size: .72rem; font-weight: 700; text-decoration: none; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); color: var(--acc-l); transition: background .2s, border-color .2s; }
.btn-demo:hover { background: rgba(139,92,246,.22); border-color: rgba(139,92,246,.5); }

/* FAQ */
#faq { background: var(--bg2); }
.fwrap { max-width: 680px; display: flex; flex-direction: column; gap: .5rem; }
.fi { background: var(--card); border: 1px solid var(--bdr); border-radius: var(--r); overflow: hidden; }
.fq { width: 100%; text-align: left; background: none; border: none; padding: 1rem 1.35rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: 'Inter', sans-serif; font-size: .86rem; font-weight: 600; color: var(--t1); transition: background .2s; }
.fq:hover { background: var(--cardh); }
.fq i { color: var(--acc); font-size: .7rem; transition: transform .28s; flex-shrink: 0; }
.fq[aria-expanded="true"] i { transform: rotate(45deg); }
.fa { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.fa-in { padding: 0 1.35rem 1rem; font-size: .78rem; font-family: var(--mono); color: var(--t2); line-height: 1.72; }
.fi.open .fa { max-height: 220px; }

/* CONTACT */
#contacto { background: var(--bg); }
.chero { background: linear-gradient(135deg, rgba(249,115,22,.07), rgba(249,115,22,.02)); border: 1px solid rgba(249,115,22,.13); border-radius: var(--r2); padding: 3rem clamp(1.5rem,4vw,3.5rem); text-align: center; margin-bottom: 1.8rem; }
.chero h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.045em; margin-bottom: .5rem; }
.chero p { color: var(--t2); max-width: 400px; margin: 0 auto 1.8rem; font-size: .9rem; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: .8rem; }
.ccard { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--bg3); border: 1px solid var(--bdr); text-decoration: none; color: var(--t1); transition: border-color .2s, transform .2s; }
.ccard:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); }
.cico { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.iwa  { background: rgba(34,197,94,.1);  color: var(--gn); }
.iml  { background: rgba(249,115,22,.1);  color: var(--acc); }
.ili  { background: rgba(34,211,238,.1);  color: var(--cy); }
.icl  { background: rgba(167,139,250,.1); color: var(--vi); }
.igbp { background: rgba(234,67,53,.1);   color: #ea4335; }
.ci h4 { font-size: .83rem; font-weight: 700; }
.ci p  { font-size: .7rem; color: var(--t3); font-family: var(--mono); }

/* FOOTER */
footer { padding: 1.6rem clamp(1rem,3vw,2.5rem); border-top: 1px solid var(--bdr); background: var(--bg); }
.fi-row { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.fbrand { display: flex; align-items: center; gap: .55rem; }
.fb-ico { width: 26px; height: 26px; border-radius: 6px; background: var(--acc); display: flex; align-items: center; justify-content: center; font-size: .58rem; color: #fff; font-weight: 900; }
.fb-n { font-weight: 800; font-size: .86rem; letter-spacing: -.03em; }
.fb-m { font-size: .66rem; color: var(--t3); font-family: var(--mono); }
.flinks { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.flinks a { font-size: .76rem; color: var(--t3); text-decoration: none; transition: color .2s; }
.flinks a:hover { color: var(--t1); }
.fr { font-size: .68rem; color: var(--t3); font-family: var(--mono); text-align: right; }

/* SCROLL REVEAL */
.fu { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fu.vis { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .term { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bc.s2 { grid-column: span 2; }
  .rg { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .n-links, .n-cta { display: none; }
  .n-mb { display: block; }
  .bento { grid-template-columns: 1fr; }
  .bc.s2 { grid-column: span 1; }
  section { padding: 3.8rem 1.2rem; }
}

/* ============================================================
   DINAMISMO — microinteracciones sobre Inter + JetBrains Mono
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--acc), #fb923c);
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(249,115,22,.5);
  transition: width .08s linear;
}

/* H1 letter stagger reveal */
h1 .n1, h1 .n2 { display: block; }
h1 .lt {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: lt-in .55s cubic-bezier(.2,.7,.3,1) forwards;
}
/* Stagger per letter */
h1 .n1 .lt:nth-child(1) { animation-delay: .08s; }
h1 .n1 .lt:nth-child(2) { animation-delay: .14s; }
h1 .n1 .lt:nth-child(3) { animation-delay: .20s; }
h1 .n1 .lt:nth-child(4) { animation-delay: .26s; }
h1 .n1 .lt:nth-child(5) { animation-delay: .32s; }
h1 .n2 .lt:nth-child(1) { animation-delay: .44s; }
h1 .n2 .lt:nth-child(2) { animation-delay: .50s; }
h1 .n2 .lt:nth-child(3) { animation-delay: .56s; }
h1 .n2 .lt:nth-child(4) { animation-delay: .62s; }
h1 .n2 .lt:nth-child(5) { animation-delay: .68s; }
h1 .n2 .lt:nth-child(6) { animation-delay: .74s; }
h1 .n2 .lt:nth-child(7) { animation-delay: .80s; }

@keyframes lt-in {
  to { opacity: 1; transform: none; }
}

/* Magnetic buttons baseline (JS adds transform on mousemove) */
.bp, .n-cta {
  will-change: transform;
}
.bp, .bs, .n-cta {
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background .2s, opacity .2s, box-shadow .15s, border-color .2s;
}

/* Project cards: 3D tilt context */
.pgrid { perspective: 1200px; }
.pcard {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .22s, box-shadow .25s;
}
.pcard:hover { transform: none; } /* JS overrides on mousemove */

/* Bento cursor-follow glow */
.bc {
  position: relative;
  overflow: hidden;
}
.bc::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(249,115,22,.14), transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  border-radius: inherit;
}
.bc:hover::after { opacity: 1; }
.bc.cy::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.12), transparent 55%); }
.bc.vi::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,.12), transparent 55%); }
.bc.gn::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(74,222,128,.12), transparent 55%); }
.bc > * { position: relative; z-index: 1; }

/* Terminal line entry — staggered fade-up */
.term .t-body > div,
.term .t-body > br {
  opacity: 0;
  animation: term-line .25s ease forwards;
}
.term .t-body > div:nth-of-type(1)  { animation-delay: .9s; }
.term .t-body > div:nth-of-type(2)  { animation-delay: 1.05s; }
.term .t-body > div:nth-of-type(3)  { animation-delay: 1.25s; }
.term .t-body > div:nth-of-type(4)  { animation-delay: 1.40s; }
.term .t-body > div:nth-of-type(5)  { animation-delay: 1.60s; }
.term .t-body > div:nth-of-type(6)  { animation-delay: 1.75s; }
.term .t-body > div:nth-of-type(7)  { animation-delay: 1.95s; }
.term .t-body > div:nth-of-type(8)  { animation-delay: 2.10s; }
.term .t-body > div:nth-of-type(9)  { animation-delay: 2.30s; }
.term .t-body > div:nth-of-type(10) { animation-delay: 2.45s; }
.term .t-body > div:nth-of-type(11) { animation-delay: 2.65s; }
.term .t-body > br { animation: none; opacity: 1; }

@keyframes term-line {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Pill on hero — subtle breath */
.h-pill {
  animation: pill-breathe 4.5s ease-in-out infinite;
}
@keyframes pill-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
  50%      { box-shadow: 0 0 0 6px rgba(249,115,22,.06); }
}

/* Sectores chips — subtle entry on scroll-reveal already via .fu */
.sc {
  transition: border-color .22s, color .22s, background .22s, transform .18s;
}
.sc:hover { transform: translateY(-2px); }

/* FAQ smoother expand using grid-template-rows trick */
.fa {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.7,.3,1);
  max-height: none;
}
.fa > .fa-in {
  min-height: 0;
  overflow: hidden;
}
.fi.open .fa { grid-template-rows: 1fr; }

/* Counter — slight color flash on land */
.hst-n {
  transition: color .3s;
}

/* Reduced motion: kill everything heavy */
@media (prefers-reduced-motion: reduce) {
  h1 .lt { animation: none; opacity: 1; transform: none; }
  .term .t-body > div { animation: none; opacity: 1; transform: none; }
  .h-pill { animation: none; }
  .scroll-progress { display: none; }
  .pcard:hover, .bp:hover, .bs:hover, .n-cta:hover { transform: none !important; }
  .orb1, .orb2, .pulse { animation: none !important; }
}
