/* ============================================================
   VARIABLES INSTITUCIONALES UAB-JB
   ============================================================ */
:root {
	--azul: #0f2c5c;
	--azul-2: #1a3a6b;
	--azul-dark: #0a1d3d;
	--rojo: #c41e3a;
	--rojo-dark: #a01830;
	--dorado: #f0b429;
	--gris: #64748b;
	--gris-bg: #f8fafc;
	--blanco: #ffffff;
	--radio: 16px;
	--sombra: 0 10px 30px rgba(15, 44, 92, 0.08);
	--sombra-lg: 0 20px 50px rgba(15, 44, 92, 0.15);
}

* {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", sans-serif;
	color: #1e293b;
	line-height: 1.65;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.py-6 {
	padding: 6rem 0;
}

.z-2 {
	z-index: 2;
}

/* ============================================================
   GRADIENTES / TEXT
   ============================================================ */
.text-gradient {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.text-gradient-light {
	background: linear-gradient(135deg, #fff, var(--dorado));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.bg-gradient-institutional {
	background: linear-gradient(135deg, var(--azul) 0%, var(--azul-2) 60%, #16376b 100%);
}

/* ============================================================
   NAVBAR MODERNO — LOGO BLANCO/COLOR SEGÚN SCROLL
   ============================================================ */
.navbar-modern {
	padding: 1rem 0;
	background: transparent;
	transition: all 0.4s ease;
}

.navbar-modern.scrolled {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	box-shadow: 0 4px 30px rgba(15, 44, 92, 0.08);
	padding: 0.6rem 0;
}

.navbar-modern .navbar-brand {
	text-decoration: none;
	padding: 0;
}

/* Logo del navbar — dos versiones: blanca y color */
.brand-logo-img {
	height: 55px;
	width: auto;
	display: block;
	transition:
		height 0.3s ease,
		opacity 0.3s ease;
}

.brand-logo-img.logo-light {
	display: block;
}

/* logo blanco */
.brand-logo-img.logo-dark {
	display: none;
}

/* logo colores */

/* Cuando el navbar está scrolled, cambia el logo */
.navbar-modern.scrolled .brand-logo-img {
	height: 48px;
}

.navbar-modern.scrolled .brand-logo-img.logo-light {
	display: none;
}

.navbar-modern.scrolled .brand-logo-img.logo-dark {
	display: block;
}

/* Pills nav */
.nav-pill-modern {
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	border-radius: 50px;
	padding: 6px;
	gap: 4px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-modern.scrolled .nav-pill-modern {
	background: rgba(15, 44, 92, 0.05);
	border-color: rgba(15, 44, 92, 0.06);
}

.nav-pill-modern .nav-link {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
	font-size: 0.9rem;
	padding: 8px 14px !important;
	border-radius: 50px;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.nav-pill-modern .nav-link i {
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
}

.navbar-modern.scrolled .nav-pill-modern .nav-link {
	color: var(--azul);
}

.nav-pill-modern .nav-link:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.navbar-modern.scrolled .nav-pill-modern .nav-link:hover {
	background: #fff;
	color: var(--rojo);
	box-shadow: 0 2px 10px rgba(15, 44, 92, 0.08);
}

.nav-pill-modern .nav-link.active {
	background: #fff;
	color: var(--rojo) !important;
	box-shadow: 0 4px 12px rgba(15, 44, 92, 0.1);
}

.navbar-modern.scrolled .nav-pill-modern .nav-link.active {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff !important;
}

/* Dropdown toggle con icono — alineado */
.nav-pill-modern .dropdown-toggle::after {
	margin-left: 6px;
	vertical-align: middle;
}

/* ============================================================
   DROPDOWN CLÁSICO CON SUBMENÚ FLYOUT
   ============================================================ */
.dropdown-modern {
	border: none;
	border-radius: 0;
	padding: 10px 0;
	background: #ffffff;
	box-shadow:
		0 20px 45px rgba(15, 44, 92, 0.15),
		0 0 0 1px rgba(15, 44, 92, 0.06);
	margin-top: 12px !important;
	min-width: 280px;
	animation: fadeDown 0.25s ease;
}

@keyframes fadeDown {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Ítems del dropdown — iconos alineados con texto */
.dropdown-modern .dropdown-item {
	padding: 11px 22px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #334155;
	border-radius: 0;
	transition: all 0.22s ease;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: normal;
	line-height: 1.4;
}

.dropdown-modern .dropdown-item i {
	font-size: 1rem;
	width: 20px;
	min-width: 20px;
	text-align: center;
	color: var(--azul-2);
	transition: color 0.22s ease;
	flex-shrink: 0;
}

.dropdown-modern .dropdown-item:hover,
.dropdown-modern .dropdown-item:focus {
	background: var(--azul);
	color: #ffffff;
}

.dropdown-modern .dropdown-item:hover i,
.dropdown-modern .dropdown-item:focus i {
	color: #ffffff;
}

/* Submenú anidado con iconos */
.dropdown-submenu {
	position: relative;
}

.dropdown-modern .dropdown-item.submenu-toggle {
	justify-content: space-between;
	padding-right: 18px;
}

.dropdown-modern .dropdown-item.submenu-toggle>i.bi-caret-right-fill {
	font-size: 0.75rem;
	color: #94a3b8;
	width: auto;
	min-width: auto;
	transition:
		transform 0.25s ease,
		color 0.25s ease;
}

.dropdown-modern .dropdown-item.submenu-toggle:hover>i.bi-caret-right-fill {
	transform: translateX(3px);
	color: #ffffff;
}

.dropdown-submenu>.dropdown-menu {
	top: -10px;
	left: 100%;
	margin-left: 2px;
	min-width: 300px;
	padding: 10px 0;
	border: none;
	border-radius: 0;
	background: #ffffff;
	box-shadow:
		0 20px 45px rgba(15, 44, 92, 0.15),
		0 0 0 1px rgba(15, 44, 92, 0.06);
	display: block;
	opacity: 0;
	visibility: hidden;
	transform: translateX(6px);
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		visibility 0.22s;
}

.dropdown-submenu:hover>.dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.dropdown-submenu>.dropdown-menu .dropdown-item {
	padding: 11px 22px;
	font-size: 0.88rem;
	color: #334155;
	white-space: normal;
}

.dropdown-submenu>.dropdown-menu .dropdown-item:hover {
	background: var(--azul);
	color: #ffffff;
}

@media (min-width: 992px) {
	.dropdown-submenu.dropend-left>.dropdown-menu {
		left: auto;
		right: 100%;
		margin-left: 0;
		margin-right: 2px;
		transform: translateX(-6px);
	}

	.dropdown-submenu.dropend-left:hover>.dropdown-menu {
		transform: translateX(0);
	}
}

/* ============================================================
   BOTONES NAVBAR
   ============================================================ */
.btn-primary-modern {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 10px 22px;
	font-weight: 600;
	font-size: 0.88rem;
	box-shadow: 0 6px 20px rgba(26, 58, 107, 0.3);
	transition: all 0.35s ease;
	white-space: nowrap;
}

.btn-primary-modern:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(196, 30, 58, 0.35);
	color: #fff;
}

.btn-icon-soft {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	transition: all 0.3s;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-modern.scrolled .btn-icon-soft {
	background: rgba(15, 44, 92, 0.06);
	color: var(--azul);
	border-color: transparent;
}

.btn-icon-soft:hover {
	background: var(--rojo);
	color: #fff;
}

.navbar-toggler {
	color: #fff;
}

.navbar-modern.scrolled .navbar-toggler {
	color: var(--azul);
}

/* ============================================================
   OFFCANVAS MÓVIL
   ============================================================ */
.offcanvas-modern {
	border-radius: 24px 0 0 24px;
}

.nav-link-mobile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	border-radius: 12px;
	color: var(--azul);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s;
	font-size: 0.95rem;
	gap: 10px;
}

.nav-link-mobile>span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
}

.nav-link-mobile[aria-expanded="true"] {
	background: rgba(26, 58, 107, 0.06);
	color: var(--azul);
}

.nav-link-mobile .bi-chevron-down {
	font-size: 0.75rem;
	transition: transform 0.3s;
	flex-shrink: 0;
}

.nav-link-mobile[aria-expanded="true"] .bi-chevron-down {
	transform: rotate(180deg);
}

.submenu-mobile,
.submenu-nivel3 {
	list-style: none;
	padding: 6px 0 6px 14px;
	margin: 4px 0;
	border-left: 2px solid rgba(26, 58, 107, 0.1);
}

.submenu-mobile a,
.submenu-nivel3 a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	color: #475569;
	font-size: 0.87rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.25s;
	line-height: 1.35;
}

.submenu-mobile a i,
.submenu-nivel3 a i {
	font-size: 0.9rem;
	color: var(--azul-2);
	width: 18px;
	min-width: 18px;
	text-align: center;
	flex-shrink: 0;
}

.submenu-mobile a:hover,
.submenu-nivel3 a:hover {
	background: rgba(196, 30, 58, 0.06);
	color: var(--rojo);
	padding-left: 16px;
}

.submenu-mobile a:hover i,
.submenu-nivel3 a:hover i {
	color: var(--rojo);
}

.submenu-nivel3 {
	border-left-color: rgba(196, 30, 58, 0.2);
	padding-left: 10px;
}

.submenu-nivel3 a {
	font-size: 0.82rem;
	color: #64748b;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
	height: 100vh;
	min-height: 640px;
	position: relative;
	overflow: hidden;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
	height: 100%;
}

.slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
	transition: transform 8s ease-out;
}

.carousel-item.active .slide-bg {
	transform: scale(1);
}

.slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg,
			rgba(15, 44, 92, 0.92) 0%,
			rgba(15, 44, 92, 0.75) 45%,
			rgba(196, 30, 58, 0.45) 100%);
}

.slide-overlay.overlay-azul {
	background: linear-gradient(135deg,
			rgba(10, 29, 61, 0.95) 0%,
			rgba(26, 58, 107, 0.8) 60%,
			rgba(15, 44, 92, 0.6) 100%);
}

.slide-overlay.overlay-rojo {
	background: linear-gradient(135deg,
			rgba(10, 29, 61, 0.9) 0%,
			rgba(140, 20, 42, 0.8) 60%,
			rgba(196, 30, 58, 0.55) 100%);
}

.slide-content {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	align-items: center;
	padding-top: 100px;
}

.chip-modern {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 24px;
}

.slide-title {
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	letter-spacing: -0.03em;
}

.slide-desc {
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	color: rgba(255, 255, 255, 0.85);
	max-width: 620px;
	margin-bottom: 32px;
}

.btn-glass {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	border-radius: 50px;
	padding: 12px 28px;
	font-weight: 600;
	transition: all 0.3s;
}

.btn-glass:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	transform: translateY(-2px);
}

