/* =========================================
   LANDING CALENDARIO DE CLASES DE CIUDADANÍA (page-clases-ciudadania.php)
   Figma wsUk7Q9pppCTYcFwba1Hu2: Desktop 8035:1846 (1440) y modal 5632:308; Mobile 8070:2442 (402) y modal 8085:4467.

   Escala (igual que Black Friday): medidas de escritorio en calc(N * var(--u)), N = px del Figma de 1440.
   - ≥1200px: --u = 100vw / 1440 → en 1440 todo igual al Figma; más ancho crece proporcional; entre 1200 y 1439 se
     reduce, con mínimos en los textos chicos (max()).
   - <1200px: diseño móvil, en px; en el hero y el cierre --m reduce las fotos por debajo de 402px.
   - Los modales no escalan (px).
   El header del sitio es fijo: la página empieza debajo de él. En el Figma el hero pasa por debajo del navbar (71px),
   así que a sus medidas verticales se les restan esos 71px.
   Desvíos a propósito (plan, sección 5): rojo de botones #e73329 → #d42a20 (WCAG AA con texto blanco de 16px, como la
   práctica de 128 preguntas), casilla clara, consentimiento completo, dos selects y lista de oficinas.
   ========================================= */

.cc {
	--u: 1px;
	--m: min(1px, calc(100vw / 402));
	--cc-header: 134px; /* alto del header fijo sin scroll; landing-clases.js lo mide y lo ajusta */

	--cc-red: #d42a20;
	--cc-red-dark: #b3211a;
	--cc-red-figma: #e73329; /* íconos y flecha del select (no llevan texto) */
	--cc-blue: #08466c;
	--cc-blue-dark: #031c2b;
	--cc-navy: #133f72;
	--cc-soft: #e6edf0;
	--cc-field: #fdebea;
	--cc-field-border: #fad6d4;
	--cc-placeholder: #5a6673;
	--cc-ink: #161a1d;
	--cc-yellow: #ffd725;

	--cc-font-display: 'forma-djr-display', 'Forma DJR Display', var(--font-heading);
	--cc-font-sans: 'canada-type-gibson', 'Gibson', 'Cabin', var(--font-body);
	--cc-font-ui: 'Poppins', var(--font-body);

	padding-top: var(--cc-header);
	background: #fff;
	color: var(--cc-ink);
	font-family: var(--cc-font-sans);
	overflow-x: clip;
}

@media (min-width: 1200px) {
	.cc {
		--u: calc(100vw / 1440);
	}
}

.admin-bar .cc {
	padding-top: calc(var(--cc-header) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .cc {
		padding-top: calc(var(--cc-header) + 46px);
	}
}

/* Header del sitio sólido desde el inicio (el hero es oscuro), como en Black Friday. */
.page-template-page-clases-ciudadania .site-header:not(.is-scrolled) .main-header {
	background: var(--white);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.cc) {
		scroll-behavior: smooth;
	}
}

.cc h1,
.cc h2,
.cc h3,
.cc p,
.cc ul {
	margin: 0;
}

.cc ul {
	padding: 0;
	list-style: none;
}

.cc img {
	display: block;
	max-width: none;
}

/* Con display propio, estas clases ganarían al atributo hidden. */
.cc [hidden] {
	display: none !important;
}

.cc :focus-visible {
	outline: 3px solid var(--cc-navy);
	outline-offset: 3px;
}

.cc-hero :focus-visible,
.cc-modal :focus-visible,
.cc-player :focus-visible {
	outline-color: var(--cc-yellow);
}

/* --- Botón (Figma "Button") --- */
.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(12 * var(--u));
	min-height: max(42px, calc(42 * var(--u)));
	padding: calc(8 * var(--u)) calc(29 * var(--u));
	border: 0;
	border-radius: 999px;
	background: var(--cc-red);
	color: #fff;
	font-family: var(--cc-font-ui);
	font-weight: 400;
	font-size: max(16px, calc(16 * var(--u)));
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-btn:hover,
.cc-btn:focus-visible {
	background: var(--cc-red-dark);
	color: #fff;
}

