/* ═════════════════════════════════════════════════════════════════
   UNIVERSIDAD CASA BLANCA (UCB) — DESIGN SYSTEM & CORE STYLES
   Aesthetics: Modern Creative Luxury, High-Impact Editorial, Glassmorphism
   ═════════════════════════════════════════════════════════════════ */

/* ───── CSS RESET & TOKENS ───── */
:root {
  --black: #000000;
  --navy: #111111;
  --navy-2: #1a1a1a;
  --navy-dark: #000000;
  --gold: #d5a841;
  --gold-soft: #ead7a7;
  --gold-light: #f9f4ea;
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --warm-gray: #c8c8c8;
  --ink: #111111;
  --muted: #555555;
  --white: #ffffff;
  --line: rgba(0, 0, 0, .12);
  --line-light: rgba(255, 255, 255, .22);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .06);
  --shadow: 0 24px 70px rgba(0, 0, 0, .10);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, .18);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --max: 1600px;
  --header-h: 92px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --section-pad: clamp(75px, 9.5vw, 150px);
  --ease: cubic-bezier(.22, .72, .2, 1);
  --gradient-bar: linear-gradient(to right, #13cb8e, #08c4d0 16.66%, #184fb0 33.32%, #ff6a90 49.98%, #fd4d50 66.64%, #fe8044 83.3%, #fedd11);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s var(--ease);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.025em;
}

h1, .h1 {
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.02;
}

h2, .h2, .section-title {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.1;
}

h3, .h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

h4, .h4 {
  font-size: clamp(17.5px, 1.5vw, 22px);
  font-weight: 750;
  line-height: 1.35;
}

p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* ───── GRADIENT TOP BAR ───── */
.gradient-bar {
  height: 4px;
  background: var(--gradient-bar);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* ───── SKIP LINK ───── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1100;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: top .2s;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

/* ───── SITE HEADER & NAVIGATION ───── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 94px;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism transparency when user scrolls down ("se haga transparente pero siga anclado") */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  height: 82px;
}

.header-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.2vw, 42px);
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(8px, 1.2vw, 20px);
  height: 100%;
  box-sizing: border-box;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  max-height: 84px;
  flex-shrink: 0;
  text-decoration: none;
  z-index: 5;
  margin-right: clamp(10px, 1.5vw, 28px);
}

.brand-link img,
.brand-logo-img {
  height: clamp(44px, 3.8vw, 60px) !important;
  max-height: 64px !important;
  width: auto !important;
  max-width: clamp(185px, 15vw, 260px) !important;
  object-fit: contain;
  display: block;
  transition: all .25s ease;
}

.site-header.is-scrolled .brand-link img,
.site-header.is-scrolled .brand-logo-img {
  height: clamp(40px, 3.2vw, 52px) !important;
  max-height: 56px !important;
  max-width: clamp(165px, 13vw, 225px) !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}

.brand-text-university {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-text-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
  transition: font-size 0.25s ease;
}

.site-header.is-scrolled .brand-text-name {
  font-size: 23px;
}

/* Menú editorial, armónico y de alta legibilidad */
.desktop-nav {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: clamp(6px, 0.75vw, 15px) !important;
  height: 100%;
  flex: 0 1 auto;
  min-width: 0;
}

.desktop-nav .nav-item {
  position: static !important;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.desktop-nav .nav-link-trigger,
.desktop-nav .nav-link-direct {
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 0.28vw, 4px);
  font-size: clamp(12.2px, 0.8vw, 14px);
  font-weight: 750;
  color: var(--navy);
  padding: 22px 0;
  position: relative;
  transition: color 0.2s ease, padding 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.site-header.is-scrolled .desktop-nav .nav-link-trigger,
.site-header.is-scrolled .desktop-nav .nav-link-direct {
  padding: 17px 0;
}

.desktop-nav .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
  stroke-width: 2.5;
}

/* CEDIM-style Underline Indicator */
.desktop-nav .nav-link-trigger::after,
.desktop-nav .nav-link-direct::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav .nav-item:hover .nav-link-trigger,
.desktop-nav .nav-item.is-open .nav-link-trigger,
.desktop-nav .nav-link-direct:hover {
  color: var(--gold);
}

.desktop-nav .nav-item:hover .nav-link-trigger::after,
.desktop-nav .nav-item.is-open .nav-link-trigger::after,
.desktop-nav .nav-link-direct:hover::after {
  transform: scaleX(1);
}

.desktop-nav .nav-item:hover .chevron,
.desktop-nav .nav-item.is-open .chevron {
  stroke: var(--gold);
  transform: rotate(180deg);
}

/* Search Button & Admin Button — OCULTOS POR SOLICITUD */
.header-search-btn,
.header-admin-btn {
  display: none !important;
}

/* Full-Width 3-Column Mega Dropdown */
.mega-panel {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  background: var(--white) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 40px 90px -15px rgba(0, 20, 45, 0.18), 0 15px 35px -8px rgba(0, 0, 0, 0.08) !important;
  z-index: 999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
    transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 0.28s;
  pointer-events: none;
  box-sizing: border-box !important;
}

.desktop-nav .nav-item:hover .mega-panel,
.desktop-nav .nav-item.is-open .mega-panel,
.nav-item--agenda:hover .mega-panel--agenda,
.nav-item--agenda.is-open .mega-panel--agenda {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  max-width: var(--max) !important;
  margin: 0 auto !important;
  padding: clamp(30px, 3.5vw, 50px) var(--gutter) !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 320px) minmax(220px, 1fr) minmax(220px, 1fr) !important;
  gap: clamp(24px, 3.5vw, 60px) !important;
  align-items: start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Column 1: Featured Image Frame (3D Depth) */
.mega-media-col {
  width: 100% !important;
  min-width: 0 !important;
  grid-column: 1 / 2 !important;
}

.mega-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 45px -10px rgba(0, 20, 45, 0.22), 0 6px 16px -4px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--navy);
}

.mega-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.mega-img-frame:hover img {
  transform: scale(1.06);
}

/* Columns 2 & 3: Clean Typography Menu */
.mega-menu-col {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.mega-menu-col:nth-of-type(2) {
  grid-column: 2 / 3 !important;
}

.mega-menu-col:nth-of-type(3) {
  grid-column: 3 / 4 !important;
}

.mega-col-title {
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-links-list li a {
  font-size: 14.5px;
  font-weight: 550;
  color: #2b3544;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  padding: 2px 0;
}

.mega-links-list li a:hover {
  color: var(--gold);
  transform: translateX(6px);
  font-weight: 700;
}

/* Mega-menu gradient accent bar */
.mega-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-bar);
}

/* ══════════ EXTENSIONES DE MEGA DROPDOWN (ARQUITECTURA DE INFORMACIÓN) ══════════ */
.mega-inner--programas {
  grid-template-columns: minmax(240px, 280px) minmax(200px, 1fr) minmax(200px, 1fr) minmax(220px, 1fr) !important;
  gap: clamp(20px, 2.5vw, 40px) !important;
}

.mega-media-info {
  margin-top: 14px;
}

.mega-media-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(184, 134, 11, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.mega-media-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 10px;
}

.mega-media-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, transform 0.2s;
}

.mega-media-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.mega-group {
  display: flex;
  flex-direction: column;
}

.mega-col-title-sm {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-link-detailed {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px;
  padding: 5px 0 !important;
  text-decoration: none;
}

.mega-link-detailed strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s;
}

.mega-link-detailed .mega-link-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
  transition: color 0.2s;
}

.mega-link-detailed:hover strong {
  color: var(--gold);
}

.mega-link-detailed:hover .mega-link-sub {
  color: #2b3544;
}

