:root {
  /* Paleta institucional CETPRO Crear — tomada de crear.edu.pe (rojo #cc0605) */
  --brand-primary: #cc0605;
  --brand-primary-dark: #8f0403;
  --brand-primary-soft: #f0554b;
  --brand-red: #cc0605;
  --brand-red-dark: #8f0403;
  --brand-gold: #ffd700;
  --cream: #faf7f2;
  --white: #ffffff;
  --surface: #ffffff;
  --ink: #14243b;
  --muted: #4a5568;
  --primary-ink: #b30806;
  --accent-ink: #cc0605;
  --accent-ink-strong: #8f0403;
  --chip-bg: rgba(204, 6, 5, .08);
  --chip-accent-bg: rgba(204, 6, 5, .14);
  --dot-bg: rgba(204, 6, 5, .26);
  --line: rgba(204, 6, 5, .16);
  --line-soft: rgba(204, 6, 5, .08);
  --veil: 143, 4, 3;
  --header-bg: rgba(250, 247, 242, .94);
  --slide-bg: linear-gradient(160deg, #faf7f2, #f8e9e8);
  --slide-bg-alt: linear-gradient(160deg, #fdf4f3, #ffffff);
  --maxw: 1200px;
  --nav-h: 74px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 12px 30px rgba(102, 20, 18, .12);
  --shadow-card: 0 10px 24px rgba(102, 20, 18, .08);
}

/* Modo oscuro: carbón cálido (caoba), coral y dorado en lugar de rojo puro
   sobre negro, para una combinación más armoniosa y legible */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #171210;
  --surface: #231b18;
  --ink: #f4ece7;
  --muted: #c3b2aa;
  --primary-ink: #ffb3a9;
  --accent-ink: #ffd166;
  --accent-ink-strong: #ffe3a1;
  --chip-bg: rgba(255, 179, 169, .13);
  --chip-accent-bg: rgba(255, 209, 102, .15);
  --dot-bg: rgba(255, 255, 255, .28);
  --line: rgba(255, 224, 214, .15);
  --line-soft: rgba(255, 224, 214, .07);
  --veil: 26, 12, 10;
  --header-bg: rgba(21, 16, 14, .93);
  --slide-bg: linear-gradient(160deg, #1a1412, #261b17);
  --slide-bg-alt: linear-gradient(160deg, #201814, #181211);
  --shadow: 0 12px 30px rgba(0, 0, 0, .55);
  --shadow-card: 0 10px 24px rgba(0, 0, 0, .45);
}

/* Retoques del tema oscuro */
html[data-theme="dark"] .nav__brand img {
  padding: 4px 9px;
  background: #ffffff;
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #261311, #170c0b);
  border-top: 1px solid rgba(255, 179, 169, .16);
}

html[data-theme="dark"] .cta-panel {
  background: linear-gradient(135deg, #74110d, #3c0a08);
  border: 1px solid rgba(255, 179, 169, .22);
}

html[data-theme="dark"] .btn-outline {
  background: rgba(255, 255, 255, .92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.is-booting {
  overflow: hidden;
}

.site-skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--brand-primary-dark);
  border-radius: .6rem;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.site-skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: 0;
  line-height: 1.12;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, .10), transparent 44%),
    linear-gradient(172deg, #b03c30 0%, #a5352a 46%, #8c261e 100%);
  color: var(--white);
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}

.page-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.page-loader__content {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 22px;
}

.page-loader__logo {
  width: min(76vw, 250px);
  height: auto;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  animation: loaderLogoIn .65s ease both;
}

/* The clip is no longer a framed "video box": the runner blends into the
   backdrop and travels along the progress bar while the intro plays. */
.page-loader__track {
  position: relative;
  width: min(66vw, 280px);
  padding-top: clamp(66px, 17vw, 82px);
  animation: loaderLogoIn .6s ease both;
}

.page-loader__runner {
  position: absolute;
  left: 0;
  bottom: 6px;
  z-index: 0;
  width: clamp(104px, 28vw, 132px);
  aspect-ratio: 16 / 9;
  will-change: transform;
  pointer-events: none;
}

/* Soft patch behind the clip that bridges any tone difference between the
   video's red backdrop and the loader gradient. */
.page-loader__runner::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: -1;
  background: radial-gradient(ellipse closest-side,
      #ac382d 0%, #ac382d 34%, rgba(172, 56, 45, 0) 80%);
}

.page-loader__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  /* Fades the clip's edges (and the corner watermark) into the backdrop. */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%,
      #000 0%, #000 58%, rgba(0, 0, 0, 0) 88%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%,
      #000 0%, #000 58%, rgba(0, 0, 0, 0) 88%);
}

.page-loader__bar {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.page-loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-gold), #ffffff);
  transform-origin: left;
  transform: scaleX(0);
}

.page-loader__text {
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
  letter-spacing: .02em;
  animation: loaderText 1.15s ease-in-out infinite alternate;
}

@keyframes loaderLogoIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderText {
  from {
    opacity: .58;
  }

  to {
    opacity: 1;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand links cta";
  align-items: center;
  column-gap: clamp(18px, 3vw, 36px);
}

.nav__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--primary-ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
}

.nav__brand img {
  height: 48px;
  width: auto;
}

.nav__links {
  grid-area: links;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(16px, 2vw, 24px);
}

.nav__cta {
  grid-area: cta;
  justify-self: end;
}

.nav__cta .btn {
  white-space: nowrap;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  color: var(--primary-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

/* Subrayado animado: marca la sección activa y responde al pasar el cursor */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--accent-ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__item {
  position: relative;
}

.dropdown__chevron {
  font-size: 11px;
  line-height: 1;
}

.dropdown__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.nav__item:hover .dropdown__panel,
.nav__item:focus-within .dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--primary-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.dropdown__item:hover {
  background: var(--chip-bg);
  color: var(--accent-ink);
}

.nav__toggle {
  grid-area: toggle;
  justify-self: end;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-ink);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}

.btn-danger {
  background: var(--brand-red);
  color: var(--white);
}

.btn-danger:hover {
  background: var(--brand-red-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .72);
  /* Va sobre fotos con velo rojo: rojo fijo en ambos temas */
  color: #b30806;
}

.text-link {
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-ink-strong);
}

.home-hero {
  min-height: clamp(620px, 72svh, 740px);
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(var(--veil), .92), rgba(var(--veil), .72) 46%, rgba(var(--veil), .30)),
    url("../esp-operador-computadoras.webp") center right / cover no-repeat;
}

