/* ============================================
   PAGE: Cooperación Académica – HERO SLIDER (BS3)
   Scope estricto: .CA_scope-hero
   ============================================ */
.CA_scope-hero {
	position: relative;
}

.CA_scope-hero .CA_heroCarousel {
	width: 100%;
}

.CA_scope-hero .CA_heroSlide,
.CA_scope-hero .carousel-inner,
.CA_scope-hero .item {
	height: 350px;
}

.CA_scope-hero .CA_heroBg {
	position: absolute;
	inset: 0;
	height: 350px;
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1.02);
}

.CA_scope-hero .CA_heroOverlay {
	position: absolute;
	inset: 0;
	height: 350px;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.62) 0%,
		rgba(0, 0, 0, 0.35) 55%,
		rgba(0, 0, 0, 0.18) 100%
	);
}

/* Contenido: top padding fijo (100px) + alineación izquierda */
.CA_scope-hero .CA_heroContentWrap {
	position: relative;
	height: 350px;
}

.CA_scope-hero .CA_heroContent {
	width: min(1100px, 92%);
	margin: 0 auto;
	padding-top: 100px; /* ✅ requerido */
	padding-right: 24px;
	color: #fff;
	text-align: left;
}

.CA_scope-hero .CA_heroKicker,
.CA_scope-hero .CA_heroSubtitle,
.CA_scope-hero .CA_heroActions {
	padding-left: 60px;
}

/* Subtítulo tipo Harvard */
.CA_scope-hero .CA_heroKicker {
	margin: 0 0 14px; /* ✅ espacio como referencia */
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.92;
}

/* Título (sin max-width en desktop) */
.CA_scope-hero .CA_heroTitle {
	text-align: left;
	padding-left: 60px;
	margin: 0 0 18px;
	font-weight: 800;
	line-height: 1.15;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
	font-size: 24px;
}

/* Subtítulo texto */
.CA_scope-hero .CA_heroSubtitle {
	margin: 0 0 22px;
	font-size: clamp(14px, 1.35vw, 18px);
	line-height: 1.55;
	opacity: 0.95;
	max-width: 62ch; /* control solo de párrafo (no del título) */
}

/* Botonera: NO full width, tamaño estilo Harvard */
.CA_scope-hero .CA_heroActions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* Botones: tamaño fijo (evita barra gigante) */
.CA_scope-hero .CA_heroBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px; /* ✅ similar a referencia */
	height: 44px; /* ✅ altura tipo Harvard */
	padding: 0 22px;
	border-radius: 0; /* según tu estándar */
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap; /* ✅ evita salto feo */
}

/* Primario */
.CA_scope-hero .CA_heroBtn--primary {
	background: rgba(251, 101, 32, 0.9);
	border: 1px solid #e55d1e;
	color: #fff;
}
.CA_scope-hero .CA_heroBtn--primary:hover,
.CA_scope-hero .CA_heroBtn--primary:focus {
	background: #706f6f;
	border-color: #706f6f;
	color: #fff;
}

/* Ghost */
.CA_scope-hero .CA_heroBtn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #fff;
}
.CA_scope-hero .CA_heroBtn--ghost:hover,
.CA_scope-hero .CA_heroBtn--ghost:focus {
	background: #fff;
	color: #111;
	border-color: #fff;
}

/* Indicadores */
.CA_scope-hero .CA_heroIndicators {
	bottom: 0px;
}
.CA_scope-hero .CA_heroIndicators li {
	border-color: rgba(255, 255, 255, 0.75);
}
.CA_scope-hero .CA_heroIndicators .active {
	background: #fff;
}

/* Controles */
.CA_scope-hero .CA_heroControl {
	width: 8%;
	opacity: 0.85;
}
.CA_scope-hero .CA_heroControl:hover {
	opacity: 1;
}

/* Fuerza visibilidad y encima del overlay/caption */
.CA_scope-hero .CA_heroCarousel .carousel-control,
.CA_scope-hero .CA_heroCarousel .carousel-indicators {
	display: block !important;
	opacity: 0.95;
	z-index: 20;
}

.CA_scope-hero .CA_heroOverlay {
	z-index: 1;
}
.CA_scope-hero .CA_heroContentWrap {
	z-index: 2;
	position: relative;
}

/* Asegura que las flechas sean clicables (si overlay estaba encima) */
.CA_scope-hero .CA_heroCarousel .carousel-control {
	z-index: 30;
}
.CA_scope-hero .CA_heroCarousel .carousel-indicators {
	z-index: 30;
}

/* ==========================
   MOBILE
   - Oculta subtítulo (kicker)
   - Título con max-width:18ch solo aquí
   ========================== */
@media (max-width: 767px) {
	.CA_scope-hero .CA_heroContent {
		padding-top: 120px;
		padding-right: 0;
	}

	.CA_scope-hero .CA_heroKicker {
		display: none; /* ✅ requerido */
	}

	.CA_scope-hero .CA_heroTitle {
		font-size: 20px;
		margin-bottom: 14px;
		max-width: none;
	}

	.CA_scope-hero .CA_heroSubtitle {
		display: none; /* opcional: si quieres solo título+botones */
	}

	.CA_scope-hero .CA_heroBtn {
		min-width: 160px;
		height: 44px;
	}
}
/* ============================================
   CA_info_ — Bloque informativo + Cards (scope)
   ============================================ */
