/* ==========================================================================
   INSTITUTO TECNOLÓGICO PACCIOLI — Hoja de estilos principal
   Rediseño institucional 2026
   ========================================================================== */

/* ==========================================================================
   01. Tokens y temas
   ========================================================================== */
:root {
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", var(--font-body);

  --navy-950: #030913;
  --navy-900: #061426;
  --navy-850: #081a31;
  --navy-800: #0a1f3a;
  --navy-700: #0f2f56;
  --navy-600: #16426f;

  --gold: #e6b45c;
  --gold-light: #f8e0ac;
  --gold-dark: #b9822c;
  --teal: #2ed3c6;
  --teal-dark: #0f9f96;

  --bg: #f5f8fc;
  --bg-alt: #edf3fa;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef4fb;
  --text: #0b1728;
  --text-soft: #3f5168;
  --muted: #67788f;
  --border: rgba(10, 31, 58, 0.1);
  --border-strong: rgba(10, 31, 58, 0.18);

  --success: #0f7b57;
  --success-bg: #e6f6ef;
  --error: #b3261e;
  --error-bg: #fdecea;

  --shadow-xs: 0 1px 2px rgba(6, 20, 38, 0.06);
  --shadow-sm: 0 10px 30px -18px rgba(6, 20, 38, 0.35);
  --shadow: 0 24px 60px -28px rgba(6, 20, 38, 0.35);
  --shadow-lg: 0 45px 90px -35px rgba(6, 20, 38, 0.45);
  --shadow-gold: 0 18px 44px -14px rgba(230, 180, 92, 0.55);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;

  --container: 1200px;
  --container-narrow: 900px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.35s;

  --gradient-gold: linear-gradient(135deg, #e7f171 0%, #d37f43 48%, #b63e0f 100%);
  --gradient-navy: linear-gradient(150deg, #0a2446 0%, #061426 58%, #030913 100%);
  --gradient-dark-soft: radial-gradient(ellipse at 82% 0%, rgba(46, 211, 198, 0.16), transparent 52%),
    radial-gradient(ellipse at 8% 100%, rgba(230, 180, 92, 0.13), transparent 46%),
    linear-gradient(155deg, #081a31 0%, #050f1e 55%, #030913 100%);
}

html[data-theme="dark"] {
  --bg: #050d19;
  --bg-alt: #071426;
  --surface: #0a1a2f;
  --surface-2: #0d2038;
  --surface-3: #102745;
  --text: #eaf2fc;
  --text-soft: #b7c8dd;
  --muted: #90a4bf;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --success: #4fe0a3;
  --success-bg: rgba(30, 160, 110, 0.14);
  --error: #ff8f86;
  --error-bg: rgba(190, 50, 40, 0.16);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.65);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 45px 90px -35px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   02. Reset y base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

body.no-scroll {
  overflow: hidden;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--gold);
  color: #08172b;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Scrollbar discreto */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 180, 92, 0.55) transparent;
}

/* ==========================================================================
   03. Utilidades y componentes compartidos
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), var(--container-narrow));
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #08172b;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2500;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 14px rgba(230, 180, 92, 0.7);
  transition: width 0.1s linear;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 1vw, 7rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--dark {
  background: var(--gradient-dark-soft);
  color: #f4f8ff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark p {
  color: rgba(233, 241, 252, 0.78);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.eyebrow--light {
  color: var(--gold);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.section-heading p {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.section-heading--inverse h2 {
  color: #fff;
}

.section-heading--inverse p {
  color: rgba(230, 240, 252, 0.74);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 2rem;
  align-items: end;
  max-width: none;
}

.section-heading--split h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.section-heading--split > p {
  margin: 0 0 0.35rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}

/* Botones ----------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    background-color var(--speed) var(--ease), color var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--speed) var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--gradient-gold);
  color: #08172b;
  box-shadow: var(--shadow-gold);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.65) 48%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(248, 224, 172, 0.55), 0 22px 48px -14px rgba(230, 180, 92, 0.7),
    0 0 34px rgba(230, 180, 92, 0.4);
}

.btn--primary:hover::after {
  transform: translateX(130%);
}

.btn--outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--gold-dark);
  background: rgba(230, 180, 92, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 40px;
  padding: 0.62rem 1.1rem;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: scale(0.975);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn .ripple {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(26);
    opacity: 0;
  }
}

/* Botón azul para las plataformas externas --------------------------------- */
.btn--blue {
  background: linear-gradient(135deg, rgb(92, 202, 24) 0%, rgb(22, 66, 111) 100%);
  color: #fff;
  box-shadow: 0 18px 44px -14px rgba(10, 36, 70, 0.65);
}

.btn--blue:hover {
  background: linear-gradient(135deg, rgb(73, 166, 36) 0%, rgb(15, 47, 86) 100%);
  transform: translateY(-2px);
  box-shadow: 0 26px 54px -16px rgba(10, 36, 70, 0.75);
  color: #fff;
}

/* Botón Delivery Paccioli -------------------------------------------------- */
.btn--delivery {
  background: linear-gradient(135deg, #ff8a3d 0%, #f25c05 100%);
  color: #fff;
  box-shadow: 0 18px 44px -14px rgba(242, 92, 5, 0.65);
}

.btn--delivery:hover {
  background: linear-gradient(135deg, #ffa25e 0%, #ff6a0f 100%);
  transform: translateY(-2px);
  box-shadow: 0 26px 54px -16px rgba(242, 92, 5, 0.75);
  color: #fff;
}

/* Acciones de plataformas --------------------------------------------------- */
.plataformas__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
}

/* App del Delivery Paccioli ----------------------------------------------- */
.plataformas__delivery {
  margin-top: 2rem;
  text-align: center;
}

.plataformas__delivery__titulo {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.plataformas__delivery__texto {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* Enlace de texto con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform var(--speed) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   04. Barra superior y cabecera
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 1001;
  background: #030b16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #93a7bf;
  font-size: 0.76rem;
  font-weight: 600;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
  padding-block: 0.35rem;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__group--end {
  gap: 0.9rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

a.topbar__item:hover {
  color: #fff;
}

.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.75rem;
  border: 1px solid rgba(230, 180, 92, 0.25);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.topbar__badge svg {
  width: 13px;
  height: 13px;
}

.topbar__social {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8e3f2;
  transition: background-color var(--speed), color var(--speed), border-color var(--speed);
}

.topbar__social svg {
  width: 13px;
  height: 13px;
}

.topbar__social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #08172b;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 13, 26, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(3, 10, 20, 0.98);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  flex: none;
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 180, 92, 0.35);
  transition: border-color var(--speed), background-color var(--speed), transform var(--speed);
}

.brand:hover .brand__logo {
  border-color: var(--gold);
  background: rgba(230, 180, 92, 0.12);
  transform: rotate(-4deg);
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(92deg, #fffb0b 0%, #0008ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand__text small {
  margin-top: 0.3rem;
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-principal {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.78rem;
  border-radius: var(--radius-full);
  color: rgba(238, 245, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link.is-active {
  color: var(--gold-light);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(230, 180, 92, 0.8);
}

.nav-drop-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 34px;
  margin-left: -0.35rem;
  border: 0;
  background: transparent;
  color: rgba(238, 245, 255, 0.7);
  border-radius: 50%;
}

.nav-drop-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform var(--speed) var(--ease);
}

.nav-item--dropdown:hover .nav-drop-toggle svg,
.nav-item--dropdown.is-open .nav-drop-toggle svg {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  width: 340px;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(6, 18, 34, 0.98);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease),
    visibility var(--speed);
}

.submenu::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.nav-item--dropdown:hover .submenu,
.nav-item--dropdown:focus-within .submenu,
.nav-item--dropdown.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.75rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.submenu__intro span {
  color: #8fa4bf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.submenu__intro a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.submenu__intro a svg {
  width: 13px;
  height: 13px;
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  color: #e8f0fb;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--speed), color var(--speed), transform var(--speed);
}

.submenu li a:hover {
  background: rgba(230, 180, 92, 0.1);
  color: var(--gold-light);
  transform: translateX(3px);
}

.submenu__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
}

.submenu__icon svg {
  width: 16px;
  height: 16px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #eef5ff;
  transition: background-color var(--speed), border-color var(--speed), transform var(--speed);
}

.theme-toggle:hover {
  background: rgba(230, 180, 92, 0.14);
  border-color: rgba(230, 180, 92, 0.55);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon {
  display: inline-flex;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: inline-flex;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

.header__cta {
  min-height: 42px;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   05. Menú móvil
   ========================================================================== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(2, 8, 16, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.menu-backdrop.is-open {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  padding: 1.1rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(46, 211, 198, 0.16), transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(230, 180, 92, 0.12), transparent 45%),
    linear-gradient(160deg, #081a31, #040d19 70%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.8);
  transform: translateX(102%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand--mobile .brand__logo {
  width: 42px;
  height: 42px;
}

.brand--mobile .brand__text strong {
  font-size: 1.1rem;
}

.brand--mobile .brand__text small {
  font-size: 0.5rem;
}

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.mobile-menu__close svg {
  width: 19px;
  height: 19px;
}

.mobile-nav {
  flex: 1;
  padding-block: 1rem;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 54px;
  color: #e9f1fc;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav__link.is-active {
  color: var(--gold);
}

.mobile-nav__expand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: var(--gold);
}

.mobile-nav__expand svg {
  width: 18px;
  height: 18px;
  transition: transform var(--speed) var(--ease);
}

.mobile-nav__expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0 0.9rem;
}

.mobile-nav__sub-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: #b9cbe2;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav__sub-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-nav__sub-link svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold);
}

.mobile-nav__sub-link--all {
  color: var(--gold);
  font-weight: 800;
}

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.mobile-menu__contact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a9bdd6;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__contact svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* ==========================================================================
   06. Hero principal
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(640px, 88vh, 940px);
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
  isolation: isolate;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__media,
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.hero__slide.is-active .hero__media img {
  animation: heroZoom 10s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 19, 0.94) 0%, rgba(3, 9, 19, 0.78) 38%, rgba(3, 9, 19, 0.25) 70%, rgba(3, 9, 19, 0.45) 100%),
    linear-gradient(0deg, rgba(3, 9, 19, 0.96) 0%, rgba(3, 9, 19, 0.15) 45%, rgba(3, 9, 19, 0.55) 100%);
}

.hero__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(46, 211, 198, 0.2), transparent 42%),
    radial-gradient(ellipse at 12% 88%, rgba(230, 180, 92, 0.18), transparent 38%);
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  padding-block: clamp(3rem, 12vh, 8rem) clamp(7rem, 13vh, 10rem);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  color: #eaf2fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__kicker span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #08172b;
}

.hero__kicker svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  max-width: 18ch;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-light);
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.08em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.7;
}

.hero__lead {
  max-width: 610px;
  margin-top: 1.4rem;
  color: rgba(235, 243, 253, 0.85);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__slide .hero__content > * {
  opacity: 0;
  transform: translateY(26px);
}

.hero__slide.is-active .hero__content > * {
  animation: heroIn 0.9s var(--ease) forwards;
}

.hero__slide.is-active .hero__content > *:nth-child(1) {
  animation-delay: 0.08s;
}
.hero__slide.is-active .hero__content > *:nth-child(2) {
  animation-delay: 0.18s;
}
.hero__slide.is-active .hero__content > *:nth-child(3) {
  animation-delay: 0.28s;
}
.hero__slide.is-active .hero__content > *:nth-child(4) {
  animation-delay: 0.38s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__controls-wrap {
  position: absolute;
  inset: auto 0 4.8rem;
  z-index: 3;
}

.hero__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.carousel-dot {
  width: 24px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  transition: width var(--speed) var(--ease), background-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot[aria-current="true"],
.carousel-dot.is-active {
  width: 42px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(230, 180, 92, 0.75);
}

.hero__control-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  background: rgba(4, 13, 26, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: background-color var(--speed), border-color var(--speed), transform var(--speed);
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #08172b;
  transform: translateY(-1px);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-counter {
  padding-inline: 0.45rem;
  color: rgba(240, 247, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.hero__pause {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.hero__pause:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero__pause svg {
  width: 15px;
  height: 15px;
}

.hero__scroll {
  position: absolute;
  right: 1.4rem;
  bottom: 7rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--gold), transparent);
}

/* Franja de datos rápidos ------------------------------------------------- */
.quick-facts {
  position: relative;
  z-index: 4;
  margin-top: -58px;
}

.quick-facts__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(230, 180, 92, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(6, 20, 38, 0.82);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.quick-fact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.015);
}

.quick-fact + .quick-fact {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-fact__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  border: 1px solid rgba(230, 180, 92, 0.35);
  background: rgba(230, 180, 92, 0.1);
  color: var(--gold);
}

.quick-fact__icon svg {
  width: 21px;
  height: 21px;
}

.quick-fact strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.quick-fact span {
  color: rgba(214, 228, 245, 0.68);
  font-size: 0.78rem;
}

/* ==========================================================================
   07. Secciones de portada
   ========================================================================== */
/* Bienvenida -------------------------------------------------------------- */
.welcome {
  padding-top: clamp(5rem, 10vw, 8rem);
}

.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.welcome__copy h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.welcome__copy h2 span {
  color: var(--gold-dark);
}

.welcome__copy > p {
  max-width: 58ch;
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.welcome__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.chip svg {
  width: 14px;
  height: 14px;
  color: var(--gold-dark);
}

.welcome__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.welcome__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1rem;
  padding-bottom: 2.2rem;
}

.welcome__photo {
  min-width: 0;
}

.welcome__media picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.welcome__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.welcome__media picture:hover img {
  transform: scale(1.04);
}

.welcome__photo--1 {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 16 / 10;
}

.welcome__photo--2 {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

.welcome__photo--3 {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

.welcome__badge {
  position: relative;
  grid-column: 1 / -1;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  max-width: 92%;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(230, 180, 92, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(6, 20, 38, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.welcome__badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.welcome__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.welcome__badge span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Pilares ----------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pillar-card {
  position: relative;
  padding: 1.8rem 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity var(--speed);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 180, 92, 0.35);
  box-shadow: var(--shadow);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(230, 180, 92, 0.28);
  background: linear-gradient(145deg, rgba(230, 180, 92, 0.16), rgba(46, 211, 198, 0.06));
  color: var(--gold-dark);
  transition: transform var(--speed) var(--ease), color var(--speed);
}

.pillar-card:hover .pillar-card__icon {
  transform: translateY(-3px) rotate(-3deg);
}

.pillar-card__icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  font-size: 1.15rem;
}

.pillar-card p {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Tarjetas de carrera ----------------------------------------------------- */
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.career-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.career-card:hover {
  transform: translateY(-7px);
  border-color: rgba(230, 180, 92, 0.45);
  box-shadow: var(--shadow);
}

.career-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
}

.career-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.career-card:hover .career-card__media img {
  transform: scale(1.07);
}

.career-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 13, 26, 0.6), transparent 55%);
}

.career-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(4, 13, 26, 0.55);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.career-card__icon {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(230, 180, 92, 0.5);
  border-radius: 13px;
  background: rgba(230, 180, 92, 0.16);
  color: var(--gold-light);
  backdrop-filter: blur(10px);
}

.career-card__icon svg {
  width: 21px;
  height: 21px;
}

.career-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem 1.4rem 1.4rem;
}

.career-card__body h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.career-card__body h3 a {
  text-decoration: none;
}

.career-card__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.career-card__body p {
  margin-top: 0.55rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.career-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.career-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.career-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--speed) var(--ease);
}

.career-card:hover .career-card__link svg {
  transform: translateX(3px);
}

.career-card__pdf {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color var(--speed), color var(--speed), border-color var(--speed);
}

.career-card__pdf svg {
  width: 14px;
  height: 14px;
  color: var(--gold-dark);
}

.career-card__pdf:hover {
  border-color: var(--gold);
  background: rgba(230, 180, 92, 0.12);
  color: var(--text);
}

.career-card--hidden {
  display: none;
}

/* Reconocimientos --------------------------------------------------------- */
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.recognition-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--speed) var(--ease), background-color var(--speed),
    border-color var(--speed);
}

.recognition-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 180, 92, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.recognition-card__media {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 5 / 4;
  background: rgba(255, 255, 255, 0.06);
}

.recognition-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.recognition-card p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(226, 238, 252, 0.78);
}

