:root {
  --ink: #071b33;
  --ink-2: #17324f;
  --muted: #617188;
  --line: rgba(7, 27, 51, 0.12);
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --brand: #0a73b7;
  --brand-2: #0c9dd9;
  --gold: #c79a3b;
  --gold-soft: #f3e7cc;
  --shadow: 0 22px 70px rgba(7, 27, 51, 0.12);
  --radius: 24px;
  --container: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 10px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 5px 0;
}
.brand img { width: 150px; max-height: 74px; object-fit: contain; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a.active { background: rgba(10, 115, 183, 0.1); color: var(--brand); }
.menu-toggle { display: none; }
.section-screen { min-height: calc(100vh - 82px); }
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(12, 157, 217, 0.18), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef5fb 48%, #fff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 45%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(199, 154, 59, 0.15), rgba(10, 115, 183, 0.06));
  z-index: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(248,251,255,0.97) 0%, rgba(248,251,255,0.88) 52%, rgba(248,251,255,0.55) 100%), url('../img/hero-consultoria.webp');
  background-size: cover;
  background-position: center right;
  opacity: .9;
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  gap: 42px;
  align-items: center;
  padding: 74px 0;
}
.hero-content { max-width: 720px; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 18px; color: var(--ink); overflow-wrap: break-word; }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); letter-spacing: -0.06em; max-width: 900px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); letter-spacing: -0.045em; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.05rem); letter-spacing: -0.03em; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 18px; color: var(--muted); }
.hero-content p { font-size: 1.2rem; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 14px 30px rgba(10,115,183,.24); }
.btn-secondary { background: rgba(255,255,255,.84); color: var(--ink); border-color: var(--line); }
.hero-card,
.mission-card,
.metric-card,
.card,
.service-card,
.journey,
.strategic-solutions,
.partner-card,
.contact-form {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-card { padding: 28px; backdrop-filter: blur(16px); }
.hero-card h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-weight: 650; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: inset 0 0 0 5px #fff;
}
.section { padding: 96px 0; }
.section.alt { background: var(--surface-soft); }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(330px, .85fr);
  align-items: center;
  gap: 52px;
}
.split-grid.reverse { grid-template-columns: minmax(330px, .75fr) minmax(0, .9fr); }
.section-copy p { font-size: 1.05rem; }
.image-panel {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.85);
  background: #fff;
}
.image-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mission-grid {
  display: grid;
  grid-template-columns: 1.4fr minmax(0, .95fr);
  gap: 18px;
  align-items: stretch;
}
.mission-card { padding: 34px; }
.metric-stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
.metric-card { padding: 24px 28px; display: flex; flex-direction: row; align-items: center; gap: 22px; min-height: 0; }
.metric-card strong { color: var(--gold); font-size: 2.7rem; line-height: 1; flex-shrink: 0; }
.metric-card span { color: var(--ink-2); font-weight: 800; }
.section-heading { max-width: 920px; margin-bottom: 34px; }
.section-heading.wide { max-width: 1040px; }
.cards-grid,
.service-grid,
.solution-cards,
.partner-grid { display: grid; gap: 18px; }
.cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; box-shadow: none; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(10, 115, 183, .1);
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 18px;
}
.objective-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--line);
}
.objective-strip div { background: #fff; padding: 24px; }
.objective-strip strong, .objective-strip span { display: block; }
.objective-strip strong { margin-bottom: 6px; color: var(--ink); }
.objective-strip span { color: var(--muted); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }
.service-card { padding: 28px; box-shadow: none; min-height: 250px; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(7, 27, 51, 0.10); }
.service-card h3 { font-size: 1.24rem; }
.journey { padding: 30px; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 28px; margin: 24px 0; box-shadow: none; }
.journey-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; counter-reset: step; }
.journey-steps li { background: var(--surface-soft); border-radius: 18px; padding: 22px; counter-increment: step; position: relative; border: 1px solid rgba(7,27,51,.08); }
.journey-steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--gold); font-weight: 900; margin-bottom: 10px; }
.journey-steps strong, .journey-steps span { display: block; }
.journey-steps span { color: var(--muted); font-size: .95rem; }
.strategic-solutions { padding: 32px; background: linear-gradient(135deg, #071b33, #11365c); color: #fff; }
.strategic-solutions h3,
.strategic-solutions h4 { color: #fff; }
.strategic-solutions p { color: rgba(255,255,255,.76); }
.strategic-solutions .section-kicker { color: var(--gold-soft); }
.solution-intro { max-width: 840px; }
.solution-cards { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 24px 0; }
.solution-cards article { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); }
.solution-cards strong { color: var(--gold-soft); letter-spacing: .05em; font-size: .82rem; }
.disclaimer { margin: 0; font-size: .94rem; border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.partner-card {
  padding: 24px;
  text-decoration: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(7, 27, 51, 0.10); }
.partner-card img { height: 56px; width: 100%; object-fit: contain; object-position: left center; margin-bottom: 4px; }
.partner-card span { font-weight: 900; color: var(--ink); font-size: 1.08rem; }
.partner-card small { color: var(--muted); line-height: 1.45; }
.contact-section { background: linear-gradient(135deg, var(--ink), #12395f); color: #fff; }
.contact-section h2 { color: #fff; }
.contact-section p,
.contact-section address { color: rgba(255,255,255,.78); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(340px, .75fr); gap: 48px; align-items: start; }
address { font-style: normal; line-height: 1.8; }
address a { color: #fff; font-weight: 750; text-decoration-thickness: .08em; }
.contact-form { padding: 28px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px rgba(0,0,0,.22); }
.contact-form label { display: block; font-weight: 800; margin: 14px 0 8px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(7,27,51,.16);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: 3px solid rgba(10,115,183,.18); border-color: var(--brand); }
.contact-form .btn { width: 100%; margin-top: 18px; border: 0; }
.form-note { font-size: .84rem; margin: 14px 0 0; color: var(--muted); }
.honeypot { position: absolute !important; left: -99999px !important; opacity: 0 !important; }
.contact-cta {
  padding: 32px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
  align-self: start;
}
.contact-cta h3 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-cta p { color: var(--muted); }
.contact-cta .btn { width: 100%; margin: 8px 0 14px; }
.contact-cta .form-note { margin: 0; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 16, 30, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
  transform: translateY(18px) scale(.98);
  transition: transform .28s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--surface-soft); }
.modal-close:active { transform: scale(.94); }
.modal-head { padding-right: 44px; margin-bottom: 4px; }
.modal-head h2 { font-size: clamp(1.5rem, 4.6vw, 1.95rem); margin-bottom: 10px; }
.modal-head p { font-size: .98rem; }
.modal .contact-form { padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }

.btn-whatsapp { background: #25d366; color: #fff; gap: 10px; box-shadow: 0 14px 30px rgba(37, 211, 102, .28); }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .98rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(37, 211, 102, .45); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: zapPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes zapPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.site-footer { background: #061526; color: #dbe7f4; padding: 48px 0 22px; }
.site-footer .footer-logo {
  width: 168px;
  background: #fff;
  padding: 13px 18px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 42px; }
.site-footer p { color: #aac0d6; }
.site-footer strong { display: block; margin-bottom: 12px; color: #fff; }
.site-footer a { display: block; color: #dbe7f4; text-decoration: none; margin: 8px 0; }
.site-footer a:hover { text-decoration: underline; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #94adc7; }
.copyright a { margin: 0; color: #fff; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 82px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 4px; animation: navIn .22s ease both; }
  .main-nav a { width: 100%; min-height: 46px; display: flex; align-items: center; padding: 12px 14px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 9px 16px 9px 15px;
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    font-weight: 900; color: var(--ink); cursor: pointer;
  }
  .menu-toggle:active { transform: scale(.97); }
  .hamburger, .hamburger::before, .hamburger::after {
    content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
    background: var(--ink); transition: transform .25s ease, opacity .2s ease;
  }
  .hamburger { position: relative; }
  .hamburger::before { position: absolute; left: 0; top: -6px; }
  .hamburger::after { position: absolute; left: 0; top: 6px; }
  .menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
  .menu-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-6px) rotate(-45deg); }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .hero-grid, .split-grid, .split-grid.reverse, .mission-grid, .journey, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .cards-grid.three, .solution-cards, .partner-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1160px); }
  html { scroll-padding-top: 82px; }
  .nav-shell { min-height: 74px; }
  .brand img { width: 132px; max-height: 66px; }
  .main-nav { top: 74px; left: 14px; right: 14px; }
  .section, .hero-grid { padding: 66px 0; }
  .section-screen, .hero-grid { min-height: auto; }
  .hero-media { background-image: linear-gradient(180deg, rgba(248,251,255,0.97) 0%, rgba(248,251,255,0.91) 100%), url('../img/hero-consultoria.webp'); }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  h2 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .hero-content p { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .mission-grid, .service-grid, .cards-grid.three, .solution-cards, .partner-grid, .objective-strip, .journey-steps, .footer-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 0; }
  .contact-form { padding: 22px; }
  .copyright { flex-direction: column; }
}
@media (max-width: 480px) {
  h1 { letter-spacing: -0.035em; }
  h2 { letter-spacing: -0.025em; }
  .section, .hero-grid { padding: 50px 0; }
  .hero-content p { font-size: 1.02rem; }
  .eyebrow { flex-wrap: wrap; }
  .hero-card, .mission-card, .card, .service-card, .journey,
  .strategic-solutions, .partner-card, .contact-cta { padding: 22px; }
  .modal { padding: 24px; border-radius: 20px; }
  .whatsapp-float { padding: 0; width: 56px; justify-content: center; right: 16px; bottom: 16px; }
  .whatsapp-float-label { display: none; }
  .objective-strip div { padding: 20px; }
  .metric-card { min-height: 0; padding: 20px 22px; }
  .metric-card strong { font-size: 2.5rem; }
  .service-card { min-height: 0; }
  .solution-cards article { padding: 20px; }
  .site-footer { padding: 40px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