/* Flechas hero */
.hero-arrow {
	width: 56px;
	height: 56px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	opacity: 1;
	top: 50%;
	transform: translateY(-50%);
	transition: all 0.3s;
	font-size: 1.4rem;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-arrow:hover {
	background: var(--rojo);
	border-color: var(--rojo);
}

.hero-arrow.carousel-control-prev {
	left: 2rem;
}

.hero-arrow.carousel-control-next {
	right: 2rem;
}

/* Indicadores */
.hero-indicators {
	bottom: 90px;
	z-index: 4;
	gap: 10px;
}

.hero-indicators button {
	width: 40px;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.35);
	border: none;
	opacity: 1;
	transition: all 0.3s;
}

.hero-indicators button.active {
	background: #fff;
	width: 60px;
}

/* Barra de progreso */
.slider-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.1);
	z-index: 5;
}

.slider-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--rojo), var(--dorado));
}

/* ============================================================
   HERO SLIDER — MEJORAS MÓVIL
   ============================================================ */
@media (max-width: 991px) {
	.hero-slider {
		height: 85vh;
		min-height: 500px;
	}

	.slide-bg {
		/* Centrar la imagen en el rostro/centro, no en el borde */
		background-position: center center;
		background-size: cover;
	}

	/* Overlay más fuerte en móvil para que el texto se lea */
	.slide-overlay {
		background: linear-gradient(180deg,
				rgba(10, 29, 61, 0.90) 0%,
				rgba(15, 44, 92, 0.80) 50%,
				rgba(15, 44, 92, 0.95) 100%);
	}

	.slide-overlay.overlay-azul {
		background: linear-gradient(180deg,
				rgba(10, 29, 61, 0.92) 0%,
				rgba(26, 58, 107, 0.85) 50%,
				rgba(10, 29, 61, 0.95) 100%);
	}

	.slide-overlay.overlay-rojo {
		background: linear-gradient(180deg,
				rgba(10, 29, 61, 0.90) 0%,
				rgba(140, 20, 42, 0.85) 50%,
				rgba(10, 29, 61, 0.95) 100%);
	}

	.slide-content {
		padding-top: 120px;
		padding-bottom: 80px;
		align-items: center;
		text-align: center;
	}

	.slide-title {
		font-size: 2rem;
		line-height: 1.2;
		margin-bottom: 16px;
		text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
		/* Sombra para legibilidad */
	}

	.slide-desc {
		font-size: 1rem;
		margin-bottom: 30px;
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	}

	.chip-modern {
		font-size: 0.75rem;
		padding: 8px 16px;
		margin-bottom: 20px;
		margin-left: auto;
		margin-right: auto;
		display: inline-flex;
	}

	/* Botones en columna, ancho completo */
	.slide-content .btn {
		width: 100%;
		padding: 14px 20px;
		font-size: 0.95rem;
		justify-content: center;
		border-radius: 50px;
	}

	.slide-content .d-flex {
		flex-direction: column;
		gap: 12px !important;
		width: 100%;
	}

	/* Ocultar las flechas laterales en móvil */
	.hero-arrow {
		display: none;
	}
}

@media (max-width: 576px) {
	.hero-slider {
		height: 90vh;
		/* Un poco más alto en pantallas muy pequeñas */
	}

	.slide-content {
		padding-top: 110px;
		padding-bottom: 90px;
	}

	.slide-title {
		font-size: 1.7rem;
	}

	.slide-desc {
		font-size: 0.92rem;
		margin-bottom: 24px;
	}

	/* Ocultar los indicadores en pantallas muy pequeñas porque estorban con el scroll-hint */
	.hero-indicators {
		bottom: 130px;
	}

	.chip-modern {
		font-size: 0.7rem;
		padding: 6px 14px;
	}

	/* Los indicadores (rayitas) se mueven un poco más abajo */
	.hero-indicators {
		bottom: 100px;
	}

	/* La cinta de "Desliza para explorar" se ajusta */
	.scroll-hint {
		bottom: 170px;
		font-size: 0.65rem;
	}
}

/* ============================================================
   QUICK ACCESS
   ============================================================ */
.quick-access-section {
	position: relative;
	margin-top: -70px;
	z-index: 10;
	padding-bottom: 2rem;
}

.quick-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	padding: 20px 22px;
	border-radius: var(--radio);
	text-decoration: none;
	color: #1e293b;
	box-shadow: var(--sombra);
	border: 1px solid rgba(15, 44, 92, 0.05);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
}

.quick-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--sombra-lg);
	color: var(--azul);
}

.quick-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, rgba(26, 58, 107, 0.08), rgba(196, 30, 58, 0.08));
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rojo);
	font-size: 1.35rem;
	flex-shrink: 0;
	transition: all 0.35s;
}

.quick-card:hover .quick-icon {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	transform: rotate(-6deg) scale(1.05);
}

.quick-card h6 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.quick-card small {
	color: var(--gris);
	font-size: 0.78rem;
}

.quick-card>i:last-child {
	color: #cbd5e1;
	transition: all 0.3s;
}

.quick-card:hover>i:last-child {
	color: var(--rojo);
	transform: translate(3px, -3px);
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section-label {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rojo);
	margin-bottom: 12px;
	position: relative;
	padding-left: 32px;
}

.section-label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 2px;
	background: var(--rojo);
	border-radius: 2px;
}

.section-title {
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	font-weight: 800;
	color: var(--azul);
	margin-bottom: 20px;
}

/* ============================================================
   TYPEWRITER — Animación de máquina de escribir
   ============================================================ */
.title-typewriter {
	display: inline-block;
	min-height: 1.3em;
	white-space: normal;
}

.typewriter-text {
	display: inline;
	color: var(--azul);
	font-weight: 800;
}

.typewriter-text.animate {
	animation: typewriter 2.6s steps(38, end) 1 forwards;
}

@keyframes typewriter {
	from {
		max-width: 0;
	}

	to {
		max-width: 100%;
	}
}

.typewriter-cursor {
	display: inline-block;
	color: var(--rojo);
	font-weight: 400;
	margin-left: 2px;
	animation: blink 0.75s step-end infinite;
	vertical-align: bottom;
}

@keyframes blink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}
}

@keyframes hideCursor {
	to {
		opacity: 0;
	}
}

@media (max-width: 576px) {
	.title-typewriter {
		font-size: 1.5rem;
	}
}

/* ============================================================
   IMAGE STACK
   ============================================================ */
.image-stack {
	position: relative;
	padding: 0 0 40px 40px;
}

.img-main {
	width: 100%;
	box-shadow: var(--sombra-lg);
	border-radius: 20px;
}

.img-float {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 55%;
	border: 6px solid #fff;
	box-shadow: var(--sombra-lg);
	border-radius: 20px;
}

.badge-float {
	position: absolute;
	top: 20px;
	right: -10px;
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	padding: 16px 20px;
	border-radius: 16px;
	text-align: center;
	box-shadow: var(--sombra-lg);
}

.badge-year {
	display: block;
	font-size: 1.8rem;
	font-weight: 800;
	font-family: "Plus Jakarta Sans", sans-serif;
	line-height: 1;
}

.badge-float small {
	font-size: 0.7rem;
	opacity: 0.9;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Stats */
.stat-card {
	background: var(--gris-bg);
	border-radius: 14px;
	padding: 16px 8px;
	text-align: center;
	transition: all 0.3s;
}

.stat-card:hover {
	background: #fff;
	box-shadow: var(--sombra);
	transform: translateY(-3px);
}

.stat-number {
	display: block;
	font-size: 1.9rem;
	font-weight: 800;
	font-family: "Plus Jakarta Sans", sans-serif;
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1.1;
}

.stat-label {
	font-size: 0.75rem;
	color: var(--gris);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Párrafo destacado de "Quiénes Somos" */
.sobre-uab-text .text-secondary:first-child {
	font-size: 1.02rem;
	color: #334155;
	line-height: 1.75;
}

.sobre-uab-text .text-secondary:last-child {
	font-size: 0.95rem;
	color: #64748b;
	line-height: 1.7;
}

.sobre-uab-text strong {
	color: var(--azul);
	font-weight: 700;
}

/* Justificado para párrafos institucionales */
.text-justify {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
}

/* ============================================================
   MISIÓN / VISIÓN
   ============================================================ */
.mv-card {
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	padding: 40px 32px;
	height: 100%;
	transition: all 0.4s;
}

.mv-card:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, 0.25);
}

.mv-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, var(--dorado), #f59e0b);
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	color: #fff;
	margin-bottom: 22px;
	box-shadow: 0 10px 30px rgba(240, 180, 41, 0.35);
}

.mv-icon-red {
	background: linear-gradient(135deg, var(--rojo), #8b1226);
	box-shadow: 0 10px 30px rgba(196, 30, 58, 0.35);
}

.mv-card h3 {
	color: #fff;
	font-size: 1.5rem;
	margin-bottom: 14px;
}

.mv-card p {
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	font-size: 0.95rem;
}

.decor-circle {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
}

.decor-circle.c1 {
	width: 400px;
	height: 400px;
	background: var(--rojo);
	top: -150px;
	right: -100px;
}

.decor-circle.c2 {
	width: 350px;
	height: 350px;
	background: var(--dorado);
	bottom: -150px;
	left: -80px;
}

/* ============================================================
   SECCIÓN SEDES ACADÉMICAS / MAPA INTERACTIVO
   ============================================================ */
.sedes-section {
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	position: relative;
}

.mapa-card {
	background: #fff;
	border-radius: 22px;
	box-shadow: var(--sombra);
	border: 1px solid rgba(15, 44, 92, 0.06);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mapa-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	background: linear-gradient(135deg, var(--azul), var(--azul-2) 70%, var(--rojo));
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
}

.mapa-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
	animation: pulseGreen 2s infinite;
	flex-shrink: 0;
}

@keyframes pulseGreen {

	0%,
	100% {
		box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
	}

	50% {
		box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1);
	}
}

.mapa-badge {
	margin-left: auto;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 4px 12px;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
}

.mapa-container {
	position: relative;
	flex: 1;
	padding: 20px;
	background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.05), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.05), transparent 45%), #fbfdff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mapa-svg {
	width: 100%;
	height: auto;
	max-height: 560px;
	filter: drop-shadow(0 8px 25px rgba(6, 170, 11, 0.15));
}

/* Provincias */
.provincia {
	fill: #017a37;
	stroke: #ffffff;
	stroke-width: 1.2;
	cursor: pointer;
	transition:
		fill 0.25s ease,
		filter 0.25s ease;
}

