/* =========================================================================
   ATA Insights — sistema de diseño
   Tokens con CSS custom properties. Tema claro único (sin modo oscuro).
   ========================================================================= */

:root {
	--accent: #ff4a00;
	--accent-hover: #e64300;
	--accent-contrast: #ffffff;

	--radius: 12px;
	--radius-sm: 8px;
	--maxw: 1400px;
	--gap: 1.5rem;

	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	--transition: 180ms ease;
}

/* Tema claro: único tema del sitio (se retiró el conmutador claro/oscuro). */
:root {
	color-scheme: light;
	--bg: #f7f7f8;
	--bg-elev: #ffffff;
	--bg-elev-2: #f0f0f2;
	--text: #16161a;
	--text-muted: #6b6b76;
	--border: #e2e2e6;
	--overlay: rgba(0, 0, 0, 0.45);
	--shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background var(--transition), color var(--transition);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.5em;
}

/* ---------- Layout ---------- */
.site-main {
	min-height: 60vh;
}

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.section {
	padding: 3rem 0;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.4rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
}

.site-brand__logo {
	height: 62px;
	width: auto;
	display: block;
}

.site-brand--footer .site-brand__logo {
	height: 68px;
}

.site-header__collapse {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}

.site-nav {
	display: flex;
	gap: 1.25rem;
	font-weight: 500;
}

.site-nav a {
	color: var(--text-muted);
	transition: color var(--transition);
}

.site-nav a:hover {
	color: var(--text);
}

/* ---------- Botón hamburguesa (solo responsive) ---------- */
.nav-toggle {
	display: none;
	margin-left: auto;
	padding: 0.5rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	cursor: pointer;
	line-height: 0;
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 22px;
	height: 16px;
}

.nav-toggle__bars span {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

@media (max-width: 900px) {
	.site-header__inner {
		gap: 1rem;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-header__collapse {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1.25rem;
		margin: 0;
		padding: 1.25rem;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
	}

	.site-header__collapse.is-open {
		display: flex;
	}

	.site-header__collapse .site-nav,
	.site-header__collapse .site-nav__list {
		flex-direction: column;
		gap: 0.25rem;
		width: 100%;
	}

	.site-header__collapse .site-nav__list a {
		display: block;
		padding: 0.6rem 0;
	}

	.site-header__collapse .search-form--compact {
		display: flex;
		max-width: 100%;
	}

	.site-header__collapse .lang-switch {
		align-self: flex-start;
	}
}

/* ---------- Botones ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background var(--transition), transform var(--transition);
}

.btn--primary {
	background: var(--accent);
	color: var(--accent-contrast);
}

.btn--primary:hover {
	background: var(--accent-hover);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: var(--accent);
}

/* ---------- Badges / pills ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.badge--proximo {
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent);
}

.badge--publicado {
	background: color-mix(in srgb, #22c55e 18%, transparent);
	color: #22c55e;
}

/* ---------- Page header ---------- */
.page-head {
	padding: 3rem 0 1.5rem;
}

.page-head h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	letter-spacing: -0.02em;
}

.page-head p {
	color: var(--text-muted);
	max-width: 60ch;
}

/* ---------- Grid de tarjetas (VOD) ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--gap);
	padding-bottom: 3rem;
}

/* Parrilla compacta de ponentes (páginas de empresa): fotos al tamaño de la
   foto del perfil de ponente (~165px) y más columnas por fila. */
.card-grid--ponentes {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1.25rem;
}

/* Archivo de ponentes: 6 columnas en escritorio para que las fotos se vean más
   pequeñas (menos pixeladas). Con posts_per_page=24 las filas quedan completas
   en todos los tamaños (24 es múltiplo de 6, 4, 3 y 2). */
.card-grid--ponentes-archivo {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 1100px) {
	.card-grid--ponentes-archivo {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.card-grid--ponentes-archivo {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.card-grid--ponentes-archivo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.card {
	position: relative;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
	display: flex;
	flex-direction: column;
}

/* Enlace estirado: cubre toda la tarjeta de forma invisible (queda por debajo
   del velo, que lleva z-index mayor, para que el botón de Mi lista sea
   clicable). El resto del velo deja pasar el clic al enlace (pointer-events). */
.card__stretch {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.card__link {
	position: relative;
	display: block;
	height: 100%;
}

.card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--bg-elev-2);
	overflow: hidden;
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
}

.card:hover .card__thumb img {
	transform: scale(1.05);
}

.card__thumb-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: var(--text-muted);
	background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
}

/* Velo con el texto del webinar: aparece al pasar el ratón.
   En pantallas sin hover (táctiles) se muestra siempre — ver más abajo. */
.card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 1.1rem;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.15) 100%);
	opacity: 0;
	transition: opacity var(--transition);
	/* Por encima del enlace estirado, pero dejando pasar el clic salvo en el
	   botón de Mi lista (que reactiva pointer-events). */
	z-index: 2;
	pointer-events: none;
}

.card:hover .card__overlay,
.card:focus-within .card__overlay {
	opacity: 1;
}

.card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.card__chip {
	padding: 0.2rem 0.55rem;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 500;
	backdrop-filter: blur(4px);
}

.card__overlay .card__title {
	color: #fff;
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0;
}

.card__cta {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.1rem;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 0.85rem;
	font-weight: 600;
}

/* Fila del CTA + botón circular «Mi lista». */
.card__cta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	width: 100%;
}

/* El botón de Mi lista sí recibe clics (el resto del velo los deja pasar). */
.card__save {
	pointer-events: auto;
	flex: 0 0 auto;
}

/* Sin hover disponible: el texto va siempre visible, si no las tarjetas
   serían imágenes mudas en móvil. */
@media (hover: none) {
	.card__overlay {
		opacity: 1;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
	}
}