.cc-btn:active {
	transform: scale(0.98);
}

.cc-btn img {
	width: max(24px, calc(24 * var(--u)));
	height: auto;
}

.cc-btn--l {
	min-height: calc(58 * var(--u));
}

/* =========================================
   HERO (Figma 8035:1847)
   ========================================= */
.cc-hero {
	position: relative;
	height: calc(720 * var(--u));
	padding: calc(85 * var(--u)) calc(96 * var(--u)) 0;
	overflow: hidden;
	background: #1f3554;
	color: #fff;
}

.cc-hero__bg {
	position: absolute;
	left: 0;
	top: calc(-71 * var(--u));
	width: 100%;
	height: calc(791 * var(--u));
	object-fit: cover;
}

.cc-hero__photo {
	position: absolute;
	left: 50%;
	top: calc(44 * var(--u));
	width: calc(692 * var(--u));
	height: calc(676 * var(--u));
	object-fit: contain;
}

.cc-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: calc(32 * var(--u));
	width: calc(616 * var(--u));
}

.cc-hero__logo {
	width: calc(381 * var(--u));
	height: calc(129 * var(--u));
	object-fit: cover;
}

.cc-hero__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: calc(28 * var(--u));
}

.cc-hero__title {
	color: #fff;
	font-family: var(--cc-font-sans);
	font-weight: 700;
	font-size: calc(68 * var(--u));
	line-height: calc(80 * var(--u));
}

.cc-hero__title span {
	display: block;
	white-space: nowrap;
}

.cc-hero__sub {
	font-size: max(16px, calc(18 * var(--u)));
	line-height: 1.334;
}

/* Bandera (Figma 8035:1854): la imagen mide 30.23px y empieza 3px arriba. */
.cc-flag {
	position: relative;
	height: calc(25 * var(--u));
	overflow: hidden;
}

.cc-flag img {
	position: absolute;
	left: 0;
	top: calc(-3 * var(--u));
	width: 100%;
	height: calc(30.23 * var(--u));
}

/* =========================================
   CALENDARIO (Figma 8035:1892)
   ========================================= */
.cc-calendar {
	position: relative;
	padding: calc(96 * var(--u));
	scroll-margin-top: var(--cc-header);
}

/* Hojas decorativas: en el Figma son "sticky" (acompañan el scroll dentro de la sección). */
.cc-paper {
	position: absolute;
	bottom: 0;
	pointer-events: none;
}

.cc-paper img {
	position: sticky;
	height: auto;
}

.cc-paper--left {
	left: calc(-25 * var(--u));
	top: calc(934 * var(--u));
	width: calc(367 * var(--u));
}

.cc-paper--left img {
	top: calc(156 * var(--u));
	width: calc(367 * var(--u));
}

.cc-paper--right {
	left: calc(1109 * var(--u));
	top: calc(812 * var(--u));
	width: calc(376 * var(--u));
}

.cc-paper--right img {
	top: calc(181 * var(--u));
	width: calc(376 * var(--u));
}

.cc-calendar__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: calc(8 * var(--u));
	/* 120px arriba en el Figma; aquí 48 porque las pestañas ocupan 72 (así las filas quedan a la misma altura). */
	padding: calc(48 * var(--u)) 0 calc(96 * var(--u));
}

.cc-calendar__header {
	display: flex;
	align-items: center;
	gap: calc(28 * var(--u));
	padding: calc(28 * var(--u));
}

.cc-calendar__icon {
	flex-shrink: 0;
	width: calc(128 * var(--u));
	height: calc(128 * var(--u));
}

.cc-calendar__heading {
	flex: 1 1 0;
	min-width: 0;
}

.cc-calendar__title {
	color: var(--cc-blue);
	font-family: var(--cc-font-sans);
	font-weight: 700;
	font-size: calc(48 * var(--u));
	line-height: calc(56 * var(--u));
}