/* Banda de formación ------------------------------------------------------ */
.media-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: clamp(340px, 48vw, 470px);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
}

.media-band__img,
.media-band picture,
.media-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-band img {
  object-fit: cover;
}

.media-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 9, 19, 0.9), rgba(3, 9, 19, 0.35) 62%, transparent),
    linear-gradient(0deg, rgba(3, 9, 19, 0.8), transparent 55%);
}

.media-band__content {
  position: relative;
  z-index: 2;
  max-width: 590px;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.media-band__content h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  color: #fff;
}

.media-band__content p {
  margin-top: 0.9rem;
  color: rgba(235, 243, 253, 0.82);
  font-size: 1rem;
}

.media-band__content .btn {
  margin-top: 1.4rem;
}

/* Proyectos y galería ----------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity var(--speed);
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 9, 19, 0.65), transparent 55%);
  opacity: 0;
  transition: opacity var(--speed);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item__zoom {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(4, 13, 26, 0.55);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--speed), transform var(--speed);
  backdrop-filter: blur(8px);
}

.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom {
  opacity: 1;
  transform: none;
}

.gallery-item__zoom svg {
  width: 16px;
  height: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 1rem;
}

.gallery-grid .gallery-item {
  aspect-ratio: auto;
  height: 100%;
}

.gallery-grid .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(4) {
  grid-column: span 2;
}

/* Convenios --------------------------------------------------------------- */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.convenio-card {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed),
    border-color var(--speed);
}