/* WhatsApp Highlight Card inside Mega Panel */
.mega-highlight-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(18, 140, 126, 0.04));
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-highlight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0b4625;
}

.mega-highlight-card p {
  font-size: 12px;
  line-height: 1.4;
  color: #3e5043;
  margin: 0;
}

.btn-mega-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-mega-wa:hover {
  background: #1eb956;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  color: #ffffff !important;
}

/* ══════════ BOTÓN DESTACADO ROSA & DROPDOWN: AGENDA UNA CITA ══════════ */
.nav-item--agenda {
  position: relative !important;
  display: flex;
  align-items: center;
}

.btn--agenda {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.28);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn--agenda:hover {
  background: linear-gradient(135deg, #f06292, #d81b60);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.38);
  color: #ffffff !important;
}

.btn--agenda svg {
  width: 12.5px;
  height: 12.5px;
  flex-shrink: 0;
}

.btn--agenda .chevron--white {
  width: 10px;
  height: 10px;
  stroke: #ffffff;
  stroke-width: 2.8;
  transition: transform 0.25s ease;
}

.nav-item--agenda:hover .chevron--white,
.nav-item--agenda.is-open .chevron--white {
  transform: rotate(180deg);
}

/* Compact Mega Panel for Agenda */
.nav-item--agenda .mega-panel--agenda {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  right: 0 !important;
  left: auto !important;
  width: 360px !important;
  max-width: calc(100vw - 32px) !important;
  background: var(--white) !important;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px -10px rgba(0, 20, 45, 0.25), 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
  z-index: 1000 !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
    transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1),
    visibility 0.28s;
  pointer-events: none;
}

.mega-inner--agenda {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.agenda-dropdown-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 12px;
}

.agenda-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e91e63;
  background: rgba(233, 30, 99, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.agenda-dropdown-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px 0;
}

.agenda-dropdown-header p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.agenda-dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.agenda-card:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateX(4px);
}

.agenda-card--wa {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.25);
}

.agenda-card--wa:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.4);
}

.agenda-card-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.agenda-card-info {
  display: flex;
  flex-direction: column;
}

.agenda-card-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.agenda-card-info span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

.agenda-dropdown-footer {
  padding-top: 4px;
}

.mobile-menu-link--agenda {
  color: #ff4081 !important;
}

.mobile-menu-link--agenda span {
  color: #ff4081 !important;
}



/* Search Modal Styles */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(60px, 12vh, 120px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-modal-box {
  position: relative;
  z-index: 10;
  width: min(720px, 92vw);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 35px 90px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  padding: clamp(24px, 4vw, 36px);
  transform: scale(0.94) translateY(-20px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.search-modal.is-open .search-modal-box {
  transform: scale(1) translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 16px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
}

.search-input-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  font-family: inherit;
}

.search-modal-close {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-modal-close:hover {
  background: var(--navy);
  color: var(--white);
  transform: rotate(90deg);
}

.search-modal-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 24px 0 14px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-chip {
  background: var(--paper-2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 650;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-chip:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 168, 65, 0.35);
}

/* Header Actions */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: clamp(8px, 0.9vw, 14px) !important;
  flex-shrink: 0 !important;
  margin-left: auto !important; /* JALA TODO EL BLOQUE FIRMEMENTE A LA DERECHA */
  z-index: 10;
}

/* Campus Dual Selector */
.campus-dual-selector {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.campus-dual-label {
  display: none !important; /* Ocultar para evitar sobrecarga y asegurar espaciado limpio */
}

.campus-dual-pills {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.campus-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3.5px 8px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: background 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, transform 0.18s ease,
    box-shadow 0.22s ease;
  white-space: nowrap !important;
  cursor: pointer;
}

.campus-pill-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--navy);
  transform: translateY(-1px);
}

.campus-pill-btn.is-active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transform: none;
}

.campus-pill-btn.is-active:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  transform: translateY(-1px);
}

.campus-pill-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  transition: background 0.22s ease, opacity 0.22s ease;
  flex-shrink: 0;
}

.campus-pill-btn.is-active .campus-pill-dot {
  background: var(--gold);
  opacity: 1;
}

/* Header Action Divider */
.header-action-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  flex-shrink: 0;
  margin: 0 2px;
}

.campus-switch {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.campus-switch span {
  font-size: 12px;
  font-weight: 800;
  display: block;
  color: var(--navy);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  background: var(--white);
  transition: border-color .2s;
}

.menu-toggle:hover {
  border-color: var(--gold);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: all .25s;
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.menu-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  /* header 64px + gradient-bar 4px */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--white);
  z-index: 999;
  padding: 20px 20px 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s, transform .25s;
}

.mobile-menu.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
  gap: 0;
}

.mobile-menu-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 58px;
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
  border-bottom: 1px solid var(--line-light);
  transition: color .2s, padding-left .2s;
}

.mobile-menu-link:hover {
  color: var(--gold);
  padding-left: 8px;
}

.mobile-menu-link span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .05em;
}

.mobile-campus-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-campus-label {
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.mobile-campus-pills {
  display: inline-flex;
  gap: 6px;
}

.mobile-campus-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-campus-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--gold);
}

.mobile-campus-btn.is-active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(213, 168, 65, 0.35);
}

.mobile-campus-btn .campus-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.mobile-campus-btn.is-active .campus-pill-dot {
  background: var(--navy);
  opacity: 1;
}

.mobile-campus-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-campus-links a {
  background: rgba(255, 255, 255, .08);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-light);
}

.mobile-campus-links a:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn--agenda-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn--agenda-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.55);
}

/* ───── BUTTONS & CTAS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

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

.btn--navy:hover {
  background: var(--navy-2);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.btn--gold:hover {
  background: #e2b650;
  color: var(--navy);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn--white:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .6);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 11px;
}

.btn--large {
  min-height: 56px;
  padding: 0 34px;
  font-size: 13px;
}

.btn-text {
  font-size: 13px;
  font-weight: 750;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, border-color .2s, transform .2s;
}

.btn-text:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateX(4px);
}

/* ───── GENERAL SECTION LAYOUTS ───── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(36px, 5.2vw, 76px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: .96;
  max-width: 900px;
  margin-bottom: clamp(18px, 2.5vw, 36px);
}

.section-copy {
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

.section-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.round-link {
  width: 110px;
  height: 110px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
  transition: all .25s var(--ease);
  flex: none;
}

.round-link:hover {
  background: var(--navy);
  color: var(--paper);
  transform: rotate(-6deg) scale(1.04);
}

.round-link svg {
  width: 24px;
  height: auto;
}

/* ───── HERO TEMPLATES (INNER PAGES) ───── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 7vw, 100px) 0 clamp(40px, 6vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.page-hero--dark {
  background: var(--navy);
  color: var(--white);
}

.page-hero--dark h1 {
  color: var(--white);
}

.page-hero--dark .page-hero-lede {
  color: rgba(255, 255, 255, .75);
}

.page-hero--dark .section-eyebrow {
  color: var(--gold);
}

.page-hero-copy {
  max-width: 720px;
}

.page-hero h1 {
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .92;
  margin-bottom: 24px;
}

.page-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  display: block;
  color: var(--gold);
}

.page-hero-lede {
  font-size: clamp(16px, 1.3vw, 21px);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: clamp(340px, 36vw, 520px);
  object-fit: cover;
}

/* ───── STATS / HIGHLIGHTS STRIP ───── */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: clamp(50px, 7vw, 90px) var(--gutter);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-box {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.stat-box .number {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-box .label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.stat-box .desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 6px;
  line-height: 1.5;
}

/* ───── FILTER PILLS / BARS ───── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: all .2s var(--ease);
}

.filter-btn:hover {
  background: var(--paper-2);
  border-color: var(--navy);
}

.filter-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ───── CARD GRIDS (CARDS, PROGRAMS, CAMPUSES) ───── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.card-tag--gold {
  background: var(--gold);
  color: var(--navy);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ───── STEP PROCESS (ADMISIONES / MODELO) ───── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s, border-color .3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.step-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ───── ACCORDIONS & FAQS ───── */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.faq-item.is-open {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 17px;
  font-weight: 750;
  color: var(--navy);
  transition: color .2s;
}

.faq-trigger:hover {
  color: var(--gold);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 18px;
  font-weight: 600;
  transition: transform .3s, background .3s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--navy);
  color: var(--white);
}

