  :root {
    --main: #2A5768;
    --main-dark: #1D3E4A;
    --ink: #16221F;
    --paper: #FFFFFF;
    --muted: #5B6764;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
  }

  /* ---------- Nav ---------- */
  .topbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 32px 4vw;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 65px;
  }

  .topbar a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 550;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .topbar a:hover { color: var(--main); }

  .lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
  }

  .lang svg { width: 12px; height: 12px; }

  /* hamburger toggle — hidden until the nav needs to collapse */
  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 34px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---------- Nav: tablet — tighten spacing ---------- */
  @media (max-width: 1100px) {
    .nav-links { gap: 34px; }
    .topbar a { font-size: 14px; }
  }

  @media (max-width: 920px) {
    .nav-links { gap: 22px; }
    .topbar a { font-size: 13px; }
  }

  /* ---------- Nav: mobile — full-screen overlay ---------- */
  @media (max-width: 820px) {
    .topbar { justify-content: flex-end; padding: 23px 3.2vw;}

    .nav-burger {
      display: flex;
      position: relative;
      z-index: 25;
    }

    .nav-links {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 15;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
      background: var(--paper);
      padding: 80px 6vw 40px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .nav-toggle:checked ~ .nav-links {
      opacity: 1;
      pointer-events: auto;
    }

    .nav-links a {
      width: 100%;
      max-width: 340px;
      text-align: center;
      padding: 18px 20px;
      font-size: 18px;
    }

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

    .nav-links .lang { justify-content: center; }
  }

  /* ---------- Hero ---------- */
.hero {
  width: 100%;
  padding: 10px 4vw 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4vw;
  overflow-x: clip;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin-right: 40px;
  display: block;
  width: 95%;
  height: auto;
}

.hero-overlay {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

  .eyebrow {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--main);
  }

  .badge-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }

  .mark {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    display: none; /* hidden for now */
  }

  h1 {
    font-size: clamp(36px, 3.7vw, 55px);
    line-height: 1.075;
    font-weight: 600;
    letter-spacing: -0.04em;
    padding-top: 30px;
  }

  h1 .accent { color: var(--main); white-space: nowrap; }

  .lede {
    margin-top: 45px;
    max-width: 50ch;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: black;
  }

  .cta-row {
    display: flex;
    gap: 14px;
    margin-top: 36px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .btn svg { width: 15px; height: 15px; flex-shrink: 0; }

  .btn-primary {
    background: var(--main);
    color: var(--paper);
    border: 1px solid var(--main);
  }

  .btn-primary:hover { background: var(--main-dark); border-color: var(--main-dark); }

  .btn-primary svg { width: 15px; height: 15px; }

  .btn-outline {
    background: rgba(255,255,255,0.9);
    border: 1.5px solid var(--main);
    border-color: 1px var(--main); color: var(--main);
  }

  .btn-outline:hover { border-color: var(--main); color: var(--main); }

  /* ---------- Responsive ---------- */
  @media (min-width: 1200px) and (max-width: 1300px) {
    h1 { font-size: clamp(44px, 4.5vw, 96px);padding-top: 20px; line-height: 1.02; }

    .mark { width: 90px; }
    .hero-photo {

  margin-right: 50px;}

    .btn { padding: 13px 22px; font-size: 13px; }
  }

  @media (min-width: 1000px) and (max-width: 1100px) {
    body { overflow-x: hidden; }

    h1 { font-size: clamp(38px, 4vw, 46px); padding-top: 20px; line-height: 1.02; }

    .mark { width: 75px; }
    .hero-photo {

  margin-right: 30px;}

    .btn { padding: 12px 20px; font-size: 12.5px; margin-top: 0px;}

    .lede { font-size: 15px; margin-top: 40px;}
  }
@media (max-width: 1000px) {
  body { overflow-x: hidden; }

    h1 { font-size: clamp(38px, 4vw, 46px); padding-top: 20px; line-height: 1.02; }

    .mark { width: 75px; }

    .btn { padding: 12px 20px; font-size: 12.5px; margin-top: 0px;}

    .lede { font-size: 15px; margin-top: 40px;}
    .hero-photo {

  margin-right: 10px;}

    .hero-inner {
    max-width: 440px;
}}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 2;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-overlay {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 900px) {
    .btn { padding: 10px 16px; font-size: 11px; }

    .eyebrow { margin-bottom: 10px; }

    .lede { font-size: 14px; margin-top: 30px;}
    h1 { font-size: clamp(35px, 3.75vw, 44px); padding-top: 10px; line-height: 1.02; }

    .quote { max-width: 180px; padding: 16px 16px 20px; }

    .quote .markchar { font-size: 34px; margin-bottom: -10px; }

    .quote p { font-size: 12.5px; }
}

@media (max-width: 830px) {
  h1 { font-size: clamp(32px, 3.7vw, 45px); padding-top: 10px; line-height: 1.02; }
  .hero-inner {
    max-width: 500px;
  }
  .lede { font-size: 13px; margin-top: 30px;}
}

@media (max-width: 800px) {
  .lb-title { display: none; }
  .title-l1 { white-space: nowrap; }

  h1 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.07; }

  .btn { padding: 6px 11px; font-size: 9px; margin-top: -5px;}

  .quote { max-width: 160px; padding: 10px 10px 14px; }

  .quote .markchar { font-size: 20px; margin-bottom: -6px; }

  .quote p { font-size: 11px; }
   .quote .rule {
      font-size: 12px;
      margin-top: 10px;
      color: var(--muted);
    }
}

