: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, h3 {
      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-small .hero-inner {
        min-height: 30vh;
        padding: 80px 0 60px;
    }


    .hero-small h1 {
        font-size: clamp(2.6rem, 4vw, 3.6rem);
        line-height: 1.05;
    }


    .hero-inner-small {
        align-items: flex-end;
        justify-content: center;
    }


    .hero-small .hero-copy {
    margin: 0 auto;
    text-align: center;
    }


    .hero {
      position: relative;
      overflow: hidden;
      color: var(--white);
      background: #213b55;
    }


    .hero-media {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(18, 37, 56, 0.50), rgba(18, 37, 56, 0.74)),
        url("../../images/quienes-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: 74vh;
      display: flex;
      align-items: center;
      padding: 110px 0 90px;
    }


    .hero-copy {
      max-width: 760px;
    }


    .hero h1 {
      color: var(--white);
      font-size: clamp(3rem, 5vw, 5rem);
      max-width: 860px;
      margin-bottom: 22px;
      line-height: 0.96;
    }


    .hero p {
      max-width: 680px;
      margin: 0;
      font-size: clamp(1.08rem, 1.7vw, 1.24rem);
      line-height: 1.75;
      color: rgba(255, 255, 255, 0.92);
    }


    #intro {
    padding: 78px 0 54px;
    }


    #intro .content-block {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    }


    .intro-highlight {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 3.2vw, 3.2rem);
    line-height: 1.18;
    color: var(--blue);
    margin: 0 0 22px;
    }


    #intro .lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--text-soft);
    }


    section {
      padding: 84px 0;
      scroll-margin-top: 92px;
    }


    section.alt {
      background: var(--section-alt);
    }


    .bg-soft {
    background: var(--section-alt);
    }


    .bg-soft h2 {
    color: var(--blue);
    }


    .bg-soft .lead,
    .bg-soft p {
    color: var(--text-soft);
    }


    .content-block {
      max-width: 760px;
    }


    .section-header {
      max-width: 640px;
      margin-bottom: 22px;
    }


    h2 {
      font-size: clamp(2.4rem, 3.1vw, 3.4rem);
      margin-bottom: 12px;
    }


    .lead,
    .member-text p {
    font-size: 1.03rem;
    color: var(--text-soft);
    margin: 0 0 16px;
    line-height: 1.85;
    }


    #idea-principal .content-block p,
    #nuestra-vision .vision-panel p {
    font-size: 1.03rem;
    color: var(--text-soft);
    margin: 0 0 16px;
    line-height: 1.85;
    }


    .content-block p:last-child,
    .member-text p:last-child {
      margin-bottom: 0;
    }


    .intro-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
      gap: 44px;
      align-items: start;
    }


    .side-image {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid rgba(33, 59, 85, 0.08);
      min-height: 100%;
      background: linear-gradient(135deg, #d9e2ea 0%, #c8d3de 100%);
    }


    .side-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.86) contrast(1.03) saturate(0.9);
    }


    .vision-panel {
      background: var(--white);
      border: 1px solid rgba(33, 59, 85, 0.08);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 40px;
      max-width: 820px;
    }


    .vision-panel h2 {
      margin-bottom: 18px;
    }


    .vision-panel p {
      font-size: 1.05rem;
      color: var(--text-soft);
      margin: 0 0 18px;
      line-height: 1.9;
    }


    .vision-panel p:last-child {
      margin-bottom: 0;
    }


    .team-header {
      max-width: 640px;
      margin-bottom: 30px;
    }


    .team-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 26px;
    }


    .member-card {
      background: var(--white);
      border: 1px solid rgba(33, 59, 85, 0.08);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }


    .member-photo {
    height: 460px;
    overflow: hidden;
    background: #e6edf3;
    }


    .member-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      filter: brightness(0.95) contrast(1.02);
    }


    .member-body {
      padding: 28px 28px 30px;
    }


    .member-name {
      margin: 0 0 6px;
      color: var(--blue);
      font-size: 2rem;
      line-height: 1.02;
    }


    .member-role {
      display: inline-block;
      margin-bottom: 16px;
      color: var(--accent);
      font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }


    .closing-note {
      max-width: 860px;
      text-align: center;
      margin: 0 auto;
      padding-top: 8px;
    }


    .closing-note p {
      margin: 0;
      color: var(--text-soft);
      font-size: 1.08rem;
      line-height: 1.85;
    }


    #nuestra-vision .wrap {
    position: relative;
    }


    .vision-floating-image {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    }


    .vision-floating-image img {
    height: 90%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
    }


    .vision-panel {
    max-width: 720px;
    position: relative;
    z-index: 2;
    }


    @media (max-width: 900px) {
      .intro-grid,
      .team-grid {
        grid-template-columns: 1fr;
      }

      .header-inner {
        min-height: auto;
        padding: 16px 0;
      }

      .nav {
        gap: 14px 18px;
      }

      .hero-inner {
        min-height: 66vh;
        padding: 90px 0 72px;
      }

      section {
        padding: 74px 0;
      }

      .vision-panel {
        padding: 30px;
      }

        .vision-floating-image {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        height: auto;
        width: 100%;
        margin-top: 28px;
        display: block;
        pointer-events: auto;
        }

        .vision-floating-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        object-fit: contain;
        }

        .vision-floating-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 12px;
        }

    .vision-panel {
        max-width: 100%;
    }
    }


    @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 h1 {
        font-size: 2.7rem;
      }

      .hero p {
        font-size: 1.14rem;
        line-height: 1.65;
      }

      .hero-inner {
        min-height: 68vh;
        align-items: flex-start;
        padding: 54px 0 52px;
      }

      .member-name {
        font-size: 1.8rem;
      }

      .hero-small .hero-inner {
        min-height: 22vh;
        padding: 42px 0 34px;
        align-items: center;
        }

        .hero-small h1 {
        font-size: 2.4rem;
        line-height: 1.08;
        }

        #intro {
        padding: 52px 0 38px;
        }


        #intro .lead {
        max-width: 100%;
        font-size: 1.05rem;
        line-height: 1.7;
        }

        .team-header {
        margin-bottom: 22px;
        }

        .member-photo {
        height: 460px;
        }

        .member-body {
        padding: 22px 22px 24px;
        }

        .member-role {
        font-size: 0.8rem;
        margin-bottom: 12px;
        }

        .intro-highlight {
        font-size: 2.25rem;
        line-height: 1.16;
        max-width: 100%;
        margin: 0 auto 18px;
        }

        #intro .content-block {
        max-width: 100%;
        padding: 0 6px;
        }

         }


    @media (max-width: 640px) {
      .wrap {
        width: min(var(--max-width), calc(100% - 28px));
      }

      .hero h1 {
        font-size: 2.9rem;
      }

      .hero p,
      .lead,
      .vision-panel p,
      .member-text p,
      .closing-note p {
        font-size: 1rem;
      }

      .vision-panel,
      .member-body {
        padding-left: 22px;
        padding-right: 22px;
      }

    .hero-small .hero-inner {
    min-height: 20vh;
    padding: 34px 0 28px;
    }

    .hero-small h1 {
    font-size: 2.1rem;
    }

    #intro .lead {
    font-size: 1rem;
    }

    .member-photo {
    height: 300px;
    }

    .intro-highlight {
    font-size: 2rem;
    line-height: 1.16;
    max-width: 100%;
    margin: 0 auto 18px;
    }

    .vision-floating-image img {
    height: 260px;
    max-width: 82%;
    }


    }
