/* ============================================================
   TOKENS
============================================================ */
:root {
	--dlx-navy-950: #050A13;
	--dlx-navy-900: #0B1424;
	--dlx-navy-800: #122036;
	--dlx-blue-glow: #2E63A6;
	--dlx-gold-500: #C9A227;
	--dlx-gold-300: #E7CD8A;
	--dlx-gold-100: #F5E9C6;
	--dlx-ink-200: rgba(255, 255, 255, .78);
	--dlx-ink-400: rgba(255, 255, 255, .5);
	--dlx-line: rgba(201, 162, 39, .22);
	--dlx-radius-xl: 44px;
	--dlx-radius-lg: 24px;
	--dlx-radius-md: 14px;
	--dlx-font: 'Montserrat', sans-serif;
	--dlx-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
	/* vidrio esmerilado — usado en todo lo nuevo (modal, botones,
	   carruseles, reseñas). El calendario NO lo usa a propósito. */
	--dlx-glass: rgba(255, 255, 255, .045);
	--dlx-gsheen: rgba(231, 205, 138, .35);
}

[class*="dlx-"] { box-sizing: border-box; font-family: var(--dlx-font); }

/* ============================================================
   CALENDARIO — SIN CAMBIOS, tal como estaba.
============================================================ */
.dlx-calendar-shell {
	max-width: 640px;
	margin: 0 auto;
	background: linear-gradient(165deg, var(--dlx-navy-900), var(--dlx-navy-950));
	border: 1px solid var(--dlx-line);
	border-radius: var(--dlx-radius-lg);
	box-shadow: var(--dlx-shadow);
	overflow: hidden;
}