/* Variante con título fijo bajo la imagen (archivo de webinars). El velo con
   categorías + CTA sigue apareciendo al pasar el ratón sobre la miniatura. */
.card--titulo .card__link {
	display: flex;
	flex-direction: column;
}

.card--titulo .card__caption {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.85rem 1rem 1rem;
}

.card--titulo .card__caption-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--text);
	/* Recorta a 2 líneas para que todas las cajas queden a la misma altura. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card--titulo .card__caption-date {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.card__body {
	padding: 1rem 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.card__title {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.card__meta {
	color: var(--text-muted);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
}

.card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

/* Tarjeta compacta para ponentes/empresas */
.card--person .card__thumb {
	aspect-ratio: 1 / 1;
}

/* Tarjeta de ponente: proporción vertical (3:4) recortando al centro.
   Las de empresa siguen cuadradas (regla de arriba). */
.card--ponente .card__thumb {
	aspect-ratio: 3 / 4;
}

.card--ponente .card__thumb img {
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.card--ponente .card__thumb:not(:has(img)) {
	aspect-ratio: 3 / 4;
}

.card--person .card__title {
	text-align: center;
}

.card--person .card__meta {
	justify-content: center;
}

/* ---------- Single webinar ---------- */
.webinar-hero {
	position: relative;
	padding: 3rem 0;
	border-bottom: 1px solid var(--border);
}

.webinar-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
	gap: 3rem;
	align-items: start;
}

.webinar-hero__grid--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 820px;
}

@media (max-width: 900px) {
	.webinar-hero__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.webinar-player {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
}

.webinar-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* Vídeo a ancho completo en la página de materiales (ocupa ambas columnas). */
.webinar-player--full {
	margin-bottom: 2.5rem;
}

.webinar-poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.webinar-title {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

/* Línea de fecha/hora + duración */
.webinar-when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-muted);
	font-size: 1rem;
	margin: 0 0 2rem;
}

.webinar-when__fecha {
	color: var(--text);
	font-weight: 600;
}

.webinar-when__local {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.webinar-when__local:hover {
	text-decoration: underline;
}

.webinar-when__local[data-shown] {
	cursor: default;
	color: var(--text-muted);
	font-weight: 400;
}

.webinar-when__sep {
	opacity: 0.4;
}

/* Bloques del cuerpo del webinar */
.webinar-block {
	margin-top: 2.5rem;
}

.webinar-block__title {
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	margin-bottom: 1.1rem;
}

/* Ponentes (fotos grandes) */
.speakers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1.5rem;
}

.speaker-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.speaker-card__photo {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-elev-2);
}

/* Proporción vertical (tarjeta de ponente), recortando al centro. */
.speaker-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform var(--transition);
}

.speaker-card:hover .speaker-card__photo img {
	transform: scale(1.04);
}

/* Sin foto: caja con proporción de tarjeta para el marcador de posición. */
.speaker-card__photo:not(:has(img)) {
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
}

.speaker-card__inicial {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--text-muted);
}

.speaker-card__name {
	font-weight: 700;
	font-size: 1rem;
	margin-top: 0.8rem;
}

.speaker-card__role {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-top: 0.2rem;
	line-height: 1.35;
}

/* Patrocinadores */
.sponsors-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
}

.sponsor-logo img {
	max-height: 64px;
	max-width: 240px;
	width: auto;
	object-fit: contain;
}

.sponsor-logo span {
	font-weight: 700;
	font-size: 1.2rem;
}

/* Hosted by */
.hostedby-logo {
	display: inline-flex;
}

.hostedby-logo img {
	max-height: 64px;
	max-width: 240px;
	width: auto;
	object-fit: contain;
}

.hostedby-logo span {
	font-weight: 700;
	font-size: 1.2rem;
}

/* Compartir */
.share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-elev);
	color: var(--text);
	cursor: pointer;
	transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.share-btn:hover {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
}

.share-btn[data-copied] {
	color: #fff;
	background: #1a8f4c;
	border-color: #1a8f4c;
}

/* Gating: checkbox de aceptación */
.gate {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	margin: 1.5rem 0;
}

.gate__label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	cursor: pointer;
	font-size: 0.95rem;
}

.gate__label input {
	margin-top: 0.25rem;
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
	flex-shrink: 0;
}

.gate-hidden {
	display: none;
}

/* Countdown (próximo) */
.countdown {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 1.5rem;
}

.countdown__unit {
	flex: 1 1 0;
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 0.7rem 0.4rem;
	text-align: center;
	min-width: 60px;
}

.countdown__num {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.countdown__label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

/* Columna derecha: toda la columna (formulario/banner + logos) es un único
   bloque sticky, así el panel nunca pisa a los logos de hosted by /
   patrocinadores que van debajo al hacer scroll. */
.webinar-aside {
	position: sticky;
	top: 90px;
	align-self: start;
}

@media (max-width: 900px) {
	.webinar-aside {
		position: static;
	}
}

.webinar-aside__panel {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
}

/* El embed de ActiveCampaign trae su propio estilo; que no desborde. */
.ac-form form,
.ac-form ._form {
	max-width: 100%;
}

.ac-form img {
	max-width: 100%;
	height: auto;
}

/* Panel de acceso a materiales (webinar publicado) */
.acceso-materiales__title {
	font-size: 1.15rem;
	margin: 0 0 1rem;
}

.acceso-materiales__check {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.acceso-materiales__check input {
	margin-top: 0.2rem;
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
	flex-shrink: 0;
}

.acceso-materiales__btn {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 1.25rem;
}

.acceso-materiales__btn[hidden] {
	display: none;
}

/* Botones de descarga en la página de materiales */
/* Botones de descarga de materiales: flotantes fijos en la esquina inferior
   izquierda, siempre visibles al hacer scroll en la página de materiales. */
.materials-download {
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
	max-width: min(340px, calc(100vw - 2.5rem));
	max-height: calc(100vh - 2.5rem);
	overflow-y: auto;
}

.materials-download .btn {
	max-width: 100%;
	text-align: left;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

@media (max-width: 600px) {
	.materials-download {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		max-width: none;
	}
}

/* Banner promocional (columna derecha de materiales). El sticky lo aporta
   ahora el contenedor .webinar-aside completo. */
.promo-banner img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	display: block;
}

/* Materiales */
.materials {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: grid;
	gap: 0.6rem;
}

.materials li a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1rem;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: border-color var(--transition);
}

.materials li a:hover {
	border-color: var(--accent);
}

/* Sidebar de ponentes/empresas en el single */
.webinar-aside h3 {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

.person-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0;
}

.person-row__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bg-elev-2);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-weight: 700;
}

