:root {
  --bg: #ecf0ec;
  --bg-menu: #d5e1b09d;
  --bg-soft: #f4f4f2;
  --bg-section: #a1f79f67;
  --bg-section-secondary: #819e66c9;
  --canvas: #fcfcf4;
  --text: #1b382d;
  --text-soft: #4e5255;
  --text-muted: #74737c;
  --accent: #215d44;
  --accent-soft: #6a955a;
  --cta: #224534;
  --secondary-cta: #535b77;
  --cta-hover: #1b382d;
  --line: rgba(27, 56, 45, 0.15);
  --frame: #c2c6c0;
  --warm-accent: #b29047;
  --page-width: 82rem;
  --gutter: 1.5rem;
  --gutter-wide: 2.5rem;
  --space-section-top: clamp(100px, 8vw, 140px);
  --space-section-bottom: clamp(120px, 9vw, 160px);
  --space-block: clamp(1.5rem, 2.5vw, 2.5rem);
  --space-grid: clamp(2rem, 4vw, 4rem);
  --radius-large: 2rem;
  --radius-medium: 1.5rem;
  --radius-pill: 999px;
  --display-xl-size: clamp(3rem, 6vw, 5rem);
  --display-lg-size: clamp(3.25rem, 9vw, 7rem);
  --h1-size: clamp(2rem, 3vw, 2.8rem);
  --h2-size: clamp(1.5rem, 2.8vw, 2.2rem);
  --body-size: 1.05rem;
  --caption-size: 0.88rem;
  --font-display: "Fira Code", monospace;
  --font-body: "Fira Sans", sans-serif;
  --font-caption: "PT Mono", monospace;
  --font-brand: "AncientGeek", monospace;
}

@font-face {
  font-family: "AncientGeek";
  src: url("./fonts/geek.woff2") format("woff2");
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Rune";
  src: url("./fonts/rune.woff2") format("woff2");
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  
}

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

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

.h1 {
  font-size: var(--h1-size);
  line-height: 0.98;
  color: var(--accent-soft);
}

.h2 {
  font-size: var(--h2-size);
  line-height: 1.12;
  color: var(--text);
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--text-soft);
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

/* =========================
   LAYOUT BASE
========================= */

.page-shell {
  max-width: 1280px;
  width: 92%;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section--narrow {
  /*max-width: 900px;*/
  max-width: 90%;
  margin: 45px auto;
}

.section--cta {
  position: sticky;
  text-align: center;
  
}


.section--secondary {
  padding: 80px 0;
}

.section--secondary:nth-child(even) {
  background: var(--bg-section-secondary);
}

.section--secondary--narrow {
  max-width: 900px;
  margin: 80px auto;
}

.section--secondary--cta {
  text-align: center;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-menu);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

/* =========================
   TYPOGRAPHY
========================= */

.display-xl {
  font-size: clamp(3.4rem, 6.5vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: "Fira Code", monospace;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.h1 {
  font-family: "Fira Code", monospace;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.body {
  color: var(--text-soft);
  line-height: 1.6;
}

/* =========================
   HERO — FINAL PREMIUM
========================= */

.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero__content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__visual {
  position: relative;
  width: 100%;
  height: 640px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay-text {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  color: var(--canvas);
  opacity: 0.95;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    height: 420px;
  }
}





/* =========================
   BUTTON
========================= */

.btn-primary {
  display: inline-block;
  background: var(--cta);
  color: var(--canvas);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cta);
  padding: 12px 18px;
  border: 2px solid var(--cta);
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27,56,45,0.15);
}

.btn-secondary:hover {
  background: var(--cta);
  color: var(--canvas);
}

.control__item:hover,
.proof__card:hover {
  transform: translateY(-4px);
  transition: all 0.25s ease;
}

.accent {
  color: var(--accent-soft);
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* =========================
   GRID SYSTEMS
========================= */

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-grid);
}


.scope__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

.scope__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /*border: 1px solid var(--line);*/
  /*background: var(--canvas);*/
  padding: 1.2rem;

}

.scope__item::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: var(--line);
}

.scope__item:last-child::after {
  display: none;
}

.scope__icon {
  display: flex;
  
}



.control__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.control__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--canvas);
  padding: var(--space-block);
  box-shadow: 0 1px 3px rgba(27, 56, 45, 0.08);
}

.control__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 8px;
}

.control__item h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.intervention__flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.intervention__flow::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: -1;
}

.intervention__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.intervention__number {
  width: 40px;
  height: 40px;
  background: var(--cta);
  color: var(--canvas);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  box-shadow: 0 0 0 6px rgba(33,93,68,0.1);
}

.intervention__step h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.proof {
  padding: 100px 0;
  background: var(--bg-soft);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 1fr;
  gap: 40px;
  align-items: center;
}

.proof .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}

.proof-results .kpi {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 12px;
}

.proof-results span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.proof-graph img {
  width: 100%;
  height: auto;
}

.proof__main {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: var(--space-grid);
  margin-bottom: var(--space-grid);
}

.proof__grid--primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-grid);
  margin-bottom: var(--space-grid);
}

.proof__grid--secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-grid);
}

.proof__grid--primary,
.proof__grid--secondary {
  align-items: stretch;
}

.proof__card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: 0 1px 3px rgba(27, 56, 45, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  min-height: unset;
} 
  
.proof__card .h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

.proof__kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.proof__results {
  display: flex;
  flex-direction: column;  
  gap: 2rem;
}


