﻿:root {
      --navy: #071d3b;
      --blue: #064b9b;
      --steel: #d9e1ea;
      --ink: #162033;
      --text: #4a5568;
      --gold: #f6b31b;
      --orange: #e26822;
      --white: #ffffff;
      --line: #dbe4f0;
      --soft: #f4f7fb;
      --shadow: 0 18px 45px rgba(7, 29, 59, 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(7, 29, 59, 0.88);
      border-bottom: 1px solid rgba(255, 255, 255, 0.14);
      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: #edf5ff;
      color: var(--blue);
    }

    .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(--blue);
      font-size: 1.4rem;
      font-weight: 900;
      cursor: pointer;
    }

    .hero {
      position: relative;
      min-height: 560px;
      display: grid;
      align-items: end;
      color: var(--white);
      background:
        linear-gradient(90deg, rgba(5, 20, 42, 0.92) 0%, rgba(6, 44, 89, 0.66) 44%, rgba(5, 20, 42, 0.16) 100%),
        linear-gradient(0deg, rgba(5, 20, 42, 0.88) 0%, rgba(5, 20, 42, 0.12) 54%),
        url("../Imagenes/taller.jpg") center / cover no-repeat;
      overflow: hidden;
    }

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

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #ffe2a2;
      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(--gold);
    }

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

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

    .hero__text {
      max-width: 700px;
      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--gold {
      color: #1b2638;
      background: var(--gold);
      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);
    }

    .hero-panel {
      margin-top: 44px;
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 16px;
      max-width: 610px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: var(--radius);
      background: rgba(7, 29, 59, 0.62);
      backdrop-filter: blur(14px);
    }

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

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

    section {
      padding: 54px 0;
    }

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

    .section-title h2 {
      margin-bottom: 10px;
      color: var(--navy);
      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;
    }

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

    .workbench-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
      gap: 24px;
      align-items: stretch;
    }

    .photo-main,
    .photo-stack figure {
      position: relative;
      margin: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--navy);
      box-shadow: var(--shadow);
    }

    .photo-main img,
    .photo-stack img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .photo-main {
      min-height: 380px;
    }

    .photo-stack {
      display: grid;
      gap: 16px;
    }

    .photo-stack figure {
      min-height: 190px;
    }

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

    .skills {
      background:
        linear-gradient(90deg, rgba(7, 29, 59, 0.97), rgba(6, 75, 155, 0.92)),
        url("../Imagenes/liceo/FRONTIS%20TALLER%20DE%20MECANICA.JPG") center / cover no-repeat;
      color: var(--white);
    }

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

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

    .skill {
      min-height: 152px;
      padding: 22px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
    }

    .skill strong {
      display: block;
      margin-bottom: 10px;
      color: #ffe2a2;
      font-size: 1.08rem;
    }

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

    .route {
      background: #f7f9fc;
    }

    .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(--orange);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: 0 12px 30px rgba(7, 29, 59, 0.08);
    }

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

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

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

    .gallery-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      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(--navy);
    }

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

    .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: #041326;
      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(--navy);
      border: 1px solid rgba(255, 255, 255, 0.92);
      box-shadow: 0 16px 34px rgba(7, 29, 59, 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(--gold);
      box-shadow: 0 18px 38px rgba(7, 29, 59, 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: #edf5ff;
        color: var(--blue);
      }

      .brand {
        padding-right: 58px;
      }

      .hero {
        min-height: 540px;
      }

      .workbench-grid,
      .gallery-grid {
        grid-template-columns: 1fr;
      }

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

      .photo-main,
      .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;
      }

      .hero-panel,
      .skill-grid,
      .route-grid {
        grid-template-columns: 1fr;
      }

      .hero-panel img {
        width: 84px;
        height: 84px;
      }

      section {
        padding: 44px 0;
      }
    }
