:root {
  --sige-primary: #0b2b43;
  --sige-primary-strong: #061b2b;
  --sige-secondary: #147aa3;
  --sige-secondary-soft: #e8f4f8;
  --sige-accent: #d4aa24;
  --sige-accent-hover: #e6be43;
  --sige-ink: #18232d;
  --sige-muted: #66737e;
  --sige-surface: #ffffff;
  --sige-soft: #f4f7f9;
  --sige-border: #dce6eb;
  --sige-radius-sm: .9rem;
  --sige-radius: 1.35rem;
  --sige-radius-lg: 1.8rem;
  --sige-shadow-sm: 0 10px 30px rgba(11, 43, 67, .07);
  --sige-shadow: 0 24px 70px rgba(11, 43, 67, .13);
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sige-surface);
  color: var(--sige-ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--sige-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--sige-primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sige-primary-strong);
  font-family: "Montserrat", "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1200;
  padding: .75rem 1rem;
  border-radius: .8rem;
  background: #fff;
  color: var(--sige-primary);
  box-shadow: var(--sige-shadow);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

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

/* Encabezado */
.site-header {
  min-height: var(--header-height);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(11, 43, 67, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .25s ease, box-shadow .25s ease, min-height .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 12px 35px rgba(11, 43, 67, .12);
}

.navbar {
  min-height: var(--header-height);
  padding: .55rem 0;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .85rem;
  padding: 0;
}

.brand__logo {
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid var(--sige-border);
  border-radius: 1rem;
  background: #fff;
  object-fit: contain;
  box-shadow: var(--sige-shadow-sm);
}

.brand__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.08;
}