.dlx-cal-head {
	background: rgba(255, 255, 255, .03);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	border-bottom: 1px solid var(--dlx-line);
}
.dlx-cal-title { margin: 0; font-size: 15.5px; font-weight: 700; color: #fff; text-transform: capitalize; }
.dlx-cal-nav { display: flex; align-items: center; gap: 6px; }
.dlx-cal-btn {
	width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--dlx-line);
	background: transparent; color: var(--dlx-ink-200); font-size: 13px; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.dlx-cal-btn:hover:not(:disabled) { background: var(--dlx-gold-500); color: var(--dlx-navy-950); border-color: var(--dlx-gold-500); }
.dlx-cal-btn:disabled { opacity: .3; cursor: not-allowed; }
.dlx-cal-today {
	border: 1px solid var(--dlx-line); background: transparent; border-radius: 999px; padding: 0 12px; height: 26px;
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; color: var(--dlx-ink-200);
	transition: background .16s ease, color .16s ease;
}
.dlx-cal-today:hover { background: var(--dlx-gold-500); color: var(--dlx-navy-950); border-color: var(--dlx-gold-500); }

.dlx-cal-legend {
	display: flex; gap: 14px; padding: 9px 20px; border-bottom: 1px solid var(--dlx-line);
	font-size: 10.5px; font-weight: 600; color: var(--dlx-ink-400);
}
.dlx-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dlx-legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dlx-dot-presencial { background: var(--dlx-blue-glow); }
.dlx-dot-online { background: var(--dlx-gold-500); }

.dlx-cal-dow, .dlx-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dlx-cal-dow > div {
	font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	color: var(--dlx-ink-400); text-align: center; padding: 7px 0; border-bottom: 1px solid var(--dlx-line);
}
.dlx-cal-day {
	min-height: 56px; border-right: 1px solid var(--dlx-line); border-bottom: 1px solid var(--dlx-line);
	padding: 5px; position: relative; background: transparent; cursor: default;
}
.dlx-cal-day:nth-child(7n) { border-right: none; }
.dlx-cal-day.dlx-empty, .dlx-cal-day.dlx-past { background: rgba(255, 255, 255, .015); }
.dlx-cal-day .dlx-num { font-size: 10.5px; font-weight: 600; color: var(--dlx-ink-400); }
.dlx-cal-day.dlx-past .dlx-num { opacity: .45; }
.dlx-cal-day.dlx-today .dlx-num { color: var(--dlx-gold-500); font-weight: 800; }
.dlx-cal-day.dlx-has-events { cursor: pointer; }
.dlx-cal-day.dlx-has-events:hover { background: rgba(201, 162, 39, .08); }
.dlx-cal-day.dlx-cal-day-active { background: rgba(201, 162, 39, .12); }

.dlx-day-dots { display: flex; gap: 3px; margin-top: 4px; flex-wrap: wrap; }
.dlx-day-dot { width: 5px; height: 5px; border-radius: 50%; }
.dlx-day-dot.dlx-dot-presencial { background: var(--dlx-blue-glow); }
.dlx-day-dot.dlx-dot-online { background: var(--dlx-gold-500); }
.dlx-day-more { font-size: 8px; color: var(--dlx-ink-400); font-weight: 700; }

.dlx-cal-empty { padding: 16px 20px; font-size: 12.5px; color: var(--dlx-ink-400); }

/* ===================== POPOVER DE CURSOS DEL DÍA ===================== */
/* También sin cambios — vive pegado al calendario. */
.dlx-day-popover {
	position: fixed; z-index: 9998;
	min-width: 220px; max-width: 260px;
	background: linear-gradient(165deg, var(--dlx-navy-900), var(--dlx-navy-950));
	border: 1px solid var(--dlx-line);
	border-radius: var(--dlx-radius-md);
	box-shadow: var(--dlx-shadow); padding: 10px; display: none;
}
.dlx-day-popover.dlx-open { display: block; }
.dlx-day-popover-item {
	display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px;
	color: #fff; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .16s ease;
}
.dlx-day-popover-item:last-child { margin-bottom: 0; }
.dlx-day-popover-item:hover { background: rgba(255, 255, 255, .09); }
.dlx-day-popover-tag {
	display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	padding: 2px 7px; border-radius: 999px; margin-top: 5px;
}
.dlx-day-popover-tag.dlx-tag-presencial { background: rgba(46, 99, 166, .25); color: #B7D2F0; }
.dlx-day-popover-tag.dlx-tag-online { background: rgba(201, 162, 39, .25); color: var(--dlx-gold-300); }

/* ============================================================
   MODAL — ahora vidrio esmerilado (antes tarjeta sólida)
============================================================ */
.dlx-modal-overlay {
	position: fixed; inset: 0; background: rgba(5, 10, 19, .68); backdrop-filter: blur(3px);
	z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px;
}
.dlx-modal-overlay.dlx-open { display: flex; }
.dlx-modal {
	background: var(--dlx-glass);
	backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
	border: 1px solid var(--dlx-line);
	border-radius: var(--dlx-radius-lg); width: 100%; max-width: 620px; max-height: 88vh;
	overflow-y: auto; position: relative; box-shadow: var(--dlx-shadow);
}
.dlx-modal::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
	background: linear-gradient(90deg, transparent, var(--dlx-gsheen), transparent);
}
.dlx-modal-close {
	position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); border: none; font-size: 20px; color: var(--dlx-navy-950);
	cursor: pointer; z-index: 2; line-height: 1; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
	transition: background .16s ease, color .16s ease;
}
.dlx-modal-close:hover { background: var(--dlx-gold-500); color: var(--dlx-navy-950); }