.person-row__name {
	font-weight: 600;
	font-size: 0.95rem;
}

.person-row__role {
	font-size: 0.82rem;
	color: var(--text-muted);
}

.aside-block {
	margin-bottom: 2rem;
}

/* ---------- Perfil (ponente / empresa) ---------- */
.profile-head {
	display: flex;
	gap: 2rem;
	align-items: center;
	padding: 3rem 0;
	flex-wrap: wrap;
}

.profile-avatar {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bg-elev-2);
	border: 3px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: var(--text-muted);
	flex-shrink: 0;
}

/* Perfil de ponente: imagen vertical (3:4), no redonda. */
.profile-avatar--ponente {
	width: 165px;
	height: auto;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	object-fit: cover;
	object-position: top center;
}

.profile-avatar--company {
	border-radius: var(--radius);
	object-fit: contain;
	background: var(--bg-elev);
	padding: 1rem;
}

.profile-info h1 {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.profile-role {
	color: var(--accent);
	font-weight: 600;
}

.profile-bio {
	color: var(--text-muted);
	max-width: 60ch;
	margin-top: 0.75rem;
}

.section-title {
	font-size: 1.4rem;
	margin: 1rem 0 1.5rem;
	letter-spacing: -0.01em;
}

/* ---------- Content (wysiwyg) ---------- */
.rte {
	line-height: 1.7;
}

.rte p {
	margin: 0 0 1rem;
}

/* ---------- Empty state ---------- */
.empty {
	text-align: center;
	padding: 4rem 1rem;
	color: var(--text-muted);
}

/* =========================================================================
   PORTADA
   ========================================================================= */

/* ---------- Hero rotatorio ---------- */
.hero {
	position: relative;
	background: #000;
}

.hero__slides {
	position: relative;
}

.hero__slide {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(420px, 52vw, 560px);
	overflow: hidden;
}

.hero__slide[hidden] {
	display: none;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__velo {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.25) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero__contenido {
	position: relative;
	width: 100%;
	max-width: var(--maxw);
	color: #fff;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.hero__titulo {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	max-width: 22ch;
	margin-bottom: 0.75rem;
	color: #fff;
}

.hero__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.hero__fecha {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.32rem 0.85rem;
	border-radius: 999px;
}

.hero__dur {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
}

.hero__desc {
	max-width: 52ch;
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.88);
}

.hero__linea {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.88);
}

.hero__etiqueta {
	color: var(--accent);
	font-weight: 600;
}

.hero__speaker {
	color: #fff;
	text-decoration: none;
}

.hero__speaker:hover {
	color: var(--accent);
	text-decoration: underline;
}

.hero__cta {
	margin-top: 1.25rem;
}

/* Miniaturas del rotador */
.hero__nav {
	position: absolute;
	right: 0;
	bottom: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	max-width: min(60vw, 620px);
}

.hero__minis {
	display: flex;
	gap: 0.75rem;
	overflow: hidden;
	padding: 0.25rem;
	/* Solo 2 miniaturas visibles; el resto se navega con las flechas. */
	width: calc(240px * 2 + 0.75rem + 0.5rem);
	max-width: 100%;
	scroll-behavior: smooth;
}

.hero__mini {
	position: relative;
	flex: 0 0 auto;
	width: 240px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #000;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity var(--transition), border-color var(--transition);
}

.hero__mini img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hero__mini.is-active,
.hero__mini:hover {
	opacity: 1;
	border-color: var(--accent);
}

.hero__mini-info {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0.6rem;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
	text-align: left;
}

.hero__mini-titulo {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
}

.hero__mini-dur {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.7rem;
}

.hero__flechas {
	display: flex;
	gap: 0.35rem;
	padding-right: 0.25rem;
}

.hero__flecha {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}

.hero__flecha:hover {
	background: var(--accent);
	border-color: var(--accent);
}

@media (max-width: 900px) {
	.hero__nav {
		display: none;
	}

	.hero__velo {
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.45) 100%);
	}
}

/* ---------- Faldón de patrocinador ---------- */
.patrocinador {
	background: var(--bg-elev-2);
	border-bottom: 1px solid var(--border);
}

.patrocinador__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.patrocinador__texto {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
}

.patrocinador__logo img {
	max-height: 60px;
	width: auto;
	border-radius: var(--radius-sm);
}

/* ---------- Accesos a categorías ---------- */
.cats {
	padding: 3rem 0 1rem;
}

.cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1rem;
}

.cat-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-elev-2);
	transition: transform var(--transition);
}

.cat-card:hover {
	transform: translateY(-3px);
}

.cat-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat-card__tinte {
	position: absolute;
	inset: 0;
	background: var(--cat-color, var(--accent));
	opacity: 0.55;
	mix-blend-mode: multiply;
	transition: opacity var(--transition);
}

.cat-card:hover .cat-card__tinte {
	opacity: 0.35;
}

