/* ==========================================================================
   Coschool Problem Section Widget
   ========================================================================== */

/* ── Sección ─────────────────────────────────────────────────────────────── */
.csp-section {
	background-color: #0d0d0d;
	padding: 100px 80px;
	overflow: hidden;
}

/* ── Grid de dos columnas ────────────────────────────────────────────────── */
.csp-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}

/* ── Columna izquierda ───────────────────────────────────────────────────── */
.csp-col--text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* ── Título ──────────────────────────────────────────────────────────────── */
.csp-title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(32px, 3.5vw, 44px);
	font-weight: 600;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 24px;
}

.csp-title__highlight {
	font-style: italic;
}

/* ── Subtítulo ───────────────────────────────────────────────────────────── */
.csp-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(18px, 1.5vw, 24px);
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff;
	margin: 0 0 20px;
}

/* ── Párrafo ─────────────────────────────────────────────────────────────── */
.csp-body {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: #ffffff;
	margin: 0 0 40px;
}

.csp-body p { margin: 0; }

/* ── Botón ───────────────────────────────────────────────────────────────── */
.csp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: 9999px;
	border: 2px solid #e6d45d;
	background: transparent;
	color: #e6d45d;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.csp-btn:hover {
	background-color: #e6d45d;
	color: #000000;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(230, 212, 93, 0.25);
}

/* ── Columna derecha: tarjetas ───────────────────────────────────────────── */
.csp-col--cards {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Tarjeta individual ──────────────────────────────────────────────────── */
.csp-card {
	background-color: #201f1f;
	border: 1px solid #959595;
	border-radius: 20px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.csp-card:hover {
	border-color: #e6d45d;
	transform: translateY(-3px);
}

.csp-card__label {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #e6d45d;
	line-height: 1.2;
}

.csp-card__text {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: #ffffff;
	margin: 0;
}

/* ── En el editor de Elementor mostrar todo inmediato ────────────────────── */
.elementor-editor-active .cs-anim {
	opacity: 1;
	transform: translateY(0);
	transition: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.csp-section { padding: 80px 40px; }
	.csp-inner   { gap: 48px; }
}

@media (max-width: 768px) {
	/*
	 * Padding horizontal mínimo: Elementor ya agrega su propio padding
	 * en la sección/columna contenedora. Usamos 0 aquí para no duplicarlo
	 * y dejar que el contenedor de Elementor controle el espacio lateral.
	 */
	.csp-section {
		padding-top:    60px;
		padding-bottom: 60px;
		padding-left:   0;
		padding-right:  0;
	}

	.csp-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.csp-title {
		font-size: clamp(26px, 6.5vw, 36px);
	}

	.csp-subtitle {
		font-size: clamp(16px, 4.5vw, 20px);
	}

	.csp-body {
		font-size: 16px;
	}

	.csp-card {
		padding: 24px;
	}

	.csp-card__label { font-size: 18px; }
	.csp-card__text  { font-size: 15px; }
}

@media (max-width: 480px) {
	.csp-section {
		padding-top:    48px;
		padding-bottom: 48px;
		padding-left:   0;
		padding-right:  0;
	}

	.csp-inner { gap: 28px; }

	.csp-title { font-size: clamp(24px, 7vw, 32px); }

	.csp-card  { padding: 20px; }

	.csp-btn {
		width: 100%;
		font-size: 16px;
	}
}

/* ── Preferencia de movimiento reducido ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.csp-btn,
	.csp-card { transition: none; }
}