@media (max-width: 700px) {
  .btn { padding: 5px 9px; font-size: 8px; }
  h1 { font-size: clamp(28px, 3.3vw, 41px); padding-top: 0px; line-height: 1.08; }

  .eyebrow { margin-bottom: 17px; font-size: 13px; }

  .lede { font-size: 12px; margin-top: 24px; }

  .quote { max-width: 150px; padding: 8px 8px 12px; }

  .quote .markchar { font-size: 18px; margin-bottom: -5px; }

  .quote p { font-size: 9.8px; }

  .hero-inner {
    max-width: 300px;
  }.quote .rule {
      font-size: 12px;
      margin-top: 8px;
      color: var(--muted);
    }
}

@media (max-width: 650px) {
  .btn { padding: 4px 7px; font-size: 8px; }

  .btn-outline { border-width: 1px; }

  h1 { font-size: clamp(26px, 3.2vw, 37px); }

  .lede { font-size: 12px; margin-top: 20px; }

  .quote { max-width: 130px; padding: 6px 6px 10px; }

  .quote .markchar { font-size: 15px; margin-bottom: -4px; }

  .quote p { font-size: 8.5px; }
}

@media (max-width: 600px) {
  .topbar { padding-right: 25px; }

  .cta-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .btn { justify-content: center; width: 220px; margin-top: -10px; }

  .cta-row .btn { gap: 3px; }

  .btn-primary svg { width: 25px; height: 12px; }

  .cta-row .btn-primary svg { width: 12px; height: 12px; }

  .btn { padding: 6px 29px; font-size: 7px; border-radius: 0; }

  h1 { font-size: clamp(24px, 3.1vw, 35px); }

  .lede { font-size: 12px; margin-top: 21px; }

  .quote { max-width: 90px; padding: 5px 5px 8px; }

  .quote .markchar { font-size: 13px; margin-bottom: -3px;margin-left: -20px; }

  .quote p { font-size: 8px; margin-left: -20px;}

}

@media (max-width: 550px) {
  .cta-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .btn { justify-content: center; width: 220px; margin-top: -10px; }

  .btn-primary svg { width: 13px; height: 7px; }

  .btn { padding: 6px 60px; font-size: 8px; border-radius: 0; }

  h1 { font-size: clamp(26px, 3.2vw, 37px); }

  .lede { font-size: 12px; margin-top: 21px; }

  .quote { max-width: 100px; padding: 5px 5px 8px; margin-top: 70px;}

  .quote .markchar { font-size: 13px; margin-bottom: -3px;margin-left: -20px; }

  .quote p { font-size: 9px; margin-left: -20px;}

}
@media (max-width: 500px) {
  .cta-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .btn { justify-content: center; width: 220px; margin-top: -10px; }

  .btn-primary svg { width: 13px; height: 7px; }

  .btn { padding: 6px 60px; font-size: 8px; border-radius: 0; }

  h1 { font-size: clamp(26px, 3.2vw, 37px); }

  .title-l1 { white-space: normal; }
  .lb-title { display: inline; }

  .lede { font-size: 12px; margin-top: 21px; }

  .quote { max-width: 93px; padding: 5px 5px 8px;  z-index: 0; }

  .quote .markchar { font-size: 13px; margin-bottom: -3px;margin-left: -20px; }

  .quote p { font-size: 9px; margin-left: -20px;}

}
@media (max-width: 400px) {
  .cta-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .btn { justify-content: center; width: 220px; margin-top: -10px; }

  .btn-primary svg { width: 13px; height: 7px; }

  .btn { padding: 6px 60px; font-size: 8px; border-radius: 0; }

  h1 { font-size: clamp(26px, 3.2vw, 37px); }


  .quote { max-width: 130px; padding: 8px 10px 10px; margin-top: 135px; right: 10px; z-index: 2; background: rgba(255,255,255,0.92); border-radius: 4px; }

  .quote .markchar { font-size: 13px; margin-bottom: -3px; margin-left: 0; }

  .quote p { font-size: 9px; margin-left: 0; }

}
@media (max-width: 350px) {
  .cta-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .btn { justify-content: center; width: 220px; margin-top: -10px; }

  .btn-primary svg { width: 13px; height: 7px; }

  .btn { padding: 6px 60px; font-size: 8px; border-radius: 0; }

  h1 { font-size: clamp(26px, 3.2vw, 37px); }


  .quote { max-width: 130px; padding: 8px 10px 10px; margin-top: 145px;  z-index: 2; background: rgba(255,255,255,0.92); border-radius: 4px; }

  .quote .markchar { font-size: 13px; margin-bottom: -3px; margin-left: 0; }

  .quote p { font-size: 9px; margin-left: 0; }

}