.provincia:hover {
	fill: #81c784 !important;
	filter: drop-shadow(0 0 8px rgba(129, 199, 132, 0.6));
}

.provincia.active {
	fill: #c41e3a !important;
	filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.5));
}

/* Puntos de ciudades */
.point {
	cursor: pointer;
}

.point circle {
	fill: #e74c3c;
	stroke: #fff;
	stroke-width: 2;
	transition: all 0.25s ease;
}

.point text {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 20px;
	font-weight: 600;
	fill: #01241b;
	/* letras */
	text-anchor: middle;
	user-select: none;
	pointer-events: none;
}

.point image {
	transition: transform 0.25s ease;
	transform-origin: center;
}

.point:hover image {
	transform: scale(1.15) translateY(-3px);
}

.point:hover circle {
	fill: #c0392b;
	r: 8;
}

.point:hover text {
	font-weight: 800;
	fill: #c41e3a;
}

.point.active circle {
	fill: #D9010A;
	r: 8;
}

.point.active text {
	fill: #D9010A;
	font-weight: 800;
}

/* Leyenda */
.mapa-leyenda {
	position: absolute;
	bottom: 16px;
	left: 20px;
	display: flex;
	gap: 16px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	padding: 8px 14px;
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--azul);
	box-shadow: 0 6px 20px rgba(15, 44, 92, 0.08);
	border: 1px solid rgba(15, 44, 92, 0.06);
}

.mapa-leyenda span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.leyenda-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #017A37;
	box-shadow: 0 0 0 3px rgba(6, 170, 11, 0.2);
}

/* ============================================================
   PANEL DE INFORMACIÓN DEL MAPA
   ============================================================ */
.info-card {
	background: #fff;
	border-radius: 22px;
	box-shadow: var(--sombra);
	border: 1px solid rgba(15, 44, 92, 0.06);
	padding: 28px 26px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	overflow: hidden;
}

.info-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #017A37, var(--dorado), var(--rojo));
}

.info-header {
	padding-bottom: 16px;
	border-bottom: 1.5px solid rgba(15, 44, 92, 0.08);
}

.info-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rojo);
	display: block;
	margin-bottom: 6px;
}

.info-header h3 {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--azul);
	margin: 0;
	line-height: 1.25;
}

.form-label-info {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--gris);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
	display: block;
}

.select-container {
	position: relative;
}

.custom-select {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: var(--gris-bg);
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	border-radius: 14px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--azul);
	transition: all 0.25s ease;
}

.custom-select:hover {
	border-color: #017A37;
	background: #fff;
	box-shadow: 0 4px 14px rgba(6, 170, 11, 0.1);
}

.custom-select.open {
	border-color: #017A37;
	background: #fff;
	box-shadow: 0 4px 14px rgba(6, 170, 11, 0.15);
}

.custom-select i {
	color: #017A37;
	transition: transform 0.25s;
	font-size: 0.85rem;
}

.select-options {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow:
		0 20px 45px rgba(15, 44, 92, 0.15),
		0 0 0 1px rgba(15, 44, 92, 0.05);
	max-height: 0;
	overflow: hidden;
	padding: 0 8px;
	z-index: 20;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all 0.25s ease;
}

.select-options.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	max-height: 320px;
	overflow-y: auto;
	padding: 8px;
}

.select-options .option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 500;
	color: #334155;
	transition: all 0.2s;
}

.select-options .option i {
	color: #017A37;
	font-size: 0.85rem;
}

.select-options .option:hover {
	background: linear-gradient(135deg, rgba(6, 170, 11, 0.08), rgba(196, 30, 58, 0.04));
	color: var(--azul);
	padding-left: 18px;
}

/* Data info (contenido de la carrera) */
.data-info {
	background: linear-gradient(180deg, #f8fafc, #ffffff);
	border: 1px solid rgba(15, 44, 92, 0.06);
	border-radius: 16px;
	padding: 20px;
	flex: 1;
	overflow-y: auto;
	min-height: 200px;
}

.data-info table {
	width: 100%;
	border-collapse: collapse;
}

.data-info td {
	padding: 0;
}

.data-info .title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--azul);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid rgba(15, 44, 92, 0.08);
}

.data-info .description {
	font-size: 0.85rem;
	color: #475569;
	line-height: 1.75;
	margin: 0 0 18px;
}

.data-info .description strong {
	color: var(--azul);
	font-weight: 700;
}

.data-info .celda-fondo {
	background: linear-gradient(135deg, rgba(6, 170, 11, 0.04), rgba(6, 170, 11, 0.08));
	border-radius: 12px;
	padding: 16px;
	display: block;
	background-image: url("../image/mapa/acreditado2.png");
	background-repeat: no-repeat;
	background-position: calc(100% - 16px) 12px;
	background-size: 80px auto;
}

/* Botón ver plan */
.btn-info {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	background: linear-gradient(135deg, #06aa0b, #048608);
	color: #fff !important;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
	box-shadow: 0 8px 20px rgba(6, 170, 11, 0.25);
	transition: all 0.3s ease;
	margin-top: 10px;
}

.btn-info:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(6, 170, 11, 0.35);
}

.btn-info .svgIcon {
	display: inline-flex;
	align-items: center;
	font-size: 0.9rem;
}

/* ======== ULTIMO MAPA ========== */

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(15, 44, 92, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.news-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--sombra-lg);
	border-color: transparent;
}

.news-img {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.news-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
	transform: scale(1.08);
}

.news-tag {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	backdrop-filter: blur(10px);
}

.tag-red {
	background: rgba(196, 30, 58, 0.95);
}

.tag-blue {
	background: rgba(26, 58, 107, 0.95);
}

.tag-green {
	background: rgba(16, 185, 129, 0.95);
}

.tag-orange {
	background: rgba(255, 165, 0, 1);
}

.news-body {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-date {
	color: var(--gris);
	font-size: 0.78rem;
	font-weight: 500;
}

.news-body h4 {
	font-size: 1.15rem;
	margin: 10px 0 12px;
	color: var(--azul);
	transition: color 0.3s;
}

.news-card:hover .news-body h4 {
	color: var(--rojo);
}

.news-body p {
	color: var(--gris);
	font-size: 0.88rem;
	flex: 1;
}

.news-link {
	color: var(--rojo);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.88rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	transition: gap 0.3s;
}

.news-link:hover {
	gap: 12px;
	color: var(--rojo);
}

.btn-outline-modern {
	border: 1.5px solid rgba(15, 44, 92, 0.15);
	color: var(--azul);
	border-radius: 50px;
	padding: 10px 22px;
	font-weight: 600;
	background: transparent;
	transition: all 0.3s;
}

.btn-outline-modern:hover {
	background: var(--azul);
	color: #fff;
	border-color: var(--azul);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-modern {
	position: relative;
	background: linear-gradient(135deg, var(--azul), var(--azul-dark) 60%, #5a0f20);
	border-radius: 28px;
	padding: 60px;
	color: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	box-shadow: var(--sombra-lg);
}

.cta-content {
	position: relative;
	z-index: 2;
	max-width: 640px;
}

.cta-content h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-bottom: 12px;
}

.cta-content p {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 26px;
}

.cta-decoration {
	font-size: 12rem;
	color: rgba(255, 255, 255, 0.06);
	position: absolute;
	right: 40px;
	bottom: -30px;
	line-height: 1;
	z-index: 1;
}

/* ============================================================
   FOOTER MODERNO
   ============================================================ */
.footer-modern {
	background: linear-gradient(180deg, #0a1d3d 0%, #061229 100%);
	color: #fff;
	padding: 70px 0 24px;
	margin-top: 0;
	position: relative;
}

/* Detalle superior */
.footer-modern::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo), var(--dorado));
}

.footer-top-row {
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Logo del footer — igual al del navbar */
.footer-brand {
	margin-bottom: 20px;
}

.footer-logo {
	height: 60px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.footer-desc {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.88rem;
	line-height: 1.7;
	margin-bottom: 22px;
	max-width: 400px;
}

/* Redes sociales — solo iconos */
.footer-social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.footer-social-icon {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	font-size: 1.1rem;
	transition: all 0.3s ease;
}

.footer-social-icon:hover {
	transform: translateY(-4px);
	color: #fff;
	border-color: transparent;
}

.footer-social-icon:nth-child(1):hover {
	background: #1877f2;
}

/* Facebook */
.footer-social-icon:nth-child(2):hover {
	background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

/* Instagram */
.footer-social-icon:nth-child(3):hover {
	background: #ff0000;
}

/* YouTube */
.footer-social-icon:nth-child(4):hover {
	background: #1c1c1c;
}

/* Twitter/X */
.footer-social-icon:nth-child(5):hover {
	background: #0a66c2;
}

/* LinkedIn */

/* Títulos de columna */
.footer-title {
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 20px;
	letter-spacing: 0.02em;
	position: relative;
	padding-bottom: 10px;
}

.footer-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 2px;
	background: var(--dorado);
	border-radius: 2px;
}

/* Lista de enlaces */
.footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-list li {
	margin-bottom: 12px;
}

.footer-list a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	font-size: 0.87rem;
	transition: all 0.3s ease;
	display: inline-block;
	position: relative;
}

.footer-list a::before {
	content: "→";
	position: absolute;
	left: -18px;
	opacity: 0;
	transition: all 0.3s ease;
	color: var(--dorado);
}

.footer-list a:hover {
	color: var(--dorado);
	padding-left: 16px;
}

.footer-list a:hover::before {
	opacity: 1;
	left: 0;
}

/* Lista de contacto DTIC */
.footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	line-height: 1.5;
}

.footer-contact-list li i {
	color: var(--dorado);
	font-size: 1rem;
	flex-shrink: 0;
	margin-top: 3px;
	width: 16px;
	text-align: center;
}

.footer-contact-list li>div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.footer-contact-list li strong {
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 2px;
}

.footer-contact-list li span {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
	line-height: 1.5;
}

/* Nota aclaratoria DTIC */
.footer-note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px 24px;
	margin: 30px 0;
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid var(--dorado);
	border-radius: 12px;
}

.footer-note i {
	color: var(--dorado);
	font-size: 1.2rem;
	flex-shrink: 0;
	margin-top: 2px;
}

.footer-note p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.85rem;
	line-height: 1.65;
	margin: 0;
}

.footer-note strong {
	color: #fff;
	font-weight: 700;
}

/* Footer bottom */
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 24px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.82rem;
}

