/* =====================================================================
   Challenge Hub – Funciones
   Usa las mismas variables que el CSS global del tema (hello-biz)
   ===================================================================== */
:root {
	/* Paleta 2026 del sitio (Ajustes del sitio de Elementor) */
	--ch-navy: var(--dark-ch, #1e293b);
	--ch-red: var(--primary-ch, #18baa8);
	--ch-red-hover: #129b8c;
	--ch-ink: #0f172a;
	--ch-muted: #64748b;
	--ch-line: #eef2f6;
	--ch-soft: #f8fafc;
	--ch-radius: 20px;
	--ch-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
	--ch-font-title: 'Montserrat', sans-serif;
	--ch-font-body: 'Inter', sans-serif;
}

/* =====================================================================
   BASE — neutraliza el reset de botones de Hello Biz (borde y hover rosa #c36,
   texto centrado, sin saltos de línea…) solo dentro de los bloques del plugin.
   Todas las reglas del plugin van con "html body" para ganar a Hello y a Elementor.
   ===================================================================== */
html body .ch-calhome [hidden], html body .ch-cal [hidden], html body .ch-cal-modal[hidden],
html body .ch-share [hidden], html body .ch-yt [hidden], html body .ch-xfeed [hidden] { display: none !important; }

body .ch-calhome button, body .ch-cal-modal button, body .ch-share button, body .ch-yt button,
body .ch-calhome button:hover, body .ch-cal-modal button:hover, body .ch-share button:hover, body .ch-yt button:hover,
body .ch-calhome button:focus, body .ch-cal-modal button:focus, body .ch-share button:focus, body .ch-yt button:focus {
	-webkit-appearance: none; appearance: none;
	background: transparent; border: 0; border-radius: 0; box-shadow: none;
	color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit;
	letter-spacing: normal; text-transform: none; text-align: inherit; text-decoration: none;
	white-space: normal; user-select: auto; padding: 0; margin: 0; min-height: 0; width: auto;
}

html body .ch-feder {
	margin: 20px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ch-line);
	font: 400 0.75rem/1.5 var(--ch-font-body);
	color: var(--ch-muted);
}

/* Botones compartidos (modal, ficha) */
html body .ch-evento-btn,
html body .ch-evento-btn:hover,
html body .ch-evento-btn:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid #dbe3ec;
	background: #fff;
	color: var(--ch-navy);
	font: 600 0.9rem/1 var(--ch-font-body);
	text-decoration: none;
	transition: all 0.2s ease;
}
html body .ch-evento-btn:hover { border-color: var(--ch-navy); color: var(--ch-navy); }
html body .ch-evento-btn--primary,
html body .ch-evento-btn--primary:hover,
html body .ch-evento-btn--primary:focus { background: var(--ch-red); border-color: var(--ch-red); color: #fff; }
html body .ch-evento-btn--primary:hover { background: var(--ch-red-hover); border-color: var(--ch-red-hover); color: #fff; }

/* =====================================================================
   1. CALENDARIO
   ===================================================================== */
html body .ch-cal {
	background: #fff;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius);
	box-shadow: var(--ch-shadow);
	padding: clamp(16px, 3vw, 36px);
	font-family: var(--ch-font-body);
}
html body .ch-cal-leyenda { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-size: 0.85rem; color: var(--ch-muted); }
html body .ch-cal-leyenda span { display: inline-flex; align-items: center; gap: 8px; }
html body .ch-cal-leyenda i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

html body .ch-cal .fc { --fc-border-color: var(--ch-line); --fc-today-bg-color: rgba(24, 186, 168, 0.06); --fc-page-bg-color: #fff; }
html body .ch-cal .fc .fc-toolbar-title { font: 800 1.5rem/1.2 var(--ch-font-title); color: var(--ch-ink); text-transform: capitalize; }
html body .ch-cal .fc .fc-button {
	background: #fff; border: 1px solid #dbe3ec; color: var(--ch-navy);
	border-radius: 999px; padding: 0.45em 1em; font-weight: 600; text-transform: capitalize; box-shadow: none !important;
}
html body .ch-cal .fc .fc-button:hover { border-color: var(--ch-navy); background: #fff; color: var(--ch-navy); }
html body .ch-cal .fc .fc-button-primary:not(:disabled).fc-button-active,
html body .ch-cal .fc .fc-button-primary:not(:disabled):active { background: var(--ch-navy); border-color: var(--ch-navy); color: #fff; }
html body .ch-cal .fc .fc-button-group > .fc-button { border-radius: 999px; margin-left: 4px; }
html body .ch-cal .fc .fc-col-header-cell-cushion { font-weight: 600; color: var(--ch-muted); text-decoration: none; text-transform: capitalize; padding: 10px 0; }
html body .ch-cal .fc .fc-daygrid-day-number { color: var(--ch-ink); text-decoration: none; font-weight: 500; }
html body .ch-cal .fc .fc-event { cursor: pointer; border-radius: 6px; padding: 2px 6px; font-size: 0.8rem; font-weight: 600; border: 0; }
html body .ch-cal .fc .fc-list-event:hover td { background: var(--ch-soft); }
html body .ch-cal .fc .fc-list-day-cushion { background: var(--ch-soft); }
html body .ch-cal .fc a { text-decoration: none; }

@media (max-width: 768px) {
	html body .ch-cal .fc .fc-toolbar { flex-direction: column; gap: 12px; }
	html body .ch-cal .fc .fc-toolbar-title { font-size: 1.2rem; }
}

/* Modal */
html body .ch-cal-modal {
	position: fixed; inset: 0; z-index: 10000;
	background: rgba(15, 23, 42, 0.7);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
html body .ch-cal-modal[hidden] { display: none; }
html body .ch-cal-modal-box {
	position: relative; background: #fff; border-radius: var(--ch-radius);
	width: min(640px, 100%); max-height: 90vh; overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	animation: ch-pop 0.2s ease;
}
@keyframes ch-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
html body .ch-cal-close,
html body .ch-cal-close:hover,
html body .ch-cal-close:focus {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, 0.95); color: var(--ch-ink);
	font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
html body .ch-cal-m-img img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: var(--ch-radius) var(--ch-radius) 0 0; }
html body .ch-cal-m-body { padding: 28px 32px 32px; }
html body .ch-cal-m-tipo { display: inline-block; color: #fff; font: 700 0.75rem/1 var(--ch-font-body); padding: 6px 12px; border-radius: 999px; }
html body .ch-cal-m-title { font: 800 1.5rem/1.25 var(--ch-font-title); color: var(--ch-ink); margin: 14px 0 12px; }
html body .ch-cal-m-meta { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ch-muted); font-size: 0.9rem; }
html body .ch-cal-m-meta i { color: var(--ch-red); margin-right: 4px; }
html body .ch-cal-m-sec { padding: 14px 0; border-top: 1px solid var(--ch-line); }
html body .ch-cal-m-sec h4 { font: 700 0.95rem/1.3 var(--ch-font-title); color: var(--ch-navy); margin: 0 0 6px; }
html body .ch-cal-m-sec p { margin: 0; color: #334155; line-height: 1.6; white-space: pre-line; }
html body .ch-cal-m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* =====================================================================
   2. FICHA DEL EVENTO (sidebar de la Single Noticia)
   ===================================================================== */
html body .ch-evento-box {
	background: #fff; border: 1px solid var(--ch-line); border-radius: var(--ch-radius);
	padding: 30px; box-shadow: var(--ch-shadow); margin-bottom: 30px; font-family: var(--ch-font-body);
}
html body .ch-evento-box h4 { font: 800 1.1rem/1.2 var(--ch-font-title); color: var(--ch-ink); margin: 0 0 15px; text-transform: uppercase; }
html body .ch-evento-nombre { font: 700 1rem/1.4 var(--ch-font-title); color: var(--ch-navy); margin: 0 0 8px; }
html body .ch-evento-desc { color: var(--ch-muted); font-size: 0.9rem; line-height: 1.6; margin: 0 0 16px; }
html body .ch-evento-box dl { margin: 0; }
html body .ch-evento-box dl > div { padding: 12px 0; border-top: 1px solid var(--ch-line); }
html body .ch-evento-box dt { font-weight: 700; font-size: 0.8rem; color: var(--ch-navy); margin-bottom: 4px; }
html body .ch-evento-box dt i { color: var(--ch-red); width: 16px; }
html body .ch-evento-box dd { margin: 0; font-size: 0.9rem; color: #334155; line-height: 1.55; }
html body .ch-evento-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
html body .ch-evento-actions .ch-evento-btn { justify-content: center; }
html body .ch-evento-link { font-size: 0.85rem; color: var(--ch-navy); text-align: center; }

/* =====================================================================
   3. PRÓXIMOS EVENTOS
   ===================================================================== */
html body .ch-proximos { display: flex; flex-direction: column; gap: 12px; font-family: var(--ch-font-body); }
html body .ch-proximo {
	display: flex; gap: 16px; align-items: center; padding: 16px;
	background: #fff; border: 1px solid var(--ch-line); border-radius: 16px;
	text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
html body .ch-proximo:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); }
html body .ch-proximo-fecha {
	flex: 0 0 62px; height: 62px; border-radius: 14px; background: var(--c); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
html body .ch-proximo-fecha b { font: 800 1.4rem/1 var(--ch-font-title); }
html body .ch-proximo-fecha small { font-size: 0.75rem; text-transform: capitalize; }
html body .ch-proximo-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html body .ch-proximo-info small { color: var(--ch-muted); font-size: 0.75rem; }
html body .ch-proximo-info strong { color: var(--ch-ink); font: 700 0.98rem/1.35 var(--ch-font-title); }
html body .ch-proximo-info em { font-style: normal; color: var(--ch-muted); font-size: 0.82rem; }
html body .ch-proximo-info em i { color: var(--ch-red); }
html body .ch-proximos-todos { align-self: flex-start; color: var(--ch-red); font-weight: 600; text-decoration: none; margin-top: 4px; }
html body .ch-proximos-vacio { color: var(--ch-muted); }

/* =====================================================================
   4. BOTONES DE COMPARTIR
   ===================================================================== */
html body .ch-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 30px 0; font-family: var(--ch-font-body); }
html body .ch-share-label { font: 700 0.9rem/1 var(--ch-font-title); color: var(--ch-ink); }
html body .ch-share-list { display: flex; flex-wrap: wrap; gap: 8px; }
html body .ch-share-btn,
html body .ch-share-btn:hover,
html body .ch-share-btn:focus {
	width: 42px; height: 42px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ch-soft); border: 1px solid var(--ch-line); color: var(--ch-navy);
	font-size: 1rem; text-decoration: none; cursor: pointer; transition: all 0.2s ease; padding: 0;
}
html body .ch-share-btn:hover { color: #fff; transform: translateY(-2px); }
html body .ch-share--linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
html body .ch-share--x:hover { background: #000; border-color: #000; }
html body .ch-share--facebook:hover { background: #1877F2; border-color: #1877F2; }
html body .ch-share--bluesky:hover { background: #1185FE; border-color: #1185FE; }
html body .ch-share--whatsapp:hover { background: #25D366; border-color: #25D366; }
html body .ch-share--telegram:hover { background: #229ED9; border-color: #229ED9; }
html body .ch-share--email:hover,
html body .ch-share--copy:hover,
html body .ch-share--native:hover { background: var(--ch-navy); border-color: var(--ch-navy); }
html body .ch-share--copy.is-ok { background: #16a34a; border-color: #16a34a; color: #fff; }
html body .ch-share-btn[hidden] { display: none; }

/* =====================================================================
   5. FEED DE X
   ===================================================================== */
html body .ch-xfeed {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid rgba(24, 186, 168, 0.3); border-radius: 24px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05); overflow: hidden; font-family: var(--ch-font-body);
	position: relative;
}
html body .ch-xfeed::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ch-red); z-index: 1; }
html body .ch-xfeed-head { display: flex; align-items: center; gap: 12px; padding: 24px 22px 18px; border-bottom: 1px solid rgba(24, 186, 168, 0.2); flex-shrink: 0; }
html body .ch-xfeed-logo { width: 42px; height: 42px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
html body .ch-xfeed-head div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
html body .ch-xfeed-head strong { font: 800 1rem/1.2 var(--ch-font-title); color: var(--ch-navy); }
html body .ch-xfeed-head small { color: var(--ch-muted); font-size: 0.8rem; }
html body .ch-xfeed--soon .ch-xfeed-head small { color: var(--ch-red); font-weight: 600; }
html body .ch-xfeed-follow { background: #000; color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
html body .ch-xfeed-follow:hover { background: var(--ch-red); color: #fff; }
html body .ch-xfeed-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px; scrollbar-width: thin; }
html body .ch-xfeed-body .twitter-timeline { display: block; padding: 20px 12px; color: var(--ch-muted); }

/* Próximamente */
html body .ch-xfeed-soon { display: flex; gap: 14px; align-items: flex-start; margin: 18px 12px 6px; padding: 16px; border-radius: 16px; background: rgba(24, 186, 168, 0.06); border: 1px dashed rgba(24, 186, 168, 0.4); }
html body .ch-xfeed-soon-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--ch-red); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
html body .ch-xfeed-soon p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--ch-muted); }
html body .ch-xfeed-soon p strong { display: block; color: var(--ch-navy); font: 700 0.92rem/1.3 var(--ch-font-title); margin-bottom: 3px; }

/* Últimas noticias (dentro del feed) */
html body .ch-xfeed-news { padding: 10px 12px 18px; }
html body .ch-xfeed-news h4 { font: 700 0.8rem/1 var(--ch-font-body); color: var(--ch-red); text-transform: uppercase; letter-spacing: 1.5px; margin: 14px 0 10px; }
html body .ch-xfeed-new { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef2f6; text-decoration: none; }
html body .ch-xfeed-new img, html body .ch-xfeed-new-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
html body .ch-xfeed-new-ph { display: flex; align-items: center; justify-content: center; background: rgba(24, 186, 168, 0.08); color: var(--ch-red); font-size: 1.3rem; }
html body .ch-xfeed-new span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body .ch-xfeed-new small { color: var(--ch-muted); font-size: 0.75rem; }
html body .ch-xfeed-new strong { color: var(--ch-ink); font: 700 0.88rem/1.35 var(--ch-font-title); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
html body .ch-xfeed-new:hover strong { color: var(--ch-red); }
html body .ch-xfeed-all { display: inline-block; margin-top: 14px; color: var(--ch-red); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
html body .ch-xfeed-note { margin: 16px 12px 0; font-size: 0.85rem; }
html body .ch-xfeed-note a { color: var(--ch-red); font-weight: 600; }

/* =====================================================================
   6. YOUTUBE
   ===================================================================== */
html body .ch-yt { font-family: var(--ch-font-body); }
html body .ch-yt-featured { margin-bottom: 40px; scroll-margin-top: 110px; }
html body .ch-yt-player,
html body .ch-yt-player:hover,
html body .ch-yt-player:focus,
html body .ch-yt-featured iframe {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
	border: 0; padding: 0; border-radius: var(--ch-radius); overflow: hidden;
	background: #000; cursor: pointer; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
html body .ch-yt-player img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; transition: opacity 0.3s; }
html body .ch-yt-player:hover img { opacity: 1; }
html body .ch-yt-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 84px; height: 84px; border-radius: 50%; background: var(--ch-red); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 1.8rem; padding-left: 6px;
	box-shadow: 0 10px 30px rgba(24, 186, 168, 0.45); transition: transform 0.2s;
}
html body .ch-yt-player:hover .ch-yt-play { transform: translate(-50%, -50%) scale(1.08); }
html body .ch-yt-featured-info { padding: 20px 4px 0; }
html body .ch-yt-featured-info h3 { font: 800 1.5rem/1.3 var(--ch-font-title); color: var(--ch-ink); margin: 6px 0 8px; }
html body .ch-yt-featured-info p { color: var(--ch-muted); margin: 0; line-height: 1.6; }
html body .ch-yt-date { color: var(--ch-red); font-weight: 600; font-size: 0.85rem; }

html body .ch-yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
html body .ch-yt-card,
html body .ch-yt-card:hover,
html body .ch-yt-card:focus {
	display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
	background: #fff; border: 1px solid var(--ch-line); border-radius: 16px; overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s; font: inherit; color: inherit;
}
html body .ch-yt-card:hover,
html body .ch-yt-card.is-active { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12); }
html body .ch-yt-card.is-active { border-color: var(--ch-red); }
html body .ch-yt-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
html body .ch-yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .ch-yt-thumb i {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-size: 2.6rem; color: #fff; opacity: 0.9; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
html body .ch-yt-card-info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
html body .ch-yt-card-info small { color: var(--ch-muted); font-size: 0.78rem; }
html body .ch-yt-card-info strong { font: 700 1rem/1.35 var(--ch-font-title); color: var(--ch-ink); }
html body .ch-yt-channel {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
	background: var(--ch-red); color: #fff; padding: 12px 22px; border-radius: 999px;
	font-weight: 600; text-decoration: none;
}
html body .ch-yt-channel:hover { background: var(--ch-red-hover); color: #fff; }
html body .ch-yt-aviso { color: var(--ch-muted); text-align: center; padding: 30px; }

/* =====================================================================
   7. CALENDARIO DE LA HOME  [ch_calendario_home]
   ===================================================================== */
html body .ch-calhome { padding: 100px 20px; font-family: var(--ch-font-body); background: #fff; }
html body .ch-calhome--gris { background: var(--bg-light, #f8fafc); }
html body .ch-calhome .ch-features-header { text-align: center; }
html body .ch-calhome .ch-features-header h2 span { color: var(--ch-red); }

/* Tarjeta: blanca, bordes verdes y línea superior como las tarjetas del proyecto */
html body .ch-calhome-card {
	position: relative; max-width: 1200px; margin: 0 auto;
	display: grid; grid-template-columns: minmax(300px, 420px) 1fr;
	background: #fff; border: 1px solid rgba(24, 186, 168, 0.3); border-radius: 24px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05); overflow: hidden;
}
html body .ch-calhome-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: var(--ch-red);
}

/* Columna izquierda: mes */
html body .ch-calhome-mes { padding: 36px 32px 32px; border-right: 1px solid rgba(24, 186, 168, 0.25); }
html body .ch-calhome-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
html body .ch-calhome-titulo { font: 800 1.25rem/1.2 var(--ch-font-title); color: var(--ch-navy); }
html body .ch-calhome .ch-calhome-nav button {
	width: 38px; height: 38px; border-radius: 50%; padding: 0; cursor: pointer;
	border: 1px solid rgba(24, 186, 168, 0.4); background: #fff; color: var(--ch-red);
	transition: all 0.2s;
}
html body .ch-calhome .ch-calhome-nav button:hover,
html body .ch-calhome .ch-calhome-nav button:focus-visible { background: var(--ch-red); border-color: var(--ch-red); color: #fff; }

html body .ch-calhome-semana,
html body .ch-calhome-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
html body .ch-calhome-semana { border-bottom: 1px solid rgba(24, 186, 168, 0.2); margin-bottom: 8px; }
html body .ch-calhome-semana span { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--ch-red); padding-bottom: 10px; }

html body .ch-calhome .ch-calhome-dia {
	position: relative; aspect-ratio: 1; border: 1px solid transparent; border-radius: 12px; padding: 0;
	background: transparent; color: #94a3b8; font: 500 0.9rem/1 var(--ch-font-body);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
html body .ch-calhome .ch-calhome-dia:disabled { cursor: default; }
html body .ch-calhome .ch-calhome-dia.tiene {
	color: var(--ch-navy); font-weight: 700; cursor: pointer;
	background: rgba(24, 186, 168, 0.07); border-color: rgba(24, 186, 168, 0.25);
	transition: all 0.2s;
}
html body .ch-calhome .ch-calhome-dia.tiene:hover { background: rgba(24, 186, 168, 0.15); border-color: var(--ch-red); color: var(--ch-navy); }
html body .ch-calhome .ch-calhome-dia.is-hoy { border-color: var(--ch-red); color: var(--ch-red); font-weight: 700; }
html body .ch-calhome .ch-calhome-dia.is-sel,
html body .ch-calhome .ch-calhome-dia.is-sel:hover { background: var(--ch-red); border-color: var(--ch-red); color: #fff; }
html body .ch-calhome-dia.is-sel .ch-calhome-dots i { background: #fff !important; }
html body .ch-calhome-dots { display: flex; gap: 3px; height: 5px; }
html body .ch-calhome-dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
html body .ch-calhome-mes .ch-cal-leyenda { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(24, 186, 168, 0.2); font-size: 0.78rem; gap: 8px 14px; }

/* Columna derecha: lista */
html body .ch-calhome-lista { padding: 36px 32px 32px; display: flex; flex-direction: column; min-height: 440px; }
html body .ch-calhome-lista-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(24, 186, 168, 0.2); }
html body .ch-calhome-lista-titulo { font: 800 1.2rem/1.3 var(--ch-font-title); color: var(--ch-navy); margin: 0; }
html body .ch-calhome-lista-titulo::first-letter { text-transform: uppercase; }
html body .ch-calhome .ch-calhome-limpiar { border: 0; background: none; color: var(--ch-red); font-weight: 600; cursor: pointer; font-size: 0.85rem; padding: 0; white-space: nowrap; }
html body .ch-calhome .ch-calhome-limpiar:hover { color: var(--ch-red-hover); text-decoration: underline; }
html body .ch-calhome-items { display: flex; flex-direction: column; gap: 12px; flex: 1; max-height: 420px; overflow-y: auto; padding: 2px 4px 2px 2px; }

html body .ch-calhome .ch-calhome-item {
	display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px;
	position: relative; overflow: hidden; width: 100%; text-align: left; cursor: pointer; font: inherit;
	background: #fff; border: 1px solid #eef2f6; color: inherit;
}
html body .ch-calhome-item::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
	background: var(--ch-red); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease;
}
html body .ch-calhome .ch-calhome-item:hover,
html body .ch-calhome .ch-calhome-item:focus-visible {
	background: #fff; border-color: rgba(24, 186, 168, 0.4); color: inherit;
	transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24, 186, 168, 0.1); outline: none;
}
html body .ch-calhome-item:hover::before,
html body .ch-calhome-item:focus-visible::before { transform: scaleY(1); }
html body .ch-calhome-item .ch-proximo-info { flex: 1; }
html body .ch-calhome-flecha { color: #cbd5e1; transition: color 0.2s, transform 0.2s; }
html body .ch-calhome-item:hover .ch-calhome-flecha { color: var(--ch-red); transform: translateX(3px); }

html body .ch-calhome-empty { text-align: center; padding: 50px 20px; color: var(--ch-muted); }
html body .ch-calhome-empty > i { font-size: 2.4rem; color: rgba(24, 186, 168, 0.5); }
html body .ch-calhome-empty p { margin: 14px 0 20px; }
html body .ch-calhome-todo { margin-top: 24px; align-self: flex-start; color: var(--ch-red); font-weight: 700; text-decoration: none; }
html body .ch-calhome-todo:hover { color: var(--ch-red-hover); }

html body .ch-calhome-dia:focus-visible { outline: 2px solid var(--ch-red); outline-offset: 2px; }

@media (max-width: 900px) {
	html body .ch-calhome { padding: 70px 15px; }
	html body .ch-calhome-card { grid-template-columns: 1fr; }
	html body .ch-calhome-mes { border-right: 0; border-bottom: 1px solid rgba(24, 186, 168, 0.25); }
	html body .ch-calhome-mes,
html body .ch-calhome-lista { padding: 28px 20px 24px; }
	html body .ch-calhome-lista { min-height: 0; }
	html body .ch-calhome-items { max-height: none; }
}

/* =====================================================================
   8. YOUTUBE — PRÓXIMAMENTE e integración en el marco de Capacitación
   ===================================================================== */
html body .ch-yt-soon-screen {
	aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	text-align: center; padding: 24px; color: #fff;
	background: radial-gradient(circle at 30% 20%, rgba(24, 186, 168, 0.35), transparent 55%),
	            radial-gradient(circle at 80% 90%, rgba(139, 92, 246, 0.25), transparent 50%),
	            var(--ch-navy);
}
html body .ch-yt-soon-icon {
	width: 84px; height: 84px; border-radius: 50%; background: var(--ch-red);
	display: flex; align-items: center; justify-content: center; font-size: 2rem;
	box-shadow: 0 0 0 0 rgba(24, 186, 168, 0.5); animation: ch-pulse 2.4s infinite;
}
@keyframes ch-pulse { 0% { box-shadow: 0 0 0 0 rgba(24,186,168,.5); } 70% { box-shadow: 0 0 0 22px rgba(24,186,168,0); } 100% { box-shadow: 0 0 0 0 rgba(24,186,168,0); } }
html body .ch-yt-soon-screen strong { font: 800 1.6rem/1.2 var(--ch-font-title); margin-top: 8px; }
html body .ch-yt-soon-screen p { margin: 0; max-width: 460px; color: #cbd5e1; line-height: 1.6; }

html body .ch-yt-card--soon { cursor: default; }
html body .ch-yt-card--soon:hover { transform: none; box-shadow: none; }
html body .ch-yt-card--soon .ch-yt-thumb {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(110deg, #eef2f6 30%, #f8fafc 50%, #eef2f6 70%); background-size: 200% 100%;
	animation: ch-shimmer 2s linear infinite;
}
html body .ch-yt-card--soon .ch-yt-thumb i { position: static; transform: none; color: rgba(24, 186, 168, 0.6); font-size: 1.8rem; text-shadow: none; }
html body .ch-yt-card--soon small { color: var(--ch-red); font-weight: 600; }
html body .ch-yt-card--soon strong { color: #94a3b8; }
@keyframes ch-shimmer { to { background-position: -200% 0; } }

/* Dentro del marco blanco .ch-video-featured de la página Capacitación */
html body .ch-video-featured .ch-yt-featured { margin: 0; }
html body .ch-video-featured .ch-yt-player,
html body .ch-video-featured .ch-yt-featured iframe { border-radius: 8px; box-shadow: none; }
html body .ch-video-featured .ch-yt-featured-info { padding: 16px 8px 6px; }
html body .ch-video-featured .ch-yt-featured-info h3 { font-size: 1.25rem; }

/* Sección "Últimos vídeos" */
html body .ch-yt-section { padding: 5rem 2rem; background: #fff; }
html body .ch-yt-section-inner { max-width: 1200px; margin: 0 auto; }
html body .ch-yt-section h2 { text-align: center; font-family: var(--ch-font-title); color: var(--ch-navy); font-size: 2.2rem; margin: 0 0 3rem; }
html body .ch-yt-section .ch-yt-channel { display: table; margin: 40px auto 0; }
html body .ch-yt-grid--soon { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* =====================================================================
   9. SECCIÓN "ACTUALIDAD": calendario + redes en dos columnas
   ===================================================================== */
html body .ch-actualidad { padding: 100px 20px; background: #fff; font-family: var(--ch-font-body); }
html body .ch-actualidad .ch-features-header { text-align: center; }
html body .ch-actualidad .ch-features-header h2 span { color: var(--ch-red); }
html body .ch-actualidad-grid {
	max-width: 1320px; margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 30px; align-items: stretch;
}
html body .ch-actualidad .ch-calhome { padding: 0; background: transparent; }
html body .ch-actualidad .ch-calhome-card { max-width: none; height: 100%; grid-template-columns: minmax(270px, 380px) 1fr; }
html body .ch-actualidad .ch-calhome-lista { min-height: 0; }
/* La columna de redes toma la altura del calendario y hace scroll por dentro */
html body .ch-actualidad-feed { position: relative; min-height: 480px; }
html body .ch-actualidad-feed > .ch-xfeed { position: absolute; inset: 0; }

@media (max-width: 1200px) {
	html body .ch-actualidad .ch-calhome-card { grid-template-columns: 1fr; }
	html body .ch-actualidad .ch-calhome-mes { border-right: 0; border-bottom: 1px solid rgba(24, 186, 168, 0.25); }
}
@media (max-width: 960px) {
	html body .ch-actualidad { padding: 70px 15px; }
	html body .ch-actualidad-grid { grid-template-columns: 1fr; }
	html body .ch-actualidad-feed { min-height: 0; }
	html body .ch-actualidad-feed > .ch-xfeed { position: static; max-height: 640px; }
}

/* Flechas del mes centradas */
html body .ch-calhome .ch-calhome-nav button { display: inline-flex; align-items: center; justify-content: center; }

/* Calendario apilado: el mes no crece más de 440px (evita días gigantes en tablet) */
@media (max-width: 1200px) {
	html body .ch-actualidad .ch-calhome-mes > * { max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
	html body .ch-calhome-mes > * { max-width: 440px; margin-left: auto; margin-right: auto; }
}