.convenio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 180, 92, 0.4);
  box-shadow: var(--shadow);
}

.convenio-card img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  filter: saturate(0.92);
  transition: filter var(--speed), transform var(--speed);
}

.convenio-card:hover img {
  filter: saturate(1);
  transform: scale(1.03);
}

/* CTA y banda de contacto ------------------------------------------------- */
.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(230, 180, 92, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(46, 211, 198, 0.18), transparent 48%),
    radial-gradient(ellipse at 0% 100%, rgba(230, 180, 92, 0.15), transparent 45%),
    linear-gradient(150deg, #0a2342, #05101f 65%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.25;
  mask-image: linear-gradient(90deg, black, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 70%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  color: #fff;
}

.cta-panel p {
  max-width: 52ch;
  margin-top: 0.8rem;
  color: rgba(228, 239, 252, 0.78);
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  flex: none;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.contact-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.contact-band__lead {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--text-soft);
}

.contact-band__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.contact-mini {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed), border-color var(--speed);
}

.contact-mini:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 180, 92, 0.4);
}

.contact-mini__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: rgba(230, 180, 92, 0.12);
  color: var(--gold-dark);
}

.contact-mini__icon svg {
  width: 18px;
  height: 18px;
}

.contact-mini strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.contact-mini span,
.contact-mini a {
  display: block;
  margin-top: 0.18rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  text-decoration: none;
}

