:root {
  --ink: #1f2544;
  --muted: #65708c;
  --line: #dce2f4;
  --paper: #fbfbff;
  --soft: #f0f4ff;
  --teal: #5967d8;
  --teal-dark: #38428f;
  --coral: #d98669;
  --gold: #e5b86b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(31, 37, 68, 0.16);
  --font-body: 16px;
  --font-medium: 20px;
  --font-large: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  min-height: 92vh;
  position: relative;
  color: var(--white);
  background: #1f2544;
}

.nav {
  width: min(1160px, calc(100% - 40px));
  height: 96px;
  position: absolute;
  inset: 24px 0 auto;
  z-index: 5;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: var(--font-large);
  line-height: 1.04;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--font-body);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: var(--font-body);
}

.nav-links a:hover {
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(31, 37, 68, 0.9) 0%, rgba(58, 67, 140, 0.68) 45%, rgba(110, 91, 172, 0.24) 100%),
    linear-gradient(0deg, rgba(31, 37, 68, 0.48), rgba(73, 83, 161, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 116px auto 0;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd6a6;
  font-size: var(--font-body);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(720px, 100%);
  margin-bottom: 22px;
  font-size: var(--font-large);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: var(--font-large);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--font-medium);
  line-height: 1.25;
}

.hero-copy {
  width: min(640px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--font-body);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--coral);
  color: #211d31;
}

.button.primary:hover {
  background: #c97457;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.section {
  padding: 88px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.muted {
  background: var(--soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 56px;
  align-items: end;
}

.intro p:last-child,
.split p,
.contact p {
  color: var(--muted);
  font-size: var(--font-body);
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(89, 103, 216, 0.1);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 8px;
  background: #f7d6c9;
  color: #8f4430;
  font-weight: 800;
}

.service-card p,
.process p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--font-body);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 68px;
  align-items: center;
}

.visual-panel {
  min-height: 420px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 103, 216, 0.16), rgba(174, 148, 226, 0.2), rgba(229, 184, 107, 0.2)),
    #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: var(--font-large);
  line-height: 1;
}

.metric span {
  display: block;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: var(--font-medium);
  font-weight: 700;
}

.mini-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: end;
}

.mini-chart span {
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #6d73de, var(--gold));
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset 0 0 0 4px #f7d9ce;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.process article {
  padding: 28px 0 0;
  border-top: 2px solid var(--teal);
}

.process span {
  display: block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: var(--font-large);
  font-weight: 800;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  min-width: 0;
}

.contact-list a,
.contact-list span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-medium);
  font-weight: 700;
}

.contact-list a:first-of-type {
  font-size: var(--font-medium);
}

.contact-list a:nth-of-type(2) {
  font-size: var(--font-medium);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--font-body);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: var(--font-body);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-body);
  font-weight: 700;
}

.form-status.success {
  color: #9be7c2;
}

.form-status.error {
  color: #ffb8a8;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(20px, calc((100% - 1160px) / 2));
  color: var(--muted);
  background: var(--paper);
  font-weight: 700;
}

.footer span {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #2b385a;
  background: #e8e8e8;
}

#enfoque .eyebrow {
  font-size: var(--font-body);
}

#contacto .eyebrow {
  font-size: var(--font-body);
}

@media (max-width: 900px) {
  .brand strong {
    font-size: var(--font-large);
  }

  .brand small {
    font-size: var(--font-body);
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    right: 0;
    width: min(260px, calc(100vw - 40px));
    display: none;
    padding: 14px;
    border-radius: 8px;
    background: rgba(31, 37, 68, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .intro-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 40px, 1160px);
    height: 68px;
    inset: 18px 0 auto;
    gap: 12px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand small {
    display: none;
  }

  .brand {
    flex: 1;
  }

  .brand strong {
    overflow: hidden;
    font-size: var(--font-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    flex: 0 0 44px;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 40px, 1160px);
  }

  .hero-content {
    margin-top: 104px;
    padding-top: 48px;
  }

  h1 {
    width: min(100%, 340px);
    font-size: var(--font-large);
    line-height: 1.12;
  }

  .eyebrow {
    font-size: var(--font-body);
    overflow-wrap: anywhere;
  }

  .hero .eyebrow,
  #enfoque .eyebrow,
  #contacto .eyebrow {
    font-size: var(--font-body);
  }

  .hero .eyebrow {
    max-width: 300px;
    line-height: 1.25;
    text-wrap: balance;
  }

  .hero-copy {
    width: min(100%, 330px);
    font-size: var(--font-body);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .service-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .card-icon {
    margin-bottom: 24px;
  }

  .visual-panel {
    min-height: 340px;
  }

  .contact-list a,
  .contact-list span,
  .contact-list a:first-of-type,
  .contact-list a:nth-of-type(2) {
    max-width: 100%;
    display: block;
    overflow-wrap: anywhere;
    font-size: var(--font-medium);
  }

  .footer {
    flex-direction: column;
    padding-right: 20px;
    padding-left: 20px;
  }
}
