﻿: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 {
      font-size: 93.75%;
      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%),
        var(--managed-bg-image, 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 {
      padding: 44px 0;
      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 {
      max-width: 880px;
      margin-bottom: 22px;
    }

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

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

    .pace-list {
      grid-template-columns: repeat(6, 1fr);
    }

    .pace-card {
      position: relative;
      display: grid;
      align-content: start;
      min-height: 154px;
      padding: 18px 18px 18px 68px;
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-left: 5px solid var(--pace-color, var(--amarillo));
      border-radius: var(--radio);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
      color: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(10px);
      box-shadow: 0 14px 30px rgba(3, 22, 46, 0.16);
    }

    .pace-card:nth-child(-n + 3) {
      grid-column: span 2;
    }

    .pace-card:nth-child(n + 4) {
      grid-column: span 3;
    }

    .pace-card::before {
      content: "";
      position: absolute;
      left: 18px;
      top: 20px;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: var(--pace-color, var(--amarillo));
      box-shadow: 0 10px 22px rgba(3, 22, 46, 0.22);
    }

    .pace-card::after {
      content: "";
      position: absolute;
      left: 26px;
      top: 28px;
      width: 18px;
      height: 18px;
      background: #08213f;
      mask: var(--pace-icon) center / contain no-repeat;
    }

    .pace-card--school {
      --pace-color: #f6b31b;
      --pace-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21V9l9-6 9 6v12h-6v-7H9v7H3Zm2-2h2v-7h10v7h2V10.07l-7-4.67-7 4.67V19Zm5 0h4v-5h-4v5Z'/%3E%3C/svg%3E");
    }

    .pace-card--students {
      --pace-color: #33c2a2;
      --pace-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3ZM8 11c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3Zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13Zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.96 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5Z'/%3E%3C/svg%3E");
    }

    .pace-card--access {
      --pace-color: #ffdf6e;
      --pace-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 2 7l10 5 10-5-10-5Zm-7 9.18V16l7 3.5 7-3.5v-4.82l-7 3.5-7-3.5ZM19 18v-7h2v8l-9 4-9-4v-8h2v7l7 3.11L19 18Z'/%3E%3C/svg%3E");
    }

    .pace-card--support {
      --pace-color: #8dd7ff;
      --pace-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35 10.55 20.03C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08A6.04 6.04 0 0 1 16.5 3C19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35Z'/%3E%3C/svg%3E");
    }

    .pace-card--impact {
      --pace-color: #f36f6f;
      --pace-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h4v8H3v-8Zm7-5h4v13h-4V8Zm7-6h4v19h-4V2Z'/%3E%3C/svg%3E");
    }

    .pace-card strong {
      display: block;
      margin-bottom: 5px;
      color: #ffe5a8;
      font-size: 1rem;
      line-height: 1.15;
    }

    .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--notice {
      grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
      gap: 24px;
      align-items: stretch;
      padding: 18px;
      overflow: hidden;
    }

    .admission-photo {
      min-height: 310px;
      margin: 0;
      overflow: hidden;
      border-radius: var(--radio);
      background: var(--azul-oscuro);
    }

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

    .admission-content {
      display: grid;
      align-content: center;
      gap: 10px;
      padding: 10px 6px;
    }

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

    .admission-content strong {
      color: var(--azul);
      font-size: 1.04rem;
    }

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

    .admission-dates {
      display: grid;
      gap: 8px;
      margin: 4px 0 6px;
      padding: 0;
      list-style: none;
    }

    .admission-dates li {
      position: relative;
      padding-left: 20px;
      color: #2d3850;
      font-weight: 800;
      line-height: 1.35;
    }

    .admission-dates li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.48em;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #cf2f32;
    }

    .admission-content .btn {
      width: fit-content;
      margin-top: 2px;
    }

    .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,
      .admission-box,
      .admission-box--notice {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .pace-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }

      .pace-card,
      .pace-card:nth-child(-n + 3),
      .pace-card:nth-child(n + 4) {
        grid-column: auto;
        min-height: 168px;
      }

      .admission-photo {
        min-height: 260px;
      }

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

      figcaption {
        display: none;
      }

      .support-photo {
        min-height: 260px;
      }
    }

    @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 {
        display: grid;
        grid-template-columns: 1fr;
      }

      .cards,
      .pace-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .card {
        min-height: 0;
        padding: 14px;
      }

      .card h3 {
        font-size: 0.92rem;
      }

      .card p {
        font-size: 0.78rem;
        line-height: 1.35;
      }

      .pace {
        padding: 40px 0;
      }

      .pace .section-title {
        margin-bottom: 18px;
      }

      .pace-card {
        min-height: 0;
        padding: 12px 10px 12px 44px;
        font-size: 0.76rem;
      }

      .pace-card::before {
        left: 10px;
        top: 12px;
        width: 26px;
        height: 26px;
      }

      .pace-card::after {
        left: 16px;
        top: 18px;
        width: 14px;
        height: 14px;
      }

      .pace-card strong {
        font-size: 0.84rem;
        line-height: 1.2;
      }

      .btn {
        width: 100%;
      }

      .admission-content .btn {
        width: 100%;
      }

      .admission-box--notice {
        padding: 12px;
      }

      .admission-photo {
        min-height: 190px;
      }

      .support-layout {
        gap: 12px;
      }

      .support-panel {
        padding: 16px;
      }

      .support-photo {
        min-height: 190px;
      }

      section {
        padding: 36px 0;
      }
    }

    @media (max-width: 390px) {
      .cards,
      .pace-list {
        gap: 8px;
      }

      .card {
        padding: 12px;
      }

      .card h3 {
        font-size: 0.86rem;
      }

      .card p,
      .pace-card {
        font-size: 0.72rem;
      }
    }