.faq-content {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  display: none;
}

.faq-item.is-open .faq-content {
  display: block;
}

/* ───── FORMS & CALCULATORS ───── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-full {
  grid-column: 1/-1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-size: 14px;
  transition: border-color .2s, background .2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  outline: none;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--navy);
}

/* ───── FOOTER ───── */
.gradient-footer {
  height: 4px;
  background: var(--gradient-bar);
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 25px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1.6fr minmax(260px, 320px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer-brand img {
  height: clamp(60px, 4.5vw, 76px);
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, .7);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  margin-top: 20px;
  max-width: 280px;
}

.btn-footer-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 750;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  margin-top: 14px;
}

.btn-footer-wa:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: #ffffff !important;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
}

.footer-links>div>p {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(213, 168, 65, 0.25);
  padding-bottom: 6px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  margin: 8px 0;
  text-decoration: none;
  transition: color .2s, transform .2s;
  line-height: 1.35;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-campus-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-campus-card:hover {
  border-color: rgba(213, 168, 65, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.footer-campus-card p {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-campus-card address {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  margin-bottom: 8px;
}

.footer-campus-card a {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  margin: 4px 0;
  text-decoration: none;
  transition: color .2s;
}

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

.footer-campus-link {
  color: var(--gold) !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  margin-top: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
}

.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  margin-top: 40px;
  padding-top: 18px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
}

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

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

/* ───── FLOATING WIDGETS ───── */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 950;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .35), 0 0 0 6px rgba(37, 211, 102, .2);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* ───── ANIMATIONS & REVEAL ───── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───── RESPONSIVE MEDIA QUERIES (FLUID NAVBAR & MULTI-DEVICE SUPPORT) ───── */

/* 1. Laptops / Intermediate Screens (1301px - 1480px) */
@media (max-width: 1480px) {
  .campus-dual-label {
    display: none !important;
  }

  .desktop-nav {
    gap: clamp(5px, 0.65vw, 10px) !important;
  }

  .desktop-nav .nav-link-trigger,
  .desktop-nav .nav-link-direct {
    font-size: 12.4px !important;
    gap: 2px !important;
  }

  .brand-link img,
  .brand-logo-img {
    height: clamp(42px, 3.4vw, 54px) !important;
    max-width: clamp(170px, 14vw, 220px) !important;
  }

  .btn--agenda {
    padding: 5px 9px !important;
    font-size: 9.5px !important;
    gap: 4px !important;
  }

  .header-actions {
    gap: 8px !important;
    margin-left: auto !important;
  }
}

/* 2. Narrow Laptops / Intermediate Screens (1221px - 1360px) */
@media (max-width: 1360px) and (min-width: 1221px) {
  .header-action-divider {
    display: none !important;
  }

  .desktop-nav {
    gap: 4px !important;
  }

  .desktop-nav .nav-link-trigger,
  .desktop-nav .nav-link-direct {
    font-size: 11.8px !important;
    gap: 2px !important;
  }

  .brand-link img,
  .brand-logo-img {
    height: 42px !important;
    max-width: 165px !important;
  }

  .btn--agenda {
    padding: 4.5px 8px !important;
    font-size: 9px !important;
  }
}

/* 3. Minimized Browser Windows, iPads & Tablets (≤1220px down to 769px) */
@media (max-width: 1220px) {
  .site-header {
    height: 80px;
    top: 0;
  }

  .site-header.is-scrolled {
    height: 72px;
  }

  .header-inner {
    padding: 0 clamp(16px, 2.5vw, 32px);
    gap: 12px;
  }

  .brand-link img,
  .brand-logo-img {
    height: 48px !important;
    max-height: 52px;
    width: auto !important;
    max-width: 235px !important;
  }

  .brand-text-name {
    font-size: 20px;
  }

  .brand-text-university {
    font-size: 9px;
  }

  /* Hide desktop navbar, mega-menus, and desktop CTA to avoid any collision */
  .desktop-nav,
  .mega-panel,
  .mega-panel--agenda,
  .header-action-divider,
  .nav-item--agenda,
  .header-actions .btn--agenda {
    display: none !important;
  }

  /* Show mobile hamburger toggle */
  .menu-toggle {
    display: block !important;
  }

  .header-actions {
    gap: 12px;
  }

  /* On tablet screens, keep campus selector pills in header */
  .campus-dual-selector {
    display: inline-flex !important;
  }

  .campus-dual-label {
    display: none !important;
  }

  .mobile-menu {
    top: 80px;
    height: calc(100svh - 80px);
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-media {
    margin-top: 20px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1/-1;
  }

  .footer-links {
    grid-column: 1/-1;
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-contact {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* 4. Mobile Devices (≤768px) */
@media (max-width: 768px) {
  .site-header {
    height: 68px;
    top: 4px;
  }

  .site-header.is-scrolled {
    height: 64px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 8px;
  }

  .brand-link img {
    height: 44px;
    max-height: 48px;
    width: auto;
    max-width: 215px;
  }

  .brand-text-name {
    font-size: 18px;
  }

  .brand-text-university {
    font-size: 8px;
  }

  /* Hide campus selector and admin icon from mobile header (accessible inside mobile drawer) */
  .campus-dual-selector,
  .header-admin-btn,
  .header-search-btn,
  .header-actions .btn {
    display: none !important;
  }

  .header-actions {
    gap: 8px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-menu {
    top: 72px;
    height: calc(100svh - 72px);
    padding: 16px 16px 36px;
  }

  .mobile-menu-link {
    min-height: 52px;
    font-size: clamp(18px, 5vw, 24px);
  }

  .section-topline {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .round-link {
    display: none;
  }
}

/* 5. Extra Small Mobile Phones (≤400px) */
@media (max-width: 400px) {
  .header-inner {
    padding: 0 12px;
  }

  .brand-link img {
    height: 38px;
    max-height: 42px;
    width: auto;
    max-width: 185px;
  }

  .brand-text-name {
    font-size: 16px;
  }

  .brand-text-university {
    font-size: 7.5px;
  }
}


@media (max-width: 900px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-contact {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom span:last-child {
    margin-left: 0;
  }
}

/* ═══════ 3D CARRERAS COVERFLOW CAROUSEL ═══════ */
.carreras-3d-section {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(60px, 8vw, 100px);
}

.carreras-3d-nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carreras-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto !important;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.carreras-nav-btn:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.carreras-nav-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.carreras-3d-stage {
  position: relative;
  width: 100%;
  height: 520px;
  margin-top: 36px;
  perspective: 1200px;
  perspective-origin: center 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  touch-action: pan-y;
}

.carreras-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrera-3d-card {
  position: absolute;
  width: clamp(310px, 34vw, 420px);
  height: 480px;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.65s ease, filter 0.65s ease, box-shadow 0.65s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform, opacity;
}

.carrera-3d-inner {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 65px -12px rgba(0, 20, 45, 0.22), 0 10px 24px -8px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  position: relative;
  backface-visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.35, 1);
}

.carrera-3d-card.is-active .carrera-3d-inner {
  border-color: var(--gold);
  box-shadow: 0 35px 90px -15px rgba(0, 20, 45, 0.32), 0 12px 32px -8px rgba(213, 168, 65, 0.3), 0 0 0 1.5px rgba(213, 168, 65, 0.65), inset 0 1px 3px rgba(255, 255, 255, 0.95);
}

.carrera-3d-card:hover .carrera-3d-inner {
  transform: translateY(-4px);
}

.carrera-3d-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--navy);
}

.carrera-3d-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.carrera-3d-card:hover .carrera-3d-media img {
  transform: scale(1.06);
}

.carrera-3d-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.carrera-3d-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 20, 45, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.carrera-3d-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(213, 168, 65, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.carrera-3d-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--white);
}

.carrera-3d-level {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.carrera-3d-name {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 850;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 10px;
}

.carrera-3d-desc {
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.carrera-3d-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.carrera-3d-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.carrera-3d-cta:hover {
  color: var(--gold);
  gap: 12px;
}

.carrera-3d-cta:hover svg {
  transform: translate(3px, -3px);
}

/* Bottom 3D Indicators */
.carreras-3d-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.carreras-3d-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrera-3d-dot {
  width: 36px;
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carrera-3d-dot.is-active {
  background: var(--gold);
  width: 54px;
  box-shadow: 0 0 10px rgba(213, 168, 65, 0.6);
}

.carreras-3d-live-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.carreras-3d-live-title strong {
  color: var(--gold);
}

@media (max-width: 768px) {
  .carreras-3d-stage {
    height: 480px;
    perspective: 900px;
  }

  .carrera-3d-card {
    width: 86vw;
    max-width: 340px;
    height: 440px;
  }

  .carrera-3d-media {
    height: 210px;
  }

  .carrera-3d-body {
    padding: 18px 16px 16px;
  }

  .carrera-3d-name {
    font-size: 19px;
  }
}

/* ───── FULL-WIDTH BACKGROUND HERO & CAROUSEL (CEDIM STYLE) ───── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000000;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Fullscreen Background Track */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-bg-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 26, 0.94) 0%, rgba(0, 18, 38, 0.72) 55%, rgba(0, 10, 26, 0.85) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.85) 100%);
}

/* Foreground Content */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: auto 0;
  padding: clamp(30px, 6vh, 70px) 0 20px;
}

.hero-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  max-width: 860px;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(52px, 7.5vw, 125px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .84;
  margin-bottom: 24px;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  display: block;
  color: var(--gold);
}

.hero-lede {
  font-size: clamp(16px, 1.35vw, 22px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* Bottom Floating Controls: Progress Dashes */
.hero-bottom-controls {
  margin-top: clamp(32px, 5vh, 48px);
  max-width: 360px;
  position: relative;
  z-index: 20;
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hero-dot {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  cursor: pointer;
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, box-shadow 0.3s;
}

.hero-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(235, 178, 48, 0.8);
}

/* Hero Campus Strip (Dark Glass) */
.hero-campus {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 10, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  font-size: 13px;
}

.hero-campus>span {
  color: rgba(255, 255, 255, 0.7);
  margin-right: auto;
}

.hero-campus a {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 140px;
  font-weight: 750;
  color: var(--white);
  transition: background .2s, color .2s;
}

.hero-campus a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

/* ───── RESPONSIVE FOR MOBILES, IPHONE, ANDROID & TABLETS ───── */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    padding: 40px 0 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-content-wrapper {
    padding: 30px 0 20px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 68px);
    margin-bottom: 18px;
  }

  .hero-lede {
    font-size: 15.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-campus {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px var(--gutter);
    gap: 12px;
  }

  .hero-campus a {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: flex-start;
    padding-top: 10px;
    min-width: unset;
  }
}

/* ═══════ CURRICULUM & PLAN DE ESTUDIOS MODAL CSS ═══════ */
.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.plan-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.plan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 45, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plan-modal-box {
  position: relative;
  z-index: 2;
  background: var(--white);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 20, 45, 0.4);
  border: 1px solid rgba(213, 168, 65, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.plan-modal.is-open .plan-modal-box {
  transform: translateY(0) scale(1);
}

.plan-modal-header {
  padding: 24px 30px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}

.plan-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-modal-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.plan-modal-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

.plan-modal-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.plan-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.plan-modal-close:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.08);
}

.plan-modal-body {
  padding: 28px 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.plan-semesters-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
}

.plan-sem-tab {
  padding: 8px 18px;
  background: #f4f3ef;
  color: var(--navy);
  border-radius: 30px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.plan-sem-tab:hover {
  background: #e8e6df;
}

.plan-sem-tab.is-active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.plan-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.plan-subject-card {
  background: #fdfdfc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0, 20, 45, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 20, 45, 0.08);
}

.plan-sub-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
  margin-bottom: 4px;
}

.plan-sub-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.plan-modal-footer {
  padding: 18px 30px;
  background: #faf9f6;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}


/* ═══════ RUTA DE APRENDIZAJE (IMAGE 1) ═══════ */
.ruta-aprendizaje-section {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ruta-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #000000;
  margin-bottom: 32px;
  line-height: 1.15;
}

.ruta-tabs-nav {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #000000;
  background: #ffffff;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
}

.ruta-tabs-nav::-webkit-scrollbar {
  display: none;
}

.ruta-tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 15px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #000000;
  border: none;
  border-right: 1.5px solid #000000;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--sans);
}

.ruta-tab-btn:hover:not(.is-active) {
  background: #f4f4f4;
}

.ruta-tab-btn.is-active {
  background: var(--navy) !important;
  color: #ffffff !important;
}

.ruta-download-btn {
  background: #000000 !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-left: auto;
}

.ruta-download-btn:hover {
  background: #111111 !important;
  color: #d5a841 !important;
}

.ruta-download-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

.ruta-content-block {
  display: none;
  border: 1.5px solid #000000;
  border-top: none;
  background: #ffffff;
  animation: rutaFadeIn 0.3s ease;
}

.ruta-content-block.is-active {
  display: block;
}

@keyframes rutaFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.ruta-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ruta-grid-row {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #e2e2e2;
  min-width: 100%;
}

.ruta-grid-row:last-child {
  border-bottom: none;
}

.ruta-subject-cell {
  flex: 1 1 0px;
  min-width: 140px;
  padding: 22px 18px 18px;
  border-right: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.ruta-subject-cell:hover {
  background: #fafaf9;
}

.ruta-subject-cell:last-child {
  border-right: none;
}

.ruta-subj-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1528;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ruta-subj-desc {
  font-size: 12px;
  color: #555555;
  line-height: 1.45;
  margin-bottom: 10px;
  flex-grow: 1;
}

.ruta-subj-sem {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 8px;
  border-top: 1px dashed #e8e8e8;
  margin-top: auto;
}

/* ═══════ CASOS DE ÉXITO (IMAGE 2) ═══════ */
.casos-exito-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: #ffffff;
}

.casos-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #000000;
  margin-bottom: 36px;
  line-height: 1.15;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 36px);
}

.caso-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.caso-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000000;
}

