@charset "UTF-8";
:root {
  --bs-primary: #155dfc;
  --bs-primary-rgb: 21, 93, 252;
  --bs-body-font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

body {
  color: #0f172a;
  background-color: #ffffff;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 55%, #ffffff 85%), url("../images/hero-gradient.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.page-bg {
  --pattern-url: url("../images/pattern.svg");
  position: relative;
  overflow: hidden;
  background: transparent;
  min-height: auto;
}
.page-bg.is-home {
  min-height: 680px;
}
.page-bg > .container {
  position: relative;
  z-index: 1;
}
.page-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background-image: var(--pattern-url);
  background-repeat: no-repeat;
  background-size: 40% auto;
  background-position: left 0 top 0;
  pointer-events: none;
}

.navbar-brand strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-wordmark {
  height: 28px;
  width: auto;
  display: block;
}

.nav-link {
  font-weight: 600;
  color: #0f172a !important;
}

.top-mini-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.hero {
  padding: 84px 0 64px;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.2;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
  color: #0f172a;
}

.btn-pill {
  border-radius: 999px;
  padding: 0.75rem 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.btn-pill:hover img {
  filter: brightness(0) invert(1);
}

.feature-card {
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  font-weight: 700;
  font-size: 1.5rem;
}

.feature-card p {
  color: #0f172a;
  opacity: 0.85;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
}

.section-subtitle {
  color: #64748b;
  font-size: 0.875rem;
}

.news-meta {
  font-size: 1rem;
}

.news-meta .date {
  font-weight: 700;
  color: var(--bs-primary);
}

.news h4 {
  font-weight: 700;
  font-size: 1.5rem;
}

.news p {
  color: #0f172a;
}

.btn-outline-soft {
  border: 2px solid rgba(21, 93, 252, 0.2);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.65rem 2.25rem;
}

.footer-pill {
  background: var(--bs-primary);
  border-radius: 16px;
}

.footer-pill a {
  color: #ffffff;
  text-decoration: none;
}

.footer-pill a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PÁGINAS INTERNAS & COMPONENTES NUEVOS
   ========================================================================== */
.internal-hero {
  padding: 40px 0;
  text-align: left;
}
.internal-hero h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.quote-block {
  border-left: 4px solid var(--bs-primary);
  padding-left: 20px;
  font-style: italic;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Carrusel de Disciplinas */
.carousel-item-content {
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 30px;
  overflow: hidden;
  margin: 20px 0;
}

.carousel-img {
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
}

.carousel-text {
  padding: 50px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.carousel-text h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0f172a;
}
.carousel-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
  filter: invert(1);
}

.carousel-indicators {
  bottom: -30px;
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  border: none;
  margin: 0 6px;
  opacity: 0.3;
  transition: all 0.3s ease;
}
.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
}

/* Listado de Noticias (Estilo Editorial) */
.news-item {
  margin-bottom: 4rem;
}
.news-item h4 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0f172a;
}
.news-item p {
  color: #0f172a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Detalle de Noticia */
.detail-header {
  padding: 60px 0 40px;
}

.category-badge {
  display: inline-block;
  background: rgba(21, 93, 252, 0.1);
  color: var(--bs-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.article-title {
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.article-hero-img {
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
}
.article-content p {
  margin-bottom: 1.8rem;
}
.article-content h2 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-bottom: 30px;
}
.back-btn:hover {
  color: var(--bs-primary);
}

/* Kurskalender */
.download-card {
  background: #fff;
  border: 1px solid rgba(21, 93, 252, 0.1);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}
.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(21, 93, 252, 0.08);
  border-color: var(--bs-primary);
}

.year-badge {
  background: rgba(21, 93, 252, 0.1);
  color: var(--bs-primary);
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Paginación */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: center;
}
.pagination .page-link, .pagination a, .pagination span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  border: none;
  margin: 0 5px;
}
.pagination .page-link:hover, .pagination a:hover, .pagination span:hover {
  background-color: rgba(21, 93, 252, 0.1);
  color: var(--bs-primary);
}
.pagination .active .page-link, .pagination .current {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

/* Utilidades */
.transition-up {
  transition: transform 0.3s ease;
}
.transition-up:hover {
  transform: translateY(-5px);
}