.CA_info_section {
	--CA_info_bg: #ffffff;
	--CA_info_fg: #101214;
	--CA_info_muted: #2a2f33;
	--CA_info_radius: 18px;
	--CA_info_shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	--CA_info_gap: clamp(14px, 2vw, 22px);

	background: var(--CA_info_bg);
	color: var(--CA_info_fg);
	padding: clamp(26px, 4vw, 54px) 0;
}

.CA_info_wrap {
	width: min(1200px, 94%);
	margin: 0 auto;
}

.CA_info_header {
	margin: 0 auto clamp(18px, 2.2vw, 26px);
}

.CA_info_h2 {
	text-align: center;
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 clamp(12px, 1.8vw, 18px);
	font-size: clamp(20px, 2.3vw + 8px, 34px);
}

.CA_info_text {
	max-width: 980px;
	margin: 0 auto;
	font-size: clamp(15px, 0.35vw + 14px, 18px);
	line-height: 1.75;
	color: var(--CA_info_muted);
	text-align: justify;
	text-justify: inter-word;
}

.CA_info_text p {
	margin: 0 0 14px;
}
.CA_info_text p:last-child {
	margin-bottom: 0;
}

/* Cards container (flex wrap) */
.CA_info_cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--CA_info_gap);
	margin-top: clamp(18px, 2.5vw, 28px);
}

/* Card */
.CA_info_card {
	width: 100%;
	max-width: 300px; /* ✅ tamaño máximo fijo */
	min-height: 220px;
	border-radius: var(--CA_info_radius) 0;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
	color: #fff;
	background-size: cover;
	background-position: center;
	box-shadow: var(--CA_info_shadow);
	transform: translateZ(0);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		filter 0.28s ease;
}

/* Overlay inferior (50% del alto) */
.CA_info_card::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50%; /* ✅ cubre 50% inferior */
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.45) 60%,
		rgba(0, 0, 0, 0) 100%
	);
	pointer-events: none;
}

/* Borde sutil */
.CA_info_card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--CA_info_radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	pointer-events: none;
}

/* Título */
.CA_info_cardTitle {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 16px 16px 18px;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.2;
	font-size: 18px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Hover */
.CA_info_card:hover,
.CA_info_card:focus-visible {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
	filter: saturate(1.06) contrast(1.04);
	color: #fff;
}

.CA_info_card:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.35);
	outline-offset: 3px;
}

/* Responsive tweaks */
@media (max-width: 767px) {
	.CA_info_text {
		text-align: left; /* en mobile suele leerse mejor */
	}
	.CA_info_card {
		max-width: 520px; /* permite que en mobile una card ocupe casi todo */
		min-height: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.CA_info_card {
		transition: none !important;
	}
}
/* ============================================
   BLOQUE: Links / Cards informativas (CA_links_)
   Scope: solo clases CA_links_
============================================ */
.CA_links_section {
	--CA_links_accent: #c10000; /* rojo similar a referencia */
	--CA_links_text: #121212;
	--CA_links_muted: #f3f3f3;
	--CA_links_cardW: 300px;
	background: #fff;
	color: var(--CA_links_text);
	padding: clamp(26px, 4vw, 54px) 0;
}

.CA_links_wrap {
	width: min(1200px, 94%);
	margin: 0 auto;
}

.CA_links_h2 {
	margin: 0 0 clamp(16px, 2.2vw, 26px);
	text-align: center;
	font-weight: 800;
	letter-spacing: 0.2px;
	font-size: clamp(20px, 2.2vw + 8px, 34px);
}

.CA_links_grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(14px, 2vw, 22px);
	justify-content: center;
	align-items: stretch;
}

/* Card */
.CA_links_card {
	width: 100%;
	max-width: var(--CA_links_cardW);
	background: #fff;
	/* sin bordes, como pediste */
	border: 0;
	border-radius: 0;
	padding: 26px 22px 22px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		background-color 0.22s ease;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	min-height: 220px;
}

.CA_links_card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
	background: #fff;
}

/* Icono */
.CA_links_icon {
	color: var(--CA_links_accent);
	font-size: 34px;
	line-height: 1;
	margin-bottom: 12px;
	text-align: center;
}

.CA_links_title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