.footer-bottom a {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-bottom a:hover {
	color: var(--dorado);
}

.footer-bottom .separator {
	margin: 0 8px;
	color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */
@media (max-width: 991px) {
	.footer-modern {
		padding: 55px 0 20px;
	}

	.footer-logo {
		height: 52px;
	}

	.footer-desc {
		font-size: 0.85rem;
		max-width: 100%;
	}

	.footer-title {
		font-size: 0.9rem;
		margin-bottom: 16px;
	}

	.footer-social-icon {
		width: 38px;
		height: 38px;
		font-size: 1rem;
	}

	.footer-note {
		padding: 18px 20px;
		margin: 25px 0;
	}

	.footer-note p {
		font-size: 0.8rem;
	}
}

@media (max-width: 576px) {
	.footer-modern {
		padding: 45px 0 16px;
	}

	.footer-logo {
		height: 44px;
	}

	.footer-brand {
		text-align: left;
	}

	.footer-social {
		justify-content: flex-start;
	}

	.footer-contact-list li {
		font-size: 0.8rem;
		gap: 10px;
	}

	.footer-contact-list li strong {
		font-size: 0.78rem;
	}

	.footer-contact-list li span {
		font-size: 0.78rem;
	}

	.footer-note {
		flex-direction: column;
		gap: 10px;
		padding: 16px 18px;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.footer-bottom .separator {
		margin: 0 6px;
	}
}

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	font-size: 1.2rem;
	box-shadow: var(--sombra-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: all 0.35s;
	z-index: 999;
	cursor: pointer;
}

.scroll-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-top:hover {
	transform: translateY(-4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
	.hero-slider {
		height: 90vh;
		min-height: 560px;
	}

	.hero-arrow {
		display: none;
	}

	.quick-access-section {
		margin-top: -40px;
	}

	.cta-modern {
		padding: 40px 28px;
		flex-direction: column;
		text-align: center;
	}

	.cta-decoration {
		font-size: 8rem;
		right: -10px;
	}

	.image-stack {
		padding: 0 0 20px 20px;
	}

	.badge-float {
		padding: 12px 14px;
		right: 0;
	}

	.badge-year {
		font-size: 1.4rem;
	}

	.mapa-svg {
		max-height: 420px;
	}

	.info-card {
		padding: 22px 20px;
	}

	.data-info .title {
		font-size: 1rem;
	}
}

@media (max-width: 576px) {
	.slide-content {
		padding-top: 90px;
	}

	.slide-title {
		font-size: 1.8rem;
	}

	.hero-indicators {
		bottom: 70px;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* ============================================================
   SECCIÓN CARRERAS ACREDITADAS / CEUB
   ============================================================ */
.acreditadas-section {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	position: relative;
	overflow: hidden;
}

/* Logo CEUB */
.ceub-logo-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ceub-logo-box img {
	max-width: 160px;
	height: auto;
	filter: drop-shadow(0 6px 18px rgba(15, 44, 92, 0.15));
	transition: transform 0.4s ease;
}

.ceub-logo-box img:hover {
	transform: scale(1.05);
}

/* Tarjetas de porcentaje */
.acreditada-stat {
	border-radius: 18px;
	padding: 22px 18px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

.acreditada-stat:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 40px rgba(15, 44, 92, 0.2);
}

.acreditada-stat::before {
	content: "";
	position: absolute;
	top: -30px;
	right: -30px;
	width: 100px;
	height: 100px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
}

.stat-blue {
	background: linear-gradient(135deg, var(--azul) 0%, var(--azul-2) 100%);
	box-shadow: 0 10px 30px rgba(15, 44, 92, 0.25);
}

.stat-red {
	background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-dark) 100%);
	box-shadow: 0 10px 30px rgba(196, 30, 58, 0.25);
}

.acreditada-percent {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 8px;
	letter-spacing: -0.03em;
}

.acreditada-percent span {
	font-size: 1.4rem;
	margin-left: 2px;
	opacity: 0.9;
}

.acreditada-label {
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.3;
	opacity: 0.95;
}

/* ============================================================
   CARRUSEL MODERNO DE LOGOS ACREDITADOS
   ============================================================ */
.logos-modern-wrap {
	position: relative;
	overflow: hidden;
	padding: 30px 0 40px;
	mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.logos-modern-track {
	display: flex;
	gap: 22px;
	animation: scrollModern 55s linear infinite;
	will-change: transform;
	padding: 8px 0;
}

.logos-modern-wrap:hover .logos-modern-track {
	animation-play-state: paused;
}

@keyframes scrollModern {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

/* Tarjeta del logo */
.logo-card-modern {
	flex-shrink: 0;
	width: 200px;
	background: #fff;
	border-radius: 20px;
	padding: 24px 16px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	position: relative;
	border: 1.5px solid rgba(15, 44, 92, 0.06);
	box-shadow:
		0 4px 15px rgba(15, 44, 92, 0.06),
		0 1px 3px rgba(15, 44, 92, 0.04);
	transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	cursor: pointer;
}

/* Línea superior de color al hover */
.logo-card-modern::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.logo-card-modern:hover {
	transform: translateY(-8px);
	box-shadow:
		0 20px 40px rgba(15, 44, 92, 0.15),
		0 8px 15px rgba(15, 44, 92, 0.08);
	border-color: transparent;
}

.logo-card-modern:hover::before {
	transform: scaleX(1);
}

/* Badge "Acreditada" en esquina */
.logo-card-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 9px;
	background: linear-gradient(135deg, var(--rojo), var(--rojo-dark));
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 50px;
	box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
	z-index: 2;
}

/* Imagen circular del logo */
.logo-card-img {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f8fafc, #eef2f7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	border: 2px solid rgba(15, 44, 92, 0.06);
	transition: all 0.4s ease;
	position: relative;
}

.logo-card-img::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px dashed rgba(196, 30, 58, 0.15);
	opacity: 0;
	transform: rotate(0);
	transition:
		opacity 0.4s ease,
		transform 1s ease;
}

.logo-card-modern:hover .logo-card-img {
	border-color: var(--rojo);
	box-shadow: 0 10px 25px rgba(196, 30, 58, 0.2);
}

.logo-card-modern:hover .logo-card-img::after {
	opacity: 1;
	transform: rotate(180deg);
}

.logo-card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.4s ease;
}

.logo-card-modern:hover .logo-card-img img {
	transform: scale(1.08);
}

/* Nombre de la carrera */
.logo-card-name {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--azul);
	line-height: 1.3;
	margin: 0;
	letter-spacing: -0.01em;
	transition: color 0.3s ease;
}

.logo-card-modern:hover .logo-card-name {
	color: var(--rojo);
}

/* Responsive */
@media (max-width: 991px) {
	.logo-card-modern {
		width: 170px;
		padding: 20px 12px 16px;
	}

	.logo-card-img {
		width: 90px;
		height: 90px;
		padding: 12px;
	}

	.logo-card-name {
		font-size: 0.78rem;
	}

	.logo-card-badge {
		font-size: 0.58rem;
		padding: 2px 7px;
	}
}

@media (max-width: 576px) {
	.logos-modern-track {
		gap: 14px;
		animation-duration: 40s;
	}

	.logo-card-modern {
		width: 140px;
		padding: 16px 10px 14px;
		gap: 10px;
	}

	.logo-card-img {
		width: 75px;
		height: 75px;
		padding: 10px;
	}

	.logo-card-name {
		font-size: 0.7rem;
	}
}

/* ============================================================
   SECCIÓN TEST VOCACIONAL — VERSIÓN MODERNA CON CURVAS
   ============================================================ */
.test-vocacional-section {
	position: relative;
	background: linear-gradient(135deg, #8b1226 0%, #c41e3a 50%, #8b1226 100%);
	overflow: hidden;
	padding: 0;
	margin: 4rem 2rem;
	/* márgenes laterales */
	border-radius: 40px;
	/* esquinas muy redondeadas */
	box-shadow: 0 30px 60px rgba(196, 30, 58, 0.25);
	isolation: isolate;
}

/* Patrón de puntos de fondo */
.test-pattern {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
	background-size: 32px 32px;
	z-index: 1;
	opacity: 0.6;
	pointer-events: none;
}

/* Iconos decorativos gigantes */
.test-deco-icon {
	position: absolute;
	color: rgba(255, 255, 255, 0.06);
	line-height: 1;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

.test-deco-icon-1 {
	top: 60px;
	right: 5%;
	font-size: 14rem;
	transform: rotate(-15deg);
}

.test-deco-icon-2 {
	bottom: 60px;
	left: -30px;
	font-size: 12rem;
	transform: rotate(20deg);
}

/* Círculos de luz */
.test-vocacional-section::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -100px;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
	border-radius: 50%;
	z-index: 1;
}

.test-vocacional-section::after {
	content: "";
	position: absolute;
	bottom: -150px;
	left: -80px;
	width: 350px;
	height: 350px;
	background: radial-gradient(circle, rgba(240, 180, 41, 0.18), transparent 70%);
	border-radius: 50%;
	z-index: 1;
}

.test-container {
	position: relative;
	z-index: 4;
	padding: 80px 15px;
}

/* Chip superior */
.test-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50px;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 22px;
	backdrop-filter: blur(10px);
}

.test-chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: pulseChip 2s infinite;
}

@keyframes pulseChip {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}

	70% {
		box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

/* Título */
.test-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.test-title-accent {
	color: var(--dorado);
	position: relative;
	display: inline-block;
}

.test-title-accent::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 3px;
	background: var(--dorado);
	border-radius: 3px;
}

/* Descripción */
.test-desc {
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	color: rgba(255, 255, 255, 0.92);
	max-width: 560px;
	margin: 0 0 26px;
	line-height: 1.7;
	padding-left: 20px;
	border-left: 3px solid var(--dorado);
}

/* Features (mini-badges) */
.test-features {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 8px;
}

.test-feature {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.88rem;
	font-weight: 500;
}

.test-feature i {
	font-size: 1rem;
	color: var(--dorado);
}

/* ============================================================
   BOTÓN DEL TEST — con brillo animado
   ============================================================ */
.btn-test-modern {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 18px 36px;
	background: #0a1d3d;
	color: #fff;
	border-radius: 50px;
	text-decoration: none;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	position: relative;
	overflow: hidden;
	box-shadow:
		0 15px 35px rgba(10, 20, 45, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-test-modern>* {
	position: relative;
	z-index: 2;
}

/* Brillo animado (shimmer) */
.btn-test-glow {
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.25) 50%, transparent 80%);
	transform: skewX(-20deg);
	z-index: 1;
	animation: shimmer 3.5s infinite;
	pointer-events: none;
}

@keyframes shimmer {
	0% {
		left: -100%;
	}

	60% {
		left: 200%;
	}

	100% {
		left: 200%;
	}
}

.btn-test-arrow {
	transition: transform 0.3s ease;
	font-size: 0.9rem;
}

.btn-test-modern:hover {
	color: #fff;
	transform: translateY(-4px);
	background: var(--azul-2);
	box-shadow:
		0 22px 45px rgba(10, 20, 45, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-test-modern:hover .btn-test-arrow {
	transform: translateX(5px);
}

.btn-test-modern:hover .bi-pencil-fill {
	transform: rotate(-10deg) scale(1.1);
}

.btn-test-modern .bi-pencil-fill {
	transition: transform 0.3s ease;
	font-size: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
	.test-vocacional-section {
		margin: 2rem 0;
	}

	.test-container {
		padding: 100px 15px;
	}

	.test-wave {
		height: 60px;
	}

	.test-deco-icon-1 {
		font-size: 9rem;
		top: 40px;
	}

	.test-deco-icon-2 {
		font-size: 8rem;
		bottom: 40px;
	}

	.test-title {
		font-size: 1.7rem;
	}

	.test-desc {
		font-size: 0.95rem;
		padding-left: 14px;
	}

	.test-features {
		gap: 14px;
		margin-top: 16px;
	}

	.test-feature {
		font-size: 0.82rem;
	}

	.btn-test-modern {
		padding: 15px 28px;
		font-size: 0.95rem;
		margin-top: 24px;
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.test-container {
		padding: 80px 12px;
	}

	.test-wave {
		height: 45px;
	}

	.test-chip {
		font-size: 0.7rem;
		padding: 6px 14px;
	}

	.test-title {
		font-size: 1.5rem;
	}

	.test-features {
		flex-direction: column;
		gap: 8px;
	}

	.test-deco-icon-1 {
		font-size: 6rem;
	}

	.test-deco-icon-2 {
		font-size: 5rem;
	}
}

/* ============================================================
   SECCIÓN DATOS DE LA UNIVERSIDAD
   ============================================================ */
.datos-universidad-section {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	padding: 100px 0;
	overflow: hidden;
}

/* Imagen de fondo */
.datos-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
	background-repeat: no-repeat;
	z-index: 1;
}

/* Overlay oscuro para contraste */
.datos-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg,
			rgba(10, 20, 40, 0.85) 0%,
			rgba(15, 44, 92, 0.75) 50%,
			rgba(10, 20, 40, 0.85) 100%);
	z-index: 2;
}

.datos-content {
	position: relative;
	z-index: 3;
}

/* Título principal */
.datos-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	letter-spacing: -0.02em;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Línea dorada decorativa debajo del título */
.datos-title-line {
	width: 220px;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--dorado) 50%, transparent);
	margin: 0 auto;
	border-radius: 3px;
}

