/* ============================================================
   MC Gestiones | Nova — Sistema "Navy / Técnico"
   Blanco + Navy · geometría angular · dinámico
   ============================================================ */
:root {
  --navy: #0e2742;         /* navy dominante */
  --navy-2: #16365a;
  --ink: #0e2742;          /* texto sobre claro */
  --body: #4a5b6e;         /* slate apagado */
  --body-soft: #8294a5;
  --white: #ffffff;
  --paper: #f2f5f9;        /* off-white frío */
  --paper-2: #e7edf3;
  --line: #d4dde7;
  --line-2: #bccadb;
  --accent: #2f6bff;       /* azul técnico (uso puntual) */
  --accent-ink: #1f54d6;
  --accent-soft: #e7eeff;
  --on-navy: #cdd9e8;
  --serif: 'Space Grotesk', system-ui, sans-serif;   /* display */
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Space Mono', monospace;
  --shadow-sm: 0 1px 0 var(--line);
  --shadow: 0 24px 50px -30px rgba(14,39,66,.34);
  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--navy); color: #fff; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.03; letter-spacing: -.02em; color: var(--ink); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 8px; background: var(--accent); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 22px; height: 8px; background: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--body); line-height: 1.6; }
.hl { color: var(--accent-ink); }
.under { box-shadow: inset 0 -.28em 0 var(--accent-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.pad { padding-block: clamp(62px, 8.5vw, 124px); }

/* ---------- buttons (rectangular) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .02em;
  text-transform: uppercase; cursor: pointer; padding: 15px 24px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; overflow: hidden; transition: color .3s var(--ease);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .32s var(--ease); z-index: 0; }
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light::before { background: var(--accent); }
.btn-light:hover { color: #fff; border-color: var(--accent); }

/* ---------- brand lockup ---------- */
.lock { display: inline-flex; align-items: center; gap: 11px; }
.lock img { height: 26px; width: auto; }
.lock .name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.lock .sep { width: 1.5px; height: 19px; background: var(--line-2); }
.lock .nvs { height: 30px; width: auto; }
.lock.lg .nvs { height: 44px; }
.lock.inv .nvs { filter: none; }
.lock .nova { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--accent-ink); letter-spacing: -.01em; }
.lock.lg img { height: 38px; } .lock.lg .name, .lock.lg .nova { font-size: 27px; } .lock.lg .sep { height: 27px; }
.lock.inv img { filter: brightness(0) invert(1); } .lock.inv .name { color: #fff; } .lock.inv .nova { color: #8fb4ff; } .lock.inv .sep { background: rgba(255,255,255,.3); }

/* square union "+" */
.plus { flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 500; }

/* technical corner brackets */
.tk { position: relative; }
.tk::before, .tk::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--accent); pointer-events: none; }
.tk::before { left: -1px; top: -1px; border-right: none; border-bottom: none; }
.tk::after { right: -1px; bottom: -1px; border-left: none; border-top: none; }

/* ============================================================ HEADER */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--body); position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .26s var(--ease); }
.nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-tel { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); white-space: nowrap; }
.burger { display: none; background: none; border: 1.5px solid var(--line-2); width: 46px; height: 42px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); }