.contact-mini a:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   08. Página interna: hero
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(46, 211, 198, 0.18), transparent 46%),
    radial-gradient(ellipse at 5% 100%, rgba(230, 180, 92, 0.16), transparent 44%),
    linear-gradient(155deg, #081a31, #040d19 72%);
  color: #fff;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.16;
  mask-image: linear-gradient(100deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(100deg, black, transparent 72%);
}

.page-hero--image {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.page-hero__bg,
.page-hero__bg picture,
.page-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__bg {
  z-index: -2;
}

.page-hero__bg img {
  object-fit: cover;
  object-position: center;
}

.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 9, 19, 0.93), rgba(3, 9, 19, 0.55) 60%, rgba(3, 9, 19, 0.3)),
    linear-gradient(0deg, rgba(3, 9, 19, 0.9), transparent 60%);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.3rem);
  color: #fff;
  letter-spacing: -0.04em;
}

.page-hero__lead {
  max-width: 62ch;
  margin-top: 1.1rem;
  color: rgba(231, 241, 253, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.page-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf2fd;
  font-size: 0.73rem;
  font-weight: 700;
}

.page-hero__chip svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  color: rgba(216, 230, 247, 0.6);
  font-size: 0.74rem;
  font-weight: 600;
}

.breadcrumb a {
  color: rgba(240, 247, 255, 0.82);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.55;
}

.breadcrumb [aria-current="page"] {
  color: var(--gold);
}