.caso-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
  display: block;
}

.caso-card:hover .caso-media img {
  transform: scale(1.04);
}

.caso-caption {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 750;
  color: #000000;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.caso-caption strong {
  font-weight: 850;
}

@media (max-width: 950px) {
  .casos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .casos-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════ CLIENTES REALES (IMAGE 3) ═══════ */

.clientes-reales-section .container,
.clientes-reales-section .clientes-container,
.clientes-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 clamp(24px, 4vw, 56px) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.clientes-reales-section {
  background: #f4f4f4 !important;
  padding: clamp(60px, 8vw, 100px) 0 !important;
  border-top: 1px solid #e6e6e6 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  width: 100% !important;
  display: block !important;
}

.clientes-title {
  font-size: clamp(28px, 3.5vw, 44px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #000000 !important;
  margin-bottom: clamp(40px, 5vw, 60px) !important;
  text-align: left !important;
}

.clientes-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(36px, 5vw, 68px) clamp(24px, 3.5vw, 50px) !important;
  align-items: center !important;
  justify-items: center !important;
}

.cliente-logo-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: clamp(85px, 9vw, 110px) !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
}

.cliente-logo-item:hover {
  transform: scale(1.08) !important;
}

.cliente-logo-item img {
  max-width: clamp(190px, 17vw, 240px) !important;
  max-height: clamp(68px, 6.5vw, 85px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: contrast(110%) !important;
}

@media (max-width: 900px) {
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 36px 24px !important;
  }

  .cliente-logo-item {
    height: 85px !important;
  }

  .cliente-logo-item img {
    max-width: 180px !important;
    max-height: 65px !important;
  }
}