.proof__kpi .h2 {
  margin: 0;  
  color: var(--text);
  font-size: 3.2rem;   /* antes 2.8 */
  font-weight: 700;
  letter-spacing: -0.02em;   
}

.proof__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.proof__intervention ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.proof__intervention li {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.proof__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof__visual img {
  max-width: 85%;   /* evita que compita con KPIs */
  height: auto;
  opacity: 0.9;
  
}

.proof__cta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;   /* centra horizontal */
  margin-top: 1.2rem;

}

.kpi__value {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.kpi__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.kpi__context {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .proof__main {
    grid-template-columns: 1fr;
  }

  .proof__visual {
    order: -1; /* gráfica arriba en mobile */
  }
  .proof__visual img {
  max-width: 30%;
  }
}

.body--narrow {
  max-width: 600px;
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-grid);
}

.insights__grid p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.filter__positive h3,
.filter__negative h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}

.filter__positive ul,
.filter__negative ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.filter__positive li,
.filter__negative li {
  margin-bottom: 8px;
  color: var(--text-soft);
  line-height: 1.5;
}

.filter__negative {
  background: var(--bg-soft);
  padding: var(--space-block);
  border: 1px solid var(--line);
}

.filter__negative.center {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.filter__negative.center p {
  font-weight: 500;
}

.contact__visual img {
  width: 100%;
  height: 100%;
  /*object-fit: cover;*/
  object-fit: cover;
  min-height: 400px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  border-radius: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-block);
}

.contact__form textarea {
  min-height: 120px;
  margin-top: 0;
  resize: vertical;
}

.contact--overlay {
  position: relative;  
  background-image: url('img/jpg/thomas-mckinnon--rgLjdWNrks-unsplash.jpg') center/cover no-repeat;
}

.contact--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
}

.contact__layer {
  position: relative;
  z-index: 1;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-grid);
  align-items: center;
}

.contact__text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__text h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.contact__form button {
  margin-top: 10px;
}

.contact__form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  gap: 1.5rem;
}

.contact__form input,
.contact__form textarea {
  padding: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
}

.center {
  text-align: center;
}

.form-message {
  margin-top: var(--space-block);
  font-size: 0.9rem;
}

.form-message.success {
  color: var(--accent);
}

.form-message.error {
  color: #753c0a;
}

.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--cta);
  color: var(--canvas);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
}

.contact-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-grid);
  padding: 0.75rem;
  font-size: 0.85rem;
}

.footer {
  background: var(--cta);
  color: var(--canvas);
  padding: var(--space-section-top) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-grid);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--canvas);
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--canvas);
  margin: 0 0 8px 0;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: var(--canvas);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-lang {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-lang a {
  text-decoration: none;
  color: inherit;
}

.footer-lang a:hover {
  opacity: 1;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-burger span {
  width: 25px;
  height: 2px;
  background: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: var(--space-block);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

@media (min-width: 901px) {
  .nav-burger {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* =========================
   PLACEHOLDERS
========================= */




/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .hero__grid,
  .grid-5,
  .grid-4,
  .grid-2,
  .scope__grid ,
  .control__grid,
  .process,
  .intervention__flow,
  .case,
  .contact__content {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

}

@media (max-width: 768px) {

  .proof__main,
  .proof__grid--primary,
  .insights__grid {
    grid-template-columns: 1fr;
  }

  .proof__grid--secondary {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .proof__grid--secondary {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {

  /* apagar separador vertical */
  .scope__item::after {
    display: none;
  }

  /* activar separador horizontal */
  .scope__item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  /* NO mostrar en último */
  .scope__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

}


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

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.brand__name {
  font-family: var(--font-brand);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  opacity: 0.9;
  white-space: nowrap;
}

/* =========================
   YOU ARE HERE (CONVERSION)
========================= */

.you-are-here {
  padding: 100px 0;
  background: var(--canvas);
}

.you-are-here .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}

.you-are-here h2 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 780px;
}

.you-are-here .accent {
  color: var(--primary-light);
  font-weight: 500;
}

.diagnostic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
}

.diagnostic-item {
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--bg-soft);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.youarehere__card .display-3 {
  margin-bottom: 0.5rem;
}

.youarehere__card .display-2 {
  margin-bottom: 1rem;
}

.youarehere__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.youarehere__item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* MOBILE */
@media (max-width: 900px) {
  .youarehere__grid {
    grid-template-columns: 1fr;
  }
}
/*******************
*******************/
.display-1 {
  font-size: calc(1.6018371582rem + 4.2220458984vw);
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 1200px) {
  .display-1 {
    font-size: 4.768371582rem;
  }
}

.display-2 {
  font-size: calc(1.5064697266rem + 3.0776367188vw);
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 1200px) {
  .display-2 {
    font-size: 3.8146972656rem;
  }
}

.display-3 {
  font-size: calc(1.4301757813rem + 2.162109375vw);
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 1200px) {
  .display-3 {
    font-size: 3.0517578125rem;
  }
}

.display-4 {
  font-size: calc(1.369140625rem + 1.4296875vw);
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 1200px) {
  .display-4 {
    font-size: 2.44140625rem;
  }
}

.display-5 {
  font-size: calc(1.3203125rem + 0.84375vw);
  font-weight: 400;
  line-height: 1;
}
@media (min-width: 1200px) {
  .display-5 {
    font-size: 1.953125rem;
  }
}

.display-6 {
  text-wrap: balance;
  font-size: calc(1.28125rem + 0.375vw);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
@media (min-width: 1200px) {
  .display-6 {
    font-size: 1.5625rem;
  }
}

