/* ==========================================================================
   Coschool Audience Selector Widget
   ========================================================================== */

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

.csa-inner {
	max-width: 1280px;
	margin: 0 auto;
}

/* ── Encabezado ──────────────────────────────────────────────────────────── */
.csa-header {
	text-align: center;
	margin: 0 auto 56px;
	max-width: 820px;
}

.csa-title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(32px, 3.5vw, 46px);
	font-weight: 600;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 16px;
}

.csa-title__highlight {
	font-style: italic;
	color: #e6d45d;
}

.csa-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.5;
	color: #c9c9c9;
	margin: 0;
}

/* ── Grid de tarjetas ────────────────────────────────────────────────────── */
.csa-grid {
	display: grid;
	grid-template-columns: repeat(var(--csa-cols, 3), minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

/* ── Tarjeta ─────────────────────────────────────────────────────────────── */
.csa-card {
	background-color: #1a1a1a;
	border: 1px solid #2d2d2d;
	border-radius: 20px;
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	height: 100%;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.csa-card:hover {
	border-color: #e6d45d;
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ── Insignia (ej. "El más elegido") ─────────────────────────────────────── */
.csa-card__badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 9999px;
	background-color: rgba(230, 212, 93, 0.15);
	color: #e6d45d;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.csa-card__badge::before {
	content: '★';
	font-size: 12px;
	line-height: 1;
}

.csa-card__icon {
	display: inline-flex;
	font-size: 32px;
	line-height: 1;
}

.csa-card__icon svg { width: 32px; height: 32px; fill: #e6d45d; }
.csa-card__icon i   { color: #e6d45d; }

.csa-card__kicker {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #e6d45d;
}

.csa-card__title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 600;
	line-height: 1.25;
	color: #ffffff;
	margin: 0;
}

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

/* ── Lista de beneficios ─────────────────────────────────────────────────── */
.csa-card__features {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.csa-card__features li {
	position: relative;
	padding-left: 26px;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: #c9c9c9;
}

.csa-card__features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: #e6d45d;
	font-weight: 700;
}

/* ── Botón ───────────────────────────────────────────────────────────────── */
.csa-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	border-radius: 9999px;
	background-color: #e6d45d;
	color: #000000;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	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;
}

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

/* ── 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) {
	.csa-section { padding: 80px 40px; }
	.csa-header  { margin-bottom: 44px; }
}

@media (max-width: 768px) {
	.csa-section {
		padding-top:    60px;
		padding-bottom: 60px;
		padding-left:   0;
		padding-right:  0;
	}
	.csa-title { font-size: clamp(26px, 6.5vw, 36px); }
	.csa-card  { padding: 28px 24px; }
}

@media (max-width: 480px) {
	.csa-section {
		padding-top:    48px;
		padding-bottom: 48px;
	}
	.csa-grid { gap: 20px; }
	.csa-btn  { width: 100%; }
}

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