/**
 * CTA Modal — Selección de tipo de alumno.
 *
 * @package IdiomasPUCP
 */

/* ----------------------------------------------------------------
   Overlay + wrapper
   ---------------------------------------------------------------- */

.cta-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.cta-modal[hidden] {
	display: none;
}

.cta-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------
   Container
   ---------------------------------------------------------------- */

.cta-modal__container {
	position: relative;
	width: 100%;
	max-width: 730px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 22px;
	padding: 48px 16px 30px;
}

/* ----------------------------------------------------------------
   Close button
   ---------------------------------------------------------------- */

.cta-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.cta-modal__close:hover {
	background: #F8F9FA;
}

/* ----------------------------------------------------------------
   Cards grid
   ---------------------------------------------------------------- */

.cta-modal__cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: stretch;
}

.cta-modal__card {
	width: 100%;
	border-radius: 24px;
	padding: 24px 16px;
	background: #fff;
	box-shadow: 0 4px 40px rgba(0, 0, 0, 0.10);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ----------------------------------------------------------------
   Icon box
   ---------------------------------------------------------------- */

.cta-modal__icon-box {
	width: 65px;
	height: 65px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.cta-modal__icon-box svg {
	width: 35.5px;
	height: 35.5px;
}

/* Colores de icon-box se aplican inline desde ACF */

/* ----------------------------------------------------------------
   Title + description
   ---------------------------------------------------------------- */

.cta-modal__title {
	font-family: 'TT Norms Pro', sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 140%;
	letter-spacing: 0;
	color: #03336A;
	margin: 0 0 5px;
}

.cta-modal__desc {
	font-family: 'TT Norms Pro', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 130%;
	letter-spacing: 0;
	color: #444;
	margin: 0 0 20px;
}



/* ----------------------------------------------------------------
   Button
   ---------------------------------------------------------------- */

.cta-modal__btn {
	display: inline-block;
	padding: 13px 24px;
	border-radius: 40px;
	background: #0798F9;
	font-family: 'TT Norms Pro', sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 130%;
	letter-spacing: 0;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s;
	margin-top: auto;
}

.cta-modal__btn:hover {
	background: #0680d4;
}

/* ----------------------------------------------------------------
   Desktop: cards side by side
   ---------------------------------------------------------------- */

@media ( min-width: 768px ) {

	.cta-modal {
		padding: 20px;
	}

	.cta-modal__container {
		padding: 55px 45px;
		max-height: none;
		overflow: hidden;
	}

	.cta-modal__cards {
		flex-direction: row;
		justify-content: center;
		gap: 20px;
		align-items: stretch;
	}

	.cta-modal__card {
		max-width: 311px;
		min-height: 267px;
		padding: 28px 20px;
	}
}
