/* =========================================================
   PalmerTec — sitio corporativo
   Paleta tomada del logo: azul degradado + grises
   ========================================================= */
:root {
  --bg: #050a14;
  --bg-2: #0a1222;
  --bg-3: #0f1a30;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8eef8;
  --muted: #9aa8bd;
  --soft: #6b7a90;
  --blue: #1a8cff;
  --cyan: #0ec5ff;
  --gray: #a9a9a9;
  --grad: linear-gradient(90deg, #1a8cff 0%, #0ec5ff 60%, #1a8cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(26, 140, 255, 0.18), rgba(14, 197, 255, 0.06));
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1200px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); background-size: 200% auto; color: #fff; box-shadow: 0 10px 30px -10px rgba(26, 140, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 40px -12px rgba(14, 197, 255, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .18); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 10, 20, .78); backdrop-filter: blur(14px); border-color: var(--card-border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .icon { height: 38px; width: auto; }
.brand .word { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { padding: .6rem 1.1rem; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(14, 197, 255, .16), transparent 70%),
    radial-gradient(50% 50% at 15% 80%, rgba(26, 140, 255, .14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--cyan); background: rgba(14, 197, 255, .08); border: 1px solid rgba(14, 197, 255, .25);
  margin-bottom: 1.4rem;
}
.eyebrow-plain { padding: 0; border: 0; background: none; border-radius: 0; text-transform: uppercase; letter-spacing: .18em; font-weight: 500; color: #9cc3ea; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(14, 197, 255, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(14, 197, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 197, 255, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 600px; margin-bottom: 2rem; }
.rotator { display: inline-block; min-width: 4ch; }
.rotator .word { display: inline-block; animation: wordIn .5s ease both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.4rem; color: var(--soft); font-size: .88rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--cyan); }

.hero-visual { position: relative; display: grid; place-items: center; }
.orbit { position: relative; width: min(440px, 90%); aspect-ratio: 1; }
.orbit .core {
  position: absolute; inset: 27%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(14, 197, 255, .25), rgba(10, 18, 34, .95) 70%);
  border: 1px solid rgba(14, 197, 255, .25); display: grid; place-items: center;
  box-shadow: 0 0 80px -10px rgba(14, 197, 255, .45), inset 0 0 40px rgba(26, 140, 255, .2);
}
.orbit .core img { width: 62%; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 40s linear infinite; }
.orbit .ring.r2 { inset: 13%; border-style: solid; border-color: rgba(26, 140, 255, .18); animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .sat {
  position: absolute; width: 64px; height: 64px; margin: -32px; border-radius: 16px;
  background: rgba(10, 18, 34, .9); border: 1px solid var(--card-border); display: grid; place-items: center;
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.orbit .sat svg { width: 34px; height: 34px; }
.orbit .ring .sat { animation: spin 40s linear infinite reverse; }
.orbit .ring.r2 .sat { animation: spin 28s linear infinite; }
.sat.s1 { top: 0; left: 50%; } .sat.s2 { top: 50%; left: 100%; } .sat.s3 { top: 100%; left: 50%; } .sat.s4 { top: 50%; left: 0; }
.sat.s5 { top: 14.6%; left: 85.4%; } .sat.s6 { top: 85.4%; left: 14.6%; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--card-border); background: var(--bg-2); padding: 1.3rem 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 600; font-size: .98rem; white-space: nowrap; }
.chip svg { width: 26px; height: 26px; }

/* ---------- secciones ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: -60px; position: relative; z-index: 2; }
.stat { background: rgba(15, 26, 48, .85); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.6rem 1.4rem; backdrop-filter: blur(10px); }
.stat .num { font-family: var(--font-head); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; }
.stat .label { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border); overflow: hidden;
  transition: transform .3s, border-color .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(14, 197, 255, .14), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(14, 197, 255, .35); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--grad-soft); border: 1px solid rgba(14, 197, 255, .25); color: var(--cyan);
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.card li { display: flex; gap: .55rem; font-size: .9rem; color: #c3cedd; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--cyan); }

/* ---------- pestañas de nube ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 2.5rem; }
.tab {
  display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.2rem; border-radius: 14px; cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); color: var(--muted); font: 600 .95rem var(--font-body);
  transition: all .25s;
}
.tab svg { width: 24px; height: 24px; }
.tab:hover { color: var(--text); border-color: rgba(255, 255, 255, .2); }
.tab[aria-selected="true"] { color: var(--text); background: var(--grad-soft); border-color: rgba(14, 197, 255, .45); }
.panel { display: none; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.panel.active { display: grid; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.panel p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.panel-art {
  position: relative; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden;
  background: var(--grad-soft); border: 1px solid var(--card-border); display: grid; place-items: center;
}
.panel-art .big { width: 38%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); position: relative; z-index: 1; }
.panel-art .grid-bg {
  position: absolute; inset: 0; opacity: .5;
  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: 32px 32px; mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.panel-art .tag {
  position: absolute; z-index: 2; padding: .5rem .85rem; border-radius: 10px; font-size: .82rem; font-weight: 600;
  background: rgba(5, 10, 20, .85); border: 1px solid var(--card-border); display: flex; align-items: center; gap: .45rem;
  animation: float 5s ease-in-out infinite;
}
.panel-art .tag i { width: 8px; height: 8px; border-radius: 50%; background: #2bd576; }
.panel-art .t1 { top: 12%; left: 8%; } .panel-art .t2 { bottom: 14%; right: 8%; animation-delay: -2.5s; } .panel-art .t3 { top: 18%; right: 10%; animation-delay: -1.2s; }

/* ---------- soporte remoto ---------- */
.remote { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.window {
  border-radius: 16px; overflow: hidden; background: #0b1426; border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0f1b33; border-bottom: 1px solid var(--card-border); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 10px; font-size: .8rem; color: var(--soft); }
.window .body { padding: 1.4rem; display: grid; gap: .9rem; }
.mon-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--card-border); }
.mon-row b { font-weight: 600; font-size: .92rem; }
.mon-row small { color: var(--soft); font-size: .78rem; grid-column: 1; }
.mon-row .st { grid-row: 1 / span 2; grid-column: 2; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.st.ok { color: #2bd576; background: rgba(43, 213, 118, .12); }
.st.warn { color: #febc2e; background: rgba(254, 188, 46, .12); }
.bar-meter { grid-column: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar-meter span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.in .bar-meter span { width: var(--w); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.8rem 0 2rem; }
.feature { display: flex; gap: .8rem; }
.feature .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); border: 1px solid rgba(14, 197, 255, .22); }
.feature .ico svg { width: 22px; height: 22px; }
.feature b { display: block; font-size: .96rem; margin-bottom: .15rem; }
.feature span { color: var(--muted); font-size: .88rem; line-height: 1.5; display: block; }

/* ---------- proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, rgba(14, 197, 255, .5), transparent); }
.step { text-align: center; padding: 0 .6rem; position: relative; }
.step .n {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.3rem var(--font-head); background: var(--bg-2); border: 2px solid rgba(14, 197, 255, .5); color: var(--cyan);
  box-shadow: 0 0 30px -6px rgba(14, 197, 255, .5);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- nosotros ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.about p { color: var(--muted); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.value { padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); }
.value b { display: block; margin-bottom: .2rem; }
.value span { color: var(--muted); font-size: .88rem; }
.leader {
  padding: 2rem; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 140, 255, .14), rgba(10, 18, 34, .6) 55%); border: 1px solid rgba(14, 197, 255, .25);
}
.leader .who { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.leader .avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font: 700 1.3rem var(--font-head); color: #fff; }
.leader .who b { font-family: var(--font-head); font-size: 1.15rem; display: block; }
.leader .who span { color: var(--cyan); font-size: .9rem; }
.leader p { color: #c3cedd; font-size: .96rem; }
.certs { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.cert { font-size: .78rem; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-border); color: #d6deea; }
.sectors { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.sector { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; padding: .45rem .8rem; border-radius: 10px; background: rgba(14, 197, 255, .06); border: 1px solid rgba(14, 197, 255, .18); color: #cfe9ff; }

/* ---------- logos en imagen ---------- */
.chip .logo-img { width: 24px; height: 26px; object-fit: contain; }
.tab .logo-img { width: 22px; height: 24px; object-fit: contain; }
.orbit .sat .logo-img { width: 32px; height: 34px; object-fit: contain; }
.panel-art img.big { width: 30%; height: auto; }

/* ---------- roles de Windows Server ---------- */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.role {
  position: relative; padding: 1.3rem 1.2rem; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border);
  transition: transform .25s, border-color .25s, background .25s;
}
.role:hover { transform: translateY(-4px); border-color: rgba(14, 197, 255, .4); background: rgba(14, 197, 255, .05); }
.role .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem;
  background: var(--grad-soft); border: 1px solid rgba(14, 197, 255, .25); color: var(--cyan); transition: transform .3s;
}
.role:hover .ico { transform: rotate(-8deg) scale(1.08); }
.role .ico svg { width: 22px; height: 22px; }
.role b { display: block; font-size: .98rem; margin-bottom: .25rem; }
.role span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }

/* ---------- nosotros: valores y equipo ---------- */
.values-stack { grid-template-columns: 1fr; margin-top: 0; }
.values-stack .value { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; }
.values-stack .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); border: 1px solid rgba(14, 197, 255, .22); }
.values-stack .ico svg { width: 22px; height: 22px; }
.team-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 5rem 0 2.2rem; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.member {
  padding: 2rem; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 140, 255, .14), rgba(10, 18, 34, .6) 55%); border: 1px solid rgba(14, 197, 255, .25);
  transition: transform .3s, border-color .3s;
}
.member:hover { transform: translateY(-5px); border-color: rgba(14, 197, 255, .5); }
.member .who { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.3rem; }
.member .photo {
  flex: none; width: 112px; height: 112px; border-radius: 50%; padding: 3px; background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(14, 197, 255, .6);
}
.member .photo img, .member .photo .initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-2); }
.member .photo .initials { display: grid; place-items: center; background: linear-gradient(140deg, #0f1a30, #13305a); font: 700 2rem var(--font-head); color: #fff; }
.member .who b { font-family: var(--font-head); font-size: 1.25rem; display: block; }
.member .who span { display: block; color: var(--cyan); font-weight: 600; font-size: .95rem; }
.member .who small { display: block; color: var(--muted); font-size: .86rem; }
.member p { color: #c3cedd; font-size: .96rem; }
.chips-label { display: block; margin-top: 1.1rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.chips-label + .certs { margin-top: .5rem; }

/* ---------- clientes ---------- */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 720px; margin: 0 auto; }
.client {
  flex: 0 0 calc((100% - 2rem) / 3); height: 96px; padding: .8rem 1rem;
  display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #fff;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .7); transition: transform .3s, box-shadow .3s;
}
.client:hover { transform: translateY(-5px); box-shadow: 0 18px 38px -14px rgba(14, 197, 255, .5); }
.client img { display: block; max-width: 100%; height: auto; }

/* ---------- CTA ---------- */
.cta-band {
  margin: 0 auto; padding: 3.5rem; border-radius: 28px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0d4fb8, #1a8cff 45%, #0ec5ff); box-shadow: 0 30px 80px -30px rgba(14, 197, 255, .6);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 22px 22px;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.8rem; font-size: 1.06rem; }
.cta-band .btn-white { background: #fff; color: #0b3d91; }
.cta-band .btn-white:hover { transform: translateY(-2px); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.offices { display: grid; gap: 1.2rem; }
.office { padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.office h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.office h3 .flag { font-size: 1.3rem; }
.office .line { display: flex; gap: .7rem; color: var(--muted); font-size: .93rem; margin-top: .55rem; }
.office .line svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--cyan); }
.office .line a:hover { color: var(--cyan); }
.office small { display: block; color: var(--soft); font-size: .8rem; margin-top: .7rem; }
form.contact-form { padding: 2rem; border-radius: 24px; background: var(--card); border: 1px solid var(--card-border); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: #c3cedd; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; font: inherit; font-size: .95rem; color: var(--text);
  background: rgba(5, 10, 20, .6); border: 1px solid var(--card-border); transition: border-color .2s, box-shadow .2s;
}
.field select option { background: var(--bg-2); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(14, 197, 255, .12); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.form-note { grid-column: 1 / -1; font-size: .8rem; color: var(--soft); margin: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--card-border); padding: 60px 0 30px; background: #03070f; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot p, .foot li { color: var(--soft); font-size: .9rem; }
.foot h4 { font-size: .95rem; margin-bottom: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot a:hover { color: var(--cyan); }
.foot .brand { margin-bottom: 1rem; }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--card-border); color: var(--soft); font-size: .84rem; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; color: #fff; }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- páginas de servicio ---------- */
.page-hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 80% 20%, rgba(14, 197, 255, .16), transparent 70%),
    radial-gradient(45% 55% at 10% 90%, rgba(26, 140, 255, .14), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 920px; }
.page-hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 720px; margin-bottom: 2rem; }
.crumbs { font-size: .85rem; color: var(--soft); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { color: var(--muted); }
.values-stack .ico { font: 700 1.05rem var(--font-head); }
.values-stack .value b { margin-bottom: .15rem; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .9rem; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); padding: 1.1rem 1.3rem; transition: border-color .2s; }
.faq details[open] { border-color: rgba(14, 197, 255, .35); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--cyan); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .8rem 0 0; }
.svc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); font-weight: 600; transition: border-color .2s, transform .2s;
}
.svc-link:hover { border-color: rgba(14, 197, 255, .4); transform: translateY(-3px); }
.svc-link svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; color: var(--cyan); font-weight: 600; font-size: .9rem; position: relative; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card .more:hover svg { transform: translateX(4px); }
@media (max-width: 1024px) { .svc-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-links { grid-template-columns: 1fr; } .page-hero { padding: 120px 0 70px; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 10, 20, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--card-border);
    padding: .5rem 16px 1.2rem; transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--card-border); }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
  .hero-grid, .panel, .remote, .about, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; align-items: flex-start; padding-bottom: 110px; }
  .hero-visual { order: -1; }
  .orbit { width: min(280px, 70%); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .roles { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .cards, .stats, .feature-list, .values { grid-template-columns: 1fr; }
  .clients { gap: .6rem; }
  .client { flex-basis: calc((100% - 1.2rem) / 3); height: 70px; padding: .45rem; border-radius: 12px; }
  .client img { max-height: 52px; width: auto; }
  form.contact-form { grid-template-columns: 1fr; padding: 1.4rem; }
  .foot { grid-template-columns: 1fr; }
  .cta-band { padding: 2.4rem 1.4rem; }
  .brand .word { height: 18px; }
  .member { padding: 1.5rem; }
  .member .who { flex-direction: column; text-align: center; }
  .role { padding: 1.1rem 1rem; }
  .hero { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Hero: ubicaciones con bandera que llevan al contacto de cada oficina */
.eyebrow .loc { display: inline-flex; align-items: center; gap: .35em; color: #fff; padding: .15em .55em; border-radius: 999px; background: rgba(156, 195, 234, .12); transition: background .2s, transform .2s; }
.eyebrow .loc:hover, .eyebrow .loc:focus-visible { background: rgba(14, 197, 255, .28); transform: translateY(-2px); }
.eyebrow .loc .flag { display: inline-block; font-size: 1.15em; transform-origin: 20% 90%; animation: flag-wave 3.2s ease-in-out infinite; }
.eyebrow .loc + .loc .flag, .eyebrow .loc:last-of-type .flag { animation-delay: 1.4s; }
@keyframes flag-wave { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(-8deg); } 40% { transform: rotate(6deg); } }
.office { scroll-margin-top: 110px; }
.office:target { animation: office-glow 1.8s ease-out; }
@keyframes office-glow { 0% { box-shadow: 0 0 0 0 rgba(14, 197, 255, .7); } 100% { box-shadow: 0 0 0 18px rgba(14, 197, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .eyebrow .loc .flag, .office:target { animation: none; } }

/* ---------- Fase 2: cabecera comercial ---------- */
.nav-links { gap: 1.6rem; }
.nav-wa { display: inline-flex; align-items: center; gap: .45rem; color: #fff !important; padding: .45rem .85rem; border-radius: 999px; background: rgba(37, 211, 102, .14); border: 1px solid rgba(37, 211, 102, .45); white-space: nowrap; transition: background .2s, transform .2s; }
.nav-wa:hover { background: rgba(37, 211, 102, .3); transform: translateY(-2px); }
.nav-wa svg { width: 18px; height: 18px; color: #25d366; }
.nav-links a.nav-wa::after { display: none; }
.has-sub { position: relative; }
.has-sub > a::before { content: ""; position: absolute; right: -14px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.has-sub > a { margin-right: 14px; }
.sub { position: absolute; left: -16px; top: 100%; min-width: 250px; margin: 0; padding: .5rem; list-style: none; background: rgba(8, 14, 28, .97); backdrop-filter: blur(14px); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .6rem .8rem; border-radius: 9px; font-size: .9rem; }
.sub a:hover { background: rgba(14, 197, 255, .1); }
.sub a::after { display: none !important; }
.wa span { display: none; }
@media (max-width: 1100px) and (min-width: 881px) { .nav-wa span { display: none; } .nav-wa { padding: .5rem; } .nav-links { gap: 1.2rem; } }
@media (max-width: 880px) {
  .has-sub > a::before { display: none; }
  .has-sub > a { margin-right: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 .4rem 1rem; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .sub a { padding: .55rem 0; font-size: .88rem; border-bottom: 0 !important; color: var(--soft); }
  .nav-wa { margin-top: 1rem; justify-content: center; padding: .8rem 1rem; }
  .wa { width: auto; height: 52px; border-radius: 999px; padding: 0 20px 0 16px; grid-auto-flow: column; gap: .55rem; right: 16px; bottom: 16px; }
  .wa span { display: inline; color: #fff; font-weight: 700; font-size: .95rem; }
  .wa svg { width: 26px; height: 26px; }
  .wa::after { border-radius: 999px; }
}

@media (max-width: 880px) {
  .nav-links { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
  .sub a { padding: .4rem 0; }
  .menu-open .wa { display: none; }
}
@media (max-width: 880px) {
  .nav-links li a.nav-wa { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1rem; padding: .8rem 1rem; border: 1px solid rgba(37, 211, 102, .45); }
  .nav-links li .btn { display: flex; width: 100%; }
}