/* Botón estilo “borde rojo” */
.CA_links_btn {
	justify-self: center;
	display: inline-flex;
	align-items: center; /* centra vertical */
	justify-content: center; /* centra horizontal */

	height: 55px; /* ✅ alto fijo solicitado */
	min-width: 170px;
	padding: 0 24px; /* padding horizontal, vertical ya no es necesario */

	border: 2px solid var(--CA_links_accent);
	color: var(--CA_links_text);
	background: transparent;
	text-decoration: none;
	font-weight: 700;
	line-height: 1; /* evita desalineaciones */
	white-space: nowrap;

	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.CA_links_btn:hover,
.CA_links_btn:focus-visible {
	background: var(--CA_links_accent);
	color: #fff;
	transform: translateY(-1px);
	outline: none;
}

.CA_links_btn:active {
	transform: translateY(0);
}

/* Responsive: en móviles, más aire */
@media (max-width: 575px) {
	.CA_links_card {
		padding: 22px 18px 18px;
		min-height: 200px;
	}
	.CA_links_title {
		font-size: 20px;
	}
	.CA_links_icon {
		font-size: 32px;
	}
}
/* ============================================
   BLOQUE: Asociaciones y organizaciones (CA_carrusel_)
   Scope: solo .CA_carrusel_
============================================ */
.CA_carrusel_ {
	--CA_carrusel_bg: #f6f7f9;
	--CA_carrusel_card_bg: #ffffff;
	--CA_carrusel_shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
	--CA_carrusel_item_shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
	--CA_carrusel_radius: 16px;
	--CA_carrusel_gap: clamp(14px, 1.8vw, 22px);
	--CA_carrusel_text: #161a1d;

	padding: clamp(24px, 4vw, 52px) 0;
	background: var(--CA_carrusel_bg);
}

.CA_carrusel_ .CA_carrusel__wrap {
	width: min(1200px, 94%);
	margin: 0 auto;
	display: grid;
	gap: clamp(18px, 2.8vw, 30px);
}

.CA_carrusel_ .CA_carrusel__group {
	background: var(--CA_carrusel_card_bg);
	border-radius: var(--CA_carrusel_radius);
	box-shadow: var(--CA_carrusel_shadow);
	padding: clamp(18px, 2.3vw, 28px);
}

.CA_carrusel_ .CA_carrusel__title {
	margin: 0 0 clamp(14px, 1.8vw, 22px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--CA_carrusel_text);
	text-align: center;
	font-size: clamp(20px, 2vw + 8px, 32px);
}

.CA_carrusel_ .CA_carrusel__viewport {
	--CA_carrusel_visible: 1;
	overflow: hidden;
	position: relative;
}

.CA_carrusel_ .CA_carrusel__track {
	display: flex;
	gap: var(--CA_carrusel_gap);
	will-change: transform;
}

.CA_carrusel_ .CA_carrusel__item {
	flex: 0 0
		calc(
			(100% - (var(--CA_carrusel_visible) - 1) * var(--CA_carrusel_gap)) /
				var(--CA_carrusel_visible)
		);
	display: flex;
	justify-content: center;
	padding: 10px 2px 20px;
	text-decoration: none;
}

.CA_carrusel_ .CA_carrusel__media {
	width: min(100%, 150px);
	max-width: 150px;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: var(--CA_carrusel_item_shadow);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		filter 0.28s ease;
}

.CA_carrusel_ .CA_carrusel__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: 150px;
	max-height: 150px;
}

.CA_carrusel_ .CA_carrusel__item:hover .CA_carrusel__media,
.CA_carrusel_ .CA_carrusel__item:focus-visible .CA_carrusel__media {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 12px 12px rgba(16, 24, 40, 0.2);
	filter: saturate(1.05);
}

.CA_carrusel_ .CA_carrusel__controls {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 6px;
}

.CA_carrusel_ .CA_carrusel__ctrl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	border: 1px solid #b8bdc4;
	background: #ffffff;
	color: #1b1f24;
	border-radius: 50px;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.CA_carrusel_ .CA_carrusel__ctrl:hover,
.CA_carrusel_ .CA_carrusel__ctrl:focus-visible {
	background: #1b1f24;
	color: #ffffff;
	border-color: #1b1f24;
	transform: translateY(-1px);
	outline: none;
}

.CA_carrusel_ .CA_carrusel__ctrl:active {
	transform: translateY(0);
}

.CA_carrusel_ .CA_carrusel__item:focus-visible {
	outline: 0;
}

.CA_carrusel_ .CA_carrusel__item:focus-visible .CA_carrusel__media {
	outline: 2px solid rgba(0, 0, 0, 0.4);
	outline-offset: 3px;
}

/* Nacional */
.CA_carrusel_ .CA_carrusel__viewport--2 {
	--CA_carrusel_visible: 2;
}

/* Internacional */
.CA_carrusel_ .CA_carrusel__viewport--4 {
	--CA_carrusel_visible: 4;
}

@media (max-width: 1199px) {
	.CA_carrusel_ .CA_carrusel__viewport--4 {
		--CA_carrusel_visible: 3;
	}
}

@media (max-width: 991px) {
	.CA_carrusel_ .CA_carrusel__viewport--4 {
		--CA_carrusel_visible: 2;
	}
}

@media (max-width: 767px) {
	.CA_carrusel_ .CA_carrusel__viewport--2,
	.CA_carrusel_ .CA_carrusel__viewport--4 {
		--CA_carrusel_visible: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.CA_carrusel_ .CA_carrusel__media {
		transition: none !important;
	}
}
