﻿:root {
      --azul: #053b83;
      --azul-oscuro: #072653;
      --celeste: #0c95c9;
      --amarillo: #f6b31b;
      --verde: #2f8f4e;
      --tinta: #182033;
      --texto: #4c5568;
      --fondo: #f5f8fb;
      --blanco: #ffffff;
      --borde: #dbe4f0;
      --sombra: 0 18px 45px rgba(10, 32, 68, 0.14);
      --radio: 8px;
      --ancho: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--tinta);
      background: var(--fondo);
      line-height: 1.6;
      overflow-x: hidden;
    }

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

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

    .wrap {
      width: min(var(--ancho), calc(100% - 32px));
      margin: 0 auto;
    }

    .top {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2147483646;
      overflow: visible;
      background: rgba(7, 38, 83, 0.9);
      border-bottom: 1px solid rgba(255, 255, 255, 0.16);
      backdrop-filter: blur(14px);
    }

    .top__inner {
      position: relative;
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      overflow: visible;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      color: var(--blanco);
      font-weight: 800;
      line-height: 1.15;
    }

    .brand img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      flex: 0 0 auto;
    }

    .brand span {
      display: block;
      font-size: clamp(0.92rem, 3vw, 1rem);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      color: var(--blanco);
      font-weight: 800;
      font-size: 0.94rem;
    }

    .nav a {
      padding: 10px 12px;
      border-radius: var(--radio);
    }

    .nav a:hover,
    .nav a:focus-visible {
      background: rgba(255, 255, 255, 0.14);
      outline: none;
    }

    .nav.is-open {
      position: fixed;
      left: 16px;
      right: 16px;
      top: 82px;
      z-index: 2147483647;
      display: grid !important;
      grid-template-columns: 1fr;
      padding: 10px;
      border: 1px solid var(--borde);
      border-radius: var(--radio);
      background: var(--blanco);
      box-shadow: var(--sombra);
      justify-content: flex-start;
    }

    .nav.is-open a {
      color: #243047;
    }

    .nav.is-open a:hover,
    .nav.is-open a:focus-visible {
      background: #edf5ff;
      color: var(--azul);
    }

    .nav .nav-cta {
      color: #19243a;
      background: var(--amarillo);
    }

    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: var(--radio);
      background: var(--blanco);
      color: var(--azul);
      font-size: 1.4rem;
      font-weight: 900;
      cursor: pointer;
    }

    .hero {
      min-height: 540px;
      display: grid;
      align-items: end;
      color: var(--blanco);
      background:
        linear-gradient(90deg, rgba(3, 23, 52, 0.92) 0%, rgba(5, 59, 131, 0.72) 46%, rgba(3, 23, 52, 0.18) 100%),
        linear-gradient(0deg, rgba(3, 23, 52, 0.82) 0%, rgba(3, 23, 52, 0.08) 58%),
        url("../Imagenes/liceo/PATIO%20PRINCIPAL.JPG") center / cover no-repeat;
    }

    .hero__inner {
      padding: 104px 0 46px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #ffe5a8;
      font-size: 0.82rem;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 38px;
      height: 3px;
      border-radius: 999px;
      background: var(--amarillo);
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
      overflow-wrap: break-word;
      max-width: 100%;
    }

    h1 {
      max-width: 840px;
      margin: 12px 0 16px;
      font-size: clamp(2rem, 4.8vw, 3.6rem);
      line-height: 0.96;
      letter-spacing: 0;
    }

    .hero__text {
      max-width: 760px;
      margin-bottom: 28px;
      color: rgba(255, 255, 255, 0.9);
      font-size: clamp(0.96rem, 1.6vw, 1.06rem);
    }

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

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 18px;
      border: 1px solid transparent;
      border-radius: var(--radio);
      font-weight: 900;
      transition: transform 160ms ease, background 160ms ease;
    }

    .btn:hover,
    .btn:focus-visible {
      transform: translateY(-2px);
      outline: none;
    }

    .btn--primary {
      color: #1b2638;
      background: var(--amarillo);
      box-shadow: 0 14px 32px rgba(246, 179, 27, 0.26);
    }

    .btn--ghost {
      color: var(--blanco);
      border-color: rgba(255, 255, 255, 0.38);
      background: rgba(255, 255, 255, 0.12);
    }

    section {
      padding: 54px 0;
      scroll-margin-top: 92px;
    }

    .section-title {
      max-width: 800px;
      margin-bottom: 30px;
    }

    .section-title h2 {
      margin-bottom: 10px;
      color: var(--azul-oscuro);
      font-size: clamp(1.55rem, 3vw, 2.25rem);
      line-height: 1.04;
      letter-spacing: 0;
    }

    .section-title p {
      margin-bottom: 0;
      color: var(--texto);
      font-size: 1rem;
    }

    .support {
      background: var(--blanco);
    }

    .support-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
      gap: 24px;
      align-items: stretch;
    }

    .support-panel {
      padding: 28px;
      border: 1px solid var(--borde);
      border-radius: var(--radio);
      background: #fbfdff;
      box-shadow: 0 12px 30px rgba(10, 32, 68, 0.08);
    }

    .support-panel h3 {
      margin-bottom: 10px;
      color: var(--azul-oscuro);
      font-size: 1.18rem;
    }

    .support-panel p {
      color: var(--texto);
    }

    .support-panel p:last-child {
      margin-bottom: 0;
    }

    .support-photo {
      position: relative;
      min-height: 380px;
      margin: 0;
      overflow: hidden;
      border-radius: var(--radio);
      border: 1px solid var(--borde);
      box-shadow: var(--sombra);
      background: var(--azul-oscuro);
    }

    .support-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    figcaption {
      position: absolute;
      left: 14px;
      bottom: 14px;
      padding: 8px 12px;
      border-radius: var(--radio);
      color: var(--blanco);
      background: rgba(3, 22, 46, 0.72);
      font-weight: 900;
      backdrop-filter: blur(10px);
    }

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

    .card {
      min-height: 170px;
      padding: 24px;
      border: 1px solid var(--borde);
      border-top: 5px solid var(--celeste);
      border-radius: var(--radio);
      background: var(--blanco);
      box-shadow: 0 12px 30px rgba(10, 32, 68, 0.08);
    }

    .card:nth-child(2) {
      border-top-color: var(--verde);
    }

    .card:nth-child(3) {
      border-top-color: var(--amarillo);
    }

    .card h3 {
      margin-bottom: 8px;
      color: var(--azul-oscuro);
      font-size: 1.16rem;
    }

    .card p {
      margin-bottom: 0;
      color: var(--texto);
    }

    .pace {
      background:
        linear-gradient(90deg, rgba(5, 59, 131, 0.97), rgba(7, 38, 83, 0.94)),
        url("../Imagenes/liceo/PATIO%20ESPECIALIDADES.jpg") center / cover no-repeat;
      color: var(--blanco);
    }

    .pace .section-title h2,
    .pace .section-title p {
      color: var(--blanco);
    }

    .pace-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
      gap: 18px;
      align-items: start;
    }

    .pace-list,
    .source-list {
      display: grid;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .pace-list li {
      padding: 18px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: var(--radio);
      background: rgba(255, 255, 255, 0.11);
      color: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(10px);
    }

    .pace-list strong {
      display: block;
      margin-bottom: 6px;
      color: #ffe5a8;
      font-size: 1.04rem;
    }

    .pace-note {
      padding: 24px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: var(--radio);
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(10px);
    }

    .pace-note h3 {
      margin-bottom: 10px;
      color: #ffe5a8;
    }

    .pace-note p {
      margin-bottom: 0;
      color: rgba(255, 255, 255, 0.88);
    }

    .admission {
      background: var(--blanco);
    }

    .admission-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
      padding: 26px;
      border-radius: var(--radio);
      border: 1px solid var(--borde);
      background: #fbfdff;
      box-shadow: var(--sombra);
    }

    .admission-box h2 {
      margin-bottom: 8px;
      color: var(--azul-oscuro);
      font-size: clamp(1.45rem, 2.8vw, 2.1rem);
      line-height: 1.08;
    }

    .admission-box p {
      margin-bottom: 0;
      color: var(--texto);
    }

    .sources {
      background: #eef3f9;
    }

    .source-list a {
      display: block;
      padding: 16px;
      border: 1px solid var(--borde);
      border-radius: var(--radio);
      color: var(--azul);
      background: var(--blanco);
      font-weight: 800;
    }

    .footer {
      padding: 26px 0;
      color: rgba(255, 255, 255, 0.82);
      background: #03162e;
      font-size: 0.93rem;
    }

    .footer__inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .to-top {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 2147483645;
      display: grid;
      place-items: center;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.86);
      color: var(--azul-oscuro);
      border: 1px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 16px 34px rgba(7, 38, 83, 0.24);
      backdrop-filter: blur(14px);
      transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .to-top::before {
      content: "";
      width: 13px;
      height: 13px;
      border-top: 3px solid currentColor;
      border-left: 3px solid currentColor;
      transform: translateY(4px) rotate(45deg);
      border-radius: 2px;
    }

    .to-top:hover,
    .to-top:focus-visible {
      transform: translateY(-3px);
      background: var(--amarillo);
      box-shadow: 0 18px 38px rgba(7, 38, 83, 0.34);
      outline: none;
    }

    @media (max-width: 1100px), (hover: none) {
      .menu-toggle {
        display: inline-grid !important;
        place-items: center;
        position: absolute;
        top: 50%;
        right: 0;
        z-index: 2147483647;
        transform: translateY(-50%);
      }

      .nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        z-index: 2147483647;
        display: none;
        grid-template-columns: 1fr;
        max-height: calc(100dvh - 98px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--borde);
        border-radius: var(--radio);
        background: var(--blanco);
        box-shadow: var(--sombra);
        justify-content: flex-start;
      }

      .nav.is-open {
        position: fixed !important;
        left: 16px;
        right: 16px;
        top: 82px;
        z-index: 2147483647;
        display: grid !important;
      }

      .nav a {
        color: #243047;
      }

      .nav a:hover,
      .nav a:focus-visible {
        background: #edf5ff;
        color: var(--azul);
      }

      .brand {
        padding-right: 58px;
      }

      .support-layout,
      .pace-grid,
      .admission-box {
        grid-template-columns: 1fr;
      }

      .cards {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 620px) {
      .wrap {
        width: min(var(--ancho), calc(100% - 24px));
      }

      .top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
      }

      .hero__inner {
        padding: 48px 0 38px;
        overflow: hidden;
      }

      h1 {
        font-size: clamp(1.65rem, 7vw, 2.1rem);
        line-height: 1.04;
      }

      .hero__text {
        font-size: 0.94rem;
      }

      .hero {
        min-height: 500px;
      }

      .hero__actions,
      .cards {
        display: grid;
        grid-template-columns: 1fr;
      }

      .btn {
        width: 100%;
      }

      section {
        padding: 44px 0;
      }
    }