.cat-card__nombre {
	position: relative;
	padding: 0 0.75rem;
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Carruseles ---------- */
.carrusel {
	padding: 2rem 0;
}

/* Grid en filas de 3 columnas (mismo ancho de tarjeta que el carrusel), para
   bloques que muestran todos sus items apilados en vez de en carrusel. */
.grid-webinars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 600px) {
	.grid-webinars {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.grid-webinars {
		grid-template-columns: repeat(3, 1fr);
	}
}

.carrusel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.carrusel__head h2 {
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	margin: 0;
}

.carrusel__todos {
	flex: 0 0 auto;
	color: var(--text-muted);
	font-size: 0.9rem;
	transition: color var(--transition);
}

.carrusel__todos:hover {
	color: var(--accent);
}

.carrusel__viewport {
	position: relative;
}

.carrusel__pista {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(300px, 1fr);
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
}

.carrusel__pista::-webkit-scrollbar {
	display: none;
}

.carrusel__pista > * {
	scroll-snap-align: start;
}

/* En pantallas anchas caben 3 tarjetas de webinar */
@media (min-width: 900px) {
	.carrusel__pista {
		grid-auto-columns: calc((100% - 3rem) / 3);
	}
}

.carrusel__pista--personas {
	grid-auto-columns: 150px;
	gap: 1rem;
}

@media (min-width: 900px) {
	.carrusel__pista--personas {
		grid-auto-columns: 150px;
	}
}

.carrusel__flecha {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	color: var(--text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background var(--transition), border-color var(--transition);
}

.carrusel__flecha:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.carrusel__flecha--prev {
	left: -18px;
}

.carrusel__flecha--next {
	right: -18px;
}

@media (max-width: 700px) {
	.carrusel__flecha {
		display: none;
	}
}

/* ---------- Ponente compacto ---------- */
.ponente-mini {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.ponente-mini__foto {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-elev-2);
	border: 1px solid var(--border);
	margin-bottom: 0.6rem;
	transition: border-color var(--transition);
}

.ponente-mini:hover .ponente-mini__foto {
	border-color: var(--accent);
}

.ponente-mini__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.ponente-mini__inicial {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-muted);
}

.ponente-mini__nombre {
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
}

.ponente-mini__empresa {
	font-size: 0.78rem;
	color: var(--text-muted);
}

/* ---------- Accesibilidad ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	white-space: normal;
}

/* ---------- Buscador ---------- */
.search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 32rem;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.65rem 1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-elev);
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	transition: border-color var(--transition);
}

.search-form__input::placeholder {
	color: var(--text-muted);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--accent);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 50%;
	border: 1px solid transparent;
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--transition);
}

.search-form__submit:hover {
	background: var(--accent-hover);
}

/* Variante compacta del header */
.search-form--compact {
	display: none;
	max-width: 15rem;
}

.search-form--compact .search-form__input {
	padding: 0.45rem 0.9rem;
	font-size: 0.9rem;
}

.search-form--compact .search-form__submit {
	width: 32px;
	height: 32px;
	font-size: 1rem;
}

@media (min-width: 900px) {
	.search-form--compact {
		display: flex;
	}
}

.page-head__search {
	margin-top: 1.5rem;
}

.page-head--center {
	text-align: center;
	padding-bottom: 3rem;
}

.page-head--center .page-head p,
.page-head--center p {
	margin-left: auto;
	margin-right: auto;
}

.page-head--center .search-form {
	margin: 1.5rem auto 0;
}

.error-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 2rem;
}

/* ---------- Contenido de páginas estáticas ---------- */
.container--narrow {
	max-width: 46rem;
}

.prose {
	padding-bottom: 4rem;
	color: var(--text);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 2em;
}

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.4rem;
}

.prose li + li {
	margin-top: 0.35em;
}

.prose blockquote {
	margin: 1.5em 0;
	padding: 0.5rem 0 0.5rem 1.25rem;
	border-left: 3px solid var(--accent);
	color: var(--text-muted);
	font-style: italic;
}

.prose img,
.page-thumb img {
	border-radius: var(--radius);
}

.page-thumb {
	margin-bottom: 2rem;
}

.prose code {
	padding: 0.15em 0.4em;
	border-radius: var(--radius-sm);
	background: var(--bg-elev-2);
	font-size: 0.9em;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

/* ---------- Tarjeta de texto (resultados sin imagen) ---------- */
.card--text .card__body {
	padding: 1.5rem;
}

.card__kicker {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
	margin-bottom: 0.4rem;
}

.card__excerpt {
	margin: 0.5rem 0 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* ---------- Área de usuario ---------- */
.cuenta-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-bottom: 2rem;
}

.cuenta-nav__salir {
	margin-left: auto;
}

.cuenta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--gap);
	padding-bottom: 3rem;
}

.cuenta-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1.75rem;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.cuenta-panel h2 {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin: 0;
}

.cuenta-panel__dato {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	margin: 0.25rem 0 0;
	color: var(--accent);
}

.cuenta-panel__titulo {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0.25rem 0 0;
}

.cuenta-panel__titulo a:hover {
	color: var(--accent);
}

.cuenta-panel__pie {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.cuenta-panel .btn {
	margin-top: 0.75rem;
}

.cuenta-seccion {
	padding-bottom: 2rem;
}

.cuenta-seccion h2 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

/* Formulario de acceso */
.login-card {
	padding: 2rem;
	margin-bottom: 4rem;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.login-card label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-muted);
}

.login-card input[type='text'],
.login-card input[type='password'] {
	width: 100%;
	padding: 0.7rem 1rem;
	margin-bottom: 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
	transition: border-color var(--transition);
}

.login-card input[type='text']:focus,
.login-card input[type='password']:focus {
	outline: none;
	border-color: var(--accent);
}