/* Item de dato */
.dato-item {
	text-align: center;
	padding: 20px 10px;
	transition: transform 0.4s ease;
}

.dato-item:hover {
	transform: translateY(-6px);
}

/* Icono amarillo (Bootstrap Icons) */
.dato-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	color: var(--dorado);
	margin-bottom: 22px;
	line-height: 1;
	filter: drop-shadow(0 8px 20px rgba(240, 180, 41, 0.4));
	transition: transform 0.4s ease;
}

.dato-item:hover .dato-icon {
	transform: scale(1.1) rotate(-5deg);
}

/* Número gigante */
.dato-number {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(2.8rem, 5vw, 4rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1;
	margin-bottom: 12px;
	letter-spacing: -0.03em;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dato-number span {
	color: var(--dorado);
	font-size: 0.85em;
	margin-left: 2px;
}

/* Etiqueta descriptiva */
.dato-label {
	font-family: "Inter", sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.45;
	letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 991px) {
	.datos-universidad-section {
		padding: 70px 0;
		min-height: 420px;
	}

	.dato-icon {
		font-size: 3rem;
		margin-bottom: 16px;
	}

	.dato-label {
		font-size: 0.85rem;
	}
}

@media (max-width: 576px) {
	.datos-universidad-section {
		padding: 60px 0;
	}

	.dato-icon {
		font-size: 2.4rem;
		margin-bottom: 12px;
	}

	.dato-number {
		font-size: 2.2rem;
		margin-bottom: 8px;
	}

	.dato-label {
		font-size: 0.78rem;
	}

	.dato-item {
		padding: 15px 5px;
	}
}

/* ============================================================
   SECCIÓN SERVICIOS UNIVERSITARIOS
   ============================================================ */
.servicios-section {
	padding: 5rem 0 6rem;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	position: relative;
}

/* Tarjeta de servicio */
.servicio-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 18px;
	padding: 40px 20px;
	background: #ffffff;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	height: 100%;
	min-height: 220px;
	position: relative;
	overflow: hidden;
	box-shadow:
		0 4px 15px rgba(15, 44, 92, 0.06),
		0 1px 3px rgba(15, 44, 92, 0.04);
	border: 1px solid rgba(15, 44, 92, 0.05);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Borde superior con degradado (aparece al hover) */
.servicio-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
	border-radius: 16px 16px 0 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

/* Efecto hover */
.servicio-card:hover {
	transform: translateY(-6px);
	box-shadow:
		0 20px 45px rgba(15, 44, 92, 0.15),
		0 4px 10px rgba(15, 44, 92, 0.08);
}

.servicio-card:hover::before {
	transform: scaleX(1);
}

/* Icono */
.servicio-icon {
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(15, 44, 92, 0.06), rgba(196, 30, 58, 0.06));
	border-radius: 20px;
	color: var(--azul);
	font-size: 2.2rem;
	transition: all 0.4s ease;
}

.servicio-card:hover .servicio-icon {
	background: linear-gradient(135deg, var(--azul), var(--rojo));
	color: #fff;
	transform: rotate(-5deg) scale(1.05);
}

/* Título del servicio */
.servicio-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--azul);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.4;
	margin: 0;
	transition: color 0.3s ease;
}

.servicio-card:hover .servicio-title {
	color: var(--rojo);
}

.servicio-arrow {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 44, 92, 0.06);
	border-radius: 50%;
	color: var(--azul);
	font-size: 0.75rem;
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: all 0.3s ease;
}

.servicio-card:hover .servicio-arrow {
	opacity: 1;
	transform: translate(0, 0);
	background: var(--rojo);
	color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
	.servicios-section {
		padding: 4rem 0 5rem;
	}

	.servicio-card {
		min-height: 190px;
		padding: 30px 16px;
		gap: 14px;
	}

	.servicio-icon {
		width: 60px;
		height: 60px;
		font-size: 2.2rem;
	}

	.servicio-title {
		font-size: 0.78rem;
	}
}

@media (max-width: 576px) {
	.servicio-card {
		min-height: 160px;
		padding: 24px 12px;
		gap: 10px;
		border-radius: 14px;
	}

	.servicio-icon {
		width: 48px;
		height: 48px;
		font-size: 1.8rem;
	}

	.servicio-title {
		font-size: 0.7rem;
		letter-spacing: 0.02em;
	}
}

/* ============================================================
   SECCIÓN VENTAJAS DE PERTENECER A LA UAB
   ============================================================ */
.ventajas-section {
	position: relative;
	padding: 100px 0;
	overflow: hidden;
	isolation: isolate;
}

/* Fondo parallax */
.ventajas-parallax {
	position: absolute;
	top: -10%;
	left: 0;
	width: 100%;
	height: 130%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	z-index: 1;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

/* Overlay azul con degradado */
.ventajas-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg,
			rgba(10, 20, 40, 0.88) 0%,
			rgba(15, 44, 92, 0.82) 50%,
			rgba(10, 20, 40, 0.88) 100%);
	z-index: 2;
}

.ventajas-content {
	position: relative;
	z-index: 3;
}

/* Título principal */
.ventajas-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 18px;
	letter-spacing: -0.02em;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Línea dorada decorativa */
.ventajas-title-line {
	width: 200px;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--dorado) 50%, transparent);
	margin: 0 auto;
	border-radius: 3px;
}

/* Tarjeta de ventaja */
.ventaja-card {
	background: linear-gradient(160deg, var(--azul) 0%, var(--azul-dark) 100%);
	border-radius: 20px;
	padding: 40px 28px 32px;
	color: #fff;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Detalle decorativo superior */
.ventaja-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--dorado), var(--rojo));
	opacity: 0;
	transition: opacity 0.4s ease;
}

/* Círculo decorativo de fondo */
.ventaja-card::after {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(240, 180, 41, 0.08), transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.ventaja-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
	border-color: rgba(240, 180, 41, 0.2);
}

.ventaja-card:hover::before {
	opacity: 1;
}