@media (max-width: 600px) {
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 18px !important;
  }

  .cliente-logo-item {
    height: 75px !important;
  }

  .cliente-logo-item img {
    max-width: 150px !important;
    max-height: 55px !important;
  }
}

/* ═══════ EXPERTOS / PROFESORES (IMAGE 4) ═══════ */
.expertos-section {
  padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 120px);
  background: #ffffff;
}

.expertos-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #000000;
  margin-bottom: 24px;
  line-height: 1.15;
}

.expertos-intro {
  max-width: 900px;
  margin-bottom: 48px;
}

.expertos-intro p {
  font-size: 15px;
  color: #333333;
  line-height: 1.65;
  margin-bottom: 16px;
}

.expertos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.experto-card {
  display: flex;
  flex-direction: column;
}

.experto-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e6e6e6;
}

.experto-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%);
  transition: filter 0.35s ease, transform 0.35s ease;
  display: block;
}

.experto-card:hover .experto-photo img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.experto-name {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #000000;
  line-height: 1.3;
}

.experto-bio {
  margin-top: 8px;
  font-size: 13px;
  color: #444444;
  line-height: 1.5;
  flex-grow: 1;
}

.experto-bio strong {
  color: #000000;
  font-weight: 800;
}

.experto-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 750;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.experto-link:hover {
  color: #d5a841;
  transform: translateX(3px);
}

@media (max-width: 950px) {
  .expertos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .expertos-grid {
    grid-template-columns: 1fr;
  }
}


/* ───── CARRERA HERO CAMPUS BADGE (CLEAN & NON-OVERLAPPING) ───── */
.carrera-hero-badge-wrap {
  display: block !important;
  margin-bottom: 16px !important;
  position: static !important;
}

.carrera-campus-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 10px rgba(213, 168, 65, 0.25) !important;
  line-height: 1.2 !important;
}

/* Smooth scroll & margin for Plan de Estudios */
html {
  scroll-behavior: smooth;
}

.ruta-aprendizaje-section,
#plan-de-estudios {
  scroll-margin-top: 95px;
}


/* ═══════ SECCIÓN PRÓXIMOS EVENTOS (EDITORIAL) ═══════ */
.proximos-eventos-section {
  width: 100%;
  background: #ffffff;
  color: #000000;
  padding: clamp(60px, 8vw, 100px) 0;
  font-family: var(--sans);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eventos-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 50px);
}

.eventos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 1.5px solid #000000;
  margin-bottom: 0;
}

.eventos-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 850;
  letter-spacing: -0.035em;
  color: #000000;
  line-height: 1.05;
  margin: 0;
}

.eventos-ver-todos {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.eventos-ver-todos:hover {
  color: var(--gold);
  opacity: 0.9;
}

.eventos-list {
  display: flex;
  flex-direction: column;
}

.evento-item {
  display: grid;
  grid-template-columns: 200px 1.4fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(28px, 4vw, 42px) 0;
  border-bottom: 1px solid #111111;
  transition: background-color 0.2s ease;
}

.evento-item:hover {
  background-color: #fafafa;
}

.evento-media {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 220px;
  overflow: hidden;
  background: #f0f0f0;
}

.evento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.evento-item:hover .evento-media img {
  transform: scale(1.04);
}

.evento-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.evento-headline {
  margin: 0 0 16px 0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #000000;
}

.evento-headline a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.evento-headline a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.evento-category {
  font-size: 14px;
  font-weight: 650;
  color: #111111;
  margin-top: auto;
  letter-spacing: -0.01em;
}

.evento-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'Courier New', Courier, monospace;
}

.evento-datetime {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111111;
  margin-bottom: 12px;
}

.evento-location {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #111111;
  margin-bottom: 18px;
}

.evento-pin {
  font-style: normal;
  display: inline-block;
  margin-right: 4px;
}

.evento-venue {
  letter-spacing: 0.08em;
}

.evento-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  margin-top: auto;
}

@media (max-width: 860px) {
  .evento-item {
    grid-template-columns: 140px 1fr;
    gap: 20px;
  }

  .evento-meta {
    grid-column: span 2;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed #dddddd;
  }
}

@media (max-width: 560px) {
  .evento-item {
    grid-template-columns: 1fr;
  }

  .evento-meta {
    grid-column: span 1;
  }

  .evento-media {
    max-height: 240px;
  }
}


/* ═══════ SECCIÓN MANIFIESTO DE INNOVACIÓN, ARTE Y DISEÑO (INDEX) ═══════ */
.manifesto-innovacion-section {
  width: 100%;
  background: #000000;
  color: #ffffff;
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.manifesto-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ───── ESCENARIO DE OBJETOS FLOTANTES INDEPENDIENTES ───── */
.manifesto-floating-stage {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: clamp(520px, 62vw, 720px);
  margin: 0 auto clamp(24px, 3.5vw, 48px);
  perspective: 1000px;
}

.float-item {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: auto;
  cursor: default;
  will-change: transform;
  transition: filter 0.3s ease;
}

.float-item:hover {
  filter: drop-shadow(0 0 25px rgba(213, 168, 65, 0.65)) brightness(1.12);
  z-index: 25 !important;
}

.float-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95));
}

/* Posiciones proporcionales limpias y sin solapamientos */
.item-silla {
  left: 2%;
  top: 4%;
  width: 22%;
  z-index: 3;
  animation: floatDirSilla 6.8s ease-in-out infinite alternate;
}

.item-robot {
  left: 38%;
  top: 1%;
  width: 17%;
  z-index: 4;
  animation: floatDirRobot 7.6s ease-in-out infinite alternate -1.8s;
}

.item-arquitectura {
  left: 71%;
  top: 1%;
  width: 24%;
  z-index: 3;
  animation: floatDirArqui 8.4s ease-in-out infinite alternate -0.9s;
}

.item-moda {
  left: 14%;
  top: 31%;
  width: 20%;
  z-index: 5;
  animation: floatDirModa 7.1s ease-in-out infinite alternate -4.5s;
}

.item-bolso {
  left: 61%;
  top: 35%;
  width: 16%;
  z-index: 5;
  animation: floatDirBolso 5.8s ease-in-out infinite alternate -1.4s;
}

.item-ceramica {
  left: 80%;
  top: 37%;
  width: 17%;
  z-index: 4;
  animation: floatDirCeramica 8.2s ease-in-out infinite alternate -3.8s;
}

.item-libro {
  left: 36%;
  top: 43%;
  width: 24%;
  z-index: 4;
  animation: floatDirLibro 7.9s ease-in-out infinite alternate -5.3s;
}

.item-lounge {
  left: 42%;
  top: 61%;
  width: 16%;
  max-width: 175px;
  z-index: 5;
  animation: floatDirLounge 7.4s ease-in-out infinite alternate -4.1s;
}

