:root {
  --ink: #11161d;
  --ink-2: #202833;
  --muted: #64717f;
  --line: #dde5ec;
  --paper: #f4f7f9;
  --white: #ffffff;
  --blue: #0878bb;
  --blue-2: #0c5f91;
  --gold: #c28a2c;
  --green: #3d8068;
  --shadow: 0 28px 70px rgba(10, 19, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 16px clamp(18px, 4.5vw, 64px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(18, 28, 38, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(18, 28, 38, 0.12);
}

.brand {
  width: min(248px, 54vw);
}

.brand img {
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  content: "";
  background: var(--blue);
  transition: right 180ms ease;
}

.site-nav a:hover::after {
  right: 0;
}

.nav-cta {
  padding: 11px 15px !important;
  background: var(--blue);
  color: var(--white);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.image-stage {
  position: relative;
  overflow: hidden;
}

.image-stage > img,
.image-stage picture,
.image-stage picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(22px, 4vw, 58px);
  align-items: end;
  padding: 150px clamp(20px, 5vw, 72px) 42px;
  color: var(--white);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.9), rgba(5, 10, 16, 0.58) 48%, rgba(5, 10, 16, 0.12)),
    linear-gradient(0deg, rgba(5, 10, 16, 0.94), rgba(5, 10, 16, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding-bottom: clamp(24px, 5vw, 78px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.method-section .eyebrow,
.proof-section .eyebrow,
.contact-section .eyebrow {
  color: #77cfff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.hero-content p:not(.eyebrow) {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-2);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost.dark {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 1px;
  margin-bottom: clamp(12px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
  background: rgba(7, 14, 22, 0.72);
  backdrop-filter: blur(12px);
}

.hero-panel span {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 0.92;
}

.hero-panel span::after {
  content: "+";
  color: #77cfff;
  font-size: 0.5em;
}

.hero-panel div:nth-child(2) span::after,
.hero-panel div:nth-child(3) span::after {
  content: "%";
}

.hero-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  background: var(--paper);
}

.editorial-media {
  min-height: 620px;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.editorial-copy {
  max-width: 760px;
}

.editorial-copy p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: clamp(1.12rem, 2vw, 1.36rem);
}

.problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.problem-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-weight: 800;
}

.impact-section {
  background: var(--white);
}

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

.impact-item {
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(230px, 0.9fr) minmax(230px, auto);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.impact-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.impact-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-item div {
  padding: clamp(22px, 3vw, 34px);
}

.impact-item span {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-weight: 900;
}

.impact-item p,
.service-tile p {
  margin: 0;
  color: var(--muted);
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  color: var(--white);
  background: #101820;
}

.method-copy p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.method-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.16);
}

.method-tab {
  min-height: 54px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.method-tab.is-active,
.method-tab:hover {
  color: var(--white);
  background: var(--blue);
}

.method-visual {
  position: relative;
  min-height: 620px;
}

.method-visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.method-card {
  position: absolute;
  left: clamp(18px, 4vw, 42px);
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.method-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--blue);
  font-weight: 900;
}

.method-card p {
  margin: 0;
  color: var(--muted);
}

.proof-section {
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--white);
}

.proof-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.9), rgba(5, 10, 16, 0.42)),
    linear-gradient(0deg, rgba(5, 10, 16, 0.96), rgba(5, 10, 16, 0.08) 58%);
}

.proof-content {
  position: relative;
  z-index: 1;
  max-width: 1050px;
}

.proof-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.18);
}

.proof-cases article {
  min-height: 200px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(8, 15, 24, 0.72);
  backdrop-filter: blur(10px);
}

.proof-cases strong {
  display: block;
  margin-bottom: 18px;
  color: #77cfff;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.9;
}

.proof-cases p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.services-section {
  background: var(--paper);
}

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

.service-tile {
  display: grid;
  grid-template-rows: 260px auto auto auto;
  min-height: 520px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-tile span,
.service-tile h3,
.service-tile p {
  margin-left: 24px;
  margin-right: 24px;
}

.service-tile span {
  margin-top: 24px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-tile p {
  margin-bottom: 26px;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  background: var(--white);
}

.quote-media img {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.quote-section blockquote {
  margin: 0;
}

.quote-section blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
}

.quote-section cite {
  display: block;
  margin-top: 24px;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.98), rgba(16, 24, 32, 0.86)),
    url("assets/colaboracion.jpg") center / cover no-repeat;
}

.contact-copy p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  display: none;
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f4f7f9;
  color: var(--ink-2);
  font-weight: 800;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: rgba(61, 128, 104, 0.36);
  background: rgba(61, 128, 104, 0.12);
  color: #245b47;
}

.form-status.is-error {
  border-color: rgba(194, 86, 65, 0.38);
  background: rgba(194, 86, 65, 0.12);
  color: #8a2f20;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #050a10;
}

.site-footer img {
  width: 230px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: #77cfff;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .editorial-section,
  .method-section,
  .quote-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 740px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
  }

  .impact-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .impact-item,
  .service-tile {
    min-height: auto;
  }

  .impact-item {
    grid-template-rows: 320px auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  .brand {
    width: min(220px, 68vw);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: 100vh;
    padding-top: 112px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 10, 16, 0.92), rgba(5, 10, 16, 0.58)),
      linear-gradient(0deg, rgba(5, 10, 16, 0.96), rgba(5, 10, 16, 0.16) 66%);
  }

  .hero-panel,
  .proof-cases,
  .contact-form,
  .method-controls {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .editorial-media,
  .editorial-media img,
  .method-visual,
  .method-visual img,
  .quote-media img {
    min-height: 360px;
    height: 360px;
  }

  .impact-item {
    grid-template-rows: 250px auto;
  }

  .service-tile {
    grid-template-rows: 230px auto auto auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