/* ==========================================================================
   09. Acerca de
   ========================================================================== */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-story__copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.about-story__copy > p {
  margin-top: 1.2rem;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.about-story__quote {
  position: relative;
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem 1.2rem 3.2rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.about-story__quote svg {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.about-story__media {
  position: relative;
}

.about-story__media picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.about-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__stamp {
  position: absolute;
  right: -1rem;
  bottom: -1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(230, 180, 92, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(6, 20, 38, 0.95);
  color: #fff;
  box-shadow: var(--shadow);
}

.about-story__stamp img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.about-story__stamp strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.about-story__stamp span {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.leader-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(230, 180, 92, 0.2), transparent 45%),
    linear-gradient(140deg, #0a2446, #040d19 75%);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.leader-banner::before,
.leader-banner::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(230, 180, 92, 0.18);
  border-radius: 50%;
}

.leader-banner::before {
  top: -120px;
  left: -80px;
}

.leader-banner::after {
  right: -80px;
  bottom: -140px;
}

.leader-banner h2 {
  position: relative;
  z-index: 1;
  max-width: 24ch;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.leader-banner p {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin: 1rem auto 0;
  color: rgba(231, 241, 253, 0.75);
}

.mission-grid {
  display: grid;
  gap: 1.5rem;
}

.mission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mission-card--reverse .mission-card__media {
  order: 2;
}

.mission-card__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
}

.mission-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mission-card:hover .mission-card__media img {
  transform: scale(1.04);
}

.mission-card__copy .eyebrow {
  margin-bottom: 0.7rem;
}

.mission-card__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.mission-card__copy p {
  margin-top: 0.9rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   10. Oferta académica
   ========================================================================== */
.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(46, 211, 198, 0.08), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.intro-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.intro-panel p {
  margin-top: 0.8rem;
  color: var(--text-soft);
}

.intro-panel__aside {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-left: 1.6rem;
  border-left: 2px solid var(--gold);
}

.intro-panel__aside span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.intro-panel__aside svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold-dark);
}

.offer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(230, 180, 92, 0.28);
  border-radius: var(--radius);
  background: rgba(230, 180, 92, 0.07);
}

.offer-note p {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.offer-note strong {
  color: var(--text);
}

/* ==========================================================================
   11. Plataforma
   ========================================================================== */
.modality {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.modality__media {
  position: relative;
}

.modality__media picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.modality__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modality__badge {
  position: absolute;
  bottom: -1.2rem;
  left: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(230, 180, 92, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(6, 20, 38, 0.96);
  color: #fff;
  box-shadow: var(--shadow);
}

.modality__badge svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.modality__badge span {
  font-size: 0.75rem;
  font-weight: 700;
}

.modality__copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.modality__copy > p {
  margin-top: 1rem;
  color: var(--text-soft);
}

.modality__list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.modality__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.modality__list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.18rem;
  color: var(--gold-dark);
}

/* ==========================================================================
   12. Contacto y formulario
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 0.9rem;
}

.info-card {
  display: flex;
  gap: 0.95rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed), border-color var(--speed);
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 180, 92, 0.4);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: rgba(230, 180, 92, 0.12);
  color: var(--gold-dark);
}

.info-card__icon svg {
  width: 20px;
  height: 20px;
}

.info-card h3 {
  font-size: 0.92rem;
}

.info-card p,
.info-card a {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info-card a:hover {
  color: var(--gold-dark);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--speed), color var(--speed), background-color var(--speed);
}

.social-row a:hover {
  border-color: var(--gold);
  background: rgba(230, 180, 92, 0.1);
  color: var(--text);
}

.social-row svg {
  width: 15px;
  height: 15px;
  color: var(--gold-dark);
}

.form-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-card__head {
  margin-bottom: 1.4rem;
}

.form-card__head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.form-card__head p {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.field label span {
  color: var(--gold-dark);
}

.field label .field__optional {
  color: var(--muted);
  font-weight: 600;
}

/* Campo trampa para bots: invisible y fuera del flujo, pero no display:none. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--speed), box-shadow var(--speed), background-color var(--speed);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(230, 180, 92, 0.14);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__hint {
  color: var(--muted);
  font-size: 0.72rem;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--error);
  font-size: 0.75rem;
  font-weight: 700;
}

.field__error svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.field--check input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--gold-dark);
}

.field--check label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.55;
}

.field--check a {
  color: var(--gold-dark);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
}

.form-foot p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-alert {
  display: flex;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-alert svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 0.1rem;
}

.form-alert--success {
  border-color: rgba(15, 123, 87, 0.35);
  background: var(--success-bg);
  color: var(--success);
}

.form-alert--error {
  border-color: rgba(179, 38, 30, 0.35);
  background: var(--error-bg);
  color: var(--error);
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}

.map-card__head h2 {
  font-size: 1.15rem;
}

.map-card__head p {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: saturate(0.9);
}

/* ==========================================================================
   13. Página de carrera
   ========================================================================== */
.career-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(620px, 82vh, 790px);
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
  isolation: isolate;
}

.career-hero__media,
.career-hero__media picture,
.career-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.career-hero__media {
  z-index: -2;
}

.career-hero__media img {
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.career-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 9, 19, 0.96) 0%, rgba(3, 9, 19, 0.86) 42%, rgba(3, 9, 19, 0.45) 75%, rgba(3, 9, 19, 0.62) 100%),
    linear-gradient(0deg, rgba(3, 9, 19, 0.98) 0%, rgba(3, 9, 19, 0.22) 55%, rgba(3, 9, 19, 0.58) 100%);
}

.career-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(46, 211, 198, 0.16), transparent 42%),
    radial-gradient(ellipse at 8% 92%, rgba(230, 180, 92, 0.14), transparent 38%);
  mix-blend-mode: screen;
}

