:root {
  --navy: #071426;
  --navy-2: #0a1c35;
  --blue: #0f3d91;
  --electric: #087eff;
  --cyan: #11d7e5;
  --white: #fff;
  --paper: #f6f8fb;
  --graphite: #182433;
  --muted: #5d6b7e;
  --line: #dce3eb;
  --shadow: 0 24px 70px rgba(7, 20, 38, .12);
  --display: "Manrope", "Inter", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 900px; }
.center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 270px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--cyan); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--electric);
  border-radius: 6px;
  background: var(--electric);
  color: var(--white) !important;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: #006de5; border-color: #006de5; }
.button-small { min-height: 42px; padding-inline: 18px; }
.button-outline { background: transparent; border-color: rgba(255, 255, 255, .55); }
.button-outline:hover { background: rgba(255, 255, 255, .08); border-color: var(--cyan); }
.button-full { width: 100%; }
.button:disabled { cursor: wait; opacity: .72; transform: none; }
.button-whatsapp { background: #0c8f62; border-color: #0c8f62; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,20,38,.98) 0%, rgba(7,20,38,.91) 37%, rgba(7,20,38,.32) 70%, rgba(7,20,38,.1) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding-top: 92px; }
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--electric);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--cyan); }
.hero-lead { max-width: 620px; margin: 30px 0; font-size: 1.2rem; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.coverage { margin-top: 34px; color: rgba(255,255,255,.62); font-size: .9rem; letter-spacing: .04em; }

.section { padding: 104px 0; }
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.section-intro { max-width: 700px; margin: 24px auto 0; color: var(--muted); font-size: 1.08rem; }
.value-section { background: var(--white); }
.compact-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}
.compact-process li { display: grid; gap: 10px; font-weight: 600; }
.compact-process span { color: var(--electric); font-family: var(--display); font-size: .78rem; letter-spacing: .12em; }

.solutions-section { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 46px; }
.section-heading > p { margin: 0; color: var(--muted); }
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.solution-card {
  position: relative;
  min-height: 355px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(7,20,38,.03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.solution-card:hover { transform: translateY(-5px); border-color: rgba(8,126,255,.42); box-shadow: var(--shadow); }
.solution-card:focus-visible { outline: 3px solid var(--electric); outline-offset: 4px; }
.solution-card::after {
  content: "Ver detalle +";
  position: absolute;
  right: 30px;
  bottom: 26px;
  color: var(--electric);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-number { color: var(--electric); font-family: var(--display); font-size: .78rem; letter-spacing: .15em; }
.solution-card h3 { margin: 45px 0 12px; font-family: var(--display); font-size: 1.25rem; }
.solution-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.solution-card ul { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .84rem; color: var(--muted); }
.solution-card li + li { margin-top: 6px; }


.solution-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(7,20,38,.36);
  overflow: auto;
}
.solution-dialog::backdrop { background: rgba(7,20,38,.78); backdrop-filter: blur(4px); }
.dialog-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 520px; }
.dialog-media { display: grid; grid-template-rows: 1fr auto; margin: 0; background: var(--navy); }
.dialog-media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.dialog-media figcaption { padding: 12px 18px; color: rgba(255,255,255,.72); font-size: .72rem; line-height: 1.45; }
.dialog-copy { align-self: center; padding: 54px 48px; }
.dialog-copy h2 { margin: 8px 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); }
.dialog-copy > p:not(.section-kicker) { color: var(--muted); }
.dialog-copy ul { margin: 26px 0 34px; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); }
.dialog-copy li + li { margin-top: 8px; }
.dialog-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(7,20,38,.86);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.sectors-section { background: var(--white); }
.sectors-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 50px; border-block: 1px solid var(--line); }
.sectors-grid div { min-height: 145px; display: grid; place-content: center; gap: 12px; text-align: center; border-right: 1px solid var(--line); }
.sectors-grid div:last-child { border-right: 0; }
.sectors-grid span { color: var(--electric); font-family: var(--display); font-size: .75rem; letter-spacing: .15em; }

.methodology-section { color: var(--white); background: var(--navy); }
.section-kicker.light { color: var(--cyan); }
.methodology-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.methodology-heading > p { margin: 0; color: rgba(255,255,255,.67); }
.methodology { margin: 62px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.methodology li { position: relative; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.15); }
.methodology li:first-child { padding-left: 0; border-left: 0; }
.methodology li > span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--electric); font-family: var(--display); font-weight: 700; }
.methodology h3 { margin: 28px 0 10px; font-family: var(--display); }
.methodology p { margin: 0; color: rgba(255,255,255,.64); font-size: .92rem; }