/* ───── 9 DIRECCIONES Y TRAYECTORIAS INDEPENDIENTES ───── */
/* 1. Silla curvada: diagonal arriba-izquierda con rotación */
@keyframes floatDirSilla {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-18px, -24px, 0) rotate(-2.5deg);
  }

  100% {
    transform: translate3d(10px, 12px, 0) rotate(1.2deg);
  }
}

/* 2. Robot amarillo 3D: arriba-derecha con rebote futurista */
@keyframes floatDirRobot {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(18px, -26px, 0) rotate(3deg);
  }

  100% {
    transform: translate3d(-12px, 10px, 0) rotate(-1.5deg);
  }
}

/* 3. Pabellón arquitectónico: flotación pesada y solemne abajo-izquierda */
@keyframes floatDirArqui {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-15px, 22px, 0) rotate(1.5deg);
  }

  100% {
    transform: translate3d(14px, -14px, 0) rotate(-1deg);
  }
}

/* 4. Vestido alta costura: ondulación horizontal amplia */
@keyframes floatDirModa {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-24px, 14px, 0) rotate(3deg);
  }

  100% {
    transform: translate3d(18px, -18px, 0) rotate(-2deg);
  }
}

/* 5. Bolso de piel: oscilación péndulo */
@keyframes floatDirBolso {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(20px, -22px, 0) rotate(-3.5deg);
  }

  100% {
    transform: translate3d(-14px, 12px, 0) rotate(2deg);
  }
}

/* 6. Jarrón cerámico con flores: deriva diagonal abajo-derecha */
@keyframes floatDirCeramica {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(18px, 20px, 0) rotate(-2.5deg);
  }

  100% {
    transform: translate3d(-14px, -16px, 0) rotate(2deg);
  }
}

/* 7. Libro tipográfico: elíptica suave y elegante */
@keyframes floatDirLibro {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-16px, -18px, 0) rotate(2deg);
  }

  100% {
    transform: translate3d(15px, 14px, 0) rotate(-1.8deg);
  }
}

/* 8. Teclas Ctrl + Z: flotación con inclinación 3D elástica */
@keyframes floatDirCtrlZ {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(16px, 20px, 0) rotate(-2.5deg);
  }

  100% {
    transform: translate3d(-15px, -18px, 0) rotate(3deg);
  }
}

/* 9. Lounge orgánico: onda marina sutil */
@keyframes floatDirLounge {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(15px, -18px, 0) rotate(1.5deg);
  }

  100% {
    transform: translate3d(-18px, 14px, 0) rotate(-1.2deg);
  }
}

/* ───── MANIFIESTO TIPOGRÁFICO: PIENSA EN GRANDE, PIENSA EN UCB ───── */
.manifesto-text-block {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.manifesto-headline {
  font-family: var(--sans);
  font-size: clamp(44px, 7.8vw, 104px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: #ffffff;
  margin: 0 auto clamp(24px, 3.5vw, 36px);
  text-transform: none;
}

.manifesto-subheading {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(16px, 2.4vw, 24px);
  text-transform: uppercase;
}

.manifesto-tagline {
  font-family: var(--sans);
  font-size: clamp(15px, 1.9vw, 24px);
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #ffffff;
  text-transform: uppercase;
  max-width: 840px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .manifesto-floating-stage {
    height: clamp(420px, 80vw, 540px);
  }
  .item-lounge {
    width: 22%;
    top: 60%;
    left: 39%;
  }
}

/* ═════════════════════════════════════════════════════════════════
   SECCIÓN INSTALACIONES · CAROUSEL PREMIUM & GALERÍA UCB
   ═════════════════════════════════════════════════════════════════ */
.instalaciones-gallery-section {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 110px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative;
}

.instalaciones-carousel-wrapper {
  max-width: 1240px;
  margin: 36px auto 0;
  position: relative;
}

.instalaciones-carousel-container {
  position: relative;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 20, 40, 0.24);
  border: 1px solid rgba(213, 168, 65, 0.2);
}

.instalaciones-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  max-height: 640px;
  overflow: hidden;
  cursor: grab;
}

.instalaciones-carousel-stage:active {
  cursor: grabbing;
}

.instalaciones-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.instalaciones-carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.instalaciones-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.instalaciones-carousel-container:hover .instalaciones-slide-img {
  transform: scale(1.025);
}

.instalaciones-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 15, 30, 0.35) 0%,
      rgba(0, 15, 30, 0.05) 40%,
      rgba(0, 15, 30, 0.85) 80%,
      rgba(0, 15, 30, 0.96) 100%);
  pointer-events: none;
}

.instalaciones-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(20px, 4vw, 44px);
  color: #ffffff;
  z-index: 5;
  pointer-events: none;
}

.instalaciones-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(213, 168, 65, 0.22);
  border: 1px solid rgba(213, 168, 65, 0.65);
  color: #fedd11;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  margin-bottom: 10px;
}

.instalaciones-slide-title {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.instalaciones-slide-desc {
  font-size: clamp(13px, 1.15vw, 16px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 820px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Floating Badges (Counter & Fullscreen Trigger) */
.instalaciones-top-controls {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.instalaciones-counter-badge {
  background: rgba(0, 20, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.instalaciones-counter-current {
  color: var(--gold);
}

.instalaciones-zoom-btn {
  pointer-events: auto;
  background: rgba(0, 20, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.instalaciones-zoom-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: scale(1.08);
}

.instalaciones-zoom-btn svg {
  width: 18px;
  height: 18px;
}

/* Navigation Arrow Buttons */
.instalaciones-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 4.5vw, 56px);
  height: clamp(44px, 4.5vw, 56px);
  border-radius: 50%;
  background: rgba(0, 20, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  z-index: 10;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.instalaciones-carousel-nav-btn--prev {
  left: 18px;
}

.instalaciones-carousel-nav-btn--next {
  right: 18px;
}

.instalaciones-carousel-nav-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(213, 168, 65, 0.4);
}

.instalaciones-carousel-nav-btn svg {
  width: 22px;
  height: 22px;
}

/* Autoplay Progress Bar */
.instalaciones-carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 12;
}

.instalaciones-carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #fedd11);
  transition: width 0.1s linear;
}

/* Thumbnails Strip */
.instalaciones-thumbs-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(0, 0, 0, 0.1);
}

.instalaciones-thumbs-wrapper::-webkit-scrollbar {
  height: 6px;
}

.instalaciones-thumbs-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.instalaciones-thumbs-wrapper::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}

.instalaciones-thumb-btn {
  flex: 0 0 clamp(90px, 12vw, 130px);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--navy-dark);
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.3s var(--ease);
  position: relative;
}

.instalaciones-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instalaciones-thumb-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.instalaciones-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(213, 168, 65, 0.35);
}

/* ───── LIGHTBOX MODAL (EXPANDED VIEW) ───── */
.instalaciones-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 14, 28, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 24px;
}

.instalaciones-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.instalaciones-lightbox-inner {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instalaciones-lightbox-img-box {
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.instalaciones-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.instalaciones-lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
  max-width: 700px;
}

.instalaciones-lightbox-caption h4 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.instalaciones-lightbox-caption p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.instalaciones-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s var(--ease);
}

.instalaciones-lightbox-close:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.instalaciones-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 20, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.instalaciones-lightbox-nav--prev {
  left: -24px;
}

.instalaciones-lightbox-nav--next {
  right: -24px;
}

.instalaciones-lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

/* ───── CONTACT & CAMPUS STRIP ───── */
.instalaciones-contact-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(50px, 7vw, 90px) 0;
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.contact-strip-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-strip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(213, 168, 65, 0.4);
}