.career-hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 7vh, 5rem);
}

.career-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.career-hero__text h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  color: #fff;
  letter-spacing: -0.045em;
}

.career-hero__lead {
  max-width: 58ch;
  margin-top: 1.1rem;
  color: rgba(233, 242, 253, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.career-hero__card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(5, 15, 29, 0.62);
  box-shadow: 0 35px 80px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.career-hero__card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(230, 180, 92, 0.4);
  border-radius: 13px;
  background: rgba(230, 180, 92, 0.12);
  color: var(--gold);
}

.career-hero__card-icon svg {
  width: 22px;
  height: 22px;
}

.career-hero__card h2 {
  font-size: 1.2rem;
  color: #fff;
}

.career-hero__card p {
  margin-top: 0.4rem;
  color: rgba(226, 238, 252, 0.7);
  font-size: 0.82rem;
  line-height: 1.6;
}

.career-hero__file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 243, 254, 0.8);
  font-size: 0.7rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.career-hero__file svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold);
}

.career-hero__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.section--profile {
  background: var(--bg);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.profile-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-column > p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
  text-align: justify;
}

.profile-column > p:first-child {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.22rem;
  color: var(--gold-dark);
}

.pdf-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(230, 180, 92, 0.35);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(46, 211, 198, 0.1), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-xs);
}

.pdf-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(230, 180, 92, 0.13);
  color: var(--gold-dark);
}

.pdf-card__icon svg {
  width: 21px;
  height: 21px;
}

.pdf-card__body h3 {
  font-size: 0.9rem;
}

.pdf-card__body p {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.pdf-card__actions {
  display: flex;
  gap: 0.4rem;
}

.pdf-card__actions .btn--outline {
  padding-inline: 0.75rem;
}

.section--malla {
  overflow: hidden;
}

.malla-carousel {
  position: relative;
}

.malla-carousel__viewport {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

.malla-carousel__track {
  display: flex;
  transform: translateX(calc(var(--slide, 0) * -100%));
  transition: transform 0.6s var(--ease);
}

.malla-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.media-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-zoom picture,
.media-zoom img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.media-zoom__icon {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(3, 9, 19, 0.6);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--speed), transform var(--speed);
  backdrop-filter: blur(8px);
}

.media-zoom:hover .media-zoom__icon,
.media-zoom:focus-visible .media-zoom__icon {
  opacity: 1;
  transform: none;
}

.media-zoom__icon svg {
  width: 17px;
  height: 17px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.carousel-controls--dark .carousel-btn {
  border-color: rgba(255, 255, 255, 0.2);
}

.carousel-controls--dark .carousel-dot {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-controls--dark .carousel-dot[aria-current="true"] {
  background: var(--gold);
}

.carousel-controls--dark .carousel-counter {
  color: rgba(235, 244, 255, 0.8);
}

.career-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.career-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.career-switch:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 180, 92, 0.45);
  box-shadow: var(--shadow);
}

.career-switch--next {
  text-align: right;
  align-items: flex-end;
}

.career-switch__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-switch__label svg {
  width: 14px;
  height: 14px;
}

.career-switch__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================================
   14. Pie de página y botones flotantes
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(46, 211, 198, 0.1), transparent 45%),
    radial-gradient(ellipse at 5% 100%, rgba(230, 180, 92, 0.09), transparent 45%),
    linear-gradient(160deg, #071426 0%, #030913 75%);
  color: rgba(222, 234, 249, 0.72);
}

.site-footer__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(230, 180, 92, 0.12);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.65fr)) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.brand--footer {
  margin-bottom: 1.1rem;
}

.footer__brand > p {
  max-width: 38ch;
  font-size: 0.86rem;
  line-height: 1.75;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe8f8;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed),
    transform var(--speed);
}

.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #08172b;
  transform: translateY(-3px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__col h2 {
  margin-bottom: 1.1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;
}

.footer__col a {
  color: rgba(216, 231, 248, 0.72);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color var(--speed), padding-left var(--speed);
}

.footer__col a:hover {
  color: var(--gold-light);
  padding-left: 3px;
}

.footer__contact {
  gap: 0.8rem !important;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.18rem;
  color: var(--gold);
}

.footer__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--gold) !important;
  font-size: 0.76rem !important;
  font-weight: 700;
}

.footer__map-link svg {
  width: 14px;
  height: 14px;
}

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(198, 215, 235, 0.55);
  font-size: 0.74rem;
}

.footer__dev {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.float-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #33e07a, #1faa59);
  color: #fff;
  box-shadow: 0 16px 40px -10px rgba(31, 170, 89, 0.65);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed);
}