@media (max-width: 800px) {
  .lede { max-width: 100%; }
  .hero-inner { max-width: 100%; }
}

@media (min-width: 1100px) {
  h1 { padding-top: 20px; }
}

  /* ---------- Pop-up metodología ---------- */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 34, 31, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: #F2F2F2;
    padding: 64px 48px 70px;
    text-align: center;
    color: var(--main);
    transform: translateY(10px);
    transition: transform 0.2s ease;
  }

  .modal-backdrop.is-open .modal { transform: translateY(0); }

  /* esquinas */
  .corner {
    position: absolute;
    width: 46px;
    height: 46px;
    border-color: var(--main);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
  }
  .corner.tl { top: 16px; left: 16px; border-top-width: 4px; border-left-width: 4px; }
  .corner.tr { top: 16px; right: 16px; border-top-width: 4px; border-right-width: 4px; }
  .corner.bl { bottom: 16px; left: 16px; border-bottom-width: 4px; border-left-width: 4px; }
  .corner.br { bottom: 16px; right: 16px; border-bottom-width: 4px; border-right-width: 4px; }

  .modal-close {
    position: absolute;
    top: 22px;
    right: 72px;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--main);
    cursor: pointer;
    padding: 4px;
  }
  .modal-close:hover { color: var(--main-dark); }

  .modal h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .modal .modal-text {
    margin-top: 12px;
    font-size: 21px;
    line-height: 1.4;
    color: var(--main);
  }

  .modal .modal-text a {
    color: var(--main);
    font-weight: 700;
    text-decoration: none;
  }
  .modal .modal-text a:hover { text-decoration: underline; }

  .modal .modal-block + .modal-block { margin-top: 44px; }

  @media (max-width: 600px) {
    .modal { padding: 52px 28px 56px; }
    .corner { width: 30px; height: 30px; }
    .corner.tl, .corner.tr { top: 12px; }
    .corner.bl, .corner.br { bottom: 12px; }
    .corner.tl, .corner.bl { left: 12px; }
    .corner.tr, .corner.br { right: 12px; }
    .corner.tl, .corner.tr, .corner.bl, .corner.br { border-width: 0; }
    .corner.tl { border-top-width: 3px; border-left-width: 3px; }
    .corner.tr { border-top-width: 3px; border-right-width: 3px; }
    .corner.bl { border-bottom-width: 3px; border-left-width: 3px; }
    .corner.br { border-bottom-width: 3px; border-right-width: 3px; }
    .modal-close { top: 14px; right: 50px; font-size: 22px; }
    .modal h2 { font-size: 22px; }
    .modal .modal-text { font-size: 16px; }
    .modal .modal-block + .modal-block { margin-top: 32px; }
  }

  body.modal-open { overflow: hidden; }


/* ------------------------------------------------------------------
   Blindaje contra el tema (Astra), igual que en las otras dos landings.

   1. Los títulos sin color propio heredaban el color del contenedor en el
      HTML suelto. Astra declara un color directamente sobre h1/h2, y una
      regla directa le gana a un valor heredado: por eso aparecían grises.

   2. Astra define a:hover y los estilos de <button> con más especificidad
      que las clases .btn-* y .modal-close, y les cambiaba el color o les
      metía fondo al pasar el mouse. Acá se fijan en todos los estados.
   ------------------------------------------------------------------ */
body.ilds-metodologia h1,
body.ilds-metodologia .modal h2 { color: inherit; }

body.ilds-metodologia .btn-primary,
body.ilds-metodologia .btn-primary:hover,
body.ilds-metodologia .btn-primary:focus,
body.ilds-metodologia .btn-primary:active { color: var(--paper); }

body.ilds-metodologia .btn-outline,
body.ilds-metodologia .btn-outline:hover,
body.ilds-metodologia .btn-outline:focus,
body.ilds-metodologia .btn-outline:active { color: var(--main); }

body.ilds-metodologia .topbar a,
body.ilds-metodologia .topbar a:active { color: var(--ink); }
body.ilds-metodologia .topbar a:hover,
body.ilds-metodologia .topbar a:focus { color: var(--main); }

body.ilds-metodologia .modal .modal-text a,
body.ilds-metodologia .modal .modal-text a:hover,
body.ilds-metodologia .modal .modal-text a:focus { color: var(--main); }

body.ilds-metodologia .modal-close,
body.ilds-metodologia .modal-close:focus,
body.ilds-metodologia .modal-close:active {
  background: transparent;
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  padding: 4px;
  min-width: 0;
  min-height: 0;
  line-height: 1;
  color: var(--main);
}

body.ilds-metodologia .modal-close:hover {
  background: transparent;
  color: var(--main-dark);
}
