:root {
      --blue: #213b55;
      --accent: #4a8fc2;
      --accent-soft: rgba(74, 143, 194, 0.14);
      --black: #000000;
      --white: #ffffff;
      --gray: #e6e6e6;
      --text: #1f2a33;
      --text-soft: #4d5a66;
      --section-alt: #f7f9fb;
      --max-width: 1120px;
      --radius: 18px;
      --shadow: 0 10px 30px rgba(16, 37, 57, 0.08);
    }


    * {
      box-sizing: border-box;
    }


    html {
      scroll-behavior: smooth;
    }


    body {
      margin: 0;
      color: var(--text);
      background: var(--white);
      font-family: "Inter", Arial, Helvetica, sans-serif;
      line-height: 1.6;
      letter-spacing: -0.01em;
    }


    img {
      max-width: 100%;
      display: block;
    }


    a {
      color: inherit;
      text-decoration: none;
    }


    .wrap {
      width: min(var(--max-width), calc(100% - 40px));
      margin: 0 auto;
    }


    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
      opacity: 0.85;
    }


    .nav a:hover,
    .nav a.active {
      opacity: 1;
      color: var(--accent);
    }


    h1, h2 {
      margin: 0 0 18px;
      color: var(--blue);
      font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
      font-weight: 500;
      line-height: 1.12;
      letter-spacing: -0.02em;
    }


    .hero {
      position: relative;
      overflow: hidden;
      color: var(--white);
      background: #213b55;
    }


    .hero-media {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(18, 37, 56, 0.48), rgba(18, 37, 56, 0.70)),
        url("../../images/estructura-jpg.webp") center center / cover no-repeat;
    }


    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      pointer-events: none;
    }


    .hero::before {
      inset: auto -10% -120px auto;
      width: 420px;
      height: 420px;
      background: radial-gradient(circle, rgba(74, 143, 194, 0.18), transparent 68%);
      z-index: 1;
    }


    .hero::after {
      inset: 0;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 48px 48px;
      opacity: 0.18;
      z-index: 1;
    }


    .hero-inner {
      position: relative;
      z-index: 2;
      min-height: 30vh;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 80px 0 60px;
      text-align: center;
    }


    .hero-copy {
      max-width: 760px;
      margin: 0 auto;
    }


    .hero h1 {
      color: var(--white);
      font-size: clamp(3rem, 5vw, 5rem);
      max-width: 860px;
      margin-bottom: 22px;
      line-height: 0.96;

    }


    section {
      padding: 84px 0;
      scroll-margin-top: 92px;
    }


    .intro {
      padding: 72px 0 56px;
    }


    .intro .content-block {
      max-width: 640px;
      margin: 0 auto;
      text-align: center;
    }


    .intro-text {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    line-height: 1.35;
    color: var(--blue);
    margin: 0 0 16px;
    }


    .intro-lead {
      max-width: 600px;
      margin: 0 auto;
      color: var(--text-soft);
      font-size: 1rem;
      line-height: 1.7;
    }


    .section-split {
      padding: 0;
    }


    .split-section {
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      align-items: stretch;
      min-height: 500px;
    }


    .split-section.reverse {
      grid-template-columns: 0.92fr 1.08fr;
    }


    .split-media {
      min-height: 100%;
      position: relative;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 35%),
        linear-gradient(135deg, #d9e2ea 0%, #c8d3de 100%);
    }


    .split-media::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(18, 37, 56, 0.14);
    }


    .split-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.84) contrast(1.04) saturate(0.9);
    }


    .split-copy {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 56px 58px;
      background: #ffffff;
    }


    .split-copy.alt-bg {
      background: var(--section-alt);
    }


    .body-copy {
      max-width: 600px;
    }


    h2 {
      font-size: clamp(2.4rem, 3.1vw, 3.4rem);
      margin-bottom: 14px;
    }


    .body-copy p {
      font-size: 1.03rem;
      color: var(--text-soft);
      margin: 0 0 16px;
      line-height: 1.82;
    }


    .body-copy p:last-child {
      margin-bottom: 0;
    }


    @media (max-width: 900px) {
      .split-section,
      .split-section.reverse {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .split-media {
        min-height: 260px;
      }

      .split-copy {
        padding: 38px 28px;
      }

      .header-inner {
        min-height: auto;
        padding: 16px 0;
      }

      .nav {
        gap: 14px 18px;
      }

      section {
        padding: 74px 0;
      }

        .split-section.reverse .split-media {
        order: 2;
        }

        .split-section.reverse .split-copy {
        order: 1;
        }

    }


    @media (max-width: 768px) {
      .logo {
        width: 220px;
        height: auto;
      }

      .menu-toggle {
        display: block;
        font-size: 28px;
        line-height: 1;
        background: none;
        border: none;
        cursor: pointer;
        color: #213b55;
        padding: 0;
        margin: 0;
        flex: 0 0 auto;
      }

      .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-top: 1px solid #e6e6e6;
        box-shadow: 0 10px 24px rgba(16, 37, 57, 0.08);
      }

      .nav.open {
        display: flex;
      }

      .header-inner {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        min-height: 76px;
        padding: 14px 0;
      }

      .brand {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        min-width: 0;
      }

      .hero-inner {
        min-height: 22vh;
        padding: 42px 0 34px;
        align-items: center;
      }

      .hero h1 {
        font-size: 2.35rem;
      }

      .intro {
        padding: 56px 0 40px;
      }

      .intro-text {
        font-size: 2.05rem;
        line-height: 1.18;
        margin-bottom: 16px;
      }

      .intro-lead {
        max-width: 100%;
        font-size: 1.03rem;
        line-height: 1.72;
      }

        .split-section.reverse .split-media {
        order: 2;
        }

        .split-section.reverse .split-copy {
        order: 1;
        }

    }


    @media (max-width: 640px) {
      .wrap {
        width: min(var(--max-width), calc(100% - 28px));
      }

      .hero-inner {
        min-height: 20vh;
        padding: 34px 0 28px;
      }

      .hero h1 {
        font-size: 2.05rem;
      }

      .intro-text {
        font-size: 1.75rem;
        line-height: 1.18;
      }

      .intro-lead,
      .body-copy p {
        font-size: 1rem;
      }
    }
