: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 {
      position: relative;
      overflow: hidden;
      color: var(--white);
      background: #213b55;
    }


    .hero-media {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(18, 37, 56, 0.18), rgba(18, 37, 56, 0.35)),
        url("../../images/contacto-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: 10vh;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 30px 0 20px;
    }


    .hero-copy {
      max-width: 760px;
      margin: 0 auto;
      text-align: center;
    }


    .hero h1 {
      color: var(--white);
      font-size: clamp(3rem, 5vw, 5rem);
      max-width: 860px;
      margin: 0;
      line-height: 0.96;
      text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    }


    section {
      padding: 84px 0;
      scroll-margin-top: 92px;
    }


    .bg-soft {
      background: var(--section-alt);
    }


    .content-block {
      max-width: 760px;
    }


    .intro-block {
      max-width: 780px;
      margin: 0 auto;
      text-align: center;
    }


    .intro-highlight {
      font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
      font-size: clamp(2rem, 2.7vw, 2.8rem);
      line-height: 1.2;
      color: var(--blue);
      margin: 0 0 18px;
    }


    .lead,
    .content-block p,
    .contact-panel p,
    .closing-note p {
      font-size: 1.03rem;
      color: var(--text-soft);
      margin: 0 0 16px;
      line-height: 1.82;
    }


    .intro-block .lead {
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
    }


    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
      gap: 30px;
      align-items: stretch;
    }


    .contact-card,
    .contact-panel {
      background: var(--white);
      border: 1px solid rgba(33, 59, 85, 0.08);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 34px;
    }


    .contact-card h2,
    .contact-panel h2 {
      font-size: clamp(2.2rem, 3vw, 3rem);
      margin-bottom: 14px;
    }


    .contact-list {
      margin-top: 22px;
      display: grid;
      gap: 20px;
    }


    .contact-item {
      padding-bottom: 18px;
      border-bottom: 1px solid rgba(33, 59, 85, 0.08);
    }


    .contact-item:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }


    .contact-label {
      display: block;
      margin-bottom: 6px;
      color: var(--blue);
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }


    .contact-value {
      color: var(--text);
      font-size: 1.02rem;
      line-height: 1.7;
    }


    .contact-value a {
      color: var(--blue);
      text-decoration: underline;
      text-underline-offset: 2px;
    }


    .contact-value a:hover {
      color: var(--accent);
    }


    .contact-panel {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background:
            linear-gradient(180deg, rgba(18, 37, 56, 0.15) 0%, rgba(18, 37, 56, 0.45) 100%),
            url("../../images/comunicacion-institucional-jpg.webp") center / cover no-repeat;
        color: var(--white);
    }


    .contact-panel > * {
    position: relative;
    z-index: 2;
    }
    

    .contact-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 45%);
    pointer-events: none;
    z-index: 1;
    }


    .contact-panel h2,
    .contact-panel p {
      color: var(--white);
      text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    }


    .contact-panel p {
      color: rgba(255, 255, 255, 0.9);
      text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

    

    .contact-panel .panel-small {
      margin-top: 18px;
      padding-top: 18px;
      border-top: 1px solid rgba(255,255,255,0.14);
      font-size: 0.98rem;
      line-height: 1.78;
    }


    .closing-note {
      max-width: 860px;
      text-align: center;
      margin: 0 auto;
    }


    .closing-note p {
      margin: 0;
      font-size: 1.06rem;
      line-height: 1.85;
    }


    @media (max-width: 900px) {
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .header-inner {
        min-height: auto;
        padding: 16px 0;
      }

      .nav {
        gap: 14px 18px;
      }

      section {
        padding: 74px 0;
      }
    }


    @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: 12vh;
        padding: 20px 0 16px;
        align-items: center;
      }

      .hero h1 {
        font-size: 2.4rem;
        line-height: 1.08;
      }

      .intro-highlight {
        font-size: 2.15rem;
        line-height: 1.16;
        max-width: 100%;
        margin: 0 auto 18px;
      }

      .contact-card,
      .contact-panel {
        padding: 26px 22px;
      }
    }


    @media (max-width: 640px) {
      .wrap {
        width: min(var(--max-width), calc(100% - 28px));
      }

      .hero-inner {
        min-height: 10vh;
        padding: 18px 0 14px;
      }

      .hero h1 {
        font-size: 2.1rem;
      }

      .intro-highlight {
        font-size: 1.85rem;
      }

      .lead,
      .content-block p,
      .contact-panel p,
      .closing-note p,
      .contact-value {
        font-size: 1rem;
      }
    }