.cc-calendar__text {
	color: var(--cc-ink);
	font-family: var(--cc-font-ui);
	font-size: max(16px, calc(16 * var(--u)));
	line-height: 1.5;
	text-wrap: balance;
}

/* Pestañas por ronda (no vienen en el Figma: decisión del usuario, 1 dic). */
.cc-tabs {
	display: none;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: calc(8 * var(--u));
	margin-bottom: calc(8 * var(--u));
}

.cc-js .cc-tabs {
	display: grid;
}

.cc-tab {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	column-gap: calc(10 * var(--u));
	min-height: calc(56 * var(--u));
	padding: calc(14 * var(--u)) calc(8 * var(--u));
	border: 2px solid var(--cc-soft);
	border-radius: 999px;
	background: #fff;
	color: var(--cc-blue);
	font-family: var(--cc-font-sans);
	font-size: max(16px, calc(20 * var(--u)));
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-tab__name {
	font-weight: 700;
}

.cc-tab__months {
	font-size: max(14px, calc(16 * var(--u)));
}

.cc-tab:hover {
	border-color: var(--cc-navy);
}

.cc-tab.is-active {
	border-color: var(--cc-navy);
	background: var(--cc-navy);
	color: #fff;
}

.cc-js .cc-round:not(.is-active) {
	display: none;
}

.cc-round__title {
	padding: calc(16 * var(--u)) calc(32 * var(--u)) calc(8 * var(--u));
	color: var(--cc-blue);
	font-family: var(--cc-font-sans);
	font-weight: 700;
	font-size: calc(28 * var(--u));
	line-height: 1.2;
}

/* Con pestañas, el nombre de la ronda ya se ve en la pestaña. */
.cc-js .cc-round__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.cc-classes {
	display: flex;
	flex-direction: column;
	gap: calc(8 * var(--u));
}

.cc-class {
	display: flex;
	align-items: center;
	gap: calc(40 * var(--u));
	min-height: calc(81 * var(--u));
	padding: calc(16 * var(--u)) calc(32 * var(--u));
	border-radius: 999px;
	background: var(--cc-soft);
}

.cc-info {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: calc(10 * var(--u));
	color: var(--cc-blue);
}

.cc-info__icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: calc(42 * var(--u));
	height: calc(42 * var(--u));
	border-radius: 50%;
	background: var(--cc-navy);
}

.cc-info__icon img {
	width: calc(24 * var(--u));
	height: calc(24 * var(--u));
}

.cc-info__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cc-info__main {
	font-weight: 700;
	font-size: max(16px, calc(20 * var(--u)));
	line-height: 1.2;
}

.cc-info__sub {
	font-size: max(15px, calc(18 * var(--u)));
	line-height: 1.334;
}

.cc-class__btn {
	flex-shrink: 0;
	min-width: calc(192 * var(--u));
	padding-inline: calc(33 * var(--u));
}

.cc-empty {
	padding: calc(28 * var(--u)) calc(32 * var(--u));
	border-radius: 24px;
	background: var(--cc-soft);
	color: var(--cc-blue);
	font-size: max(18px, calc(20 * var(--u)));
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
}

.cc-empty a {
	color: inherit;
	font-weight: 700;
	white-space: nowrap;
}

/* Oficinas (no vienen en el Figma: cada clase se da en las 5). */
.cc-offices {
	margin-top: calc(32 * var(--u));
	padding: calc(28 * var(--u)) calc(32 * var(--u));
	border: 2px solid var(--cc-soft);
	border-radius: calc(24 * var(--u));
	background: #fff;
}

.cc-offices__title {
	margin-bottom: calc(16 * var(--u)) !important;
	color: var(--cc-blue);
	font-family: var(--cc-font-sans);
	font-weight: 700;
	font-size: max(18px, calc(20 * var(--u)));
	line-height: 1.2;
}

.cc-offices__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: calc(16 * var(--u)) calc(24 * var(--u));
}

.cc-office {
	display: flex;
	flex-direction: column;
	gap: calc(4 * var(--u));
	color: var(--cc-blue);
	text-decoration: none;
}