.login-card .login-remember {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.login-card .login-remember label {
	display: inline;
	margin: 0;
}

.login-card .login-submit input[type='submit'] {
	display: inline-flex;
	padding: 0.7rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-contrast);
	font-family: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background var(--transition);
}

.login-card .login-submit input[type='submit']:hover {
	background: var(--accent-hover);
}

.login-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 1.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	font-size: 0.9rem;
}

.login-card__links a {
	color: var(--text-muted);
	transition: color var(--transition);
}

.login-card__links a:hover {
	color: var(--accent);
}

/* ---------- Menús de navegación ---------- */
.site-nav__list {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: var(--text-muted);
	transition: color var(--transition);
}

.site-nav__list a:hover {
	color: var(--text);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-parent > a,
.site-nav__list .current_page_item > a {
	color: var(--text);
	font-weight: 600;
}

/* ---------- Filtros por taxonomía ---------- */
.filters {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0 0 2rem;
}

.filters__row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.filters__label {
	min-width: 7rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

.filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-elev);
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 500;
	transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.chip:hover {
	color: var(--text);
	border-color: var(--accent);
}

.chip--active {
	background: color-mix(in srgb, var(--accent) 15%, transparent);
	border-color: var(--accent);
	color: var(--accent);
}

.chip__count {
	font-size: 0.75rem;
	opacity: 0.7;
}

/* Chips-checkbox del filtro combinable */
.filters__chip {
	cursor: pointer;
	user-select: none;
}

.filters__chip input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* Estado marcado en vivo (navegadores con :has); el estado inicial ya viene
   con .chip--active desde PHP. */
.filters__chip:has(input:checked) {
	background: color-mix(in srgb, var(--accent) 15%, transparent);
	border-color: var(--accent);
	color: var(--accent);
}

.filters__chip:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.filters__actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

.filters__limpiar {
	color: var(--text-muted);
	font-size: 0.9rem;
	text-decoration: underline;
}

.filters__limpiar:hover {
	color: var(--accent);
}

@media (max-width: 640px) {
	.filters__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
	}

	.filters__label {
		min-width: 0;
	}
}

/* ---------- Page head ---------- */
.page-head__eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-bottom: 0.35rem;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	margin-top: 4rem;
}

.site-footer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 3rem 1.25rem 2rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 2.5rem 2rem;
	padding-bottom: 2.5rem;
}

.site-footer__marca {
	flex: 0 0 auto;
}

/* Menús, newsletter y redes: columnas iguales que se reparten el ancho. */
.site-footer__col {
	flex: 1 1 170px;
	min-width: 150px;
}

.site-footer__marca img {
	max-width: 160px;
	height: auto;
}

.site-footer__titulo {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 1rem;
}

.site-footer__lista {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__lista a {
	color: var(--text-muted);
	transition: color var(--transition);
}

.site-footer__lista a:hover {
	color: var(--accent);
}

.site-footer__aviso {
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--border);
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
}

.site-footer__news-btn {
	display: inline-flex;
}

