﻿:root {
      --forest: #123f38;
      --teal: #087f8c;
      --sky: #dff5f7;
      --leaf: #2f8f4e;
      --sun: #f6b31b;
      --coral: #d75f4c;
      --ink: #172333;
      --text: #4c5969;
      --white: #ffffff;
      --line: #dbe8e7;
      --soft: #f5faf9;
      --shadow: 0 18px 45px rgba(18, 63, 56, 0.16);
      --max: 1180px;
      --radius: 8px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

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

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

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

    .top {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2147483646;
      overflow: visible;
      background: rgba(18, 63, 56, 0.86);
      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(--white);
      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;
      gap: 8px;
      color: var(--white);
      font-weight: 800;
      font-size: 0.94rem;
    }

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

    .nav a:hover,
    .nav a:focus-visible {
      background: rgba(255, 255, 255, 0.12);
      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(--line);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .nav.is-open a {
      color: #243047;
      justify-content: flex-start;
    }

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

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

    .hero {
      min-height: 560px;
      display: grid;
      align-items: end;
      color: var(--white);
      background:
        linear-gradient(90deg, rgba(18, 63, 56, 0.92) 0%, rgba(8, 127, 140, 0.62) 46%, rgba(18, 63, 56, 0.12) 100%),
        linear-gradient(0deg, rgba(18, 63, 56, 0.84) 0%, rgba(18, 63, 56, 0.08) 54%),
        url("../Imagenes/turismo1.jpg") center / cover no-repeat;
      overflow: hidden;
    }

    .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(--sun);
    }

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

    h1 {
      max-width: 830px;
      margin: 12px 0 16px;
      font-size: clamp(2rem, 5vw, 3.8rem);
      line-height: 0.95;
      letter-spacing: 0;
    }

    .hero__text {
      max-width: 720px;
      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(--radius);
      font-weight: 900;
      transition: transform 160ms ease, background 160ms ease;
    }

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

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

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

    .passport {
      margin-top: 44px;
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 16px;
      max-width: 650px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: var(--radius);
      background: rgba(18, 63, 56, 0.64);
      backdrop-filter: blur(14px);
    }

    .passport img {
      width: 96px;
      height: 96px;
      object-fit: contain;
      border-radius: var(--radius);
      background: var(--white);
    }

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

    section {
      padding: 54px 0;
    }

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

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

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

    .experience {
      background: var(--white);
    }

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

    .experience-text {
      display: grid;
      align-content: center;
      gap: 16px;
    }

    .experience-text p {
      color: var(--text);
      font-size: 0.98rem;
    }

    .pill-list {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .pill {
      padding: 8px 12px;
      border-radius: 999px;
      color: var(--forest);
      background: var(--sky);
      font-weight: 900;
      font-size: 0.9rem;
    }

    .experience-photo {
      position: relative;
      min-height: 380px;
      margin: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      background: var(--forest);
    }

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

    figcaption {
      position: absolute;
      left: 14px;
      bottom: 14px;
      padding: 8px 12px;
      border-radius: var(--radius);
      color: var(--white);
      background: rgba(18, 63, 56, 0.72);
      font-weight: 900;
      backdrop-filter: blur(10px);
    }

    .map {
      background:
        linear-gradient(90deg, rgba(18, 63, 56, 0.97), rgba(8, 127, 140, 0.92)),
        url("../Imagenes/liceo/PATIO%20ESPECIALIDAD%20TURISMO.jpg") center / cover no-repeat;
      color: var(--white);
    }

    .map .section-title h2,
    .map .section-title p {
      color: var(--white);
    }

    .map-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }

    .map-card {
      min-height: 158px;
      padding: 22px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.11);
      backdrop-filter: blur(10px);
    }

    .map-card strong {
      display: block;
      margin-bottom: 10px;
      color: #ffe5a8;
      font-size: 1.08rem;
    }

    .map-card p {
      margin-bottom: 0;
      color: rgba(255, 255, 255, 0.86);
      font-size: 0.96rem;
    }

    .route {
      background: #f7fbfb;
    }

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

    .route-card {
      padding: 24px;
      border: 1px solid var(--line);
      border-top: 5px solid var(--teal);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: 0 12px 30px rgba(18, 63, 56, 0.08);
    }

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

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

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

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

    .gallery {
      background: var(--white);
    }

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

    .gallery-grid figure {
      position: relative;
      min-height: 220px;
      margin: 0;
      overflow: hidden;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--forest);
    }

    .gallery-grid figure:first-child {
      grid-column: span 2;
      grid-row: span 2;
      min-height: 440px;
    }

    .gallery-grid figure:nth-child(2) {
      grid-column: span 2;
    }

    .gallery-grid img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 220ms ease;
    }

    .gallery-grid figure:hover img {
      transform: scale(1.03);
    }

    .footer {
      padding: 26px 0;
      color: rgba(255, 255, 255, 0.82);
      background: #0b2723;
      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(--forest);
      border: 1px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 16px 34px rgba(18, 63, 56, 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(--sun);
      box-shadow: 0 18px 38px rgba(18, 63, 56, 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(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
      }

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

      .nav a {
        color: #243047;
        justify-content: flex-start;
      }

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

      .brand {
        padding-right: 58px;
      }

      .hero {
        min-height: 540px;
      }

      .experience-grid {
        grid-template-columns: 1fr;
      }

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

      .experience-photo,
      .gallery-grid figure:first-child {
        min-height: 320px;
      }
    }

    @media (max-width: 620px) {
      .wrap {
        width: min(var(--max), 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;
      }

      .passport,
      .map-grid,
      .route-grid,
      .gallery-grid {
        grid-template-columns: 1fr;
      }

      .passport img {
        width: 84px;
        height: 84px;
      }

      .gallery-grid figure:first-child,
      .gallery-grid figure:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
      }

      section {
        padding: 44px 0;
      }
    }