/* ============================================================ HERO */
.hero { position: relative; padding-top: clamp(30px, 4vw, 58px); padding-bottom: clamp(48px, 6vw, 86px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.7vw, 5rem); font-weight: 600; line-height: .99; margin: 22px 0 0; letter-spacing: -.03em; }
.hero h1 .line { display: block; }
.hero h1 .mut { color: var(--body-soft); }
.hero .lead { margin-top: 26px; max-width: 31em; }
.hero-cta { margin-top: 34px; display: flex; gap: 0; flex-wrap: wrap; }
.hero-cta .btn:first-child { border-right-width: 0; }
.hero-meta { margin-top: 34px; display: flex; gap: 0; border: 1px solid var(--line); width: fit-content; max-width: 100%; flex-wrap: wrap; background: var(--white); }
.hero-meta .cell { padding: 14px 20px; border-right: 1px solid var(--line); }
.hero-meta .cell:last-child { border-right: none; }
.hero-meta .k { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--body-soft); }
.hero-meta .v { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* hero technical module */
.hero-module { position: relative; border: 1.5px solid var(--navy); background: var(--white); }
.hero-module .modbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1.5px solid var(--navy); font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--body); white-space: nowrap; }
.hero-module .modbar .sq { display: inline-flex; gap: 5px; }
.hero-module .modbar .sq i { width: 9px; height: 9px; border: 1.5px solid var(--navy); display: block; }
.hero-module .modbar .sq i.fill { background: var(--accent); border-color: var(--accent); }
.hero-photo { position: relative; aspect-ratio: 4/3.1; overflow: hidden; background: repeating-linear-gradient(45deg, #eef2f7 0 11px, #e4ebf2 11px 22px); }
.hero-photo .zone-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo .ph-tag { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--body-soft); border: 1.5px solid var(--line-2); padding: 7px 12px; background: rgba(255,255,255,.7); z-index: 1; pointer-events: none; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 18px 2px rgba(47,107,255,.5); opacity: .8; animation: scan 5.5s linear infinite; z-index: 3; pointer-events: none; }
@keyframes scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
.mod-tags { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 3; flex-wrap: wrap; }
.mod-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; background: var(--navy); color: #fff; padding: 6px 10px; white-space: nowrap; }
.mod-tag.accent { background: var(--accent); }
.modfoot { display: flex; border-top: 1.5px solid var(--navy); }
.modfoot .mf { flex: 1; padding: 12px 14px; border-right: 1px solid var(--line); }
.modfoot .mf:last-child { border-right: none; }
.modfoot .mf .k { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--body-soft); }
.modfoot .mf .v { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }

/* ============================================================ TICKER */
.ticker { background: var(--navy); color: #fff; border-block: 1.5px solid var(--navy); overflow: hidden; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 16px; padding: 16px 30px; font-family: var(--mono); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ticker-item .star { color: var(--accent); font-family: var(--sans); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ UNIÓN */
.union { background: var(--paper); border-bottom: 1px solid var(--line); }
.union-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.union-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.union-head p { color: var(--body); }
.union-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-top: clamp(36px, 5vw, 56px); border: 1.5px solid var(--navy); background: var(--white); }
.union-card { padding: clamp(26px, 3vw, 40px); position: relative; }
.union-card.nova { border-left: 1.5px solid var(--navy); }
.union-card .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border: 1.5px solid var(--navy); }
.union-card.nova .tag { background: var(--navy); color: #fff; }
.union-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 20px 0 12px; }
.union-card p { color: var(--body); }
.union-card ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 0; }
.union-card li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); font-size: 15.5px; }
.union-card li .ck { flex: none; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--accent); font-size: 11px; }
.union-mid { display: grid; place-items: center; padding: 0 clamp(14px, 2vw, 26px); position: relative; }
.union-mid::before { content: ""; position: absolute; inset: 0; border-inline: 1.5px solid var(--navy); }
.union-mid .plus { width: 60px; height: 60px; font-size: 36px; position: relative; }
.union-mid .label { position: absolute; bottom: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--body-soft); white-space: nowrap; }