.float-whatsapp::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(51, 224, 122, 0.45);
  border-radius: 50%;
  animation: whatsappPulse 2.6s ease-out infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.float-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 22px 48px -10px rgba(31, 170, 89, 0.8);
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

.float-whatsapp__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(4, 13, 26, 0.96);
  color: #eef5ff;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity var(--speed), transform var(--speed), visibility var(--speed);
  pointer-events: none;
}

.float-whatsapp:hover .float-whatsapp__tooltip,
.float-whatsapp:focus-visible .float-whatsapp__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.back-to-top {
  position: fixed;
  right: 1.55rem;
  bottom: 6.4rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(230, 180, 92, 0.4);
  border-radius: 50%;
  background: rgba(6, 20, 38, 0.92);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: background-color var(--speed), color var(--speed), transform var(--speed);
}

.back-to-top:hover {
  background: var(--gold);
  color: #08172b;
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   15. Lightbox y animaciones de aparición
   ========================================================================== */
.lightbox {
  width: min(1120px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #040c17;
  color: #fff;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9);
}

.lightbox::backdrop {
  background: rgba(2, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.lightbox__figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #02060c;
}

.lightbox__figure figcaption {
  padding: 0.8rem 1.2rem;
  color: rgba(230, 240, 252, 0.72);
  font-size: 0.8rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(4, 13, 26, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
}

.lightbox__close:hover {
  background: var(--gold);
  color: #08172b;
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal="left"] {
  transform: translateX(-26px);
}

.js [data-reveal="right"] {
  transform: translateX(26px);
}

.js [data-reveal="left"].is-visible,
.js [data-reveal="right"].is-visible {
  transform: none;
}

/* ==========================================================================
   16. Ajustes de tema oscuro
   ========================================================================== */
html[data-theme="dark"] .topbar {
  background: #020812;
}

html[data-theme="dark"] .site-header {
  background: rgba(3, 9, 18, 0.96);
}

html[data-theme="dark"] .convenio-card img {
  background: #fff;
  padding: 0.7rem;
  border-radius: 12px;
}

html[data-theme="dark"] .section--alt {
  background: var(--bg-alt);
}

html[data-theme="dark"] .about-story__stamp,
html[data-theme="dark"] .welcome__badge,
html[data-theme="dark"] .modality__badge {
  background: rgba(3, 9, 19, 0.97);
}

html[data-theme="dark"] .lightbox {
  background: #020711;
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-link {
    padding-inline: 0.6rem;
    font-size: 0.82rem;
  }

  .topbar__group {
    gap: 1rem;
  }

  .topbar__badge {
    display: none;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .topbar {
    display: none;
  }

  .nav-principal {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header__inner {
    min-height: 72px;
  }

  .hero {
    min-height: clamp(600px, 84vh, 860px);
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 960px) {
  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .section-heading--split > p {
    padding-left: 1rem;
  }

  .welcome__grid,
  .about-story,
  .modality {
    grid-template-columns: 1fr;
  }

  .welcome__copy h2,
  .welcome__copy > p {
    max-width: 65ch;
  }

  .welcome__media {
    max-width: 620px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-row: span 1;
  }

  .gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-band__cards {
    order: 2;
  }

  .career-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .career-hero__card {
    max-width: 460px;
  }

  .career-hero {
    min-height: 720px;
  }

  .career-hero__overlay {
    background:
      linear-gradient(90deg, rgba(3, 9, 19, 0.95) 0%, rgba(3, 9, 19, 0.85) 55%, rgba(3, 9, 19, 0.55) 100%),
      linear-gradient(0deg, rgba(3, 9, 19, 0.98) 0%, rgba(3, 9, 19, 0.35) 65%, rgba(3, 9, 19, 0.6) 100%);
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-column > p {
    text-align: left;
  }

  .mission-card {
    grid-template-columns: 1fr;
  }

  .mission-card--reverse .mission-card__media {
    order: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-aside .social-row {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__brand > p {
    max-width: 55ch;
  }
}

@media (max-width: 820px) {
  /* La tarjeta de datos deja de solaparse con el hero para no tapar los controles. */
  .quick-facts {
    margin-top: 0;
  }

  .hero__controls-wrap {
    bottom: 1.4rem;
  }

  .quick-facts__inner {
    grid-template-columns: 1fr;
  }

  .quick-fact + .quick-fact {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .quick-fact {
    padding: 1rem 1.2rem;
  }

  .recognition-grid {
    grid-template-columns: 1fr;
  }

  .convenios-grid {
    grid-template-columns: 1fr;
  }

  .convenio-card {
    min-height: 160px;
  }

  .intro-panel {
    grid-template-columns: 1fr;
  }

  .intro-panel__aside {
    padding-left: 1.1rem;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .cta-panel h2 {
    max-width: 22ch;
  }

  .career-switcher {
    grid-template-columns: 1fr;
  }

  .career-switch--next {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
    --gutter: 1.05rem;
  }

  .header__cta {
    display: none;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .brand__text strong {
    font-size: 1.1rem;
  }

  .brand__text small {
    font-size: 0.48rem;
    letter-spacing: 0.18em;
  }

  .hero {
    min-height: 680px;
  }

  .hero__content {
    padding-block: 4rem 10.5rem;
  }

  .hero__title {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hero__lead {
    font-size: 0.96rem;
  }

  .hero__actions {
    gap: 0.6rem;
  }

  .hero__actions .btn {
    flex: 1 1 220px;
  }

  .hero__controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .hero__control-group {
    align-self: stretch;
    justify-content: space-between;
  }

  .carousel-dot {
    width: 18px;
  }

  .carousel-dot[aria-current="true"] {
    width: 34px;
  }

  .section {
    padding-block: clamp(3.2rem, 9vw, 4.5rem);
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .welcome {
    padding-top: 4.5rem;
  }

  .welcome__media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome__photo--1 {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .welcome__photo--2,
  .welcome__photo--3 {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .welcome__badge {
    position: relative;
    left: auto;
    bottom: auto;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    transform: none;
    margin-top: 0.2rem;
  }

  .pillars-grid,
  .career-grid {
    grid-template-columns: 1fr;
  }

  .recognition-card {
    grid-template-columns: 96px 1fr;
  }

  .projects-grid {
    gap: 0.7rem;
  }

  .gallery-grid {
    grid-auto-rows: 160px;
    gap: 0.7rem;
  }

  .offer-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .contact-aside {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-foot .btn {
    width: 100%;
  }

  .map-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-card iframe {
    height: 340px;
  }

  .career-hero {
    min-height: 780px;
  }

  .career-hero__text h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .career-hero__card {
    padding: 1.2rem;
  }

  .pdf-card {
    grid-template-columns: auto 1fr;
  }

  .pdf-card__actions {
    grid-column: 1 / -1;
  }

  .pdf-card__actions .btn--primary {
    flex: 1;
  }

  .career-hero__card-actions .btn {
    flex: 1;
  }

  .malla-slide {
    padding: 0;
  }

  .media-zoom {
    padding: 0.3rem;
  }

  .carousel-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .carousel-counter {
    order: 4;
    width: 100%;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .float-whatsapp {
    width: 54px;
    height: 54px;
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .float-whatsapp__tooltip {
    display: none;
  }

  .back-to-top {
    right: 1.02rem;
    bottom: 5.9rem;
    width: 42px;
    height: 42px;
  }

  .lightbox {
    width: calc(100% - 0.8rem);
  }

  .lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 520px) {
  .brand__text small {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 660px;
  }

  .hero__kicker {
    font-size: 0.62rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__actions .btn {
    flex-basis: 100%;
  }

  .hero__controls-wrap {
    bottom: 0.9rem;
  }

  .carousel-dot {
    width: 14px;
  }

  .carousel-dot[aria-current="true"] {
    width: 26px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .recognition-card {
    grid-template-columns: 1fr;
  }

  .recognition-card__media {
    aspect-ratio: 5 / 4;
    width: min(100%, 320px);
    justify-self: center;
  }

  .recognition-card__media img {
    object-fit: contain;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 135px;
  }

  .page-hero {
    padding-block: 2.8rem 2.6rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .page-hero__chip {
    font-size: 0.66rem;
  }

  .cta-panel {
    padding: 1.4rem;
  }

  .cta-panel__actions {
    width: 100%;
  }

  .cta-panel__actions .btn {
    width: 100%;
  }

  .contact-mini {
    padding: 0.95rem;
  }

  .career-hero {
    min-height: 820px;
  }

  .career-hero__card-actions {
    flex-direction: column;
  }

  .pdf-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .pdf-card__icon {
    width: 40px;
    height: 40px;
  }

  .malla-carousel__viewport {
    border-radius: var(--radius-sm);
  }

  .lightbox__figure figcaption {
    font-size: 0.72rem;
  }

  .footer__social a {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   18. Accesibilidad: movimiento reducido y modo de alto contraste
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__slide.is-active .hero__media img {
    animation: none;
    transform: none;
  }

  .float-whatsapp::before {
    display: none;
  }

  .btn--primary::after {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(10, 31, 58, 0.28);
    --border-strong: rgba(10, 31, 58, 0.45);
    --text-soft: #2b3c52;
    --muted: #4a5c74;
  }

  html[data-theme="dark"] {
    --border: rgba(255, 255, 255, 0.28);
    --border-strong: rgba(255, 255, 255, 0.45);
  }

  .nav-link,
  .footer__col a,
  .footer__brand > p {
    color: #fff;
  }
}

@media (forced-colors: active) {
  .btn,
  .career-card,
  .pillar-card,
  .info-card,
  .form-card,
  .field input,
  .field select,
  .field textarea {
    border: 1px solid ButtonText;
  }
}

/* ==========================================================================
   19. Impresión
   ========================================================================== */
@media print {
  .topbar,
  .site-header,
  .mobile-menu,
  .menu-backdrop,
  .float-whatsapp,
  .back-to-top,
  .scroll-progress,
  .hero__controls-wrap,
  .site-footer__glow,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .page-hero,
  .career-hero,
  .section--dark,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .hero__media,
  .page-hero__bg,
  .career-hero__media,
  .hero__shade,
  .career-hero__overlay {
    display: none !important;
  }

  .hero__title,
  .hero__lead,
  .page-hero h1,
  .career-hero__text h1 {
    color: #000 !important;
  }

  .section {
    padding-block: 1.2rem;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}