.contact-strip-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(213, 168, 65, 0.2) 0%, rgba(213, 168, 65, 0.05) 100%);
  border: 1px solid rgba(213, 168, 65, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-strip-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-strip-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.contact-strip-card strong {
  color: var(--navy);
}

.contact-strip-link {
  margin-top: auto;
  padding-top: 14px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-strip-link:hover {
  color: var(--gold);
}

@media (max-width: 992px) {
  .contact-strip-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .instalaciones-lightbox-nav--prev {
    left: 8px;
  }

  .instalaciones-lightbox-nav--next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .instalaciones-carousel-stage {
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }

  .instalaciones-slide-content {
    padding: 18px 16px;
  }

  .instalaciones-slide-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .instalaciones-carousel-nav-btn {
    width: 38px;
    height: 38px;
  }

  .instalaciones-carousel-nav-btn--prev {
    left: 10px;
  }

  .instalaciones-carousel-nav-btn--next {
    right: 10px;
  }
}

/* ───── NUESTRO MÉTODO SECTION ───── */
.section--metodo {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}

.metodo-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.metodo-header {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.metodo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.metodo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  padding: clamp(28px, 3vw, 36px);
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

.metodo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.metodo-card-num {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 600;
}

.metodo-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.metodo-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ───── ENHANCED MEGA MENUS & PROGRAM HEADERS ───── */
.mega-col-title-lg {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.mega-badge-category {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-badge-category::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ───── ADMISIONES LEAD CALCULATOR CARD ───── */
.adm-lead-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.adm-lead-card input,
.adm-lead-card select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 10px;
  background: var(--white);
  color: var(--navy);
  box-sizing: border-box;
}

.adm-lead-card input:focus,
.adm-lead-card select:focus {
  outline: none;
  border-color: var(--navy);
}

/* ═════════════════════════════════════════════════════════════════
   IDENTIDAD CROMÁTICA & SISTEMA VISUAL DE LAS CARRERAS (LICENCIATURAS)
   La base institucional es blanca, negra y dorada.
   Cada carrera incorpora sus colores propios en fondos, bloques,
   títulos y detalles, eliminando la presentación monocromática negra.
   ═════════════════════════════════════════════════════════════════ */

/* 1. PALETAS POR CARRERA (CONFORME A LA FOTOGRAFÍA OFICIAL DEL STAND) */

/* Familia Azul: Diseño Gráfico (Azul oscuro), Diseño Industrial (Azul medio), Animación (Azul cian/turquesa) */
body.page-carrera--grafico {
  --career-color: #1e3a8a;          /* Azul Oscuro */
  --career-color-dark: #172554;
  --career-color-rgb: 30, 58, 138;
  --career-bg-tint: #f0f4ff;
  --career-accent: #3b82f6;
}

body.page-carrera--industrial {
  --career-color: #2563eb;          /* Azul Medio */
  --career-color-dark: #1d4ed8;
  --career-color-rgb: 37, 99, 235;
  --career-bg-tint: #eff6ff;
  --career-accent: #60a5fa;
}

body.page-carrera--animacion {
  --career-color: #0891b2;          /* Azul Cian o Turquesa */
  --career-color-dark: #0e7490;
  --career-color-rgb: 8, 145, 178;
  --career-bg-tint: #ecfeff;
  --career-accent: #22d3ee;
}

/* Familia Magenta / Rosa: Modas (Magenta/Morado oscuro), Imagen (Magenta/Rosa) */
body.page-carrera--modas {
  --career-color: #831843;          /* Magenta o Morado Oscuro */
  --career-color-dark: #500724;
  --career-color-rgb: 131, 24, 67;
  --career-bg-tint: #fdf2f8;
  --career-accent: #db2777;
}

body.page-carrera--imagen {
  --career-color: #db2777;          /* Magenta o Rosa */
  --career-color-dark: #be185d;
  --career-color-rgb: 219, 39, 119;
  --career-bg-tint: #fdf2f8;
  --career-accent: #f472b6;
}

/* Familia Verde: Arquitectura (Verde oscuro), Arquitectura y Diseño de Interiores (Verde medio o claro) */
body.page-carrera--arquitectura {
  --career-color: #14532d;          /* Verde Oscuro */
  --career-color-dark: #052e16;
  --career-color-rgb: 20, 83, 45;
  --career-bg-tint: #f0fdf4;
  --career-accent: #16a34a;
}

body.page-carrera--arquitectura-interiores {
  --career-color: #059669;          /* Verde Medio o Claro */
  --career-color-dark: #047857;
  --career-color-rgb: 5, 150, 105;
  --career-bg-tint: #ecfdf5;
  --career-accent: #34d399;
}

/* Familia Naranja y Salmón: Mercadotecnia (Naranja oscuro), Comercio (Naranja intenso), Empresarial (Naranja claro), Administración (Salmón/durazno claro) */
body.page-carrera--mercadotecnia {
  --career-color: #c2410c;          /* Naranja Oscuro */
  --career-color-dark: #9a3412;
  --career-color-rgb: 194, 65, 12;
  --career-bg-tint: #fff7ed;
  --career-accent: #ea580c;
}

body.page-carrera--comercio {
  --career-color: #ea580c;          /* Naranja Intenso */
  --career-color-dark: #c2410c;
  --career-color-rgb: 234, 88, 12;
  --career-bg-tint: #fff7ed;
  --career-accent: #f97316;
}

body.page-carrera--empresarial {
  --career-color: #f59e0b;          /* Naranja Claro */
  --career-color-dark: #d97706;
  --career-color-rgb: 245, 158, 11;
  --career-bg-tint: #fffbeb;
  --career-accent: #fbbf24;
}

body.page-carrera--administracion {
  --career-color: #f472b6;          /* Salmón o Durazno Claro */
  --career-color-dark: #db2777;
  --career-color-rgb: 244, 114, 182;
  --career-bg-tint: #fff1f2;
  --career-accent: #fda4af;
}

/* 2. HERO DINÁMICO CON COLOR DE CARRERA */
body.page-carrera .page-hero {
  background: radial-gradient(circle at 86% 22%, rgba(var(--career-color-rgb), 0.15) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--career-bg-tint) 100%) !important;
  border-bottom: 2px solid rgba(var(--career-color-rgb), 0.22) !important;
  position: relative;
}

body.page-carrera .page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--career-color) 0%, var(--gold) 100%);
  z-index: 2;
}

body.page-carrera .carrera-campus-badge {
  background: var(--career-color) !important;
  color: #ffffff !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(var(--career-color-rgb), 0.35);
  display: inline-block;
}

body.page-carrera .page-hero h1 {
  color: var(--navy);
  margin-top: 10px;
}

body.page-carrera .page-hero-actions .btn--navy {
  background: var(--career-color) !important;
  border-color: var(--career-color) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(var(--career-color-rgb), 0.35);
  transition: all 0.25s ease;
}

body.page-carrera .page-hero-actions .btn--navy:hover {
  background: var(--career-color-dark) !important;
  border-color: var(--career-color-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--career-color-rgb), 0.45);
}

body.page-carrera .page-hero-actions .btn--outline {
  border-color: var(--career-color) !important;
  color: var(--navy) !important;
  font-weight: 750;
}

body.page-carrera .page-hero-actions .btn--outline:hover {
  background: var(--career-color) !important;
  color: #ffffff !important;
}

body.page-carrera .page-hero-media img {
  border: 2px solid rgba(var(--career-color-rgb), 0.3);
  box-shadow: 0 25px 65px rgba(var(--career-color-rgb), 0.18) !important;
}

/* 3. BLOQUE DE FORMACIÓN PROFESIONAL: TALLERES & TECNOLOGÍA / CAMPO LABORAL
   Sustituye el fondo plano 100% negro por una presentación enriquecida con el color de la carrera */