.cc-office__name {
	font-weight: 700;
	font-size: max(16px, calc(18 * var(--u)));
	line-height: 1.3;
}

.cc-office__address {
	color: var(--cc-ink);
	font-size: max(15px, calc(16 * var(--u)));
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-color: rgba(8, 70, 108, 0.4);
	text-underline-offset: 3px;
}

.cc-office:hover .cc-office__address {
	text-decoration-color: currentColor;
}

/* Videos (Figma 8045:7910) */
.cc-videos {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(40 * var(--u));
	padding-top: calc(40 * var(--u));
}

.cc-videos__list {
	display: flex;
	gap: calc(16 * var(--u));
}

.cc-video {
	position: relative;
	display: block;
	width: calc(280 * var(--u));
	height: calc(357 * var(--u));
	overflow: hidden;
	border-radius: 24px;
	background: var(--cc-navy);
}

.cc-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cc-video:hover .cc-video__poster {
	transform: scale(1.03);
}

/* Botón de play (no viene en el Figma): avisa que la imagen es un video. */
.cc-video__play {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cc-red);
	color: #fff;
	transition: background-color 0.2s ease;
}

.cc-video:hover .cc-video__play {
	background: var(--cc-red-dark);
}

/* =========================================
   CIERRE (Figma 8035:1907)
   ========================================= */
.cc-cta {
	position: relative;
	display: flex;
	align-items: center;
	height: calc(704 * var(--u));
	padding: 0 calc(96 * var(--u));
	overflow: hidden;
}

/* La foto mide 621×727 dentro de un marco de 568×664 (recorte del Figma). */
.cc-cta__photo {
	position: absolute;
	left: calc(844 * var(--u));
	top: calc(50 * var(--u));
	width: calc(568 * var(--u));
	height: calc(664 * var(--u));
	overflow: hidden;
}

.cc-cta__photo img {
	position: absolute;
	left: -4.6%;
	top: 0.03%;
	width: 109.37%;
	height: 109.46%;
}

.cc-cta__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: calc(28 * var(--u));
	width: calc(744 * var(--u));
}

.cc-cta__title {
	color: var(--cc-blue);
	font-family: var(--cc-font-display);
	font-weight: 900;
	font-size: calc(92 * var(--u));
	line-height: calc(86 * var(--u));
	text-transform: uppercase;
}

.cc-cta__text {
	font-size: max(16px, calc(18 * var(--u)));
	line-height: 1.334;
	text-wrap: pretty;
}

/* =========================================
   MODAL DE REGISTRO (Figma 5632:308 / 8085:4467)
   ========================================= */
.cc-modal {
	width: min(986px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 24px;
	background: var(--cc-blue-dark);
	color: #fff;
}

.cc-modal::backdrop,
.cc-player::backdrop {
	background: rgba(3, 28, 43, 0.7);
	backdrop-filter: blur(4px);
}

:root:has(.cc-modal[open]),
:root:has(.cc-player[open]) {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	.cc-modal[open],
	.cc-player[open] {
		animation: cc-modal-in 0.2s ease-out;
	}
}

@keyframes cc-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.cc-inline .cc-modal {
	display: block;
	position: static;
	width: auto;
	max-width: 986px;
	max-height: none;
	margin: 0 auto 68px;
}

.cc-inline .cc-modal .cc-modal__close,
.cc-inline .cc-player {
	display: none;
}

.cc-modal__card {
	position: relative;
	display: grid;
	grid-template-columns: 488fr 498fr;
	max-height: inherit;
}

.cc-modal__media {
	position: relative;
	overflow: hidden;
}

/* Recorte del Figma: la imagen mide 256.69% de ancho y se corre -155.37%. */
.cc-modal__bg {
	position: absolute;
	left: -155.37%;
	top: 0;
	width: 256.69%;
	height: 100%;
	object-fit: cover;
}

.cc-modal__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cc-modal__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(4, 29, 45, 0) 50%, rgba(3, 29, 44, 0.8));
}