/* Contenedor del icono/logo */
.ventaja-icon-wrap {
	width: 140px;
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Medalla con estrella (ventaja 1) */
.ventaja-medalla {
	width: 120px;
	height: 120px;
	background: linear-gradient(135deg, #ffd54f 0%, #f0b429 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: var(--azul);
	box-shadow:
		0 15px 40px rgba(240, 180, 41, 0.45),
		inset 0 -6px 0 rgba(0, 0, 0, 0.15);
	position: relative;
	transition: transform 0.4s ease;
}

.ventaja-medalla::before,
.ventaja-medalla::after {
	content: "";
	position: absolute;
	top: -30px;
	width: 30px;
	height: 60px;
	background: linear-gradient(180deg, #ffd54f 0%, #f0b429 100%);
	z-index: -1;
}

.ventaja-medalla::before {
	left: 20px;
	transform: rotate(-15deg);
}

.ventaja-medalla::after {
	right: 20px;
	transform: rotate(15deg);
}

.ventaja-card:hover .ventaja-medalla {
	transform: scale(1.08) rotate(-5deg);
}

/* Logos (CEUB y FIUC) */
.ventaja-logo {
	max-width: 100%;
	max-height: 130px;
	object-fit: contain;
	filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
	transition: transform 0.4s ease;
}

.ventaja-card:hover .ventaja-logo {
	transform: scale(1.06);
}

/* Texto */
.ventaja-text {
	font-family: "Inter", sans-serif;
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	flex: 1;
	text-align: center;
	width: 100%;
}

.ventaja-text strong {
	color: #fff;
	font-weight: 700;
	display: inline;
}

/* Responsive */
@media (max-width: 991px) {
	.ventajas-section {
		padding: 70px 0;
	}

	.ventajas-parallax {
		background-attachment: scroll;
		/* Fix iOS */
	}

	.ventaja-card {
		padding: 32px 22px 26px;
		gap: 18px;
	}

	.ventaja-icon-wrap {
		width: 120px;
		height: 120px;
	}

	.ventaja-medalla {
		width: 100px;
		height: 100px;
		font-size: 2.4rem;
	}

	.ventaja-medalla::before,
	.ventaja-medalla::after {
		top: -25px;
		width: 24px;
		height: 50px;
	}

	.ventaja-medalla::before {
		left: 16px;
	}

	.ventaja-medalla::after {
		right: 16px;
	}

	.ventaja-logo {
		max-height: 110px;
	}

	.ventaja-text {
		font-size: 0.9rem;
	}
}

@media (max-width: 576px) {
	.ventajas-section {
		padding: 60px 0;
	}

	.ventaja-card {
		padding: 28px 20px 24px;
	}

	.ventaja-text {
		font-size: 0.85rem;
		line-height: 1.55;
	}
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo), var(--dorado));
	z-index: 10000;
	transition: width 0.1s ease;
	box-shadow: 0 0 10px rgba(196, 30, 58, 0.4);
}

/* ============================================================
   CURSOR PERSONALIZADO (solo desktop)
   ============================================================ */
.cursor-dot,
.cursor-ring {
	position: fixed;
	pointer-events: none;
	z-index: 9999;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cursor-dot {
	width: 6px;
	height: 6px;
	background: var(--rojo);
	transform: translate(-50%, -50%);
}

.cursor-ring {
	width: 32px;
	height: 32px;
	border: 1.5px solid rgba(196, 30, 58, 0.5);
	transform: translate(-50%, -50%);
	transition:
		transform 0.15s ease,
		border-color 0.3s ease,
		width 0.3s ease,
		height 0.3s ease;
}

body.custom-cursor-active .cursor-dot,
body.custom-cursor-active .cursor-ring {
	opacity: 1;
}

/* Cursor más grande cuando pasa por elementos clickeables */
body.custom-cursor-active .cursor-ring.hover {
	width: 50px;
	height: 50px;
	border-color: var(--rojo);
	background: rgba(196, 30, 58, 0.08);
}

@media (max-width: 991px) {

	.cursor-dot,
	.cursor-ring {
		display: none !important;
	}
}

/* ============================================================
   CINTA "DESLIZA PARA EXPLORAR"
   ============================================================ */
.scroll-hint {
	position: absolute;
	bottom: 150px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.85;
	z-index: 5;
	text-align: center;
	animation: floatHint 2.5s ease-in-out infinite;
	pointer-events: none;
}

.scroll-hint i {
	display: block;
	font-size: 1.4rem;
	margin-top: 8px;
	color: var(--dorado);
}

@keyframes floatHint {

	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}

	50% {
		transform: translateX(-50%) translateY(8px);
	}
}

@media (max-width: 991px) {
	.scroll-hint {
		bottom: 180px;
		font-size: 0.7rem;
	}

	.scroll-hint i {
		font-size: 1.2rem;
		margin-top: 6px;
	}
}

@media (max-width: 576px) {
	.scroll-hint {
		bottom: 190px;
		font-size: 0.65rem;
	}

	.scroll-hint i {
		font-size: 1rem;
	}
}

/* ============================================================
   SECCIÓN FACULTADES
   ============================================================ */
.facultades-section {
	padding: 5rem 0;
	background: #ffffff;
	position: relative;
}

.facultad-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 34px 20px 26px;
	background: #fff;
	border-radius: 18px;
	text-decoration: none;
	color: inherit;
	height: 100%;
	min-height: 210px;
	position: relative;
	overflow: hidden;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	justify-content: flex-start;
}

.facultad-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.facultad-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px rgba(15, 44, 92, 0.15);
	border-color: transparent;
}

.facultad-card:hover::before {
	transform: scaleX(1);
}

.facultad-icon {
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(26, 58, 107, 0.08), rgba(196, 30, 58, 0.06));
	border-radius: 20px;
	color: var(--azul-2);
	font-size: 2rem;
	transition: all 0.4s ease;
	flex-shrink: 0;
}

.facultad-card:hover .facultad-icon {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	transform: rotate(-6deg) scale(1.08);
	box-shadow: 0 12px 30px rgba(196, 30, 58, 0.3);
}

.facultad-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--azul);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.35;
	margin: 0;
	transition: color 0.3s ease;
}

.facultad-card:hover .facultad-title {
	color: var(--rojo);
}

.facultad-count {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gris);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 12px;
	background: rgba(15, 44, 92, 0.05);
	border-radius: 50px;
	margin-top: auto;
	transition: all 0.3s ease;
}

.facultad-card:hover .facultad-count {
	background: var(--rojo);
	color: #fff;
}

@media (max-width: 991px) {
	.facultades-section {
		padding: 4rem 0;
	}

	.facultad-card {
		padding: 26px 14px 20px;
		min-height: 180px;
		gap: 12px;
	}

	.facultad-icon {
		width: 58px;
		height: 58px;
		font-size: 1.6rem;
	}

	.facultad-title {
		font-size: 0.78rem;
	}

	.facultad-count {
		font-size: 0.68rem;
		padding: 3px 10px;
	}
}

@media (max-width: 576px) {
	.facultad-card {
		padding: 22px 10px 18px;
		min-height: 160px;
	}

	.facultad-icon {
		width: 50px;
		height: 50px;
		font-size: 1.4rem;
		border-radius: 14px;
	}

	.facultad-title {
		font-size: 0.72rem;
	}
}

/* ============================================================
   VIDA UNIVERSITARIA
   ============================================================ */
.vida-section {
	padding: 6rem 0;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.vida-galeria {
	position: relative;
}

.vida-item {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	height: 100%;
	min-height: 220px;
	box-shadow: 0 10px 30px rgba(15, 44, 92, 0.1);
	cursor: pointer;
}

.vida-item-grande {
	min-height: 100%;
	height: 100%;
}

.vida-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.vida-item:hover img {
	transform: scale(1.08);
}

.vida-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 44, 92, 0.7), rgba(196, 30, 58, 0.6));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	opacity: 0;
	transition: opacity 0.35s ease;
	text-align: center;
	padding: 16px;
}

.vida-item:hover .vida-overlay {
	opacity: 1;
}

.vida-overlay i {
	font-size: 2rem;
	transition: transform 0.4s ease;
}

.vida-item:hover .vida-overlay i {
	transform: scale(1.15) rotate(-5deg);
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios-section {
	padding: 6rem 0;
	background: #ffffff;
	position: relative;
}

.testimonio-card {
	background: #fff;
	border-radius: 22px;
	padding: 40px 32px 32px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	box-shadow: 0 10px 30px rgba(15, 44, 92, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.testimonio-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
	opacity: 0;
	transition: opacity 0.4s ease;
}

.testimonio-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 55px rgba(15, 44, 92, 0.15);
	border-color: transparent;
}

.testimonio-card:hover::before {
	opacity: 1;
}

.testimonio-quote {
	color: var(--rojo);
	font-size: 2.5rem;
	line-height: 1;
	opacity: 0.25;
	margin-bottom: -10px;
}

.testimonio-text {
	font-size: 0.95rem;
	color: #334155;
	line-height: 1.75;
	font-style: italic;
	margin: 0;
	flex: 1;
	position: relative;
}

.testimonio-author {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 20px;
	border-top: 1.5px solid rgba(15, 44, 92, 0.06);
}

.testimonio-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba(15, 44, 92, 0.15);
	flex-shrink: 0;
}

.testimonio-name {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	color: var(--azul);
	font-size: 0.95rem;
	line-height: 1.2;
}

.testimonio-role {
	font-size: 0.8rem;
	color: var(--gris);
	margin-top: 2px;
}

/* ============================================================
   FILTROS DE NOTICIAS
   ============================================================ */
.noticias-filtros {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.filtro-btn {
	padding: 10px 22px;
	background: #fff;
	border: 1.5px solid rgba(15, 44, 92, 0.1);
	border-radius: 50px;
	color: var(--azul);
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
}

.filtro-btn:hover {
	border-color: var(--rojo);
	color: var(--rojo);
	transform: translateY(-2px);
}

.filtro-btn.active {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	border-color: transparent;
	box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

/* Noticias ocultas por filtro */
.news-col.hidden {
	display: none;
}

/* ============================================================
   FOOTER SOCIAL CON CONTADORES
   ============================================================ */

@media (max-width: 768px) {
	.footer-social-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.social-counter {
		padding: 14px;
		gap: 10px;
	}

	.social-counter-icon {
		width: 40px;
		height: 40px;
		font-size: 1.1rem;
	}

	.social-counter-number {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.footer-social-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   GRADIENTES ANIMADOS EN SECCIONES CLAVE
   ============================================================ */
@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.datos-universidad-section .datos-overlay,
.ventajas-overlay {
	background-size: 200% 200%;
	animation: gradientShift 12s ease infinite;
}

.test-vocacional-section {
	background-size: 200% 200%;
	animation: gradientShift 15s ease infinite;
}

/* Hover más ricos en botones */
.btn-primary-modern,
.btn-outline-modern,
.btn-test-modern {
	position: relative;
	overflow: hidden;
}

.btn-primary-modern::after,
.btn-outline-modern::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition:
		width 0.5s ease,
		height 0.5s ease;
}

.btn-primary-modern:hover::after,
.btn-outline-modern:hover::after {
	width: 400px;
	height: 400px;
}

/* Animación para noticias filtradas */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================================
   PÁGINA DE FACULTAD (DETALLE)
   ============================================================ */
.facultad-hero {
	position: relative;
	padding: 160px 0 100px;
	overflow: hidden;
	min-height: 500px;
	display: flex;
	align-items: center;
}

.facultad-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%);
	z-index: 1;
}

.facultad-hero-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(240, 180, 41, 0.15), transparent 50%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
	z-index: 2;
}

.facultad-hero-content {
	position: relative;
	z-index: 3;
	color: #fff;
}

.facultad-breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 0.85rem;
}

.facultad-breadcrumb .breadcrumb-item a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.3s;
}

.facultad-breadcrumb .breadcrumb-item a:hover {
	color: #fff;
}

.facultad-breadcrumb .breadcrumb-item.active {
	color: var(--dorado);
	font-weight: 600;
}

.facultad-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
	color: rgba(255, 255, 255, 0.4);
}

.facultad-hero-icon {
	width: 100px;
	height: 100px;
	border-radius: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: #fff;
	margin-bottom: 24px;
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	transition: transform 0.4s ease;
}

.facultad-hero-icon:hover {
	transform: rotate(-6deg) scale(1.05);
}

.facultad-hero-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.facultad-hero-desc {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: rgba(255, 255, 255, 0.9);
	max-width: 780px;
	line-height: 1.75;
	margin: 0;
}

/* Contenido principal */
.facultad-contenido {
	background: #f8fafc;
}