body.page-carrera .carrera-spec-card,
body.page-carrera section.reveal div[style*="background:#0a0a0a"],
body.page-carrera section.reveal div[style*="background: #0a0a0a"],
body.page-carrera section.reveal div[style*="background:#000000; color:#fff; padding:36px"],
body.page-carrera section.reveal div[style*="background: #000000; color: #fff; padding: 36px"] {
  background: linear-gradient(145deg, #121316 0%, rgba(var(--career-color-rgb), 0.32) 100%) !important;
  border: 1.5px solid rgba(var(--career-color-rgb), 0.5) !important;
  box-shadow: 0 25px 60px rgba(var(--career-color-rgb), 0.22), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  overflow: hidden;
}

body.page-carrera .carrera-spec-card::before,
body.page-carrera section.reveal div[style*="background:#0a0a0a"]::before,
body.page-carrera section.reveal div[style*="background: #0a0a0a"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--career-color), var(--gold));
}

body.page-carrera .carrera-spec-card h3,
body.page-carrera section.reveal div[style*="background:#0a0a0a"] h3,
body.page-carrera section.reveal div[style*="background: #0a0a0a"] h3 {
  color: var(--gold) !important;
  font-size: 21px !important;
  letter-spacing: -0.01em;
}

body.page-carrera .carrera-spec-card span[style*="color:var(--gold)"],
body.page-carrera section.reveal div[style*="background:#0a0a0a"] span[style*="color:var(--gold)"],
body.page-carrera section.reveal div[style*="background: #0a0a0a"] span[style*="color:var(--gold)"] {
  color: var(--gold) !important;
}

body.page-carrera .carrera-spec-card span[style*="color:var(--navy)"],
body.page-carrera section.reveal div[style*="background:#0a0a0a"] span[style*="color:var(--navy)"],
body.page-carrera section.reveal div[style*="background: #0a0a0a"] span[style*="color:var(--navy)"] {
  color: var(--career-color) !important;
  font-weight: 800;
}

/* Tarjetas informativas de la sección Formación */
body.page-carrera section.reveal div[style*="border-left:4px solid var(--gold)"] {
  background: var(--career-bg-tint) !important;
  border-left: 4px solid var(--gold) !important;
}

body.page-carrera section.reveal div[style*="border-left:4px solid var(--navy)"] {
  background: var(--career-bg-tint) !important;
  border-left: 4px solid var(--career-color) !important;
}

/* 4. SECCIÓN RUTA DE APRENDIZAJE (PLAN DE ESTUDIOS OFICIAL) */
body.page-carrera .ruta-aprendizaje-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--career-bg-tint) 100%) !important;
  border-top: 1px solid rgba(var(--career-color-rgb), 0.16) !important;
  border-bottom: 1px solid rgba(var(--career-color-rgb), 0.16) !important;
  padding: clamp(60px, 8vw, 100px) 0;
}

body.page-carrera .ruta-title {
  color: var(--navy);
  position: relative;
  display: inline-block;
}

body.page-carrera .ruta-tab-btn {
  font-size: 14.5px;
  font-weight: 750;
  transition: all 0.2s ease;
}

body.page-carrera .ruta-tab-btn:hover {
  border-color: var(--career-color);
  color: var(--career-color);
}

body.page-carrera .ruta-tab-btn.is-active {
  background: var(--career-color) !important;
  border-color: var(--career-color) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(var(--career-color-rgb), 0.35) !important;
}

body.page-carrera .ruta-download-btn {
  background: #111111 !important;
  border: 1.5px solid var(--career-color) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

body.page-carrera .ruta-download-btn:hover {
  background: var(--career-color) !important;
  border-color: var(--career-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--career-color-rgb), 0.4);
}

body.page-carrera .ruta-content-block {
  border: 1.5px solid rgba(var(--career-color-rgb), 0.35) !important;
  border-top: 3px solid var(--career-color) !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

body.page-carrera .ruta-subj-sem {
  color: var(--career-color) !important;
  font-weight: 850;
}

body.page-carrera .ruta-subject-cell:hover {
  background: var(--career-bg-tint) !important;
}

/* 5. BLOQUE FINAL CTA (INSCRIPCIONES ABIERTAS) */
body.page-carrera section.reveal div[style*="background:#000000"],
body.page-carrera section.reveal div[style*="background: #000000"] {
  background: linear-gradient(135deg, #111111 0%, rgba(var(--career-color-rgb), 0.4) 100%) !important;
  border: 1.5px solid rgba(var(--career-color-rgb), 0.5) !important;
  box-shadow: 0 30px 80px rgba(var(--career-color-rgb), 0.28), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  position: relative;
  overflow: hidden;
}

body.page-carrera section.reveal div[style*="background:#000000"]::before,
body.page-carrera section.reveal div[style*="background: #000000"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--career-color) 100%);
}

body.page-carrera section.reveal div[style*="background:#000000"] .btn--gold {
  background: var(--gold) !important;
  color: #000000 !important;
  font-weight: 850;
  box-shadow: 0 6px 20px rgba(213, 168, 65, 0.4);
}

body.page-carrera section.reveal div[style*="background:#000000"] .btn--outline {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
}

body.page-carrera section.reveal div[style*="background:#000000"] .btn--outline:hover {
  background: var(--career-color) !important;
  border-color: var(--career-color) !important;
}

/* 6. PROYECTOS Y EXPERTOS EN PÁGINAS DE CARRERA */
body.page-carrera .caso-card:hover {
  border-color: var(--career-color);
  box-shadow: 0 16px 36px rgba(var(--career-color-rgb), 0.18);
}

body.page-carrera .experto-card:hover {
  border-color: var(--career-color);
  box-shadow: 0 16px 36px rgba(var(--career-color-rgb), 0.18);
}

body.page-carrera .experto-link {
  color: var(--career-color) !important;
  font-weight: 800;
}

/* ═══════ NUESTRA CASA: SELECTOR INTERACTIVO DE IDENTIDAD ═══════ */
.casa-tab-btn {
  background: var(--paper-2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 750;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.casa-tab-btn span {
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.casa-tab-btn:hover {
  background: #ffffff;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.casa-tab-btn.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.casa-tab-btn.is-active span {
  color: var(--gold);
}

.casa-tab-panel {
  animation: fadeInCasa 0.35s ease forwards;
}

@keyframes fadeInCasa {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .casa-tab-panel > div {
    grid-template-columns: 1fr !important;
  }
  .casa-tab-panel img {
    height: 240px !important;
    min-height: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════
   CAMPUS DUAL SWITCHER & ACTIVE CAMPUS STYLES
   ═══════════════════════════════════════════════════════ */
body[data-campus="monterrey"] [data-campus-only="culiacan"] {
  display: none !important;
}

body[data-campus="culiacan"] [data-campus-only="monterrey"] {
  display: none !important;
}

/* Hero Campus Tag */
.hero-cedim-campus-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.4);
  width: fit-content;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.hero-cedim-campus-tag .hero-campus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  display: inline-block;
}

/* Footer Campus Card Active State */
.footer-campus-card {
  position: relative !important;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.footer-campus-card.is-active-campus {
  border-color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.07) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--gold) !important;
  transform: translateY(-2px);
}

.footer-campus-card .footer-active-badge {
  display: none;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: #0b1528;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.footer-campus-card.is-active-campus .footer-active-badge {
  display: inline-block !important;
}

/* Campus Switcher Toast Notification */
.ucb-campus-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999999;
  background: #0b1528;
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 380px;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.ucb-campus-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ucb-campus-toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex-shrink: 0;
  animation: pulseCampusDot 2s infinite ease-in-out;
}

@keyframes pulseCampusDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.ucb-campus-toast-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.ucb-campus-toast-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

@media (max-width: 600px) {
  .ucb-campus-toast {
    left: 16px;
    right: 16px;
    bottom: 80px;
    max-width: none;
  }
}