.cc-modal__logo {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 48px;
	width: min(393px, 80%);
	height: auto;
	transform: translateX(-50%);
}

.cc-modal__logo.cc-modal__logo--panel,
.cc-modal__text {
	display: none;
}

.cc-modal__panel {
	min-width: 0;
	max-height: inherit;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 36px 48px 44px;
	background: linear-gradient(131deg, var(--cc-blue-dark) 0%, var(--cc-blue) 75%);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.cc-modal__title {
	padding-right: 32px;
	color: #fff;
	font-family: var(--cc-font-sans);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
	text-wrap: balance;
}

.cc-modal__title:focus {
	outline: none; /* recibe el foco al abrir el modal; no es un control */
}

.cc-modal__required {
	margin: 4px 0 16px !important;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}

.cc-modal__close {
	position: absolute;
	z-index: 2;
	top: 7px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cc-red);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cc-modal__close:hover {
	background: var(--cc-red-dark);
}

/* --- Contact Form 7 (markup de deploy/content/clases-ciudadania/form-*.html) --- */
.cc-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}

.cc-field {
	min-width: 0;
}

.cc-field:nth-child(n + 3) {
	grid-column: 1 / -1;
}

.cc-field__label {
	display: block;
	margin-bottom: 8px;
	color: #fff;
	font-family: var(--cc-font-ui);
	font-size: 16px;
	line-height: 1.5;
}

.cc-field .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

/* Ícono del campo: el SVG del Figma como máscara (así el calendario y el pin, que son blancos, salen en rojo). */
.cc-field .wpcf7-form-control-wrap::before {
	content: '';
	position: absolute;
	z-index: 1;
	left: 16px;
	top: 9px;
	width: 24px;
	height: 24px;
	background: var(--cc-red-figma);
	-webkit-mask: var(--cc-icon) center / contain no-repeat;
	mask: var(--cc-icon) center / contain no-repeat;
	pointer-events: none;
}

.cc-field--person {
	--cc-icon: url('../images/clases-ciudadania/icon-person.svg');
}

.cc-field--mail {
	--cc-icon: url('../images/clases-ciudadania/icon-mail.svg');
}

.cc-field--mobile {
	--cc-icon: url('../images/clases-ciudadania/icon-mobile.svg');
}

.cc-field--calendar {
	--cc-icon: url('../images/clases-ciudadania/icon-calendar.svg');
}

.cc-field--pin {
	--cc-icon: url('../images/clases-ciudadania/icon-pin.svg');
}

/* Más específico que la regla global de main.css (input.wpcf7-form-control:not(…):not(…):not(…)). */
.cc .cc-modal .cc-field input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.cc .cc-modal .cc-field select.wpcf7-form-control {
	width: 100%;
	height: 42px;
	padding: 8px 12px 8px 56px;
	border: 1px solid var(--cc-field-border);
	border-radius: 8px;
	background-color: var(--cc-field);
	font-family: var(--cc-font-sans);
	font-size: 16px;
	line-height: 24px;
	color: var(--cc-ink);
	box-shadow: none;
	text-overflow: ellipsis;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Flecha del Figma: recuadro rojo de 57px. */
.cc .cc-modal .cc-field select.wpcf7-form-control {
	padding-right: 64px !important; /* main.css: .wpcf7-select { padding-right: 40px !important } */
	background-image: url('../images/clases-ciudadania/icon-arrow.svg'), linear-gradient(var(--cc-red-figma), var(--cc-red-figma));
	background-position: right 23px center, right center;
	background-size: 10px 5px, 57px 100%;
	background-repeat: no-repeat;
	cursor: pointer;
}

.cc .cc-modal .cc-field select.wpcf7-form-control option {
	background: #fff;
	color: var(--cc-ink);
}

.cc .cc-modal .cc-field input.wpcf7-form-control::placeholder {
	color: var(--cc-placeholder);
	opacity: 1;
}

.cc .cc-modal .cc-field input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.cc .cc-modal .cc-field select.wpcf7-form-control:focus {
	outline: none;
	border-color: var(--cc-yellow);
	box-shadow: 0 0 0 3px var(--cc-yellow);
}

.cc .cc-modal .cc-field .wpcf7-not-valid {
	border-color: var(--cc-red-figma) !important;
}

.cc-modal .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.35;
	color: #ffc9c5;
}