.dlx-modal-flyer { width: 100%; max-height: 260px; overflow: hidden; }
.dlx-modal-flyer img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dlx-modal-tags { display: flex; gap: 8px; padding: 26px 30px 0; position: relative; z-index: 1; }
.dlx-modal-tag {
	font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 999px;
}
.dlx-modal-tag.dlx-tag-presencial { background: rgba(46, 99, 166, .22); color: #B7D2F0; }
.dlx-modal-tag.dlx-tag-online { background: rgba(201, 162, 39, .22); color: var(--dlx-gold-300); }

.dlx-modal-titulo { font-size: 24px; font-weight: 800; color: #fff; margin: 12px 30px 6px; letter-spacing: -.01em; position: relative; z-index: 1; }

.dlx-modal-meta { display: flex; gap: 20px; margin: 0 30px 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.dlx-modal-meta div { font-size: 10px; font-weight: 700; color: var(--dlx-ink-400); text-transform: uppercase; letter-spacing: .04em; }
.dlx-modal-meta strong { display: block; font-size: 13.5px; font-weight: 700; color: #fff; text-transform: none; letter-spacing: 0; margin-top: 2px; }

.dlx-modal-detalles { margin: 0 30px 20px; font-size: 14px; line-height: 1.7; color: var(--dlx-ink-200); position: relative; z-index: 1; }
.dlx-modal-detalles p { margin: 0 0 12px; }

.dlx-modal-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 30px 20px; position: relative; z-index: 1; }
.dlx-modal-galeria img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--dlx-line); }
.dlx-modal-galeria:empty { display: none; margin: 0; }

.dlx-modal-videos { margin: 0 30px 22px; display: grid; gap: 12px; position: relative; z-index: 1; }
.dlx-modal-videos:empty { display: none; margin: 0; }
.dlx-video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.dlx-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dlx-video-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--dlx-gold-300); text-decoration: none; }

.dlx-modal-inscribirse {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	margin: 0 30px 30px; padding: 14px; border-radius: 999px; position: relative; z-index: 1;
	background: #1F8A4C; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
	transition: background .16s ease;
}
.dlx-modal-inscribirse:hover { background: #187038; }

@media (max-width: 600px) {
	.dlx-modal-tags, .dlx-modal-titulo, .dlx-modal-meta, .dlx-modal-detalles, .dlx-modal-galeria, .dlx-modal-videos, .dlx-modal-inscribirse {
		margin-left: 20px; margin-right: 20px;
	}
	.dlx-modal-galeria { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BOTONES AGRUPADOS — el que tiene foto sigue con overlay para
   que se lea el texto; el que no tiene foto ahora es vidrio,
   no un degradé sólido.
============================================================ */
.dlx-cursos-lista {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	max-width: 980px;
	margin: 0 auto;
}
.dlx-col-title {
	font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
	color: var(--dlx-gold-300); margin: 0 0 16px;
}
.dlx-cursos-col-items { display: flex; flex-direction: column; gap: 14px; }
.dlx-cursos-col-empty { font-size: 13px; color: var(--dlx-ink-400); }

.dlx-curso-btn {
	position: relative; display: block; width: 100%; min-height: 150px;
	border: 1px solid var(--dlx-line); border-radius: 32px; overflow: hidden; cursor: pointer; padding: 0;
	background-size: cover; background-position: center; text-align: left;
	box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .5);
	transition: transform .18s ease, box-shadow .18s ease;
}
.dlx-curso-btn:hover { transform: translateY(-3px); box-shadow: 0 26px 48px -20px rgba(0, 0, 0, .6); }
.dlx-curso-btn.dlx-curso-btn-noimg { background: var(--dlx-glass); backdrop-filter: blur(16px); }
.dlx-curso-btn::after {
	content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; z-index: 1;
	background: linear-gradient(90deg, transparent, var(--dlx-gsheen), transparent);
}

.dlx-curso-btn-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(5, 10, 19, .1) 0%, rgba(5, 10, 19, .6) 60%, rgba(5, 10, 19, .92) 100%);
}
.dlx-curso-btn-info {
	position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px;
	padding: 18px; min-height: 150px; justify-content: flex-end;
}
.dlx-curso-btn-tag {
	align-self: flex-start; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	padding: 4px 11px; border-radius: 999px;
}
.dlx-curso-btn-tag.dlx-tag-presencial { background: rgba(46, 99, 166, .3); color: #C3DCF6; }
.dlx-curso-btn-tag.dlx-tag-online { background: rgba(201, 162, 39, .3); color: var(--dlx-gold-300); }
.dlx-curso-btn-title { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.25; }
.dlx-curso-btn-duracion { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75); }