.site-footer__redes {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.site-footer__red {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-elev);
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 700;
	transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.site-footer__red:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.site-footer__legal {
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
}

/* =========================================================================
   Página "Conoce ATA Insights" (about)
   ========================================================================= */
.about-section {
	padding: 3.5rem 0;
}

.section-kicker {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

/* Título de sección más grande en estas páginas (sobrescribe el base). */
.about h2.section-title,
.faq h2.section-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 0 0 1.5rem;
}

.section-title--center {
	text-align: center;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

/* Hero */
.about-hero {
	padding: 4rem 0 1rem;
	text-align: center;
}

.about-hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -0.02em;
}

/* Estadísticas */
.about-stats {
	padding: 2rem 0 1rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem 1.5rem;
}

.stat {
	text-align: center;
}

.stat__num {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 800;
	color: var(--accent);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.stat__label {
	margin-top: 0.5rem;
	color: var(--text-muted);
	font-size: 0.95rem;
}

@media (max-width: 720px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.75rem 1rem;
	}
}

/* Sobre nosotros: dos columnas (título | texto) */
.about-intro {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 3rem;
	align-items: start;
}

.about-intro__body p {
	color: var(--text-muted);
}

@media (max-width: 860px) {
	.about-intro {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* Cómo te pueden ayudar */
.about-help__intro {
	max-width: 46rem;
	margin: 0 auto 2.5rem;
	text-align: center;
	color: var(--text-muted);
}

.ventajas-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.ventaja {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem 1.5rem;
	text-align: center;
}

.ventaja__num {
	display: block;
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--accent);
	line-height: 1;
	margin-bottom: 0.75rem;
}

.ventaja__title {
	font-size: 1.05rem;
	margin: 0;
}

@media (max-width: 720px) {
	.ventajas-grid {
		grid-template-columns: 1fr;
	}
}

.about-cta {
	text-align: center;
}

/* Equipo */
.team-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
}

.team-card {
	text-align: center;
}

.team-card__photo {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-elev-2);
	margin-bottom: 1rem;
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__name {
	font-size: 1.05rem;
	margin: 0 0 0.25rem;
}

.team-card__role {
	font-size: 0.88rem;
	color: var(--text-muted);
	margin: 0 0 0.5rem;
	min-height: 2.4em;
}

.team-card__email {
	font-size: 0.85rem;
	color: var(--accent);
	word-break: break-word;
}

.team-card__email:hover {
	text-decoration: underline;
}

@media (max-width: 980px) {
	.team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 620px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.team-card__role {
		min-height: 0;
	}
}

/* Testimonios */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.testimonial {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.testimonial__quote {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--text);
	position: relative;
}

.testimonial__quote::before {
	content: "\201C";
	display: block;
	font-size: 2.5rem;
	line-height: 0.6;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

.testimonial__author {
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

.testimonial__role {
	font-weight: 700;
	font-size: 0.9rem;
}

.testimonial__company {
	font-size: 0.85rem;
	color: var(--text-muted);
}

@media (max-width: 860px) {
	.testimonials-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Página "FAQ"
   ========================================================================= */
.faq-hero {
	padding: 4rem 0 1rem;
	text-align: center;
}

.faq-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	letter-spacing: -0.02em;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.faq-item {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.4rem;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	list-style: none;
}

.faq-item__q::-webkit-details-marker {
	display: none;
}

.faq-item__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	background: var(--accent);
	transition: transform var(--transition);
}

.faq-item__icon::before {
	top: 8px;
	left: 0;
	width: 18px;
	height: 2px;
}

.faq-item__icon::after {
	top: 0;
	left: 8px;
	width: 2px;
	height: 18px;
}

.faq-item[open] .faq-item__icon::after {
	transform: scaleY(0);
}

.faq-item__q:hover {
	color: var(--accent);
}

.faq-item__a {
	padding: 0 1.4rem 1.4rem;
	color: var(--text-muted);
}

.faq-item__a p {
	margin: 0 0 0.85rem;
}

.faq-item__a p:last-child {
	margin-bottom: 0;
}

.faq-item__a a {
	color: var(--accent);
	text-decoration: underline;
}

.faq-item__a ol,
.faq-item__a ul {
	margin: 0 0 0.85rem;
	padding-left: 1.3rem;
}

.faq-item__a li {
	margin-bottom: 0.4rem;
}

/* =========================================================================
   Modal de acceso / registro
   Usa los tokens del theme: respeta claro/oscuro y sigue la estética del sitio.
   ========================================================================= */
.auth-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

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

.auth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(3px);
}

.auth-modal__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: min(940px, 100%);
	max-height: 92vh;
	overflow: auto;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.auth-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-elev);
	color: var(--text-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color var(--transition), border-color var(--transition);
}

.auth-modal__close:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Paneles */
.auth-login,
.auth-register {
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
}

.auth-login {
	background: var(--bg-elev);
}

/* La columna de registro se distingue con una elevación sutil. */
.auth-register {
	background: var(--bg-elev-2);
	border-left: 1px solid var(--border);
}

.auth-login__title,
.auth-register__title {
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	letter-spacing: -0.01em;
	margin: 0 0 1.75rem;
	color: var(--text);
}

/* Formularios */
.auth-form,
.auth-register__form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.auth-field > span {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.auth-field input,
.auth-field select {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	transition: border-color var(--transition);
}

.auth-field input:focus,
.auth-field select:focus {
	outline: none;
	border-color: var(--accent);
}

.auth-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.auth-check input {
	accent-color: var(--accent);
	width: 16px;
	height: 16px;
}

.auth-form__submit,
.auth-register__submit {
	align-self: stretch;
	justify-content: center;
	margin-top: 0.5rem;
}

.auth-login__lost {
	display: block;
	text-align: center;
	margin-top: 1.25rem;
	color: var(--text-muted);
	font-size: 0.9rem;
	text-decoration: none;
}

.auth-login__lost:hover {
	color: var(--accent);
	text-decoration: underline;
}

.auth-login__logo {
	margin-top: auto;
	padding-top: 2rem;
	text-align: center;
}

.auth-login__logo img {
	max-width: 170px;
	height: auto;
	margin: 0 auto;
}

/* Panel de registro: subtítulo bajo el título */
.auth-register__sub {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: -1.25rem 0 1.5rem;
}

.auth-register__nota {
	text-align: center;
	font-size: 0.82rem;
	color: var(--text-muted);
	margin: 0.5rem 0 0;
}

/* Mensaje de resultado del registro */
.auth-msg {
	padding: 0.75rem 0.9rem;
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	margin: 0;
	border: 1px solid var(--border);
	font-weight: 600;
}

.auth-msg--ok {
	color: #1a8f4c;
	border-color: #1a8f4c;
	background: color-mix(in srgb, #1a8f4c 12%, transparent);
}

.auth-msg--err {
	color: #d64027;
	border-color: #d64027;
	background: color-mix(in srgb, #d64027 12%, transparent);
}

/* Separación del mensaje de error de login respecto del formulario. */
.auth-login__msg,
.login-card .auth-msg {
	margin-bottom: 1.25rem;
}

/* Editor de perfil (front) */
.profile-form {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.profile-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 600px) {
	.profile-form__grid {
		grid-template-columns: 1fr;
	}
}

.profile-form .auth-field input[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.profile-form__pass {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem 1.5rem;
	margin: 0;
}

.profile-form__pass legend {
	font-weight: 700;
	padding: 0 0.5rem;
}

.profile-form__nota {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0 0 1rem;
}

.profile-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Honeypot antispam: fuera de pantalla pero presente para los bots. */
.auth-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 780px) {
	.auth-modal {
		padding: 0.75rem;
	}

	.auth-modal__dialog {
		grid-template-columns: 1fr;
	}

	.auth-register {
		border-left: 0;
		border-top: 1px solid var(--border);
	}

	.auth-login,
	.auth-register {
		padding: 2rem 1.5rem;
	}

	.auth-login__logo {
		padding-top: 1.5rem;
	}
}

/* =========================================================================
   Materiales de RENMAD
   ========================================================================= */

/* ---------- Registro ---------- */
.renmad-registro {
	padding: 2rem 0 3rem;
}

/* Banda superior: logo del evento + host/co-host + botones, en una fila. */
.renmad-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem 2.5rem;
	padding-bottom: 1.75rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--border);
}

.renmad-band__brand {
	flex: 0 1 auto;
	min-width: 0;
}

.renmad-band__logo {
	max-width: 300px;
}

.renmad-band__logo img {
	width: 100%;
	height: auto;
}

.renmad-band__title {
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	margin: 0;
}

.renmad-band__sub {
	margin: 0.5rem 0 0;
	color: var(--text-muted);
}

.renmad-band__orgs {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.75rem;
}

.renmad-org {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.renmad-org__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.renmad-org__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	background: #fff;
	border-radius: var(--radius-sm);
	padding: 0.35rem 0.75rem;
}

.renmad-org__logo img {
	max-height: 42px;
	width: auto;
	object-fit: contain;
}

.renmad-band__cta {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-left: auto;
}

.renmad-band__cta .btn {
	white-space: nowrap;
	justify-content: center;
	text-align: center;
}

/* Niveles de patrocinadores: cada nivel en una fila (etiqueta | logos). */
.renmad-tiers {
	display: flex;
	flex-direction: column;
}

.renmad-tier {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem 1.75rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border);
}

.renmad-tier:first-child {
	padding-top: 0;
}

.renmad-tier:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.renmad-tier__label {
	margin: 0;
	text-align: right;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	line-height: 1.3;
}

.renmad-tier__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.85rem 1.5rem;
}

