/* =====================================================================
   OPNEXA — styles.css
   Un solo archivo para todo el sitio público. Secciones:
   1 Variables · 2 Base · 3 Header · 4 Botones · 5 Hero · 6 Secciones
   7 Tarjetas · 8 Proyectos · 9 Contacto · 10 CTA · 11 Footer · 12 404
   13 Animaciones · 14 Responsive
   ===================================================================== */

/* 1 · VARIABLES ---------------------------------------------------- */
:root {
  --navy-950: #031a2f;
  --navy-900: #052845;
  --navy-800: #07365a;
  --teal: #1fd6c8;
  --teal-d: #10b3ad;
  --orange: #ff8f45;
  --blue: #1c63d8;
  --ink: #0b2238;
  --muted: #53677d;
  --line: #e2ebf2;
  --bg: #f3f8fb;
  --grad-cta: linear-gradient(90deg, #10c2bb 0%, #3bd0c0 45%, #ffa45f 100%);
  --grad-fill: linear-gradient(90deg, #0aa9b8, #1c7fe0);
  --radius: 16px;
  --shadow: 0 8px 26px rgba(9, 43, 74, .08);
  --shadow-up: 0 20px 44px rgba(9, 43, 74, .16);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --container: 1200px;
  --header-h: 64px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2 · BASE --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(31, 214, 200, .7); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3 · HEADER ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; color: #fff;
  background: linear-gradient(180deg, #041f38, #052a48);
  border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(2, 16, 30, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: auto; }
.brand .word { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.brand .sub { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 14px; font-size: 12px; line-height: 1.2; color: #dbe8f2; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); margin-left: auto; }
.nav a { position: relative; padding: 22px 0; font-size: 14px; font-weight: 500; color: #e4eef6; transition: color .25s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 3px; border-radius: 3px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.nav .nav-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; align-items: center; justify-content: center; }

/* 4 · BOTONES ------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; font-weight: 600; font-size: 15px; line-height: 1; padding: 15px 26px; border-radius: 999px; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease), color .3s;
}
.btn .ico { font-size: 18px; transition: transform .3s var(--ease); }
.btn-cta { color: #fff; background: var(--grad-cta); background-size: 150% 100%; background-position: 0 0; box-shadow: 0 8px 22px rgba(16, 194, 187, .28); }
.btn-cta:hover { transform: translate(2px, -2px); background-position: 100% 0; box-shadow: 0 0 0 4px rgba(31, 214, 200, .16), 0 12px 30px rgba(255, 143, 69, .38); }
.btn-cta:hover .ico { transform: translateX(4px); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 24px rgba(31, 214, 200, .25); transform: translateY(-2px); }
.btn-line {
  padding: 10px 18px; font-size: 14px; border-radius: 12px; color: #fff; border: 1.5px solid transparent;
  background: linear-gradient(#052b49, #052b49) padding-box, var(--grad-cta) border-box;
}
.btn-line:hover { transform: translate(2px, -1px); box-shadow: 0 0 0 3px rgba(31, 214, 200, .15), 0 8px 22px rgba(255, 143, 69, .28); }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #1a4fd0; }
.link-more .ico { font-size: 16px; transition: transform .3s var(--ease); }
.link-more:hover .ico { transform: translateX(5px); }
.round-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #8fdfe0; color: #0f8fa0; font-size: 17px; background: #fff; transition: background .3s, color .3s, transform .3s var(--ease); flex: none; }
.round-btn:hover { background: var(--teal-d); color: #fff; transform: translateX(3px); }

/* 5 · HERO --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(900px 420px at 85% 0%, rgba(24, 150, 190, .26), transparent 60%), linear-gradient(100deg, #031a2f 0%, #04243f 45%, #06304f 100%);
}
.hero::before { /* barrido de luz suave */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(140, 235, 255, .12) 47%, rgba(255, 190, 140, .08) 53%, transparent 65%);
  transform: translateX(-70%); animation: sweep 10s var(--ease) infinite; will-change: transform;
}
.hero-art { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: min(58%, 840px); pointer-events: none; }
.hero-art img {
  width: 100%; height: 100%; object-fit: contain; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.hero-art--fill img {
  object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
.hero-body { position: relative; z-index: 2; max-width: 660px; padding: 46px 0 56px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #d4e8f4; }
.eyebrow::before { content: ""; width: 48px; height: 5px; border-radius: 5px; background: var(--teal); box-shadow: 0 0 14px rgba(31, 214, 200, .6); }
.hero h1 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.hero h1 .l { display: block; }
.hero .lead { margin-top: 18px; max-width: 54ch; font-size: clamp(15px, 1.3vw, 17.5px); color: #d9e8f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.accent { color: var(--teal); }
.accent-warm { background: linear-gradient(90deg, #ffb066, #ff7f3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-grad { background: linear-gradient(90deg, #1fd6c8 10%, #ffa45f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-blue { background: linear-gradient(90deg, #1c63d8, #10b3c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--home .hero-body { max-width: 780px; padding-bottom: 40px; }
.hero--home .hero-art { width: min(52%, 700px); }
.hero--home h1 { font-size: clamp(26px, 3vw, 41px); }
.hero--wave::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px; z-index: 3; background: var(--bg); -webkit-mask: var(--wave) center/100% 100% no-repeat; mask: var(--wave) center/100% 100% no-repeat; }
.hero--wave { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 54' preserveAspectRatio='none'%3E%3Cpath d='M0 30C260 6 520 10 760 30s520 22 680-8V54H0z'/%3E%3C/svg%3E"); }
.hero--wave .hero-body { padding-bottom: 76px; }

.kpis { display: flex; flex-wrap: wrap; gap: 18px 0; margin-top: 34px; max-width: 760px; }
.kpi { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .2); }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi .ico { font-size: 30px; color: var(--teal); }
.kpi strong { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 12px; color: #b9d2e3; line-height: 1.25; max-width: 14ch; }

/* 6 · SECCIONES ---------------------------------------------------- */
.section { padding: clamp(36px, 4.6vw, 60px) 0; }
.section + .section { padding-top: 0; }
.title { position: relative; padding-top: 16px; font-size: clamp(24px, 2.5vw, 33px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.title::before { content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 5px; border-radius: 5px; background: var(--teal); }
.subtitle { margin-top: 10px; max-width: 72ch; color: var(--muted); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-row .subtitle { margin-top: 0; max-width: 46ch; }
.grid { display: grid; gap: 18px; margin-top: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }

.intro { display: grid; grid-template-columns: 1fr 1.7fr; gap: 28px 40px; align-items: center; padding: 26px 0 10px; }
.pill-tags { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 5px 14px; border-radius: 999px; background: #dff1f6; font-size: 13px; font-weight: 500; color: #0b4e6c; }
.pill-tags i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-d); display: inline-block; }

/* 7 · TARJETAS ----------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); border-color: #b8e6ea; }
.info-card { padding: 20px 20px 22px; }
.info-card .ico { font-size: 30px; color: #12a6b3; margin-bottom: 12px; stroke-width: 1.5; }
.info-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.info-card p { margin-top: 6px; font-size: 13.2px; color: var(--muted); line-height: 1.5; }
.info-card--center { text-align: center; }
.info-card--center .ico { margin-inline: auto; }
.icon-orange { color: #ff7f3f !important; }
.chip-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.chip-card .ico { font-size: 30px; color: #12a6b3; stroke-width: 1.5; }
.val-pill { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 500; text-align: center; border-radius: 12px; }
.val-pill .ico { font-size: 22px; color: #12a6b3; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.mv-card { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid #cfe5ee; background: linear-gradient(135deg, #eaf6f8, #dcedf5); }
.mv-card > .ico { font-size: 44px; color: #12a6b3; stroke-width: 1.4; }
.mv-card h3 { font-size: 18px; font-weight: 600; }
.mv-card p { margin-top: 6px; font-size: 13.5px; color: #35506a; }

.band-dark { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(100deg, #032038, #06375a 60%, #05304f); }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 12% 120%, rgba(31, 214, 200, .22), transparent 40%), radial-gradient(circle at 90% -20%, rgba(255, 143, 69, .16), transparent 40%); }
.band-dark--full { padding: 32px 0 34px; margin-block: clamp(28px, 4vw, 48px); }
.band-head { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
.band-head .title { color: #fff; font-size: clamp(22px, 2.2vw, 29px); }
.band-head p { max-width: 70ch; font-size: 14px; color: #cfe3f0; }
.dmaic { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 24px; }
.dmaic li { position: relative; padding: 0 10px; text-align: center; }
.dmaic .badge { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid var(--teal); background: #052b47; color: #fff; font-size: 23px; font-weight: 600; box-shadow: 0 0 20px rgba(31, 214, 200, .38); animation: ring 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .4s); }
.dmaic li:nth-child(4) .badge { border-color: var(--orange); box-shadow: 0 0 20px rgba(255, 143, 69, .45); }
.dmaic li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 36px); right: calc(-50% + 36px); height: 2px; background: linear-gradient(90deg, var(--teal), rgba(31, 214, 200, .35)); box-shadow: 0 0 10px rgba(31, 214, 200, .55); }
.dmaic h3 { font-size: 16px; font-weight: 600; }
.dmaic p { margin: 3px auto 0; max-width: 20ch; font-size: 12.6px; color: #b9d2e3; line-height: 1.4; }
.dmaic--light .badge { border: 0; color: #fff; box-shadow: 0 8px 18px rgba(8, 40, 70, .18); animation: none; }
.dmaic--light li:nth-child(1) .badge { background: #0b3c5d; }
.dmaic--light li:nth-child(2) .badge { background: #19c4b8; }
.dmaic--light li:nth-child(3) .badge { background: #2a6fe0; }
.dmaic--light li:nth-child(4) .badge { background: #ff8f45; }
.dmaic--light li:nth-child(5) .badge { background: #0a2f55; }
.dmaic--light li:not(:last-child)::after { top: 20px; left: auto; right: -5px; width: 10px; height: 10px; background: none; box-shadow: none; border-top: 2px solid #0a5fb0; border-right: 2px solid #0a5fb0; transform: rotate(45deg); }
.dmaic--light h3 { color: var(--ink); }
.dmaic--light p { color: var(--muted); }

.method { display: grid; grid-template-columns: 1fr 1.9fr; gap: 28px; align-items: center; margin-top: 8px; }
.method > p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.method .dmaic { margin-top: 0; }

/* Servicios */
.svc-card { display: flex; flex-direction: column; overflow: hidden; }
.svc-photo { position: relative; aspect-ratio: 260 / 112; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-card:hover .svc-photo img { transform: scale(1.05); }
.tile { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; font-size: 28px; color: #5ff0e4; background: linear-gradient(145deg, rgba(8, 60, 84, .92), rgba(5, 40, 66, .92)); border: 1px solid rgba(70, 225, 215, .55); box-shadow: 0 6px 18px rgba(2, 20, 36, .4), inset 0 0 14px rgba(31, 214, 200, .15); backdrop-filter: blur(4px); }
.svc-photo .tile { left: 20px; bottom: 5px; }
.svc-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 20px; }
.svc-body h3 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.svc-body > p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.checks { display: grid; gap: 5px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #33475c; line-height: 1.4; }
.checks .ico { margin-top: 3px; font-size: 14px; color: #12b0a8; stroke-width: 2.4; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; padding: 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.strip > div { display: flex; align-items: center; gap: 14px; padding: 8px 22px; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip .ico { font-size: 36px; color: #12a6b3; stroke-width: 1.5; }
.strip strong { font-size: 15px; font-weight: 600; line-height: 1.25; }

/* Soluciones */
.sol-card { display: grid; grid-template-columns: 44% 1fr; min-height: 192px; overflow: hidden; }
.sol-photo { position: relative; -webkit-clip-path: polygon(0 0, 92% 0, 74% 100%, 0 100%); clip-path: polygon(0 0, 92% 0, 74% 100%, 0 100%); overflow: hidden; }
.sol-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sol-card:hover .sol-photo img { transform: scale(1.06); }
.sol-photo .tile { top: 10px; left: 10px; width: 50px; height: 50px; font-size: 25px; }
.sol-body { display: flex; flex-direction: column; padding: 20px 18px 16px 4px; }
.sol-body h3 { font-size: 17px; font-weight: 700; line-height: 1.2; }
.sol-body p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.sol-body .round-btn { margin-top: auto; align-self: flex-end; }
.results { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); align-items: center; gap: 0; padding: 22px 30px; border-radius: 20px; margin-top: 30px; }
.results h2 { font-size: clamp(22px, 2.2vw, 29px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; padding-right: 20px; }
.results .r { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 14px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.2; border-left: 1px solid rgba(255, 255, 255, .18); }
.results .r .ico { font-size: 34px; color: var(--teal); stroke-width: 1.5; }

/* Nosotros */
.think { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; padding: 30px 40px; border-radius: 20px; margin-top: 30px; }
.think h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; padding-top: 16px; position: relative; }
.think h2::before { content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 5px; border-radius: 5px; background: var(--teal); }
.think p { margin-top: 12px; font-size: 14.5px; color: #cfe3f0; max-width: 40ch; }
.diagram { position: relative; width: min(100%, 520px); height: 170px; margin-inline: auto; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.diagram path { fill: none; stroke: rgba(31, 214, 200, .65); stroke-width: 1.5; }
.node { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: rgba(7, 54, 88, .85); border: 1.5px solid rgba(70, 225, 215, .75); box-shadow: 0 0 18px rgba(31, 214, 200, .25); }
.node .ico { font-size: 20px; color: var(--teal); }
.node:nth-of-type(1) { left: 0; top: 4px; }
.node:nth-of-type(2) { left: 0; bottom: 4px; }
.node:nth-of-type(3) { right: 0; top: 4px; }
.node:nth-of-type(4) { right: 0; bottom: 4px; }
.core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 138px; height: 138px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--teal); font-size: 20px; font-weight: 600; letter-spacing: .02em; background: radial-gradient(circle, #06355a 0%, #042640 75%); box-shadow: 0 0 34px rgba(31, 214, 200, .5), inset 0 0 28px rgba(31, 214, 200, .22); animation: glowpulse 4s ease-in-out infinite; }
.commit { display: grid; grid-template-columns: 1.1fr repeat(5, 1fr); align-items: center; margin-top: 30px; padding: 22px 10px; background: linear-gradient(90deg, #eaf2f8, #f5f9fc); border-radius: var(--radius); }
.commit h2 { padding: 16px 22px 0; position: relative; font-size: 22px; font-weight: 600; line-height: 1.15; }
.commit h2::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 5px; border-radius: 5px; background: var(--teal); }
.commit-h { align-self: center; }
.commit .c { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; border-left: 1px solid #d3e1ec; }
.commit .c .ico { font-size: 34px; color: #1a78c7; stroke-width: 1.4; }
.commit-sub { margin: 8px 22px 0; font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* 8 · PROYECTOS ---------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.f-all, .f-select { position: relative; display: inline-flex; align-items: center; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; background: linear-gradient(90deg, #0a9fb8 50%, #fff 50%) right / 200% 100% no-repeat; box-shadow: 0 4px 14px rgba(9, 43, 74, .06); transition: background-position .55s var(--ease), color .35s, box-shadow .35s, transform .3s var(--ease), border-color .35s; }
.f-all { padding: 0 34px; color: var(--ink); font-weight: 600; }
.f-all.on, .f-select.on { background-position: left; color: #fff; border-color: transparent; background-image: linear-gradient(90deg, #0a9fb8 50%, #0a9fb8 50%); }
.f-all.on { background-image: linear-gradient(90deg, #0a9fb8, #1c9bd8); background-size: 100%; }
.f-all:hover, .f-select:hover { background-position: left; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 159, 184, .3); border-color: transparent; }
.f-select > .ico { position: absolute; left: 16px; font-size: 20px; pointer-events: none; color: #1a78c7; transition: color .35s; }
.f-select > .caret { left: auto; right: 14px; font-size: 16px; }
.f-select:hover > .ico, .f-select.on > .ico { color: #fff; }
.f-select select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 40px 0 46px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 500; cursor: pointer; }
.f-select select option { color: var(--ink); background: #fff; }
.proj-card { display: flex; flex-direction: column; overflow: hidden; }
.proj-photo { position: relative; aspect-ratio: 360 / 130; overflow: hidden; background: #0b2a40; }
.proj-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj-card:hover .proj-photo img { transform: scale(1.05); }
.tags { position: absolute; left: 12px; top: 10px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.2; color: #fff; background: rgba(6, 28, 48, .88); backdrop-filter: blur(4px); }
.tag .ico { font-size: 14px; color: #8ee9e1; }
.tag.t2 { background: #14b79a; }
.proj-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.proj-body h3 { font-size: 18.5px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.proj-body p { margin-top: 8px; font-size: 13.8px; color: var(--muted); line-height: 1.5; }
.metrics { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.proj-body > p { margin-bottom: 14px; }
.metric { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.metric .ico { font-size: 26px; color: #12a6b3; stroke-width: 1.5; }
.metric strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.metric span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #bcd3e2; border-radius: var(--radius); }
.skeleton { min-height: 340px; background: linear-gradient(100deg, #eaf1f6 30%, #f6fafc 50%, #eaf1f6 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; border: 0; }

/* 9 · CONTACTO ----------------------------------------------------- */
.contact-layout { position: relative; z-index: 4; display: grid; grid-template-columns: 1.08fr 1fr; gap: 30px; margin-top: -30px; align-items: start; }
.form-card { padding: 26px 28px 28px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-up); border: 1px solid var(--line); }
.form-card h2, .side h2 { position: relative; padding-top: 16px; font-size: clamp(24px, 2.4vw, 31px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.form-card h2::before, .side h2::before { content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 5px; border-radius: 5px; background: var(--teal); }
.form-card > p, .side > p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.input { position: relative; }
.input > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #4f6e8a; pointer-events: none; transition: color .25s; }
.input--area > .ico { top: 22px; transform: none; }
.input input, .input select, .input textarea { width: 100%; padding: 12px 14px 12px 44px; border: 1.5px solid #cfdbe6; border-radius: 12px; background: #f8fbfd; font-size: 14px; outline: 0; transition: border-color .25s, box-shadow .25s, background .25s; }
.input select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23284a66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input textarea { min-height: 112px; resize: vertical; padding-top: 14px; }
.input input::placeholder, .input textarea::placeholder { color: #8394a6; }
.input input:focus, .input select:focus, .input textarea:focus { border-color: var(--teal-d); background: #fff; box-shadow: 0 0 0 4px rgba(31, 214, 200, .18), 0 6px 24px rgba(31, 214, 200, .2); }
.input:focus-within > .ico { color: var(--teal-d); }
.input input:user-invalid, .input textarea:user-invalid, .input select:user-invalid { border-color: #e0634d; }
.btn-send { margin-top: 4px; padding: 17px 26px; font-size: 16px; color: #fff; background: linear-gradient(90deg, #0a6f86 0%, #12a7a4 55%, #ff9a50 100%); background-size: 140% 100%; box-shadow: 0 10px 26px rgba(10, 111, 134, .28); border-radius: 14px; }
.btn-send:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(31, 214, 200, .16), 0 14px 32px rgba(255, 143, 69, .32); }
.btn-send[disabled] { opacity: .65; pointer-events: none; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; font-weight: 500; }
.form-status.ok { color: #0b8a55; }
.form-status.err { color: #c2412d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.side { padding-top: 38px; }
.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.tile-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tile-link:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); border-color: #b8e6ea; }
.tile-link .ico { font-size: 38px; color: #12a6b3; stroke-width: 1.5; }
.tile-link strong { font-size: 15px; font-weight: 600; }
.tile-link span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.3; }
.write { position: relative; display: grid; grid-template-columns: 44% 1fr; gap: 10px; align-items: center; margin-top: 22px; padding: 22px 26px 22px 0; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, #e6f4fb, #d3e8f6); border: 1px solid #c6def0; }
.write img { width: 100%; height: 100%; max-height: 190px; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.write h3 { position: relative; padding-top: 14px; margin-bottom: 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.write h3::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 5px; border-radius: 5px; background: var(--teal); }
.write li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; font-weight: 500; }
.write .ico { font-size: 22px; color: #fff; background: #19c4b8; border-radius: 50%; padding: 4px; stroke-width: 2.6; }

/* 10 · CTA --------------------------------------------------------- */
.cta-wrap { padding: clamp(30px, 4vw, 52px) 0 clamp(36px, 4.4vw, 60px); }
.cta { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 28px; padding: clamp(26px, 3.4vw, 38px) clamp(24px, 4vw, 56px); border-radius: 22px; color: #fff; background: linear-gradient(100deg, #04233e, #06375a 70%, #05365a); box-shadow: 0 18px 44px rgba(4, 30, 54, .28); }
.cta::before { content: ""; position: absolute; z-index: -1; left: -90px; bottom: -58px; width: 300px; height: 80px; background: linear-gradient(100deg, #17c8c0 0%, #1fd6c8 40%, #ff9a50 100%); opacity: .85; transform: skewX(-36deg); border-radius: 60px; filter: blur(.5px); }
.cta--noswoosh::before { display: none; }
.cta .tile-lg { display: grid; place-items: center; flex: none; width: 74px; height: 74px; border-radius: 18px; border: 1.5px solid rgba(31, 214, 200, .7); background: rgba(31, 214, 200, .08); font-size: 36px; color: var(--teal); box-shadow: 0 0 22px rgba(31, 214, 200, .22); }
.cta .txt { position: relative; z-index: 2; flex: 1; min-width: 0; max-width: 62ch; }
.cta h2 { font-size: clamp(22px, 2.4vw, 31px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.cta p { margin-top: 8px; color: #cfe3f0; font-size: 15px; }
.cta .btn { position: relative; z-index: 2; flex: none; }
.cta .txt .btn { margin-top: 20px; }
.cta-art { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 44%; }
.cta-art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.cta--left { padding-left: clamp(24px, 38%, 480px); justify-content: space-between; }
.cta--left::before { display: none; }
.cta--left .cta-art { right: auto; left: 0; width: 40%; }
.cta--left .cta-art img { -webkit-mask-image: linear-gradient(270deg, transparent, #000 38%); mask-image: linear-gradient(270deg, transparent, #000 38%); }
.cta--right { padding-right: clamp(24px, 40%, 520px); }
.cta--center { flex-direction: column; text-align: center; justify-content: center; }
.cta--center .txt { max-width: 70ch; }
.cta--center::before { left: auto; right: -80px; }

/* 11 · FOOTER ------------------------------------------------------ */
.site-footer { color: #b5cadb; font-size: 13.5px; background: var(--navy-950); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 30px; padding: 38px 0 26px; }
.foot-grid .brand .word { color: #fff; }
.foot-grid p { margin-top: 12px; max-width: 34ch; }
.foot-grid h4 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { transition: color .25s; }
.foot-grid a:hover { color: var(--teal); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 12.5px; color: #8fa8bc; }

/* 12 · PÁGINA 404 -------------------------------------------------- */
.nf { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); padding: 56px 0 72px; text-align: center; color: #fff; background: radial-gradient(800px 420px at 50% 0%, rgba(24, 150, 190, .3), transparent 65%), linear-gradient(120deg, #031a2f, #05294a 60%, #063552); }
.nf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 90%, rgba(255, 143, 69, .2), transparent 38%); }
.nf-orbit { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(120vw, 980px); aspect-ratio: 2.5; margin: calc(min(120vw, 980px) / -5) 0 0 calc(min(120vw, 980px) / -2); border-radius: 50%; border: 2px solid rgba(31, 214, 200, .35); border-top-color: var(--orange); border-left-color: rgba(31, 214, 200, .8); box-shadow: 0 0 40px rgba(31, 214, 200, .18), inset 0 0 40px rgba(31, 214, 200, .08); animation: orbit 22s linear infinite; }
.nf-orbit.b { width: min(96vw, 760px); margin: calc(min(96vw, 760px) / -5) 0 0 calc(min(96vw, 760px) / -2); border-color: rgba(255, 255, 255, .1); border-bottom-color: rgba(31, 214, 200, .55); animation-duration: 30s; animation-direction: reverse; box-shadow: none; }
.nf-logo { width: 88px; margin: 0 auto 6px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(31, 214, 200, .35)); }
.nf-code { font-size: clamp(96px, 22vw, 210px); font-weight: 700; line-height: 1; letter-spacing: -.06em; background: linear-gradient(90deg, #1fd6c8 5%, #8aeee4 45%, #ffa45f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 40px rgba(31, 214, 200, .3)); }
.nf h1 { margin-top: 4px; font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.02em; }
.nf p { margin: 12px auto 0; max-width: 48ch; color: #cfe3f0; }
.nf .hero-actions { justify-content: center; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: #9fc1d8; }
.nf-links a { transition: color .25s; }
.nf-links a:hover { color: var(--teal); }

/* 13 · ANIMACIONES (sutiles y no invasivas) ------------------------ */
@keyframes sweep { 0% { transform: translateX(-70%); } 45%, 100% { transform: translateX(70%); } }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(31, 214, 200, 0)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 7px rgba(31, 214, 200, .5)); } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 14px rgba(31, 214, 200, .3); } 50% { box-shadow: 0 0 28px rgba(31, 214, 200, .6); } }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 28px rgba(31, 214, 200, .4), inset 0 0 24px rgba(31, 214, 200, .18); } 50% { box-shadow: 0 0 46px rgba(31, 214, 200, .65), inset 0 0 34px rgba(31, 214, 200, .3); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pulse { animation: pulse 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s); transform-origin: center; }
.card:hover .pulse, .tile-link:hover .pulse { animation-duration: 1.6s; }

/* Aparición al hacer scroll: solo si hay JavaScript */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.card:hover { transition-delay: 0s; transform: translateY(-6px); }

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

/* 14 · RESPONSIVE -------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: repeat(4, 1fr); }
  .results h2 { grid-column: 1 / -1; padding: 0 0 16px; }
  .results .r:nth-child(2) { border-left: 0; }
  .commit { grid-template-columns: repeat(5, 1fr); }
  .commit-h { grid-column: 1 / -1; padding-bottom: 12px; }
  .commit .c:nth-of-type(1) { border-left: 0; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 0; margin: 0; padding: 6px 24px 20px; background: #052a48; border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 30px rgba(2, 16, 30, .35); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a::after { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 16px; border-bottom: 0; justify-content: center; padding: 12px 18px; }
  .hero-art { width: 70%; opacity: .55; }
  .hero-body, .hero--home .hero-body { max-width: none; }
  .hero--home .hero-art { width: 70%; }
  .contact-layout { grid-template-columns: 1fr; margin-top: -20px; }
  .side { padding-top: 10px; }
  .intro, .method, .think { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mv { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta--right, .cta--left { padding: 28px 24px; }
  .cta-art { width: 100%; opacity: .22; }
  .cta-art img { -webkit-mask-image: none; mask-image: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(3) { border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .brand .sub { display: none; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--container)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 0 16px; }
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .dmaic { grid-template-columns: 1fr; gap: 18px; }
  .dmaic li { display: grid; grid-template-columns: 54px 1fr; text-align: left; gap: 0 14px; align-items: center; }
  .dmaic .badge { grid-row: span 2; margin: 0; }
  .dmaic p { margin: 0; max-width: none; }
  .dmaic li::after, .dmaic--light li:not(:last-child)::after { display: none; }
  .form { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .contact-tiles { grid-template-columns: 1fr 1fr; }
  .write { grid-template-columns: 1fr; padding: 0 20px 22px; }
  .write img { max-height: 150px; -webkit-mask-image: none; mask-image: none; margin: 0 -20px; width: calc(100% + 40px); }
  .sol-card { grid-template-columns: 38% 1fr; }
  .results { grid-template-columns: repeat(2, 1fr); row-gap: 18px; padding: 22px 18px; }
  .results .r:nth-child(2), .results .r:nth-child(4) { border-left: 0; }
  .commit { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .commit .c:nth-of-type(odd) { border-left: 0; }
  .diagram { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .diagram svg, .core { display: none; }
  .node { position: static !important; justify-content: center; }
  .strip { grid-template-columns: 1fr; }
  .strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .hero--wave .hero-body { padding-bottom: 64px; }
  .proj-body h3 { font-size: 17.5px; }
}