/* ============================================================ SERVICIOS */
.serv-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; }
.serv-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-top: 16px; }
.serv-head p { color: var(--body); align-self: end; }
.serv-group { margin-top: clamp(34px, 4vw, 54px); }
.serv-group-label { display: flex; align-items: baseline; gap: 16px; margin-bottom: 0; padding-bottom: 16px; border-bottom: 1.5px solid var(--navy); }
.serv-group-label .n { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); font-weight: 500; }
.serv-group-label h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); white-space: nowrap; }
.serv-group-label .rule { flex: 1; }
.serv-group-label .cnt { font-family: var(--mono); font-size: 12px; color: var(--body-soft); white-space: nowrap; }
.serv-cards { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); border-left: 1px solid var(--line); }
.scard {
  position: relative; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 26px 30px; transition: background .3s var(--ease); overflow: hidden;
}
.scard::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.scard:hover { background: var(--paper); }
.scard:hover::after { transform: scaleX(1); }
.scard .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scard .ico { width: 46px; height: 46px; border: 1.5px solid var(--navy); color: var(--navy); display: grid; place-items: center; transition: background .3s, color .3s; }
.scard:hover .ico { background: var(--navy); color: #fff; }
.scard .ico svg { width: 23px; height: 23px; }
.scard .idx { font-family: var(--mono); font-size: 12px; color: var(--body-soft); }
.scard h4 { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; margin-bottom: 9px; letter-spacing: -.01em; }
.scard p { font-size: 14.6px; color: var(--body); }

/* ============================================================ RELEVO */
.relevo { background: var(--navy); color: #fff; overflow: hidden; }
.relevo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.relevo-photo { position: relative; border: 1.5px solid rgba(255,255,255,.22); background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 11px, rgba(255,255,255,.07) 11px 22px); }
.relevo-photo .zone-img { width: 100%; height: clamp(330px, 38vw, 480px); display: block; object-fit: cover; object-position: center; }
.relevo-photo .ph-tag { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy); border: 1.5px solid rgba(255,255,255,.3); padding: 7px 12px; z-index: 1; pointer-events: none; }
.relevo .eyebrow { color: #8fb4ff; }
.relevo .eyebrow::before { background: var(--accent); }
.relevo h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 18px 0 18px; }
.relevo p { color: var(--on-navy); margin-bottom: 14px; max-width: 44ch; }
.relevo .sign { font-family: var(--serif); font-size: 18px; color: #8fb4ff; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }

/* ============================================================ CONFIANZA */
.trust { background: var(--white); position: relative; }
.trust-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: clamp(40px, 5vw, 60px); }
.trust-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.trust-head p { color: var(--body); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--navy); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(18px, 2vw, 30px); border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 4.1rem); font-weight: 600; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat .num .u { color: var(--accent); }
.stat .lab { margin-top: 12px; color: var(--body); font-size: 14.5px; font-weight: 500; }
.stat .tick { position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 11px; color: var(--body-soft); }

/* ============================================================ CONTACTO */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--navy); background: var(--white); }
.contact-info { padding: clamp(28px, 3.4vw, 52px); }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 16px 0 16px; }
.contact-info p { color: var(--body); max-width: 38ch; }
.info-list { margin-top: 28px; }
.info-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 1.5px solid var(--navy); }
.info-row .ico { flex: none; width: 40px; height: 40px; border: 1.5px solid var(--navy); color: var(--navy); display: grid; place-items: center; }
.info-row .ico svg { width: 19px; height: 19px; }
.info-row .k { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--body-soft); }
.info-row .v { font-weight: 600; color: var(--ink); font-size: 16px; }
.contact-form { padding: clamp(28px, 3.4vw, 52px); border-left: 1.5px solid var(--navy); background: var(--paper); display: flex; flex-direction: column; }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-form .sub { color: var(--body); font-size: 15px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--body); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line-2); border-radius: 0; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.contact-form .btn { margin-top: 4px; justify-content: center; }

/* ============================================================ FOOTER */
.footer { background: var(--navy); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-block: clamp(48px, 6vw, 74px); }
.footer .blurb { color: var(--on-navy); font-size: 15px; max-width: 30ch; margin-top: 18px; }
.footer h5 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6f87a3; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--on-navy); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #6f87a3; font-family: var(--mono); font-size: 12.5px; }

/* ============================================================ reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scanline, .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}
.no-motion .scanline, .no-motion .ticker-track { animation: none !important; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ============================================================ responsive */
@media (max-width: 1080px) { .nav-tel { display: none; } .nav-links { gap: 22px; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-module { max-width: 560px; margin-top: 10px; }
  .relevo-grid { grid-template-columns: 1fr; } .relevo-photo { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { border-left: none; border-top: 1.5px solid var(--navy); }
  .union-head, .serv-head, .trust-head { grid-template-columns: 1fr; gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav-links { display: none; } .burger { display: flex; }
  .nav-menu-open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 4px var(--gut) 16px; box-shadow: var(--shadow); }
  .nav-menu-open .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); width: 100%; }
}
@media (max-width: 720px) {
  .union-grid { grid-template-columns: 1fr; }
  .union-card.nova { border-left: none; border-top: 1.5px solid var(--navy); }
  .union-mid { padding: 8px 0; } .union-mid::before { border-inline: none; border-block: 1.5px solid var(--navy); }
  .union-mid .plus { transform: rotate(45deg); } .union-mid .plus { font-size: 30px; }
  .union-mid .label { display: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-meta { width: 100%; }
}