.facultad-bloque {
	margin-bottom: 40px;
}

.facultad-bloque-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid rgba(15, 44, 92, 0.08);
}

.facultad-bloque-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
	box-shadow: 0 8px 20px rgba(15, 44, 92, 0.2);
}

.facultad-bloque-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--azul);
	margin: 0;
}

/* Tarjeta de carrera */
.carrera-card {
	background: #fff;
	border-radius: 18px;
	padding: 24px 22px;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrera-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}

.carrera-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 45px rgba(15, 44, 92, 0.12);
	border-color: transparent;
}

.carrera-card:hover::before {
	transform: scaleX(1);
}

.carrera-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.carrera-card-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 50px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.badge-licenciatura {
	background: linear-gradient(135deg, var(--azul-2), var(--azul));
	color: #fff;
}

.badge-tecnico {
	background: linear-gradient(135deg, var(--dorado), #d99812);
	color: #fff;
}

.carrera-card-acreditada {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--rojo);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.carrera-card-acreditada i {
	font-size: 0.85rem;
}

.carrera-card-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--azul);
	margin-bottom: 14px;
	line-height: 1.3;
}

.carrera-card-info {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	flex: 1;
}

.carrera-card-info li {
	font-size: 0.83rem;
	color: #475569;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.5;
}

.carrera-card-info li i {
	color: var(--rojo);
	font-size: 0.85rem;
	width: 16px;
	flex-shrink: 0;
}

.carrera-card-info strong {
	color: var(--azul);
	font-weight: 700;
}

.carrera-card-link {
	color: var(--rojo);
	font-weight: 700;
	font-size: 0.82rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	transition: gap 0.3s;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.carrera-card-link:hover {
	gap: 12px;
	color: var(--rojo);
}

/* Misión y visión compactas */
.facultad-mini-card {
	background: #fff;
	border-radius: 18px;
	padding: 30px 26px;
	height: 100%;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	transition: all 0.3s ease;
}

.facultad-mini-card:hover {
	box-shadow: 0 15px 35px rgba(15, 44, 92, 0.1);
	transform: translateY(-3px);
}

.facultad-mini-icon {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.4rem;
	margin-bottom: 18px;
}

.facultad-mini-icon-dorado {
	background: linear-gradient(135deg, var(--dorado), #f59e0b);
	box-shadow: 0 10px 25px rgba(240, 180, 41, 0.35);
}

.facultad-mini-icon-rojo {
	background: linear-gradient(135deg, var(--rojo), var(--rojo-dark));
	box-shadow: 0 10px 25px rgba(196, 30, 58, 0.35);
}

.facultad-mini-card h4 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--azul);
	margin-bottom: 12px;
}

.facultad-mini-card p {
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.7;
	margin: 0;
}

/* Sidebar */
.facultad-sidebar {
	position: sticky;
	top: 100px;
}

.facultad-sidebar-card {
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	box-shadow: 0 10px 30px rgba(15, 44, 92, 0.06);
	position: relative;
	overflow: hidden;
}

.facultad-sidebar-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
}

.facultad-sidebar-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--azul);
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1.5px solid rgba(15, 44, 92, 0.08);
	display: flex;
	align-items: center;
}

.facultad-sidebar-title i {
	color: var(--rojo);
}

.facultad-info-item {
	display: flex;
	gap: 14px;
	margin-bottom: 18px;
	align-items: flex-start;
}

.facultad-info-icon {
	width: 40px;
	height: 40px;
	background: rgba(15, 44, 92, 0.06);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--azul-2);
	font-size: 1rem;
	flex-shrink: 0;
}

.facultad-info-label {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--gris);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 3px;
}

.facultad-info-value {
	font-size: 0.88rem;
	color: var(--azul);
	font-weight: 600;
	line-height: 1.4;
}

.facultad-info-value a {
	color: var(--rojo);
	text-decoration: none;
	transition: all 0.3s;
}

.facultad-info-value a:hover {
	text-decoration: underline;
}

/* CTA secundario */
.facultad-sidebar-cta {
	margin-top: 24px;
	background: linear-gradient(135deg, var(--azul), var(--azul-dark));
	border-radius: 20px;
	padding: 30px 24px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.facultad-sidebar-cta::before {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(240, 180, 41, 0.15), transparent 70%);
	border-radius: 50%;
}

.facultad-sidebar-cta>i {
	font-size: 2.4rem;
	color: var(--dorado);
	margin-bottom: 12px;
	display: block;
}

.facultad-sidebar-cta h5 {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.1rem;
	font-weight: 800;
	margin-bottom: 8px;
}

.facultad-sidebar-cta p {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 18px;
}

/* Facultades relacionadas */
.facultad-relacionadas {
	background: #fff;
	border-top: 1px solid rgba(15, 44, 92, 0.06);
}

.facultad-rel-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 16px;
	background: #fff;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	border-radius: 16px;
	text-decoration: none;
	transition: all 0.35s ease;
	height: 100%;
	text-align: center;
}

.facultad-rel-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(15, 44, 92, 0.12);
	border-color: transparent;
}

.facultad-rel-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	transition: transform 0.3s ease;
}

.facultad-rel-card:hover .facultad-rel-icon {
	transform: rotate(-8deg) scale(1.08);
}

.facultad-rel-nombre {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--azul);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.35;
}

.facultad-rel-card:hover .facultad-rel-nombre {
	color: var(--rojo);
}

/* Responsive */
@media (max-width: 991px) {
	.facultad-hero {
		padding: 130px 0 70px;
		min-height: 420px;
	}

	.facultad-hero-icon {
		width: 80px;
		height: 80px;
		font-size: 2.4rem;
		border-radius: 22px;
	}

	.facultad-sidebar {
		position: static;
		margin-top: 30px;
	}

	.facultad-rel-nombre {
		font-size: 0.75rem;
	}
}

@media (max-width: 576px) {
	.facultad-hero {
		padding: 110px 0 50px;
	}

	.facultad-hero-icon {
		width: 68px;
		height: 68px;
		font-size: 2rem;
	}

	.carrera-card {
		padding: 20px 18px;
	}

	.carrera-card-title {
		font-size: 0.95rem;
	}

	.facultad-rel-icon {
		width: 48px;
		height: 48px;
		font-size: 1.3rem;
	}
}

/* ============================================================
   ENLACES RÁPIDOS — MEJORAS MÓVIL
   ============================================================ */
@media (max-width: 991px) {
	.quick-access-section {
		margin-top: -50px;
		/* menos agresivo que -70px */
		padding-bottom: 1rem;
	}

	.quick-access-row {
		--bs-gutter-x: 12px;
		--bs-gutter-y: 12px;
	}

	.quick-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		padding: 18px 16px;
		gap: 12px;
		min-height: 150px;
	}

	.quick-icon {
		width: 44px;
		height: 44px;
		font-size: 1.2rem;
		border-radius: 12px;
	}

	.quick-card h6 {
		font-size: 0.85rem;
		line-height: 1.3;
		margin-bottom: 4px;
	}

	.quick-card small {
		font-size: 0.72rem;
		line-height: 1.4;
		display: block;
	}

	/* Ocultar la flecha arriba-derecha en móvil porque no cabe */
	.quick-card>i:last-child {
		display: none;
	}
}

@media (max-width: 576px) {
	#modalPlanUAB .modal-dialog {
		margin: 0.5rem auto;
		/* Margen pequeño arriba y abajo */
		width: calc(100% - 20px);
		/* Ocupa el ancho disponible menos 20px */
		max-width: none;
	}

	.quick-access-section {
		margin-top: -40px;
	}

	.quick-card {
		padding: 16px 14px;
		gap: 10px;
		min-height: 130px;
		border-radius: 14px;
	}

	.quick-icon {
		width: 38px;
		height: 38px;
		font-size: 1.05rem;
		border-radius: 10px;
	}

	.quick-card h6 {
		font-size: 0.78rem;
		line-height: 1.25;
	}

	.quick-card small {
		font-size: 0.68rem;
		line-height: 1.35;
	}
}

/* ============ MEDIOS ============ */
.digi-medios-section {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	padding: 4rem 0 5rem;
}

.digi-medio-card {
	background: #fff;
	border-radius: 24px;
	padding: 32px 28px 26px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 1.5px solid rgba(15, 44, 92, 0.08);
	box-shadow: 0 15px 40px rgba(15, 44, 92, 0.08);
	position: relative;
	overflow: hidden;
	transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.digi-medio-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	z-index: 2;
}

.digi-medio-radio::before {
	background: linear-gradient(90deg, var(--rojo), var(--dorado));
}

.digi-medio-tv::before {
	background: linear-gradient(90deg, var(--azul-2), var(--rojo));
}

.digi-medio-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 65px rgba(15, 44, 92, 0.15);
	border-color: transparent;
}

.digi-medio-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.digi-medio-icon {
	width: 68px;
	height: 68px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.8rem;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
	transition: transform 0.4s ease;
}

.digi-medio-radio .digi-medio-icon {
	background: linear-gradient(135deg, var(--rojo), var(--dorado));
}

.digi-medio-tv .digi-medio-icon {
	background: linear-gradient(135deg, var(--azul-2), var(--rojo));
}

.digi-medio-card:hover .digi-medio-icon {
	transform: rotate(-8deg) scale(1.08);
}

.digi-medio-badge {
	padding: 5px 14px;
	background: rgba(15, 44, 92, 0.06);
	color: var(--azul);
	border-radius: 50px;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.digi-medio-radio .digi-medio-badge {
	background: rgba(196, 30, 58, 0.08);
	color: var(--rojo);
}

.digi-medio-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--azul);
	margin: 0;
	line-height: 1.2;
	transition: color 0.3s ease;
}

.digi-medio-card:hover .digi-medio-title {
	color: var(--rojo);
}

.digi-medio-subtitle {
	font-size: 0.82rem;
	color: var(--rojo);
	font-weight: 600;
	margin: -4px 0 8px;
	font-style: italic;
}

.digi-medio-desc {
	font-size: 0.88rem;
	color: #64748b;
	line-height: 1.65;
	margin: 0 0 12px;
	flex: 1;
}

.digi-medio-info {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 0;
	border-top: 1.5px dashed rgba(15, 44, 92, 0.08);
	border-bottom: 1.5px dashed rgba(15, 44, 92, 0.08);
}

.digi-medio-info span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: var(--gris);
	font-weight: 500;
}

.digi-medio-info span i {
	color: var(--rojo);
	font-size: 0.85rem;
}

.digi-medio-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	background: var(--azul);
	color: #fff;
	border-radius: 50px;
	text-decoration: none;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: all 0.3s ease;
	margin-top: 8px;
}