.projects-section { background: var(--white); }
.projects-placeholder {
  min-height: 310px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 70px;
  padding: 55px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--paper), var(--white));
}
.project-line { height: 180px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, transparent, transparent 12px, rgba(8,126,255,.05) 12px, rgba(8,126,255,.05) 24px); }
.projects-placeholder strong { font-family: var(--display); font-size: 1.6rem; }
.projects-placeholder p { color: var(--muted); }

.philosophy-section { background: linear-gradient(115deg, var(--navy), var(--blue)); color: var(--white); }
.philosophy-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.philosophy-grid h2 span { color: var(--cyan); }
.philosophy-grid > p { margin: 0; padding-left: 36px; border-left: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.75); font-size: 1.05rem; }

.quote-section { background: var(--paper); }
.quote-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.quote-copy { position: sticky; top: 30px; }
.quote-copy > p { color: var(--muted); }
.contact-list { display: grid; gap: 12px; margin-top: 36px; }
.contact-list a { color: var(--blue); font-weight: 600; text-decoration: none; }
.contact-list span { color: var(--muted); }
.quote-form { padding: 38px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 8px; margin-bottom: 18px; color: var(--graphite); font-size: .9rem; font-weight: 600; }
.quote-form input, .quote-form textarea {
  width: 100%;
  border: 1px solid #c8d1dc;
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--graphite);
  background: var(--white);
  outline: none;
}
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(8,126,255,.12); }
.privacy-check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; color: var(--muted) !important; }
.privacy-check input { width: auto; margin-top: 5px; }
.privacy-check a { color: var(--blue); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.form-result { margin-top: 24px; padding: 24px; border-left: 4px solid var(--cyan); background: var(--paper); }
.form-result > p { margin: 6px 0 18px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { padding: 70px 0 25px; background: var(--navy); color: rgba(255,255,255,.67); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-grid img { width: 260px; margin-bottom: 8px; }
.footer-grid strong { color: var(--white); font-family: var(--display); margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--cyan); }
.footer-grid p { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

.floating-whatsapp {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0c8f62;
  color: var(--white);
  box-shadow: 0 10px 32px rgba(7,20,38,.25);
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .brand { width: 230px; }
  .main-nav { gap: 18px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .methodology { grid-template-columns: repeat(2, 1fr); gap: 38px 0; }
  .methodology li:nth-child(3) { padding-left: 0; border-left: 0; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-copy { position: static; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header { position: absolute; }
  .nav-wrap { min-height: 76px; }
  .brand { width: 215px; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--white); }
  .main-nav {
    position: absolute;
    display: none;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 20px;
    align-items: stretch;
    background: var(--navy-2);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 8px 4px; }
  .main-nav .button { margin-top: 8px; }
  .hero { min-height: 700px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,20,38,.98), rgba(7,20,38,.76)); }
  .hero-image { object-position: 66% center; opacity: .75; }
  .hero-content { padding-top: 90px; }
  .section { padding: 78px 0; }
  .section-heading, .methodology-heading, .philosophy-grid { grid-template-columns: 1fr; gap: 24px; }
  .philosophy-grid > p { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors-grid div { border-bottom: 1px solid var(--line); }
  .sectors-grid div:nth-child(3) { border-right: 0; }
  .projects-placeholder { grid-template-columns: 1fr; gap: 30px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media img { min-height: 260px; max-height: 340px; }
  .dialog-copy { padding: 36px 28px 42px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { width: 190px; }
  .hero { min-height: 680px; }
  .hero-content { align-self: end; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .compact-process { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: auto; padding-bottom: 72px; }
  .solution-card h3 { margin-top: 28px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid div:nth-child(3) { border-right: 1px solid var(--line); }
  .sectors-grid div:nth-child(even), .sectors-grid div:last-child { border-right: 0; }
  .methodology { grid-template-columns: 1fr; gap: 0; }
  .methodology li, .methodology li:nth-child(3) { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 0 0 32px; border-left: 0; }
  .methodology h3 { margin: 0 0 6px; }
  .projects-placeholder { padding: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px; }
  .result-actions { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
