/* =========================================================
   COPRELEC Consultores — Hoja de estilos principal
   Paleta tomada del logotipo: pizarra #365B6D · turquesa #03989E
   ========================================================= */

:root {
  --navy-950: #071820;
  --navy-900: #0b2230;
  --navy-800: #102f40;
  --navy-700: #1a4254;
  --slate: #365b6d;
  --slate-400: #6d8b99;
  --teal: #03989e;
  --teal-600: #027b80;
  --teal-400: #2fb8bb;
  --teal-100: #d5efef;
  --teal-50: #edf8f8;
  --ink: #122530;
  --text: #3d525d;
  --muted: #6b7f89;
  --line: #dbe5e9;
  --bg: #ffffff;
  --bg-soft: #f2f6f7;
  --warn: #f2c230;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-label: "Montserrat", "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 48, .06), 0 2px 8px rgba(11, 34, 48, .05);
  --shadow: 0 10px 30px -12px rgba(11, 34, 48, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 34, 48, .35);
  --container: 1200px;
  --nav-h: 78px;
  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--navy-900); color: #b9cbd3; }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-label);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.bg-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--teal-400); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.bg-dark .section-head p { color: #a3b8c2; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section-head-row .section-head { margin-bottom: 0; }

.lead { font-size: 1.2rem; color: var(--text); }
.text-teal { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-label); font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { font-size: 1.15em; transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(3, 152, 158, .7); }
.btn-primary:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--slate); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: #fff; background: #fff; color: var(--navy-900); }
.btn-outline-dark { border-color: var(--slate); color: var(--slate); }
.btn-outline-dark:hover { background: var(--slate); color: #fff; }
.btn-white { background: #fff; color: var(--navy-900); }
.btn-white:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600);
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #9fb4be; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 20px; }
.topbar a { color: #c9d8de; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--teal-400); }
.topbar .icon { color: var(--teal-400); }
.topbar-contact, .topbar-meta { display: flex; align-items: center; gap: 26px; }
.topbar-meta .social { display: flex; gap: 14px; margin-top: 0; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .12); }
.topbar-meta .social .icon { color: inherit; font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: 0 8px 24px -12px rgba(11, 34, 48, .3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { height: 50px; width: auto; }
.brand-word { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a:not(.btn) {
  position: relative; display: block; padding: 10px 14px;
  font-family: var(--font-label); font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-menu a:not(.btn):hover { color: var(--teal-600); }
.nav-menu a.active::after, .nav-menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--teal-600); }
.nav-cta { margin-left: 14px; }
.nav-cta .btn { padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(3, 152, 158, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 70%);
  color: #c3d4db;
  padding: 96px 0 150px;
}
.hero::before {
  /* Retícula técnica tipo plano */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--bg); clip-path: polygon(0 100%, 100% 30%, 100% 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 .accent { color: var(--teal-400); display: block; }
.hero-text { font-size: 1.2rem; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 30px; list-style: none; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #e2ecef; font-size: .98rem; }
.hero-points .icon { color: var(--teal-400); font-size: 1.2rem; }

.hero-visual { position: relative; height: 580px; }
.hex-img { position: absolute; clip-path: var(--hex); overflow: hidden; background: var(--navy-700); }
.hex-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hex-main { width: 460px; height: 520px; right: 0; top: 10px; }
.hero-visual .hex-small { width: 230px; height: 260px; left: -10px; bottom: -20px; border: 0; box-shadow: none; }
.hex-outline { position: absolute; color: var(--teal); opacity: .9; }
.hero-visual .hex-outline.o1 { width: 170px; left: 30px; top: 30px; opacity: .55; }
.hero-visual .hex-outline.o2 { width: 110px; right: -20px; top: -30px; color: var(--teal-400); }
.hero-badge {
  position: absolute; right: 30px; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
}
.hero-badge .badge-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; font-size: 1.5rem; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.hero-badge span { font-size: .85rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { position: relative; z-index: 2; margin-top: -70px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.trust-item { display: flex; gap: 16px; padding: 30px 28px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .icon { font-size: 2rem; color: var(--teal); margin-top: 2px; }
.trust-item h4 { font-size: 1.2rem; margin-bottom: 4px; }
.trust-item p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 32px 32px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--slate));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1;
  color: var(--bg-soft); transition: color .3s;
}
.service-card:hover .service-num { color: var(--teal-50); }
.service-icon {
  position: relative; width: 64px; height: 72px; margin-bottom: 26px;
  display: grid; place-items: center; color: #fff; font-size: 1.8rem;
}
.service-icon::before { content: ""; position: absolute; inset: 0; background: var(--slate); clip-path: var(--hex); transition: background .3s; }
.service-icon .icon { position: relative; }
.service-card:hover .service-icon::before { background: var(--teal); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { font-size: 1rem; color: var(--muted); flex: 1; }
.service-card .link-arrow { margin-top: 8px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > *, .svc-grid > *, .contact-grid > *, .hero-grid > * { min-width: 0; }
.about-media { position: relative; padding: 0 60px 60px 0; }
.about-media .img-main { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.about-media .img-inset {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius-lg); border: 8px solid #fff; box-shadow: var(--shadow-lg);
}
.about-media .tag {
  position: absolute; left: -18px; top: 40px;
  background: var(--teal); color: #fff; padding: 16px 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; text-transform: uppercase;
  box-shadow: var(--shadow);
}
.about-media .tag small { display: block; font-family: var(--font-label); font-size: .68rem; letter-spacing: .15em; font-weight: 600; opacity: .85; }
.check-list { list-style: none; display: grid; gap: 14px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--teal-50); color: var(--teal); display: grid; place-items: center; font-size: .9rem;
}
.check-list .check .icon { stroke-width: 3; }
.check-list strong { color: var(--ink); }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }

/* ---------- Sectors ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector-card {
  position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; color: #d7e3e8;
  isolation: isolate;
}
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.sector-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 24, 32, .05) 20%, rgba(7, 24, 32, .92) 85%); }
.sector-card:hover img { transform: scale(1.06); }
.sector-card .sector-icon { font-size: 1.8rem; color: var(--teal-400); margin-bottom: 14px; }
.sector-card h3 { color: #fff; font-size: 1.8rem; text-transform: uppercase; margin-bottom: 8px; }
.sector-card p { margin: 0; font-size: .98rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.process-grid::before {
  content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(47, 184, 187, .6) 0 10px, transparent 10px 20px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative; width: 72px; height: 72px; margin: 0 auto 24px;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
}
.step-num::before { content: ""; position: absolute; inset: 0; clip-path: var(--hex); background: var(--teal); }
.step-num::after { content: ""; position: absolute; inset: -8px; clip-path: var(--hex); background: rgba(47, 184, 187, .18); z-index: -1; }
.step-num span { position: relative; }
.step h4 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { font-size: .97rem; margin: 0; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 18px; }
.project {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in;
  background: var(--navy-800); isolation: isolate; border: 0; padding: 0; text-align: left; font: inherit;
}
.project.tall { grid-row: span 2; }
.project.wide { grid-column: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 24, 32, .9)); transition: opacity .3s; }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px; color: #fff; }
.project-cat {
  display: inline-block; font-family: var(--font-label); font-size: .66rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; background: var(--teal); padding: 5px 10px; border-radius: 3px; margin-bottom: 10px;
}
.project-info h4 { color: #fff; font-size: 1.3rem; margin: 0; }
.project:hover img { transform: scale(1.06); }
.project.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-label); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 40px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-600); }
.filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(5, 16, 22, .94); padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #dfe9ed; text-align: center; margin-top: 18px; }
.lightbox figcaption strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.4rem; display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: var(--teal); border-color: var(--teal); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Tools / software ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tools-grid.two { grid-template-columns: 1fr 1fr; }
.tool {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: background .3s, border-color .3s;
}
.tool:hover { background: rgba(3, 152, 158, .1); border-color: rgba(47, 184, 187, .4); }
.tool .icon { font-size: 1.7rem; color: var(--teal-400); margin-bottom: 14px; }
.tool h4 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.tool p { margin: 0; font-size: .93rem; color: #9fb4be; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--teal-600), var(--teal) 55%, #0aa7a8); color: #e9fbfb; padding: 80px 0; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; clip-path: var(--hex); }
.cta-band::before { width: 420px; height: 470px; right: -80px; top: -120px; background: rgba(255, 255, 255, .08); }
.cta-band::after { width: 220px; height: 250px; right: 260px; bottom: -150px; background: rgba(11, 34, 48, .15); }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { font-size: 1.15rem; margin: 0; max-width: 620px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: #c3d4db; padding: 110px 0 130px;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(7, 24, 32, .96) 25%, rgba(11, 34, 48, .75) 60%, rgba(3, 152, 158, .35)); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: polygon(0 100%, 100% 20%, 100% 100%); }
.page-hero.to-soft::after { background: var(--bg-soft); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.2rem; max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-label); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; color: #8fa7b2; }
.breadcrumb a { color: #c9d8de; }
.breadcrumb a:hover { color: var(--teal-400); }

/* ---------- Mission / values ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { position: relative; padding: 48px 44px; border-radius: var(--radius-lg); overflow: hidden; }
.mv-card.mission { background: var(--navy-900); color: #b9cbd3; }
.mv-card.vision { background: var(--teal); color: #e6f8f8; }
.mv-card h3 { color: #fff; font-size: 2rem; text-transform: uppercase; }
.mv-card p { font-size: 1.1rem; margin: 0; position: relative; }
.mv-card .mv-icon { font-size: 2.4rem; color: #fff; margin-bottom: 20px; opacity: .95; }
.mv-card::after { content: ""; position: absolute; width: 220px; height: 250px; right: -60px; bottom: -80px; clip-path: var(--hex); background: rgba(255, 255, 255, .06); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 34px 28px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .icon { font-size: 2rem; color: var(--teal); margin-bottom: 18px; }
.value h4 { font-size: 1.35rem; }
.value p { font-size: .97rem; color: var(--muted); margin: 0; }

.quote-block {
  border-left: 4px solid var(--teal); padding: 6px 0 6px 26px; margin: 30px 0;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}

/* ---------- Services detail page ---------- */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line);
}
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex-shrink: 0; font-family: var(--font-label); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text); padding: 9px 16px; border-radius: 40px; border: 1px solid var(--line); transition: all .2s;
}
.subnav a:hover, .subnav a.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.svc { padding: 90px 0; scroll-margin-top: calc(var(--nav-h) + 60px); }
.svc:nth-of-type(even) { background: var(--bg-soft); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.svc:nth-of-type(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.svc-media::before {
  content: ""; position: absolute; width: 150px; height: 170px; clip-path: var(--hex); background: var(--teal-100);
  left: -40px; top: -40px; z-index: -1;
}
.svc:nth-of-type(even) .svc-media::before { left: auto; right: -40px; background: var(--teal-100); }
.svc-media { isolation: isolate; margin: 0; }
/* Capturas de software: se muestran completas dentro de un marco tipo ventana */
.svc-media.screen img {
  aspect-ratio: auto; object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-top: 26px solid var(--navy-800);
}
.svc-media.screen { position: relative; }
.svc-media.screen::after {
  content: ""; position: absolute; top: 9px; left: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57; box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}
.svc-media figcaption { margin-top: 12px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.svc-media figcaption a { color: var(--muted); text-decoration: underline; }
.svc-media figcaption a:hover { color: var(--teal-600); }
.svc-label { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.svc h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.svc p { font-size: 1.07rem; }
.deliverables { margin-top: 26px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.svc:nth-of-type(odd) .deliverables { background: var(--bg-soft); border-color: transparent; }
.deliverables h4 { font-family: var(--font-label); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.deliverables ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.deliverables li { display: flex; gap: 10px; font-size: .97rem; line-height: 1.45; color: var(--ink); }
.deliverables li .icon { color: var(--teal); margin-top: 3px; stroke-width: 2.6; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-card { display: flex; gap: 20px; padding: 30px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.mini-card .icon { font-size: 2rem; color: var(--teal-400); }
.mini-card h4 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.mini-card p { font-size: .95rem; margin: 0; color: #a3b8c2; }

/* ---------- Guides page ---------- */
.tariff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tariff {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px 30px 30px;
  transition: box-shadow .3s, transform .3s;
}
.tariff:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tariff-code {
  display: inline-block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: #fff; background: var(--slate); padding: 4px 14px; border-radius: var(--radius); margin-bottom: 16px;
}
.tariff h4 { font-size: 1.3rem; }
.tariff p { margin: 0; font-size: 1rem; color: var(--muted); }
.tariff.feature { background: var(--navy-900); border-color: var(--navy-900); color: #b9cbd3; }
.tariff.feature h4 { color: #fff; }
.tariff.feature p { color: #a8bcc5; }
.tariff.feature .tariff-code { background: var(--teal); }

.timeline { position: relative; list-style: none; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--teal), var(--slate)); opacity: .35; }
.timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: flex-start; }
.timeline .t-num {
  position: relative; width: 64px; height: 72px; display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
}
.timeline .t-num::before { content: ""; position: absolute; inset: 0; background: var(--teal); clip-path: var(--hex); }
.timeline .t-num span { position: relative; }
.timeline .t-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; }
.timeline .t-body h4 { font-size: 1.35rem; margin-bottom: 8px; }
.timeline .t-body ul { list-style: none; display: grid; gap: 8px; }
.timeline .t-body li { display: flex; gap: 10px; grid-template-columns: none; font-size: .99rem; }
.timeline .t-body li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 10px; background: var(--teal); transform: rotate(45deg); }

.info-card { border-radius: var(--radius-lg); padding: 34px; background: #fff; border: 1px solid var(--line); height: 100%; }
.info-card.warn { border-top: 4px solid var(--warn); }
.info-card.teal { border-top: 4px solid var(--teal); }
.info-card h3 { font-size: 1.6rem; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.info-card h3 .icon { color: var(--teal); font-size: 1.6rem; }
.info-card.warn h3 .icon { color: #c99a06; }
.info-card p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateX(4px); color: var(--text); }
.contact-card .c-icon {
  flex-shrink: 0; width: 54px; height: 60px; position: relative; display: grid; place-items: center; color: #fff; font-size: 1.4rem;
}
.contact-card .c-icon::before { content: ""; position: absolute; inset: 0; background: var(--slate); clip-path: var(--hex); }
.contact-card.wa .c-icon::before { background: #25d366; }
.contact-card .c-icon .icon { position: relative; }
.contact-card small { display: block; font-family: var(--font-label); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 1.15rem; color: var(--ink); font-weight: 600; }

.contact-aside { background: var(--navy-900); color: #b9cbd3; border-radius: var(--radius-lg); padding: 34px; margin-top: 8px; position: relative; overflow: hidden; }
.contact-aside h4 { color: #fff; font-size: 1.45rem; }
.contact-aside .check-list { margin: 16px 0 0; }
.contact-aside .check-list .check { background: rgba(47, 184, 187, .15); color: var(--teal-400); }
.contact-aside .check-list strong { color: #fff; }

.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 44px; border-top: 4px solid var(--teal); }
.form-card h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-label); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(3, 152, 158, .15); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb457; color: #fff; transform: translateY(-2px); }
.form-note { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--teal-50); color: var(--teal-600); font-weight: 500; }
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8ea4ae; padding-top: 84px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer-brand img { width: 190px; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.site-footer h5 {
  font-family: var(--font-label); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin: 0 0 22px; padding-bottom: 14px; position: relative;
}
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--teal); }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links a { color: #a7bac3; }
.footer-links a:hover { color: var(--teal-400); }
.footer-contact { list-style: none; display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--teal-400); margin-top: 5px; }
.footer-contact a { color: #d3e0e5; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.footer-brand .social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); color: #d3e0e5; transition: background .2s;
}
.footer-brand .social a:hover { background: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .87rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-copy, .hero-in { animation: fadeUp .7s ease both; }
.hero-visual { animation: fadeUp .9s .15s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-in, .hero-visual { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-visual .hex-main { width: 400px; height: 450px; }
  .hero-badge { right: auto; left: 0; bottom: 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-grid, .mini-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --nav-h: 70px; }
  .topbar-meta { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 24px 40px;
    background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
  }
  .nav-open .nav-menu { transform: none; visibility: visible; }
  .nav-open .wa-float { display: none; }
  .nav-menu a:not(.btn) { padding: 16px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { margin: 24px 0 0; }
  .nav-cta .btn { width: 100%; padding: 16px; }
  .section { padding: 80px 0; }
  .split, .svc-grid, .contact-grid, .mv-grid, .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child, .svc:nth-of-type(even) .svc-media { order: 0; }
  .about-media { max-width: 560px; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card { min-height: 320px; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .process-grid::before { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .tariff-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
  .container { padding: 0 16px; }
  .topbar-contact { gap: 16px; font-size: .8rem; }
  .topbar-contact .hide-sm { display: none; }
  .brand-icon { height: 42px; }
  .brand-word { height: 26px; }
  .hero { padding: 64px 0 120px; }
  .hero-text { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { height: 380px; }
  .hero-visual .hex-main { width: 300px; height: 340px; }
  .hero-visual .hex-small { width: 160px; height: 180px; left: -6px; bottom: 20px; }
  .hero-visual .hex-outline.o1 { width: 110px; left: 10px; top: 0; }
  .hero-badge { padding: 12px 14px; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .trust-grid, .services-grid, .mini-grid, .tools-grid, .tools-grid.two, .values-grid, .process-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .about-media { padding: 0 30px 40px 0; }
  .about-media .tag { left: -6px; }
  .check-list.cols-2, .deliverables ul, .form-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project.tall { grid-row: span 1; }
  .project.wide { grid-column: span 1; }
  .form-card { padding: 30px 22px; }
  .mv-card { padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 80px 0 100px; }
  .svc { padding: 70px 0; }
  .svc-media::before { display: none; }
  .timeline::before { left: 23px; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline .t-num { width: 48px; height: 54px; font-size: 1.3rem; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .cta-actions .btn { flex: 1 1 100%; }
}