.digi-medio-btn:hover {
	background: var(--rojo);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(196, 30, 58, 0.3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
	.digi-hero {
		padding: 120px 0 70px;
		min-height: auto;
	}

	.digi-hero-title {
		font-size: 2rem;
	}

	.digi-hero-stats {
		margin-top: 30px;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.digi-hero-stat {
		flex: 1 1 30%;
		padding: 14px 16px;
	}

	.digi-tab {
		flex: 1 1 100%;
		max-width: none;
		padding: 16px 20px;
	}

	.digi-tab-icon {
		width: 48px;
		height: 48px;
		font-size: 1.4rem;
	}
}

@media (max-width: 576px) {
	.digi-hero {
		padding: 110px 0 60px;
	}

	.digi-hero-title {
		font-size: 1.7rem;
	}

	.digi-hero-desc {
		font-size: 0.92rem;
	}

	.digi-hero-stats {
		flex-direction: column;
		gap: 8px;
	}

	.digi-tabs-section {
		padding: 30px 0 10px;
		margin-top: -30px;
	}

	.digi-tab {
		padding: 14px 18px;
		gap: 14px;
		border-radius: 16px;
	}

	.digi-tab-icon {
		width: 44px;
		height: 44px;
		font-size: 1.2rem;
		border-radius: 12px;
	}

	.digi-tab-content strong {
		font-size: 0.95rem;
	}

	.digi-tab-content span {
		font-size: 0.72rem;
	}

	.digi-plataformas-section {
		padding: 1.5rem 0 3rem;
	}

	.digi-card {
		padding: 24px 20px 20px;
	}

	.digi-card-logo {
		width: 80px;
		height: 80px;
	}

	.digi-medios-section {
		padding: 3rem 0 4rem;
	}

	.digi-medio-card {
		padding: 24px 22px 20px;
	}

	.digi-medio-icon {
		width: 56px;
		height: 56px;
		font-size: 1.5rem;
	}

	.digi-medio-btn {
		padding: 11px 20px;
		font-size: 0.78rem;
	}
}

/* ============================================================
   MODAL PLAN UAB 19 - VERSIÓN CORREGIDA PARA MÓVILES
   ============================================================ */

/* Animación de entrada */
.modal-dialog-zoom {
	transform: scale(0.9);
	transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog-zoom {
	transform: scale(1);
}

/* Contenedor principal del modal */
.modal-plan-content {
	border: none;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(15, 44, 92, 0.4);
	background: #fff;
	display: flex;
	flex-direction: column;
	/* IMPORTANTE: Evita que el contenido se salga por los lados */
	width: 100%;
	max-width: 100%;
}

/* Botón de cerrar */
.modal-plan-close {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	padding: 8px;
	opacity: 1;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.modal-plan-close:hover {
	background-color: rgba(196, 30, 58, 1);
	transform: rotate(90deg);
}

/* Contenedor de la imagen */
.modal-plan-img-wrapper {
	background-color: #f8fafc;
	text-align: center;
	padding: 15px;
	width: 100%;
	/* Asegura el ancho completo */
	box-sizing: border-box;
	/* Incluye el padding en el ancho */
}

.modal-plan-img-wrapper img {
	width: 100%;
	height: auto;
	/* Aquí limitamos la altura para que no ocupe toda la pantalla */
	max-height: 350px;
	object-fit: contain;
	border-radius: 8px;
}

/* Contenido de texto */
.modal-plan-footer {
	padding: 20px 25px 25px;
	background: #ffffff;
	position: relative;
	border-top: 1px solid rgba(15, 44, 92, 0.05);
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.modal-plan-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--azul);
	margin-bottom: 10px;
	line-height: 1.25;
	/* Forzar el ajuste de texto */
	word-wrap: break-word;
	white-space: normal;
}

.modal-plan-desc {
	font-size: 0.92rem;
	color: #64748b;
	line-height: 1.6;
	margin-bottom: 20px;
	word-wrap: break-word;
}

/* Botón */
.btn-plan-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	background: linear-gradient(135deg, var(--rojo), var(--rojo-dark));
	color: #fff;
	border-radius: 50px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 12px 30px rgba(196, 30, 58, 0.3);
	transition: all 0.3s ease;
	border: none;
	width: 100%;
	text-decoration: none;
}

.btn-plan-cta:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(196, 30, 58, 0.5);
}

/* ============================================================
   RESPONSIVE PARA CELULARES (El arreglo del desborde)
   ============================================================ */
@media (max-width: 768px) {

	/* Hacemos que el modal ocupe el ancho de la pantalla con un pequeño margen */
	.modal-dialog {
		margin: 10px auto;
		max-width: calc(100% - 16px);
		/* 16px de margen total (8px a cada lado) */
		width: calc(100% - 16px);
	}

	.modal-plan-content {
		border-radius: 16px;
	}

	/* Ajustamos la imagen para que no sea gigante en celular */
	.modal-plan-img-wrapper {
		padding: 10px;
	}

	.modal-plan-img-wrapper img {
		max-height: 220px;
		/* Altura recomendada para móviles */
		width: 100%;
		object-fit: contain;
	}

	/* Ajustamos los textos para que quepan bien */
	.modal-plan-footer {
		padding: 15px 18px 20px;
	}

	.modal-plan-title {
		font-size: 1.1rem;
		/* Letra un poco más pequeña */
		text-align: center;
		/* Centrado en móvil */
		margin-bottom: 8px;
	}

	.modal-plan-desc {
		font-size: 0.85rem;
		text-align: center;
		margin-bottom: 16px;
	}

	.btn-plan-cta {
		padding: 12px 20px;
		font-size: 0.85rem;
		width: 100%;
	}
}

/* ===== HASTA AQUI PLAN ======= */

/* ============================================================
   BOTÓN FLOTANTE: RADIO IBARE (Con Texto)
   ============================================================ */
.radio-floating-btn {
	position: fixed;
	top: 100px;
	/* Debajo del navbar */
	right: 30px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 20px 8px 8px;
	/* Padding asimétrico para que el icono quede a la izquierda */
	background: #ffffff;
	border-radius: 50px;
	/* Forma de píldora */
	box-shadow: 0 10px 30px rgba(15, 44, 92, 0.15);
	border: 2px solid rgba(15, 44, 92, 0.08);
	z-index: 999;
	text-decoration: none;
	/* La transición controla el hover y la animación de scroll de JS */
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Efecto Hover en todo el botón */
.radio-floating-btn:hover {
	background: var(--azul);
	border-color: var(--azul);
	transform: translateY(-3px) scale(1.02) !important;
	box-shadow: 0 15px 35px rgba(15, 44, 92, 0.3);
}

/* Contenedor del icono (fondo rojo con ondas) */
.radio-icon-pulse {
	position: relative;
	width: 38px;
	height: 38px;
	background: var(--rojo);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 1.2rem;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.radio-floating-btn:hover .radio-icon-pulse {
	background: #ffffff;
	color: var(--rojo);
}

/* Ondas expansivas (efecto transmisión en vivo) */
.radio-icon-pulse::before,
.radio-icon-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--rojo);
	z-index: -1;
	animation: radioPulse 2s infinite ease-out;
}

.radio-icon-pulse::after {
	animation-delay: 1s;
}

/* Texto del botón */
.radio-text {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--azul);
	white-space: nowrap;
	letter-spacing: 0.02em;
	transition: color 0.3s ease;
}

/* Cambiamos el color del texto a blanco en hover */
.radio-floating-btn:hover .radio-text {
	color: #ffffff;
}

/* Animación de las ondas */
@keyframes radioPulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}

	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

/* ============================================================
   RESPONSIVE (En celulares se hace más pequeño)
   ============================================================ */
@media (max-width: 991px) {
	.radio-floating-btn {
		top: 85px;
		/* Un poco más arriba por el menú hamburguesa */
		right: 20px;
		padding: 6px 16px 6px 6px;
	}

	.radio-icon-pulse {
		width: 34px;
		height: 34px;
		font-size: 1rem;
	}

	.radio-text {
		font-size: 0.8rem;
	}
}

@media (max-width: 576px) {

	/* En celulares muy pequeños, podemos ocultar el texto para que no estorbe */
	.radio-floating-btn {
		padding: 6px;
		/* Se vuelve un círculo perfecto */
	}

	.radio-text {
		display: none;
		/* Ocultamos el texto solo en móviles pequeños */
	}
}
/* ============================================================
   FIX PARA EL MODAL PLAN UAB 19 EN CELULARES
   (Corrige desborde y tamaños de imagen/texto)
   ============================================================ */
@media (max-width: 576px) {
    /* 1. Ajustar el contenedor del modal para que no se salga de la pantalla */
    #modalPlanUAB .modal-dialog {
        margin: 0.5rem auto; /* Margen pequeño arriba y abajo */
        width: calc(100% - 20px); /* Ocupa el ancho disponible menos 20px */
        max-width: none;
    }

    /* 2. Ajustar el contenido interno para que no haya scroll horizontal */
    #modalPlanUAB .modal-plan-content {
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
    }

    /* 3. Controlar la imagen para que no sea gigante */
    #modalPlanUAB .modal-plan-img-wrapper {
        padding: 10px;
        background-color: #f8fafc;
    }

    #modalPlanUAB .modal-plan-img-wrapper img {
        width: 100%;
        max-height: 180px; /* Reducimos la altura de la imagen en móvil */
        object-fit: contain; /* La imagen se adapta sin deformarse */
    }

    /* 4. Ajustar el padding y textos del pie del modal */
    #modalPlanUAB .modal-plan-footer {
        padding: 15px 15px 20px;
        text-align: center;
    }

    #modalPlanUAB .modal-plan-title {
        font-size: 1.1rem; /* Texto más pequeño para que quepa */
        margin-bottom: 8px;
        line-height: 1.3;
    }

    #modalPlanUAB .modal-plan-desc {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    /* 5. Ajustar el botón para que se vea bien */
    #modalPlanUAB .btn-plan-cta {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }

    /* 6. Ajustar el botón de cerrar (X) para que sea visible */
    #modalPlanUAB .modal-plan-close {
        top: 10px;
        right: 10px;
        padding: 6px;
        background-color: rgba(0, 0, 0, 0.4);
    }
}
@media (max-width: 576px) {
    /* Asegura que el fondo oscuro del modal cubra todo el ancho de la pantalla */
    .modal-backdrop.show {
        width: 100vw !important;
        right: 0 !important;
    }

    /* Evita que el body se desplace a la derecha al bloquear el scroll */
    body.modal-open {
        padding-right: 0 !important;
        overflow: hidden !important;
    }
}