@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Sora:wght@100..800&display=swap');

:root {
/* Tipografías */
  --font-title: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

/* Variables de Color */
  --primary-gradient: linear-gradient(135deg, #120b29 0%, #1a0e3b 50%, #2a0845 100%);
  --accent-red: #d92c3f;
  --accent-red-hover: #d62828;
  --text-dark: #2b2d42;
  --text-muted: #6c757d;
  --bg-light: #ffffff;
  --icon-bg-pink: #fde8ed;
  --icon-color-pink: #e63946;
}

/* Base */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
}

/* Títulos con Sora */
h1, h2, h3, h4, h5, h6,
.section-title,
.area-card-title,
.cta-title,
.stat-number {
  font-family: var(--font-title);
}

/* Header & Nav */
.site-header {
  background-color: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brand-icon {
  width: 50px;
  height: 50px;
  color: #fff;
  border-radius: 8px;
}

.brand-title {
  color: var(--text-dark);
  font-size: 1.2rem;
}

.site-header .nav-link {
  color: var(--text-muted);
  font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--accent-red);
}

/* Hero Section */
.hero-section {
  background: var(--primary-gradient);
  color: #ffffff;
}

.hero-title {
  color: #ffffff;
  font-size: 4.10rem; /*tamaño del título */
}

.hero-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Badges y Pills en Hero */
.badge-edition {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  font-weight: 400;
}

.badge-live {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
}

.bi-record-fill {
  color: #e6969f;
  line-height: 0;
}

.pill-info {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  font-weight: 400;
}

.btn-cta {
  background-color: var(--accent-red);
  color: #ffffff;
  border: none;
}

.btn-cta:hover {
  background-color: var(--accent-red-hover);
  color: #ffffff;
}

/* Card de Video */
.video-card {
  background-color: #1a0e3b;
}

.video-thumbnail {
  background-color: rgba(0, 0, 0, 0.4);
}

.btn-play {
  width: 64px;
  height: 64px;
  background-color: var(--accent-red);
  color: #ffffff;
  border: none;
  transition: transform 0.2s ease;
  border-radius: 50%;
  
  /* Centrado Absoluto Exacto */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.card-panel{
  color: #ffffff;
}
.btn-play:hover {
  background-color: var(--accent-red-hover);
  color: #ffffff;
  transform: scale(1.08);
}

.video-caption {
  background-color: #151030;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* Sección de Estadísticas */
.stats-section {
  background-color: var(--bg-light);
  border-bottom: none;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px; /* Cuadrado con bordes redondeados */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}


.stat-number {
  color: var(--text-dark);
  font-size: 1.8rem;
}

.stat-label {
  font-size: 0.9rem;
}


/* Áreas de Conocimiento */
.areas-section {
  background-color: #faf7f0; /* Fondo beige */
}

.badge-section-tag {
  background-color: #fbe8ea;
  color: #bd314b;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
  letter-spacing: 0.5px;
}

.area-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.area-card-title {
  color: #1d1d1f;
  line-height: 1.3;
}

.area-card-meta {
  color: #86868b;
}


.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  background-color: #fde8ed;
  color: #e63946;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* posgrados */
.area-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-blue   { background-color: #e5ecfe; color: #4872d2; }
.icon-green  { background-color: #e3f5e9; color: #1ba14d; }
.icon-red    { background-color: #fae7e3; color: #bd5450; }
.icon-purple { background-color: #efe6ff; color: #8f6ad4; }
.icon-orange { background-color: #faebe4; color: #cb7e74; }
.icon-lime   { background-color: #ecf3e1; color: #83ac4e; }
.icon-teal   { background-color: #e3efef; color: #2b7574; }

/* Ver todo el catálogo*/
.area-card-cta {
  background-color: #fdf4f5;
  border: 1px solid rgba(189, 49, 75, 0.15) !important; /* Borde sutil rosa/rojo */
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.area-card-cta:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 49, 75, 0.35) !important;
}

.cta-icon-wrapper {
  font-size: 1.8rem;
  color: #bd314b;
}

.cta-title {
  color: #bd314b;
}

.cta-meta {
  color: #a1a1a6;
}


/* programas */
.oferta-section {
  background-color: #ffffff; /* Mismo fondo crema continuo */
}

.badge-programas-tag {
  background-color: #f9e9ea;
  color: #bd314b;
  font-size: 0.72rem;
  padding: 0.4em 0.8em;
  letter-spacing: 0.5px;
}


.btn-outline-custom {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #000000;
  background-color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  background-color: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.3);
  color: #1d1d1f;
}

/* Tarjetas*/
.program-card {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 400px; /* Cambia este valor (ej. 450px, 500px, etc.) */
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(177, 62, 62, 0.06);
}

/* Badges sobre la tarjeta */
.badge-area-blue {
  background-color: #e3f2ff;
  color: #5679dd;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.4em 0.75em;
  border: 1px solid rgba(41, 70, 202, 0.08) !important;
}

.dot-blue {
  color: #2863e5;
  font-size: 1rem;
  line-height: 0;
}

.badge-degree {
  background-color: #f0ede4;
  color: #64665b;
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.35em 0.75em;
  border: 1px solid rgba(77, 78, 80, 0.08) !important;
}

.program-poster {
  aspect-ratio: 1 / 1;
  background-color: #d4a317; /* Tono de respaldo si no hay imagen */
  border-radius: 0 !important;
}

/* Título e información del programa */
.program-card-title {
  font-size: 0.88rem;
  color: #1d1d1f;
  line-height: 1.35;
}

.program-university a{
  font-size: 0.78rem;
  color: #86868b;
}

.program-university i {
  font-size: 0.85rem;
}

/*¿QUIÉNES SOMOS?*/
.about-section {
  background-color: #faf7f0; 
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.3;
  color: #4a4a4a !important;
  max-width: 678px;
}

.btn-read-more {
  background-color: #931f36; 
  color: #ffffff;
  font-weight: 500;
  font-size: 0.88rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-read-more:hover {
  background-color: #931f36;
  color: #ffffff;
  transform: translateY(-2px);
}

.about-map-img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

/*FOOTER*/
.site-footer {
  background-color: #140f37; 
  color: #ffffff;
}

.footer-brand {
  font-family: var(--font-title);
  color: #ffffff;
  line-height: 1.3;
  font-size: 1.15rem;
}

/* Contador de Visitas */
.visit-counter {
  border: 1px solid #3f3f3f;
  background-color: #140f37;
  font-family: var(--font-body);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.counter-label, .vrow {
  background-color: #ffffff;
  color: #000000;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 1px 12px;
  letter-spacing: 1px;
}

.counter-number, .vrowd {
  background: linear-gradient(180deg, #4a4a5a 0%, #1a1a24 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 3px 12px;
  letter-spacing: 2px;
  border-top: 1px solid #7a7a8c;
}

.vstats_counter {
    margin: -6px;
}

div#vvisit_counter112 a {
    display: none;
}

.footer-logos {
  opacity: 0.9;
}

.footer-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: brightness(1);
  transform: translateX(-81px);
}

.page-header {
  background-color: #f7f3ea;
  padding: 20px;
}

.k2PaginationLinks {
    max-width: 1000PX;
    margin: 0 auto;
}

.k2PaginationLinks a {
    text-decoration: none;
}