@media (max-width: 700px) {
	.dlx-cursos-lista { grid-template-columns: 1fr; }
}

/* ============================================================
   CARRUSEL GENÉRICO (fotos y reseñas) — botones y puntos ahora
   en vidrio (antes eran sólidos, necesario cuando convivían con
   fondos claros; ya no hace falta, todo el sitio es oscuro).
============================================================ */
.dlx-photo-carousel, .dlx-testi-carousel { max-width: 1000px; margin: 0 auto; }
.dlx-testi-carousel { max-width: 720px; }

.dlx-carousel-row { display: flex; align-items: center; }
.dlx-carousel-viewport { overflow: hidden; flex: 1; border-radius: var(--dlx-radius-lg); }
.dlx-carousel-track { display: flex; transition: transform .45s ease; }

.dlx-carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.dlx-carousel-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .18); padding: 0; cursor: pointer; }
.dlx-carousel-dot.dlx-active { background: var(--dlx-gold-500); width: 20px; border-radius: 5px; transition: width .2s ease; }

/* ---- fotos ---- */
.dlx-photo-slide { padding: 6px; }
.dlx-photo-slide-btn {
	position: relative; display: block; width: 100%; aspect-ratio: 4/3;
	border: 1px solid var(--dlx-line); border-radius: 16px; overflow: hidden; padding: 0; cursor: zoom-in;
}
.dlx-photo-slide-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dlx-photo-slide-btn:hover img { transform: scale(1.06); }
.dlx-photo-slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 19, 0) 55%, rgba(5, 10, 19, .85) 100%); }
.dlx-photo-slide-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 13.5px; font-weight: 700; text-align: left; line-height: 1.3; }
.dlx-photo-slide-zoom {
	position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: var(--dlx-navy-950); font-size: 14px;
	display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s ease;
}
.dlx-photo-slide-btn:hover .dlx-photo-slide-zoom { opacity: 1; }

/* ---- reseñas — ahora tarjeta de vidrio, con la línea de brillo
   arriba en vez del efecto de tarjetas apiladas ---- */
.dlx-testi-slide { padding: 6px; }
.dlx-testi-card {
	position: relative;
	background: var(--dlx-glass);
	backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--dlx-line);
	border-radius: var(--dlx-radius-lg); padding: 44px 40px; text-align: center; max-width: 620px; margin: 0 auto;
	box-shadow: var(--dlx-shadow);
}
.dlx-testi-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--dlx-gsheen), transparent);
}
.dlx-testi-quote-mark { display: block; font-size: 46px; line-height: 1; font-weight: 800; color: var(--dlx-gold-500); margin-bottom: 8px; }
.dlx-testi-text { color: #fff; font-size: 16.5px; font-weight: 300; font-style: italic; line-height: 1.7; margin: 0 0 22px; }
.dlx-testi-name { color: var(--dlx-gold-300); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

@media (max-width: 600px) {
	.dlx-testi-card { padding: 34px 24px; }
	.dlx-testi-text { font-size: 15px; }
}

/* ============================================================
   LIGHTBOX
============================================================ */
.dlx-lightbox-overlay {
	position: fixed; inset: 0; z-index: 9999; background: rgba(5, 10, 19, .92); backdrop-filter: blur(4px);
	display: none; align-items: center; justify-content: center; padding: 40px 20px;
}
.dlx-lightbox-overlay.dlx-open { display: flex; }
.dlx-lightbox-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dlx-lightbox-figure img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 10px; display: block; }
.dlx-lightbox-figure figcaption { color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.dlx-lightbox-close {
	position: fixed; top: 22px; right: 26px; width: 40px; height: 40px; border-radius: 50%;
	background: var(--dlx-glass); backdrop-filter: blur(8px); border: 1px solid var(--dlx-line); color: #fff; font-size: 22px; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: background .16s ease, color .16s ease;
}
.dlx-lightbox-close:hover { background: var(--dlx-gold-500); color: var(--dlx-navy-950); border-color: var(--dlx-gold-500); }