.renmad-tier__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: var(--radius-sm);
	padding: 0.5rem 1rem;
	box-sizing: border-box;
}

/* El logo RELLENA la altura del nivel (no solo la tapa), con tope de ancho para
   que los logos muy apaisados no dominen. Así el escalón entre niveles se ve. */
.renmad-tier__logo img {
	height: 100%;
	width: auto;
	max-width: 230px;
	object-fit: contain;
}

/* Altura por importancia del nivel (platinum > gold > silver > bronce > otros) */
.renmad-tier--platinum .renmad-tier__logo { height: 100px; }
.renmad-tier--gold     .renmad-tier__logo { height: 80px; }
.renmad-tier--silver   .renmad-tier__logo { height: 62px; }
.renmad-tier--bronce   .renmad-tier__logo { height: 48px; }
.renmad-tier--otros    .renmad-tier__logo { height: 38px; }
/* Knowledge / Media Partners: categoría aparte, tamaño modesto */
.renmad-tier--knowledge .renmad-tier__logo { height: 44px; }
.renmad-tier--media     .renmad-tier__logo { height: 44px; }

@media (max-width: 640px) {
	.renmad-band__cta {
		margin-left: 0;
		width: 100%;
	}

	.renmad-tier {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.renmad-tier__label {
		text-align: left;
	}
}

/* ---------- Presentaciones ---------- */
.renmad-presentaciones {
	padding: 2rem 0 4rem;
}

.renmad-presenta-head {
	margin-bottom: 2rem;
}

.renmad-volver {
	display: inline-block;
	margin-bottom: 0.75rem;
	color: var(--text-muted);
	font-size: 0.9rem;
	transition: color var(--transition);
}

.renmad-volver:hover {
	color: var(--accent);
}

.renmad-presenta-title {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	margin: 0 0 0.25rem;
}

.renmad-presenta-sub {
	margin: 0;
	color: var(--text-muted);
}

.renmad-bloqueo {
	max-width: 640px;
	margin: 2rem auto;
	padding: 2.5rem 2rem;
	text-align: center;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.renmad-bloqueo__msg {
	margin: 0 0 1.5rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.renmad-bloqueo .renmad-band__cta {
	justify-content: center;
}

.renmad-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 2.5rem;
	/* La columna del índice se estira a la altura del contenido para que el
	   índice sticky tenga recorrido durante todo el scroll. */
	align-items: stretch;
}

@media (max-width: 900px) {
	.renmad-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* Índice lateral */
.renmad-side__inner {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-height: calc(100vh - 110px);
	overflow: auto;
}

@media (max-width: 900px) {
	.renmad-side__inner {
		position: static;
		max-height: none;
	}
}

.renmad-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--border);
}

.renmad-toc__item a {
	display: block;
	padding: 0.4rem 0 0.4rem 1rem;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.35;
	transition: color var(--transition), border-color var(--transition);
}

.renmad-toc__item a:hover {
	color: var(--text);
}

.renmad-toc__item.is-active a {
	color: var(--accent);
	border-left-color: var(--accent);
	font-weight: 600;
}

.renmad-toc__item--dia a {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	color: var(--text);
	margin-top: 0.5rem;
}

.renmad-toc__item--bloque a {
	font-weight: 600;
	color: var(--text);
	padding-left: 1rem;
}

.renmad-toc__item--pon a {
	padding-left: 1.75rem;
}

.renmad-descarga {
	justify-content: center;
	text-align: center;
}

/* Contenido */
.renmad-content {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	min-width: 0;
}

.renmad-dia {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 1rem 0 0;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--accent);
	scroll-margin-top: 90px;
}

.renmad-bloque {
	font-size: 1.15rem;
	color: var(--accent);
	margin: 0.5rem 0 0;
	scroll-margin-top: 90px;
}

.renmad-pon {
	scroll-margin-top: 90px;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--border);
}

.renmad-pon__title {
	font-size: 1.3rem;
	margin: 0 0 0.75rem;
}

.renmad-pon__text {
	margin-bottom: 1rem;
}

.renmad-pon__speakers {
	margin-bottom: 1.25rem;
	color: var(--text-muted);
}

.renmad-pon__speakers p {
	margin: 0.15rem 0;
}

.renmad-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.renmad-player iframe,
.renmad-player :where(iframe, video, embed) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Audio: sin caja 16:9 ni fondo negro; el reproductor a lo ancho. */
.renmad-player--audio {
	aspect-ratio: auto;
	background: transparent;
	overflow: visible;
	border-radius: 0;
}

.renmad-audio {
	display: block;
	width: 100%;
}

