/* ==========================================================
   Xavier Vargas Ingeniería — estilos
   ========================================================== */
:root {
  --navy-900: #0d1730;
  --navy-800: #14213d;
  --navy-700: #1c2e54;
  --blue-600: #2c5aa0;
  --blue-500: #3a6fc2;
  --blue-100: #e6eef9;
  --orange-500: #e8641b;
  --orange-600: #cf5410;
  --orange-100: #fdeee4;
  --wa: #25d366;
  --wa-dark: #1da851;
  --ink: #14213d;
  --text: #46536b;
  --muted: #7c879b;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --line: #e2e8f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .25);
  --shadow-lg: 0 30px 60px -20px rgba(20, 33, 61, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.hl { color: var(--orange-500); }
.hide-sm { display: inline-flex; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange-500), var(--blue-500)); }
.eyebrow--light { color: #ffb68a; }

.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head p { font-size: 1.08rem; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; flex-wrap: wrap; }
.section__head--split h2 { margin: 0; }

.tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px;
  background: var(--blue-100); color: var(--blue-600);
}
.tag--orange { background: var(--orange-500); color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 99px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--xl { padding: 20px 34px; font-size: 1.15rem; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 16px 30px -10px rgba(37, 211, 102, .9); }
.btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn--ghost svg { transition: transform .25s var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #c6d0e2; font-size: .84rem; }
.topbar__inner { display: flex; gap: 28px; align-items: center; justify-content: flex-end; min-height: 40px; }
.topbar__inner > :first-child { margin-right: auto; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { color: var(--orange-500); width: 1em; height: 1em; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(20,33,61,.45); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; transition: min-height .3s; }
.header.is-scrolled .header__inner { min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; color: var(--navy-800); letter-spacing: .02em; }
.brand__text em { font-style: normal; color: var(--orange-500); }
.brand__text small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); font-weight: 600; margin-top: 3px; }
.brand--light strong { color: #fff; }
.brand--light small { color: #9fb6dd; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; color: var(--navy-800);
  padding: 8px 14px; border-radius: 99px; position: relative; transition: color .2s;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover::after, .nav > a.is-current::after { transform: scaleX(1); }
.nav > a.is-current { color: var(--orange-500); }
.nav__cta { margin-left: 12px; padding: 11px 20px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-800); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slides { z-index: -3; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay { z-index: -2; background: linear-gradient(100deg, rgba(13,23,48,.96) 0%, rgba(20,33,61,.88) 42%, rgba(28,46,84,.55) 75%, rgba(28,46,84,.35) 100%); }
.hero__stripes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__stripes i { position: absolute; top: -20%; height: 140%; transform: skewX(-24deg); }
.hero__stripes i:nth-child(1) { left: -6%; width: 60px; background: var(--orange-500); opacity: .95; animation: slideIn 1.2s var(--ease) both; }
.hero__stripes i:nth-child(2) { left: calc(-6% + 80px); width: 26px; background: var(--blue-500); opacity: .9; animation: slideIn 1.2s .15s var(--ease) both; }
.hero__stripes i:nth-child(3) { right: -4%; width: 140px; background: linear-gradient(180deg, transparent, rgba(232,100,27,.25)); }
@keyframes slideIn { from { transform: skewX(-24deg) translateY(-100%); } to { transform: skewX(-24deg) translateY(0); } }

.hero__inner { display: grid; grid-template-columns: 1.35fr .8fr; gap: 56px; align-items: center; padding: 90px 0 110px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #d3dcec; max-width: 620px; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #c6d0e2; font-size: .95rem; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { color: var(--orange-500); }

.hero__card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px); border-radius: var(--radius); padding: 18px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero__card img { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; width: 100%; margin: 14px 0 16px; }
.hero__card h3 { color: #fff; margin-bottom: 4px; font-size: 1.3rem; }
.hero__card p { margin: 0; color: #d3dcec; }
.hero__card small { display: block; color: #9fb0cc; margin-top: 2px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #ffb68a; font-family: var(--font-head); font-weight: 600; }
.link-btn svg { transition: transform .25s var(--ease); }
.link-btn:hover svg { transform: translateX(4px); }

.hero__dots { position: absolute; bottom: 34px; left: 0; right: 0; display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--orange-500); animation: dotFill 6s linear forwards; transform-origin: left; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Cifras ---------- */
.stats { position: relative; z-index: 2; margin-top: -54px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 30px 28px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before { content: ""; position: absolute; left: 28px; top: 0; width: 36px; height: 4px; background: var(--orange-500); border-radius: 0 0 4px 4px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--navy-800); line-height: 1.1; }
.stat > span { font-size: .93rem; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; aspect-ratio: 1 / 1.02; }
.about__img { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about__img:hover img { transform: scale(1.05); }
.about__img--a { inset: 0 22% 22% 0; }
.about__img--b { inset: 46% 0 0 34%; border: 8px solid #fff; }
.about__media::before { content: ""; position: absolute; left: -26px; bottom: 6%; width: 40%; height: 46%; background: repeating-linear-gradient(-60deg, var(--orange-500) 0 4px, transparent 4px 14px); opacity: .35; border-radius: 12px; z-index: -1; }
.about__badge {
  position: absolute; left: 6%; bottom: 6%; background: var(--orange-500); color: #fff;
  padding: 18px 22px; border-radius: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  font-family: var(--font-head);
}
.about__badge b { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: .9rem; line-height: 1.2; font-weight: 500; }
.about__text p { font-size: 1.05rem; }
.about__text strong { color: var(--ink); }
.about__sub { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-600); margin-top: 28px; }
.sectors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sectors li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.sectors li svg { color: var(--blue-600); transition: color .25s; }
.sectors li:hover { background: var(--navy-800); color: #fff; transform: translateY(-3px); }
.sectors li:hover svg { color: var(--orange-500); }

/* ---------- Servicios ---------- */
.services { background: var(--navy-800); color: #c6d0e2; overflow: hidden; }
.services h2, .services .section__head p { color: #fff; }
.services .section__head p { color: #b4c1d8; }
.services__bg { position: absolute; inset: 0; background: url(../img/vrf-techo.jpg) center/cover; opacity: .08; }
.services__bg::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 140%; background: linear-gradient(var(--orange-500), transparent); transform: skewX(-24deg); opacity: .14; }

.tabs { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 44px; padding: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 99px; font-family: var(--font-head); font-weight: 600; color: #b4c1d8; transition: color .3s; }
.tab.is-active { color: #fff; }
.tabs__ink { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 99px; background: var(--orange-500); transition: transform .4s var(--ease), width .4s var(--ease); box-shadow: 0 8px 20px -8px rgba(232,100,27,.8); }

.tabpanel { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--orange-500), var(--blue-500)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.svc:hover::before { transform: scaleX(1); }
.svc h3 { color: #fff; }
.svc p { font-size: .97rem; color: #b4c1d8; }
.svc__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--orange-500), #f08a4b); color: #fff; margin-bottom: 20px; box-shadow: 0 10px 20px -10px rgba(232,100,27,.9); }
.svc__icon svg { width: 28px; height: 28px; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: #7ff0a8; }
.svc__link svg { transition: transform .25s var(--ease); }
.svc__link:hover svg { transform: scale(1.2) rotate(-8deg); }

.res { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.res__img { position: relative; border-radius: var(--radius); }
.res__img > img:first-child { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.res__avatar { position: absolute; right: -10px; bottom: 0; width: 46%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); border-radius: 0 0 var(--radius) 0; }
.res__list { display: grid; gap: 18px; }
.svc--row { display: flex; gap: 20px; align-items: flex-start; padding: 24px; }
.svc--row .svc__icon { margin: 0; }
.svc--row p { margin-bottom: 10px; }

/* ---------- Por qué ---------- */
.why { background: var(--bg-soft); overflow: hidden; }
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.why__intro h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.why__avatar { width: min(360px, 90%); margin-top: 20px; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: r; }
.reason {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; padding: 22px 24px;
  border-radius: var(--radius); border: 1px solid var(--line); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.reason::after { counter-increment: r; content: "0" counter(r); position: absolute; right: 22px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--blue-100); line-height: 1; }
.reason:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.reason h3 { margin-bottom: 4px; }
.reason p { margin: 0; font-size: .97rem; padding-right: 40px; }
.reason__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: var(--orange-500); flex-shrink: 0; transition: background .3s, color .3s; }
.reason:hover .reason__icon { background: var(--orange-500); color: #fff; }
.reason__icon svg { width: 24px; height: 24px; }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__n {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line); font-family: var(--font-head); font-weight: 800;
  font-size: 1.3rem; color: var(--navy-800); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.step:hover .step__n { background: var(--orange-500); border-color: var(--orange-500); color: #fff; transform: scale(1.08); }
.step p { font-size: .97rem; }

/* ---------- Proyectos ---------- */
.projects { background: var(--bg-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--navy-800); transition: all .25s; }
.filter:hover { border-color: var(--navy-800); }
.filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 18px; grid-auto-flow: dense; }
.pcard {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left;
  background: var(--navy-800); color: #fff; padding: 0; display: block; width: 100%; height: 100%;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pcard--wide { grid-column: span 2; }
.pcard--tall { grid-row: span 2; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(13,23,48,.92)); transition: opacity .4s; }
.pcard:hover img { transform: scale(1.07); }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 1; }
.pcard__body .tag { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); margin-bottom: 10px; }
.pcard__body h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.pcard__body p { margin: 0; color: #ffb68a; font-weight: 600; font-size: .92rem; font-family: var(--font-head); }
.pcard__zoom { position: absolute; top: 16px; right: 16px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); color: #fff; opacity: 0; transform: scale(.6); transition: all .35s var(--ease); }
.pcard:hover .pcard__zoom, .pcard:focus-visible .pcard__zoom { opacity: 1; transform: none; }
.pcard__count { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(13,23,48,.6); backdrop-filter: blur(6px); }
.pcard.is-hidden { display: none; }
.pcard--flat.pcard--wide { grid-column: auto; }
.pcard--flat.pcard--tall { grid-row: auto; }
.pcard.is-new { animation: fadeUp .5s var(--ease) both; }

/* ---------- Clientes ---------- */
.clients { overflow: hidden; }
.marquee { position: relative; overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.logo-chip { width: 190px; height: 104px; flex-shrink: 0; display: grid; place-items: center; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.logo-chip img { max-height: 64px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; }
.logo-chip:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-chip:hover img { filter: none; opacity: 1; }

/* ---------- Fundador ---------- */
.founder { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.founder__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.founder__media { position: relative; display: flex; justify-content: center; }
.founder__media img { position: relative; width: min(340px, 80%); filter: drop-shadow(0 30px 40px rgba(20,33,61,.3)); }
.founder__shape { position: absolute; inset: 12% 6% 0; border-radius: 28px; background: var(--navy-800); overflow: hidden; }
.founder__shape::before, .founder__shape::after { content: ""; position: absolute; top: -20%; height: 140%; transform: skewX(-24deg); }
.founder__shape::before { left: 18%; width: 46px; background: var(--orange-500); }
.founder__shape::after { left: calc(18% + 62px); width: 18px; background: var(--blue-500); }
.founder__text h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.founder__text p { font-size: 1.04rem; }
.founder__text strong { color: var(--orange-500); }
blockquote { margin: 28px 0 0; padding: 26px 28px; border-left: 4px solid var(--orange-500); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); line-height: 1.5; }
blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: .9rem; color: var(--blue-600); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(circle at 85% 20%, #26407a, var(--navy-800) 55%, var(--navy-900)); color: #c6d0e2; overflow: hidden; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.contact__stripes { position: absolute; inset: 0; pointer-events: none; }
.contact__stripes i { position: absolute; top: -20%; height: 140%; transform: skewX(-24deg); }
.contact__stripes i:first-child { right: 30%; width: 90px; background: var(--orange-500); opacity: .12; }
.contact__stripes i:last-child { right: calc(30% - 40px); width: 22px; background: var(--blue-500); opacity: .2; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.contact__main > p { font-size: 1.08rem; color: #b4c1d8; max-width: 560px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.quick__item { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 600; font-size: .95rem; transition: all .25s var(--ease); }
.quick__item:hover { background: var(--wa); border-color: var(--wa); transform: translateY(-2px); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--red { background: #ff5a4f; box-shadow: 0 0 0 0 rgba(255,90,79,.7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255,90,79,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,79,0); } }

.contact__card { position: relative; background: #fff; border-radius: 24px; padding: 110px 26px 22px; box-shadow: var(--shadow-lg); margin-top: 80px; }
.contact__avatar { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 260px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact__list a, .contact__static { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--ink); font-weight: 600; transition: background .25s; }
.contact__list a:hover { background: var(--bg-soft); }
.contact__list span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-100); color: var(--orange-500); flex-shrink: 0; }
.contact__list small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9aa8c2; padding: 70px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer p { margin-top: 18px; max-width: 340px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--orange-500); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: flex-end; gap: 12px; }
.wa-float__btn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(37,211,102,.8); position: relative; transition: transform .3s var(--ease); }
.wa-float__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: waPulse 2.2s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float__btn:hover { transform: scale(1.08); }
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__bubble { position: relative; display: flex; align-items: center; gap: 10px; width: 270px; background: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); margin-bottom: 30px; opacity: 0; transform: translateY(10px) scale(.95); pointer-events: none; transition: all .4s var(--ease); }
.wa-float__bubble.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float__bubble img { width: 52px; height: 52px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--blue-100); }
.wa-float__bubble p { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--text); }
.wa-float__bubble strong { color: var(--ink); display: block; }
.wa-float__close { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; }
.wa-float__close svg { width: 12px; height: 12px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(8,14,30,.86); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__panel { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); display: grid; grid-template-columns: 1.6fr 1fr; background: #fff; border-radius: 22px; overflow: hidden; animation: fadeUp .4s var(--ease); }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); transition: background .2s, color .2s; }
.lightbox__close:hover { background: var(--orange-500); color: #fff; }
.lightbox__stage { position: relative; background: var(--navy-900); min-height: 420px; display: grid; place-items: center; }
.lightbox__stage img { width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: contain; animation: fade .35s; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); transition: background .2s, color .2s; }
.lightbox__nav:hover { background: var(--orange-500); color: #fff; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__nav--next svg { transform: rotate(180deg); }
.lightbox__count { position: absolute; bottom: 14px; left: 14px; color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.45); }
.lightbox__info { padding: 36px 30px 30px; overflow-y: auto; display: flex; flex-direction: column; }
.lightbox__info h3 { font-size: 1.5rem; margin: 14px 0 6px; }
#lbClient { color: var(--orange-500); font-family: var(--font-head); font-weight: 600; }
.lightbox__desc { font-size: .98rem; }
.lightbox__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 22px; }
.lightbox__thumbs button { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; padding: 0; }
.lightbox__thumbs button.is-active, .lightbox__thumbs button:hover { opacity: 1; border-color: var(--orange-500); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__info .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Transición entre páginas ---------- */
@view-transition { navigation: auto; }
main { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 110px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.page-hero__inner { max-width: 820px; margin-left: max(20px, calc((100% - 1200px) / 2)); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.page-hero p { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #d3dcec; max-width: 620px; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #9fb0cc; margin-bottom: 18px; font-weight: 600; }
.crumbs a { color: #ffb68a; }
.crumbs a:hover { color: #fff; }

/* ---------- Inicio: tarjetas de secciones ---------- */
.explore__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ecard { position: relative; display: block; height: 440px; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--navy-800); box-shadow: var(--shadow); }
.ecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ecard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,48,.1) 20%, rgba(13,23,48,.95) 85%); transition: background .4s; }
.ecard:hover img { transform: scale(1.08); }
.ecard:hover::after { background: linear-gradient(180deg, rgba(20,33,61,.35) 0%, rgba(13,23,48,.97) 75%); }
.ecard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 24px; display: block; }
.ecard__body small { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--orange-500); }
.ecard__body h3 { color: #fff; font-size: 1.6rem; margin: 4px 0 8px; }
.ecard__body p { color: #c6d0e2; font-size: .95rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.ecard:hover .ecard__body p, .ecard:focus-visible .ecard__body p { max-height: 120px; opacity: 1; margin-bottom: 14px; }
.ecard__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: #ffb68a; }
.ecard__go svg { transition: transform .25s var(--ease); }
.ecard:hover .ecard__go svg { transform: translateX(5px); }
@media (hover: none) { .ecard__body p { max-height: none; opacity: 1; margin-bottom: 14px; } }

.clients--home { padding-top: 0; }
.clients__more { text-align: center; margin-top: 30px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--blue-600); }
.link-more:hover { color: var(--orange-500); }
.link-more svg { transition: transform .25s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Página de clientes ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.logo-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 16px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.logo-card div { height: 90px; display: grid; place-items: center; }
.logo-card img { max-height: 80px; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s, opacity .35s; }
.logo-card figcaption { margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--muted); line-height: 1.35; }
.logo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.logo-card:hover img { filter: none; opacity: 1; }

/* ---------- Franja de llamado a la acción ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--navy-800), #24407a); color: #c6d0e2; padding: 64px 0; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; top: -30%; height: 160%; transform: skewX(-24deg); }
.cta-band::before { right: 22%; width: 70px; background: var(--orange-500); opacity: .2; }
.cta-band::after { right: calc(22% - 34px); width: 18px; background: var(--blue-500); opacity: .35; }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Página de contacto ---------- */
.contact--page { min-height: min(calc(100vh - 120px), 900px); display: flex; align-items: center; }
.contact--page h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav > a:not(.btn) { padding: 8px 10px; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 130px; }
  .hero__card { max-width: 440px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .explore__grid { grid-template-columns: repeat(2, 1fr); }
  .ecard { height: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  /* backdrop-filter crearía un bloque contenedor para el menú fijo */
  .header { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch;
    gap: 4px; padding: 100px 24px 24px; background: #fff; box-shadow: -20px 0 50px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav > a:not(.btn) { font-size: 1.15rem; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 20px 0 0; }
  .burger { z-index: 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about__grid, .why__grid, .founder__grid, .contact__grid, .res { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .why__avatar { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .lightbox__panel { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox__stage { min-height: 0; aspect-ratio: 4/3; }
  .lightbox__stage img { max-height: none; }
  .contact__card { max-width: 480px; }
  .res__img { max-width: 480px; }
}

@media (max-width: 640px) {
  .hide-sm, .topbar .hide-sm { display: none; }
  .hero__stripes i:nth-child(1) { left: -22%; opacity: .55; }
  .hero__stripes i:nth-child(2) { left: calc(-22% + 80px); opacity: .45; }
  .reason::after { display: none; }
  .reason p { padding-right: 0; }
  .topbar__inner { gap: 14px; }
  .container { width: calc(100% - 32px); }
  .brand__text strong { font-size: 1.02rem; }
  .brand__text small { font-size: .6rem; }
  .hero__inner { padding: 60px 0 120px; gap: 36px; }
  .hero__ctas .btn { width: 100%; }
  .stat { padding: 22px 18px; }
  .stat::before { left: 18px; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 14px; font-size: .9rem; }
  .pgrid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .pcard--wide { grid-column: auto; }
  .pcard--tall { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn--xl { width: 100%; padding: 18px 20px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__bubble { width: 220px; }
  .svc--row { flex-direction: column; }
  .logo-chip { width: 150px; height: 88px; }
  .explore__grid { grid-template-columns: 1fr; }
  .ecard { height: 300px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-card { padding: 16px 10px 12px; }
  .logo-card div { height: 70px; }
  .cta-band__btns, .cta-band__btns .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; }
  .reveal { opacity: 1; transform: none; }
}