.cc-consent {
	font-size: 12px;
	line-height: 1.35;
	color: #fff;
}

.cc-consent .wpcf7-form-control-wrap,
.cc-consent .wpcf7-acceptance {
	display: block !important; /* main.css: inline-block !important */
	width: 100% !important;
}

.cc-consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.cc-consent .wpcf7-acceptance label {
	display: grid !important; /* main.css: flex !important */
	grid-template-columns: 24px minmax(0, 1fr);
	column-gap: 16px;
	align-items: start;
	padding-left: 16px;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	cursor: pointer;
}

.cc-consent .wpcf7-acceptance input[type="checkbox"] {
	appearance: none;
	display: grid;
	place-content: center;
	width: 24px !important; /* main.css: 18px !important */
	height: 24px !important;
	margin: 0 !important;
	border: 2px solid var(--cc-field);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}

.cc-consent .wpcf7-acceptance input[type="checkbox"]:checked {
	background: var(--cc-field);
}

.cc-consent .wpcf7-acceptance input[type="checkbox"]:checked::after {
	content: '';
	width: 6px;
	height: 11px;
	margin-top: -2px;
	border: solid var(--cc-red);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Texto completo en una caja de 4 líneas con scroll; degradado mientras quede texto (clase is-end: landing-clases.js). */
.cc-consent .wpcf7-list-item-label {
	display: block;
	max-height: calc(4 * 1.35em);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.cc-js .cc-consent .wpcf7-list-item-label:not(.is-end) {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2em), rgba(0, 0, 0, 0.2));
	mask-image: linear-gradient(to bottom, #000 calc(100% - 2em), rgba(0, 0, 0, 0.2));
}

.cc-consent a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.cc-submit {
	position: relative;
}

.cc-modal .wpcf7-submit.cc-btn {
	width: 100%;
	min-height: 42px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--cc-red) url('../images/clases-ciudadania/icon-chevron.svg') right 24px center / 24px no-repeat;
	font-family: var(--cc-font-ui);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	box-shadow: none;
}

.cc-modal .wpcf7-submit.cc-btn:hover,
.cc-modal .wpcf7-submit.cc-btn:focus-visible {
	background-color: var(--cc-red-dark);
	transform: none;
	box-shadow: none;
}

.cc-modal .wpcf7-spinner {
	position: absolute;
	left: 12px;
	right: auto;
	bottom: 9px;
	margin: 0;
}

.cc-modal .wpcf7 form .wpcf7-response-output {
	margin: 0 !important;
	padding: 12px 16px !important;
	border-color: rgba(255, 255, 255, 0.6) !important;
	font-size: 14px !important;
	line-height: 1.4;
}

.cc-modal .cc-empty {
	margin-top: 24px;
}

/* --- Video --- */
.cc-player {
	width: min(calc(100% - 32px), calc((100dvh - 96px) * 9 / 16), 480px);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}

.cc-player__frame {
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 24px;
	background: #000;
}

.cc-player__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.cc-player .cc-modal__close {
	top: -21px;
	right: -10px;
}

/* =========================================
   MÓVIL Y TABLET (Figma 402)
   ========================================= */
