/* ==========================================================================
   Aldibs Software Solutions — estilos
   Paleta tomada de la marca: navy #001e5a · azul #0073a2 · celeste #1282aa
   ========================================================================== */

:root {
  --navy-900: #00123a;
  --navy: #001e5a;
  --navy-700: #0a427f;
  --blue: #0073a2;
  --blue-500: #1282aa;
  --blue-400: #1a80b6;
  --sky: #5aabd6;
  --sky-200: #90c9e8;
  --sky-50: #eef7fc;

  --ink: #0d1b33;
  --text: #3b4a63;
  --muted: #6b7a92;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(0, 30, 90, .06), 0 2px 8px rgba(0, 30, 90, .05);
  --shadow: 0 10px 30px -10px rgba(0, 30, 90, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 30, 90, .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-200); color: var(--navy); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px;
  background: var(--navy); color: #fff; border-radius: 8px; transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }
.icon { flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: linear-gradient(135deg, #1a9bd0, var(--blue)); color: #fff; box-shadow: 0 10px 30px -10px rgba(26, 155, 208, .8); }
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(26, 155, 208, .9); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--blue); }
.link-arrow .icon { transition: transform .25s var(--ease); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; padding: .3em .8em; border-radius: 999px;
  background: var(--sky-50); color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.chip-light { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; width: 168px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; transition: opacity .3s; }
.brand-dark { position: absolute; inset: 0; opacity: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, .88); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-list a[aria-current="page"]:not(.nav-cta) { color: #fff; }
.nav-list a[aria-current="page"]:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sky-200); transform: translateX(-50%);
}
.nav-list .nav-cta { margin-left: 8px; background: #fff; color: var(--navy); padding-inline: 20px; }
.nav-list .nav-cta:hover { background: var(--sky-200); color: var(--navy); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .85rem; border: 1px solid rgba(255, 255, 255, .25);
}
.lang-switch:hover { color: #fff; border-color: #fff; }
.lang-current { color: #fff; }
.lang-sep, .lang-other { opacity: .6; }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 30, 90, .25); height: 66px;
}
.site-header.is-scrolled .brand-light { opacity: 0; }
.site-header.is-scrolled .brand-dark { opacity: 1; }
.site-header.is-scrolled .nav-list a { color: var(--text); }
.site-header.is-scrolled .nav-list a:hover { color: var(--navy); background: var(--sky-50); }
.site-header.is-scrolled .nav-list a[aria-current="page"]:not(.nav-cta) { color: var(--navy); }
.site-header.is-scrolled .nav-list a[aria-current="page"]:not(.nav-cta)::after { background: var(--blue); }
.site-header.is-scrolled .nav-list .nav-cta { background: var(--navy); color: #fff; }
.site-header.is-scrolled .nav-list .nav-cta:hover { background: var(--blue); }
.site-header.is-scrolled .lang-switch { color: var(--text); border-color: var(--line); }
.site-header.is-scrolled .lang-current { color: var(--navy); }

.nav-toggle {
  display: none; position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); cursor: pointer;
}
.nav-toggle-bars { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; }
.nav-toggle-bars span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.site-header.is-scrolled .nav-toggle { border-color: var(--line); background: #fff; }
.site-header.is-scrolled .nav-toggle-bars span { background: var(--navy); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a, .site-header.is-scrolled .nav-list a { color: var(--ink); font-size: 1.35rem; font-weight: 700; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-list a:hover { background: none; color: var(--blue); }
  .nav-list a[aria-current="page"]:not(.nav-cta) { color: var(--blue); }
  .nav-list a[aria-current="page"]:not(.nav-cta)::after { display: none; }
  .nav-list .nav-cta, .site-header.is-scrolled .nav-list .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 999px; background: var(--navy); color: #fff; border: 0; }
  .lang-switch, .site-header.is-scrolled .lang-switch { align-self: flex-start; color: var(--text); border-color: var(--line); }
  .lang-current { color: var(--navy); }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open .brand { z-index: 2; }
  body.nav-open .brand-light { opacity: 0; }
  body.nav-open .brand-dark { opacity: 1; }
  body.nav-open .nav-toggle { border-color: var(--line); background: #fff; }
  body.nav-open .nav-toggle-bars span { background: var(--navy); }
  body.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(90, 171, 214, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy) 38%, var(--navy-700) 68%, var(--blue-500) 100%);
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px));
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; left: -160px; top: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 155, 208, .35), transparent 65%); filter: blur(10px);
  animation: float 12s ease-in-out infinite alternate;
}
.hero-inner { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); grid-template-columns: minmax(0, 1fr); }
.hero-visual { display: none; }
@media (min-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
  .hero-stats { grid-column: 1 / -1; }
  .hero-visual { display: block; position: relative; aspect-ratio: 1 / .9; }
  .hero-shot { position: absolute; height: auto; filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .45)); }
  .hero-shot-main { width: 118%; right: -22%; top: 0; animation: bob 7s ease-in-out infinite alternate; }
  .hero-shot-float { width: 78%; left: -6%; bottom: -4%; animation: bob 6s ease-in-out -3s infinite alternate-reverse; }
}
@keyframes bob { to { transform: translateY(-14px); } }
.hero-copy { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 28px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe0a3; box-shadow: 0 0 0 4px rgba(95, 224, 163, .2); }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #9fdcff, #5aabd6 60%, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 820px;
  border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats li { padding: 20px 22px; background: rgba(0, 30, 90, .35); backdrop-filter: blur(8px); }