.renmad-player__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
}

.renmad-pon__pdf {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.renmad-pdf {
	width: 100%;
	height: 560px;
	overflow-y: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-elev-2);
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.renmad-pdf__page {
	width: 100%;
	max-width: 900px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.renmad-pdf__status,
.renmad-pdf__fallback {
	margin: auto;
	color: var(--text-muted);
	font-size: 0.9rem;
}

@media (max-width: 600px) {
	.renmad-pdf {
		height: 400px;
	}
}

.renmad-pon__pdf-link {
	align-self: flex-start;
	color: var(--text-muted);
	font-size: 0.9rem;
	transition: color var(--transition);
}

.renmad-pon__pdf-link:hover {
	color: var(--accent);
}

/* ---------- Tarjeta y archivo de materiales RENMAD ---------- */
/* Cuando la caja usa el logo (no una portada), se muestra contenido sobre fondo
   claro para que no se recorte. */
.card__thumb--logo {
	background: #fff;
}

.card__thumb--logo img {
	object-fit: contain;
	padding: 1.5rem;
}

.renmad-archive__grupo {
	margin-bottom: 2.5rem;
}

.renmad-archive__year {
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	margin: 0 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--accent);
}

/* ---------- Selector de idioma (ES | EN) ---------- */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.15rem;
	flex: 0 0 auto;
}

.lang-switch__opt {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 0.3rem 0.5rem;
	border-radius: 999px;
	color: var(--text-muted);
	transition: color var(--transition), background var(--transition);
}

.lang-switch__opt:hover {
	color: var(--text);
}

.lang-switch__opt.is-active {
	background: var(--accent);
	color: var(--accent-contrast);
}

/* ---------- «Mi lista» (watchlist) ---------- */
.webinar-actions {
	margin: 0.25rem 0 1.5rem;
}

.mi-lista-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.15rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--bg-elev);
	color: var(--text);
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.mi-lista-btn:hover {
	border-color: var(--accent);
}

.mi-lista-btn__icon {
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1;
}

.mi-lista-btn.is-in {
	border-color: var(--accent);
	color: var(--accent);
}

/* Variante compacta bajo las tarjetas de la lista. */
.mi-lista-btn--compact {
	width: 100%;
	justify-content: center;
	padding: 0.45rem 0.75rem;
	font-size: 0.85rem;
}

.mi-lista-item {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

/* Botón circular «Mi lista» sobre la imagen de la tarjeta. En reposo es un
   círculo con solo el icono; al pasar el ratón se expande en píldora y muestra
   la etiqueta a la derecha del icono. */
.mi-lista-btn--circular {
	width: auto;
	min-width: 40px;
	height: 40px;
	padding: 0;
	gap: 0;
	border-radius: 999px;
	justify-content: center;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.55);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
	backdrop-filter: blur(4px);
	transition: border-color var(--transition), background var(--transition),
		color var(--transition), padding var(--transition), box-shadow var(--transition);
}

.mi-lista-btn--circular:hover,
.mi-lista-btn--circular:focus-visible {
	background: rgba(0, 0, 0, 0.82);
	border-color: #fff;
	padding: 0 0.9rem 0 0.55rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Estado «en la lista»: se mantiene el acento naranja al expandirse. */
.mi-lista-btn--circular.is-in:hover,
.mi-lista-btn--circular.is-in:focus-visible {
	background: var(--accent);
	border-color: var(--accent);
}

.mi-lista-btn--circular.is-in {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
}

.mi-lista-btn--circular .mi-lista-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	flex: 0 0 auto;
}

.mi-lista-icon {
	display: block;
}

/* Alterna + / ✓ según el estado, sin tocar el DOM desde JS. */
.mi-lista-btn--circular .mi-lista-icon--check {
	display: none;
}

.mi-lista-btn--circular.is-in .mi-lista-icon--plus {
	display: none;
}

.mi-lista-btn--circular.is-in .mi-lista-icon--check {
	display: block;
}

/* La etiqueta va oculta (ancho 0) en reposo y se despliega al pasar el ratón.
   Sigue siendo el nombre accesible del botón para lectores de pantalla. */
.mi-lista-btn--circular .mi-lista-btn__label {
	max-width: 0;
	margin-left: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	font-size: 0.85rem;
	font-weight: 600;
	transition: max-width var(--transition), opacity var(--transition), margin var(--transition);
}

.mi-lista-btn--circular:hover .mi-lista-btn__label,
.mi-lista-btn--circular:focus-visible .mi-lista-btn__label {
	max-width: 220px;
	margin-left: 0.45rem;
	opacity: 1;
}

/* =========================================================================
   Página de agradecimiento (/gracias/)
   ========================================================================= */
.gracias {
	max-width: 640px;
	margin: 3rem auto 3.5rem;
	text-align: center;
}

.gracias__icono {
	width: 76px;
	height: 76px;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.gracias__titulo {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--text);
}

.gracias__texto {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--text);
	margin: 0 0 0.75rem;
}

.gracias__ayuda {
	color: var(--text-muted);
	margin: 0 0 1.75rem;
}

.gracias__ayuda a {
	color: var(--accent);
	text-decoration: none;
}

.gracias__ayuda a:hover {
	text-decoration: underline;
}

.gracias__acciones {
	margin: 0;
}

/* Patrocinador de la página de agradecimiento */
.gracias-partner {
	max-width: 640px;
	margin: 0 auto 3.5rem;
	padding: 2rem;
	text-align: center;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.gracias-partner__titulo {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.gracias-partner__nivel {
	margin: 0.35rem 0 1.25rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
}

.gracias-partner__logo {
	display: inline-block;
}

.gracias-partner__logo img {
	max-width: 220px;
	max-height: 90px;
	width: auto;
	height: auto;
	object-fit: contain;
}