@media (max-width: 1199.98px) {
	.cc-btn {
		padding-inline: 24px;
	}

	/* --- Hero: foto arriba, texto abajo sobre el azul --- */
	.cc-hero {
		height: auto;
		padding: calc(513 * var(--m)) 24px 68px;
		background: var(--cc-blue);
	}

	/* 1114×627 en 402px, con el centro 141.5px a la izquierda; en pantallas anchas crece para cubrir el ancho. */
	.cc-hero__bg {
		left: calc(50% - 141.5px);
		top: 0;
		width: max(1114px, calc(100vw + 283px));
		height: auto;
		transform: translateX(-50%);
	}

	.cc-hero::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(to bottom, rgba(8, 70, 108, 0) 275px, var(--cc-blue) 566px);
	}

	.cc-hero__photo {
		z-index: 2;
		left: calc(50% + 8 * var(--m));
		top: calc(108.7 * var(--m));
		width: calc(414 * var(--m));
		height: calc(444 * var(--m));
		transform: translateX(-50%);
		-webkit-mask-image: linear-gradient(to bottom, #000 73.15%, transparent 94.4%);
		mask-image: linear-gradient(to bottom, #000 73.15%, transparent 94.4%);
	}

	.cc-hero__content {
		z-index: 3;
		width: min(100%, 480px);
		margin-inline: auto;
		gap: 0;
		position: static;
	}

	.cc-hero__logo {
		position: absolute;
		z-index: 3;
		left: 50%;
		top: calc(19 * var(--m));
		width: calc(325 * var(--m));
		height: calc(110 * var(--m));
		transform: translateX(-50%);
	}

	.cc-hero__text {
		position: relative;
		z-index: 3;
		align-items: stretch;
		gap: 24px;
		width: 100%;
	}

	.cc-hero__title {
		font-size: min(40px, calc((100vw - 48px) * 0.113)); /* 40px en 402; más angosto, la línea larga cabe completa */
		line-height: 1.2;
	}

	.cc-hero__sub {
		font-size: 18px;
		line-height: 20px;
	}

	.cc-btn--l {
		min-height: 50px;
	}

	.cc-flag {
		height: 16px;
	}

	.cc-flag img {
		left: 50%;
		top: -1px;
		width: max(878px, 100vw);
		height: 18px;
		object-fit: cover;
		transform: translateX(-50%);
	}

	/* --- Calendario --- */
	.cc-calendar {
		padding: 0 12px 28px;
	}

	.cc-paper {
		display: none;
	}

	.cc-calendar__inner {
		gap: 12px;
		max-width: 780px;
		margin-inline: auto;
		padding: 0 0 80px;
	}

	.cc-calendar__header {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px 12px;
	}

	.cc-calendar__icon {
		align-self: center;
		width: 128px;
		height: 128px;
	}

	.cc-calendar__title {
		font-size: 34px;
		line-height: 40px;
	}

	.cc-tabs {
		gap: 8px;
		margin-bottom: 0;
	}

	.cc-tab {
		flex-direction: column;
		align-items: center;
		min-height: 56px;
		padding: 8px 4px;
		border-radius: 16px;
		font-size: 16px;
	}

	.cc-classes {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, max(136px, calc((100% - 36px) / 4))), 1fr));
		gap: 12px;
	}

	.cc-class {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 24px 12px;
		border-radius: 24px;
	}

	.cc-info {
		flex: 0 0 auto;
		min-height: 35px;
	}

	.cc-info__icon {
		width: 34px;
		height: 34px;
	}

	.cc-info__icon img {
		width: 24px;
		height: 24px;
	}

	.cc-info__main {
		font-weight: 400;
		font-size: 16px;
		line-height: 20px;
	}

	.cc-info__sub {
		font-size: 14px;
		line-height: 20px;
	}

	.cc-class__btn {
		min-width: 0;
		margin-top: auto;
		padding-inline: 8px;
	}

	.cc-offices {
		margin-top: 12px;
		padding: 24px 12px;
		border-radius: 24px;
	}

	.cc-offices__title {
		margin-bottom: 16px !important;
	}

	.cc-offices__list {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
		gap: 16px;
	}

	/* --- Videos --- */
	.cc-videos {
		gap: 24px;
		max-width: 780px;
		margin-inline: auto;
		padding-top: 0;
	}

	.cc-videos__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		width: 100%;
	}

	.cc-videos__list li:nth-child(3) {
		grid-column: 1 / -1;
	}

	.cc-video {
		width: 100%;
		height: 274.5px;
	}

	.cc-videos .cc-btn {
		width: 100%;
		max-width: 480px;
	}

	/* --- Cierre --- */
	.cc-cta {
		flex-direction: column;
		justify-content: flex-end;
		height: auto;
		padding: calc(471 * var(--m)) 24px 68px;
	}

	.cc-cta__photo {
		left: calc(50% - 18 * var(--m));
		top: calc(48.5 * var(--m));
		width: calc(420 * var(--m));
		height: calc(491.4 * var(--m));
		transform: translateX(-50%);
		-webkit-mask-image: linear-gradient(to bottom, #000 54%, transparent 89%);
		mask-image: linear-gradient(to bottom, #000 54%, transparent 89%);
	}

	.cc-cta__photo img {
		position: static;
		width: 100%;
		height: 100%;
	}

	.cc-cta__content {
		align-items: stretch;
		gap: 24px;
		width: min(100%, 480px);
	}

	.cc-cta__title {
		color: #0b0d0e;
		font-size: min(48px, 11vw); /* 48px con el "¿" se parte en 3 líneas */
		line-height: 0.92;
	}

	.cc-cta__text {
		font-size: 18px;
		line-height: 20px;
	}
}

@media (min-width: 600px) and (max-width: 1199.98px) {
	.cc-videos__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cc-videos__list li:nth-child(3) {
		grid-column: auto;
	}

	.cc-video {
		height: auto;
		aspect-ratio: 280 / 357;
	}
}

/* Una clase por fila, con sus datos en 2 columnas: en pantallas de 320px no caben dos tarjetas juntas. */
@media (max-width: 339.98px) {
	.cc-classes {
		grid-template-columns: minmax(0, 1fr);
	}

	.cc-class {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cc-class .cc-class__btn {
		grid-column: 1 / -1;
	}
}

/* Número impar de clases en 2 columnas: la última ocupa todo el ancho, con sus datos en 2 columnas (sin contar las
   filas ocultas porque ya empezaron). */
@media (min-width: 340px) and (max-width: 599.98px) {
	.cc-class:nth-child(odd of :not([hidden])):nth-last-child(1 of :not([hidden])) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
	}

	.cc-class:nth-child(odd of :not([hidden])):nth-last-child(1 of :not([hidden])) .cc-class__btn {
		grid-column: 1 / -1;
	}
}

/* Modal en una columna (Figma móvil: logo, texto y formulario). */
@media (max-width: 859.98px) {
	.cc-modal {
		width: min(498px, calc(100% - 16px));
		max-height: calc(100dvh - 16px);
	}

	.cc-modal__card {
		grid-template-columns: minmax(0, 1fr);
	}

	.cc-modal__media {
		display: none;
	}

	.cc-modal__panel {
		padding: 56px 24px 40px;
	}

	.cc-modal__logo.cc-modal__logo--panel {
		display: block;
		position: static;
		width: min(306px, 100%);
		margin-bottom: 12px;
		transform: none;
	}

	.cc-modal__title {
		padding-right: 0;
	}

	.cc-modal__text {
		display: block;
		margin-top: 8px !important;
		font-family: var(--cc-font-ui);
		font-size: 16px;
		line-height: 1.5;
		text-wrap: balance;
	}

	.cc-modal__required {
		margin-top: 12px !important;
	}

	.cc-modal__close {
		top: 8px;
		right: 8px;
	}

	.cc-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.cc-field {
		grid-column: 1 / -1;
	}

	.cc-field__label {
		margin-bottom: 12px;
	}
}

@media (max-width: 359.98px) {
	.cc-class__btn {
		gap: 4px;
		font-size: 15px;
	}

	.cc-tab {
		padding-inline: 0;
		font-size: 15px;
	}

	.cc-tab__months {
		font-size: 13px;
	}

	.cc .cc-modal .cc-field select.wpcf7-form-control {
		padding-left: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc *,
	.cc *::before,
	.cc *::after {
		transition: none !important;
	}
}