.hero-stats strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .86rem; color: rgba(255, 255, 255, .72); line-height: 1.4; display: block; margin-top: 4px; }
.hero-illustration { position: relative; margin-top: clamp(24px, 5vw, 48px); }
.hero-illustration img { width: 100%; min-width: 900px; height: auto; margin-left: 50%; transform: translateX(-50%); }

@keyframes float { to { transform: translate(80px, 40px) scale(1.1); } }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 45%, var(--blue) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 18, 58, .92) 0%, rgba(0, 30, 90, .78) 50%, rgba(0, 115, 162, .45) 100%);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.page-hero-inner { position: relative; max-width: 860px; margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.page-hero .kicker { color: var(--sky-200); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.page-hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 720px; margin-bottom: 0; }
.page-hero-full { min-height: 80vh; display: grid; align-items: center; }
.hero-questions { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.hero-questions li { display: flex; gap: 10px; align-items: baseline; font-size: 1.1rem; color: rgba(255, 255, 255, .88); font-weight: 600; }
.hero-questions li::before { content: "→"; color: var(--sky-200); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: rgba(255, 255, 255, .85); font-weight: 700; }
.back-link:hover { color: #fff; }
.back-link:hover .icon { transform: translateX(-4px); }
.back-link .icon { transition: transform .25s var(--ease); }
.back-link-dark { color: var(--blue); }
.back-link-dark:hover { color: var(--navy); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy) 55%, var(--navy-700)); color: rgba(255, 255, 255, .8); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .kicker { justify-content: center; }
.section-head .lead { font-size: 1.1rem; color: var(--muted); }
.section-head.is-light h2 { color: #fff; }
.section-head.is-light .kicker { color: var(--sky-200); }
.center-actions { display: flex; justify-content: center; margin-top: 48px; }

.intro { padding-block: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.intro-grid img { width: 170px; }
.intro-text { margin: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink); font-weight: 500; }

/* Servicios (home) */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .35s;
  background: linear-gradient(135deg, var(--sky), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card img { width: 56px; height: 56px; margin-bottom: 22px; }
.service-card p { margin: 0; color: var(--muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.feature img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.feature-dark { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; transition: background .3s, transform .35s var(--ease); }
.feature-dark:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.feature-dark h3 { color: #fff; }
.feature-dark p { color: rgba(255, 255, 255, .72); }

/* Showcase (proyectos destacados) */
.showcase-list { display: grid; gap: 28px; }
.showcase { position: relative; overflow: hidden; border-radius: var(--radius-lg); isolation: isolate; color: #fff; min-height: 420px; }
.showcase-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.showcase::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 18, 58, .92) 0%, rgba(0, 30, 90, .7) 45%, rgba(0, 30, 90, .15) 100%); }
.showcase:hover .showcase-bg { transform: scale(1.05); }
.showcase-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; padding: clamp(28px, 5vw, 56px); height: 100%; }
.showcase h3 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 16px 0 6px; }
.showcase-sub { font-weight: 700; color: var(--sky-200); }
.showcase p { color: rgba(255, 255, 255, .85); }
.showcase .btn { margin-top: 8px; }
.showcase-shot { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transition: transform .8s var(--ease); }
.showcase:hover .showcase-shot { transform: translateY(-6px) scale(1.02); }

/* Clientes: marquee */
.clients { overflow: hidden; }
.clients .section-head { margin-bottom: 36px; }
.marquee {
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { flex-shrink: 0; display: flex; align-items: center; gap: 20px; padding-right: 20px; list-style: none; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { width: 170px; height: 104px; display: grid; place-items: center; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.marquee-track img { width: 150px; height: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee-track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Posts */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.posts-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.post-media { aspect-ratio: 8 / 3; overflow: hidden; background: var(--sky-50); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover .post-media img { transform: scale(1.06); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-body h3 { margin-top: 14px; }
.post-body p { color: var(--muted); font-size: .96rem; }
.post-body .link-arrow { margin-top: auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); }
.post-meta-hero { margin-top: 24px; color: rgba(255, 255, 255, .8); gap: 18px; }
.post-meta-hero span { display: inline-flex; align-items: center; gap: 6px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--blue-500); color: #fff; padding: clamp(56px, 7vw, 88px) 0 0; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-inner h2 { color: #fff; max-width: 720px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-illustration { width: 100%; min-width: 900px; margin-top: 24px; margin-left: 50%; transform: translateX(-50%); }

/* ---------- Quiénes somos ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.team-card { padding: 32px; border-radius: var(--radius); background: var(--bg-soft); text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
.team-card:hover { background: #fff; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card img { width: 200px; margin: 0 auto 20px; }
.team-card p { color: var(--muted); margin: 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.how-grid p { font-size: 1.05rem; }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 20px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.steps h3 { margin: 0 0 4px; font-size: 1.08rem; }
.steps p { grid-column: 2; margin: 0; font-size: .95rem; color: var(--muted); }
.step-num { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; }

/* ---------- Servicios ---------- */
.services-list { display: grid; gap: 0; }
.service-row { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 48px); padding: 44px 0; border-bottom: 1px solid var(--line); }
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; }
.service-icon { width: 104px; height: 104px; border-radius: 28px; display: grid; place-items: center; background: var(--sky-50); }
.service-icon img { width: 72px; height: 72px; }
.service-num { display: block; font-weight: 800; color: var(--sky); font-size: .9rem; letter-spacing: .1em; margin-bottom: 6px; }
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-row p { max-width: 760px; margin: 0; font-size: 1.05rem; }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-list li { padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card.is-hidden { display: none; }
.project-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project-link:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { aspect-ratio: 7 / 5; overflow: hidden; background: linear-gradient(135deg, var(--sky-50), #fff); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-link:hover .project-media img { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-body h3 { margin: 14px 0 2px; font-size: 1.35rem; }
.project-subtitle { font-weight: 600; color: var(--blue); font-size: .95rem; margin-bottom: .6em; }
.project-body p:not(.project-subtitle) { color: var(--muted); font-size: .96rem; }
.project-body .link-arrow { margin-top: auto; }

.project-layout { display: grid; gap: clamp(32px, 5vw, 56px); }
.project-cover { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow); margin-top: calc(-1 * clamp(80px, 10vw, 140px)); position: relative; }
.project-content { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.project-aside { position: sticky; top: 96px; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.project-aside dl { margin: 0 0 24px; display: grid; gap: 16px; }
.project-aside dt { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-aside dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.page-hero:has(+ .section .project-cover) { padding-bottom: clamp(120px, 14vw, 200px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.next-project { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.next-link { display: block; text-align: center; color: var(--ink); }
.next-link .kicker { display: flex; justify-content: center; }
.next-title { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.next-title .icon { transition: transform .3s var(--ease); color: var(--blue); }
.next-link:hover { color: var(--blue); }
.next-link:hover .next-title .icon { transform: translateX(8px); }

/* ---------- Prose ---------- */
.prose { font-size: 1.08rem; color: var(--text); }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 1.8em 0 .6em; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .7em; }
.prose li::marker { color: var(--blue); }
.article-wrap { max-width: 800px; }
.article-cover { margin: calc(-1 * clamp(72px, 9vw, 120px)) 0 48px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.article-cover img { width: 100%; }
.page-hero:has(+ .section .article-cover) { padding-bottom: clamp(120px, 13vw, 180px); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.lead-dark { font-size: 1.15rem; color: var(--ink); margin-bottom: 40px; }
.contact-copy .h3 { margin: 0 0 16px; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.office-card { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.office-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.office-card p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.office-card .link-arrow { font-size: .92rem; }
.office-icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.social-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.social-pill:hover { border-color: var(--navy); }
.contact-card {
  position: sticky; top: 96px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); color: rgba(255, 255, 255, .85);
  background: radial-gradient(500px 300px at 100% 0%, rgba(90, 171, 214, .4), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-700));
  box-shadow: var(--shadow-lg);
}
.contact-card .kicker { color: var(--sky-200); }
.contact-card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-email-label { margin: 28px 0 4px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.contact-email { display: inline-block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; word-break: break-all; }
.contact-email:hover { color: var(--sky-200); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.footer-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links, .footer-contact, .social { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .75); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; }
.footer-contact .icon { margin-top: 3px; color: var(--sky); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, transform .25s; }
.social a:hover { background: var(--blue); transform: translateY(-3px); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(0, 18, 58, .92); backdrop-filter: blur(6px); animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-content { grid-template-columns: 1fr; }
  .project-aside { position: static; }
}
@media (max-width: 960px) {
  .services-grid, .projects-grid, .posts-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-shot { max-width: 460px; }
  .how-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-grid, .projects-grid, .posts-grid, .posts-grid-2, .team-grid, .features-grid, .offices { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats li { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; }
  .hero-stats span { margin: 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; padding: 32px 0; }
  .service-icon { width: 84px; height: 84px; border-radius: 22px; }
  .service-icon img { width: 56px; height: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .showcase::after { background: linear-gradient(180deg, rgba(0, 18, 58, .9), rgba(0, 30, 90, .75)); }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}

@media print {
  .site-header, .cta-band, .site-footer, .lightbox { display: none !important; }
  .page-hero, .hero { background: none; color: var(--ink); padding-top: 24px; }
  .page-hero h1, .hero h1 { color: var(--ink); }
}