.home-hero__content {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding-block: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--brand-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 7vw, 4.9rem);
  font-weight: 900;
}

.home-hero__lead {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.stats {
  position: relative;
  background: var(--line);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.stats__viewport {
  overflow: hidden;
  background: var(--cream);
}

.stats__track {
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform .55s ease;
}

.stat {
  flex: 0 0 100%;
  min-height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 30px 18px 40px;
  background: var(--cream);
  text-align: center;
}

.stat__num {
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
}

.stat:nth-child(even) .stat__num {
  color: var(--brand-primary-soft);
}

.stat__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stats__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.stats__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dot-bg);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.stats__dot.is-active {
  width: 24px;
  background: var(--brand-red);
}

.section {
  padding-block: 84px;
}

.section--specialties {
  padding-bottom: 0;
}

.section--specialties .section__head {
  margin-bottom: 24px;
}

.section--white {
  background: var(--surface);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section__title {
  margin-top: 10px;
  color: var(--primary-ink);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}

.section__subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.page-hero {
  padding-block: 80px 56px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(var(--veil), .94), rgba(var(--veil), .72)),
    url("../esp-cocina.webp") center / cover no-repeat;
}

.page-hero--about {
  background:
    linear-gradient(90deg, rgba(var(--veil), .94), rgba(var(--veil), .70)),
    url("../esp-logistica-almacen.webp") center / cover no-repeat;
}

.page-hero--admission {
  background:
    linear-gradient(90deg, rgba(var(--veil), .94), rgba(var(--veil), .70)),
    url("../esp-asistencia-gerencia.webp") center / cover no-repeat;
}

.page-hero--contact {
  background:
    linear-gradient(90deg, rgba(var(--veil), .94), rgba(var(--veil), .70)),
    url("../esp-aviacion-comercial.webp") center / cover no-repeat;
}

.page-hero__content {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
}

.page-hero p {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.1rem;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.career-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.career-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.career-card__body {
  padding: 18px;
}

.career-card__area {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.career-card h3 {
  margin-top: 8px;
  color: var(--primary-ink);
  font-size: 1.1rem;
}

.career-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.media-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack h2 {
  color: var(--primary-ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.copy-stack p {
  color: var(--muted);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--brand-red);
  border-bottom: 3px solid var(--brand-red);
  transform: rotate(-45deg);
}

.cta-panel {
  padding: 44px;
  background: var(--brand-primary-dark);
  color: var(--white);
  border-radius: 8px;
}

.cta-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-panel p {
  max-width: 650px;
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, .84);
}

.admission-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-access-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.info-card h2,
.info-card h3 {
  color: var(--primary-ink);
  font-size: 1.25rem;
}

.info-card p,
.info-card address {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.legal-copy {
  max-width: 900px;
  margin-inline: auto;
}

.legal-copy h2,
.legal-copy h3 {
  margin-top: 28px;
  color: var(--primary-ink);
}

.legal-copy h2:first-child,
.legal-copy h3:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.claim-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--primary-ink);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

/* Individual specialty pages */
.esp-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.esp-breadcrumb:hover {
  color: var(--brand-gold);
}

.esp-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
}

.esp-mods {
  max-width: 900px;
  margin-inline: auto;
}

.esp-mods .hslide__mods {
  margin: 0;
}

.hscroll {
  position: relative;
}

.hscroll__sticky {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.hscroll.is-pinned .hscroll__sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  scroll-snap-type: none;
}

.hscroll__track {
  --slide-w: 90vw;
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Modo apilado (escritorio fijado): cada tarjeta entra desde la derecha y
   cubre a la anterior, que retrocede al fondo con leve escala y un velo */
.hscroll.is-pinned .hscroll__track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.hscroll.is-pinned .hslide {
  position: absolute;
  inset: 0;
  min-height: 0;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  box-shadow: -34px 0 70px rgba(0, 0, 0, .28);
}

.hscroll.is-pinned .hslide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #170d0b;
  opacity: calc(var(--cover, 0) * .55);
  pointer-events: none;
}

/* Contador de tarjeta visible solo en el modo fijado */
.hscroll__count {
  display: none;
}

.hscroll.is-pinned .hscroll__count {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: var(--shadow-card);
}

.hslide {
  flex: 0 0 var(--slide-w);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 78px);
  padding: 36px clamp(28px, 6vw, 86px);
  background: var(--slide-bg);
  scroll-snap-align: start;
}

.hslide:nth-child(even) {
  background: var(--slide-bg-alt);
}

.hslide__poster {
  flex: 0 1 min(42vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hslide__img {
  width: min(100%, 500px);
  max-height: calc(100vh - var(--nav-h) - 72px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hslide__info {
  flex: 0 1 620px;
  min-width: 0;
}

.hslide__title {
  margin-top: 10px;
  color: var(--primary-ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 900;
}

.chip--accent {
  background: var(--chip-accent-bg);
  color: var(--accent-ink-strong);
}

.hslide__mods {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, min-content);
  gap: 12px 34px;
  padding: 0;
  margin: 24px 0 30px;
  list-style: none;
  counter-reset: module;
}

.hslide__mods li {
  counter-increment: module;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.hslide__mods li::before {
  content: counter(module);
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.hslide__info--dense .hslide__mods {
  gap: 9px 28px;
}

.hslide__info--dense .hslide__mods li {
  font-size: 13px;
}

.hslide__btn {
  width: fit-content;
}

.hscroll__progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--line-soft);
  z-index: 2;
}

.hscroll.is-pinned .hscroll__progress {
  display: block;
}

.hscroll__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-red);
}

.footer {
  padding: 52px 0 34px;
  background: var(--brand-primary-dark);
  color: var(--white);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2.4fr;
  gap: 40px;
}

.footer__logo {
  height: 58px;
  width: auto;
  padding: 6px 10px;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 8px;
}

.footer p,
.footer address {
  color: rgba(255, 255, 255, .78);
  font-style: normal;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer h3 {
  margin-bottom: 10px;
  color: var(--brand-gold);
  font-size: 14px;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand-gold);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.social-link img,
.footer__links img,
.wa-float img {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  text-align: center;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 58px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
}

.wa-float img {
  filter: brightness(0) invert(1);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand cta toggle";
    column-gap: 12px;
  }

  .nav__toggle {
    display: inline-block;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 18px 24px 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: grid;
    align-items: stretch;
    gap: 10px;
  }

  .nav__link,
  .nav__links .btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
  }

  /* En el menú móvil la sección activa se marca como pastilla con barra lateral */
  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    background: var(--chip-bg);
    border-radius: 8px;
    box-shadow: inset 4px 0 0 var(--brand-primary);
  }

  .dropdown__panel {
    position: static;
    display: grid;
    min-width: 0;
    max-height: none;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .career-grid,
  .admission-grid,
  .contact-grid,
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hslide {
    flex-direction: column;
    min-height: 0;
    padding-block: 42px;
  }

  .hscroll__track {
    display: grid;
    width: 100%;
  }

  .hslide__poster {
    flex-basis: auto;
  }

  .hslide__img {
    width: min(100%, 340px);
    max-height: none;
  }

  .hslide__mods {
    grid-auto-flow: row;
    grid-template-rows: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--maxw));
  }

  .page-loader__track {
    width: min(72vw, 260px);
  }

  .nav__brand img {
    height: 38px;
    max-width: 42vw;
  }

  .nav__cta .btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .home-hero {
    min-height: clamp(500px, 68svh, 560px);
    background:
      linear-gradient(90deg, rgba(var(--veil), .94), rgba(var(--veil), .80)),
      url("../esp-operador-computadoras.webp") center / cover no-repeat;
  }

  .home-hero__content {
    padding-block: 42px;
  }

  .career-grid,
  .admission-grid,
  .contact-grid,
  .form-grid,
  .check-list,
  .footer__cols {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 64px;
  }

  .cta-panel {
    padding: 30px 22px;
  }

  .hero__actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    font-size: 0;
  }

  .wa-float img {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .page-loader__bar span {
    transform: scaleX(1);
  }

  .page-loader__runner {
    display: none;
  }

  .page-loader__track {
    padding-top: 0;
  }
}