.brand__text strong {
  color: var(--sige-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand__text small {
  margin-top: .35rem;
  color: var(--sige-muted);
  font-size: .72rem;
  font-weight: 700;
}

.navbar-toggler {
  border: 1px solid var(--sige-border);
  border-radius: .85rem;
  padding: .55rem .7rem;
  box-shadow: none !important;
}

.nav-link {
  position: relative;
  padding: .72rem .72rem !important;
  color: #334754;
  font-size: .91rem;
  font-weight: 800;
}

.nav-link::after {
  position: absolute;
  right: .72rem;
  bottom: .28rem;
  left: .72rem;
  height: 2px;
  border-radius: 99px;
  background: var(--sige-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sige-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-action-item {
  display: flex;
  align-items: center;
}

.btn-sige,
.btn-admisiones {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-sige {
  background: var(--sige-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 43, 67, .20);
}

.btn-sige:hover,
.btn-sige:focus {
  background: var(--sige-primary-strong);
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 43, 67, .24);
  transform: translateY(-2px);
}

.btn-admisiones {
  border-color: rgba(212, 170, 36, .52);
  background: rgba(212, 170, 36, .12);
  color: #80610a;
}

.btn-admisiones:hover,
.btn-admisiones:focus {
  border-color: var(--sige-accent);
  background: var(--sige-accent);
  color: #18232d;
  box-shadow: 0 12px 25px rgba(212, 170, 36, .22);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  margin-top: var(--header-height);
  background: var(--sige-primary-strong);
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  min-height: clamp(540px, 72vh, 760px);
}

.hero .carousel-item {
  position: relative;
  overflow: hidden;
  background-color: var(--sige-primary-strong);
  background-position: center;
  background-size: cover;
}

.hero-placeholder {
  background:
    radial-gradient(circle at 78% 22%, rgba(20, 122, 163, .42), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(212, 170, 36, .20), transparent 28%),
    linear-gradient(135deg, #061b2b 0%, #0b2b43 55%, #147aa3 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 23, 36, .96) 0%, rgba(5, 23, 36, .82) 43%, rgba(5, 23, 36, .22) 100%),
    linear-gradient(0deg, rgba(5, 23, 36, .25), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(540px, 72vh, 760px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .5rem .8rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .94);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5.5vw, 5.35rem);
  font-weight: 900;
  line-height: .99;
  text-wrap: balance;
}

.hero p {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.8rem;
  padding: .92rem 1.2rem;
  border-radius: .95rem;
  background: var(--sige-accent);
  color: #18232d;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .20);
}

.hero-action:hover {
  background: var(--sige-accent-hover);
  color: #111820;
  transform: translateY(-2px);
}

.carousel-control-prev,
.carousel-control-next {
  width: 7%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background-color: rgba(6, 27, 43, .38);
  background-size: 42%;
  backdrop-filter: blur(8px);
}

.carousel-indicators {
  margin-bottom: 1.4rem;
}

.carousel-indicators [data-bs-target] {
  width: 32px;
  height: 4px;
  margin: 0 .3rem;
  border: 0;
  border-radius: 99px;
}

/* Secciones */
.section {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background:
    radial-gradient(circle at 5% 5%, rgba(20, 122, 163, .06), transparent 22%),
    var(--sige-soft);
}

.section-heading {
  max-width: 820px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .75rem;
  color: var(--sige-secondary);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--sige-accent);
  content: "";
}

.section-heading h2,
.location-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.section-heading p,
.location-lead {
  color: var(--sige-muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

/* Tarjetas de actualidad */
.feature-card {
  position: relative;
  min-height: 280px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--sige-border);
  border-radius: var(--sige-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--sige-shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.feature-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(20, 122, 163, .05);
  content: "";
}

.feature-card:hover {
  border-color: rgba(20, 122, 163, .32);
  box-shadow: var(--sige-shadow);
  transform: translateY(-8px);
}

.feature-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 1.1rem;
  background: var(--sige-secondary-soft);
  color: var(--sige-secondary);
  font-size: 1.55rem;
}

.feature-card h3 {
  margin-bottom: .8rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: var(--sige-muted);
  line-height: 1.75;
}

/* Valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--sige-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .9);
  color: var(--sige-primary);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 25px rgba(11, 43, 67, .05);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.value-card:hover {
  border-color: var(--sige-accent);
  box-shadow: var(--sige-shadow-sm);
  transform: translateY(-5px);
}

.value-card i {
  color: var(--sige-accent);
  font-size: 1.9rem;
}

/* Universidades */
.university-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.university-card,
.loading-card,
.empty-state {
  display: flex;
  min-height: 136px;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  border: 1px solid var(--sige-border);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--sige-shadow-sm);
}

.university-card {
  transition: transform .22s ease, box-shadow .22s ease;
}

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

.university-card img {
  width: 100%;
  max-width: 150px;
  max-height: 76px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .70;
  transition: filter .22s ease, opacity .22s ease, transform .22s ease;
}

.university-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

.loading-card,
.empty-state {
  grid-column: 1 / -1;
  gap: .7rem;
  color: var(--sige-muted);
}

/* Ubicación */
.location-card,
.map-card {
  overflow: hidden;
  border: 1px solid var(--sige-border);
  border-radius: var(--sige-radius-lg);
  background: #fff;
  box-shadow: var(--sige-shadow);
}

.location-card {
  position: relative;
  padding: clamp(2.2rem, 5vw, 3.7rem);
}

.location-card::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(20, 122, 163, .06);
  content: "";
}

.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  color: #3c4a55;
  line-height: 1.65;
}

.contact-list i {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border-radius: .8rem;
  background: rgba(212, 170, 36, .14);
  color: #8e6b0d;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  height: 100%;
  border: 0;
  filter: saturate(.9) contrast(1.02);
}

/* Footer */
.site-footer {
  padding: 4.5rem 0 1.5rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 122, 163, .28), transparent 28%),
    var(--sige-primary-strong);
  color: rgba(255, 255, 255, .74);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  padding: 3px;
  border-radius: 1rem;
  background: #fff;
  object-fit: contain;
}

.footer-brand strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.footer-brand p,
.footer-copy {
  margin: .25rem 0 0;
}

.footer-copy {
  max-width: 430px;
  margin-top: 1.25rem;
}

.footer-title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: .72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, .75);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: .95rem;
  background: var(--sige-accent);
  color: #17212b;
  box-shadow: 0 12px 28px rgba(11, 43, 67, .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1199.98px) {
  .values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 991.98px) {
  :root {
    --header-height: 78px;
  }

  .brand__logo {
    width: 50px;
    height: 50px;
  }

  .brand__text small {
    display: none;
  }

  .navbar-collapse {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid var(--sige-border);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: var(--sige-shadow);
  }

  .nav-link::after {
    display: none;
  }

  .nav-action-item {
    display: block;
    margin-left: 0 !important;
  }

  .btn-sige,
  .btn-admisiones {
    width: 100%;
    margin-top: .5rem;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(6, 27, 43, .92), rgba(6, 27, 43, .56));
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .university-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item,
  .hero-content {
    min-height: 590px;
  }

  .hero-overlay {
    background: rgba(6, 27, 43, .76);
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.15rem, 11vw, 3.45rem);
  }

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

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

  .map-card iframe {
    min-height: 390px;
  }
}

@media (max-width: 479.98px) {
  .brand__text strong {
    font-size: 1.06rem;
  }

  .values-grid {
    gap: .75rem;
  }

  .value-card {
    min-height: 116px;
    font-size: .88rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
