/**
 * Custom CSS
 *
 * This file is for your custom styles.
 * You can add any CSS rules here to customize the Ghost theme.
 *
 * Note: Changes made directly to this file may be overwritten during theme updates.
 * It's recommended to use the Code Injection feature in Ghost for persistent customizations.
 */

/* Your custom CSS goes below this line */

/* ============ SUAVIZAR DISEÑO ============ */

/* Cards más suaves */
.post-card,
.pricing,
.card-author {
	border-radius: 12px;
	overflow: hidden;
}
.post-card .card-image img {
	border-radius: 12px 12px 0 0;
}

/* Más aire entre elementos */
.section + .section {
	margin-top: 2rem;
}

/* Tipografía más suelta */
.post-content {
	line-height: 1.8;
}

/* ============ BOTÓN WHATSAPP EN PRICING ============ */
.pricing-button-wa {
	margin-top: 8px;
	background: #25D366 !important;
	color: #fff !important;
	border-color: #25D366 !important;
}
.pricing-button-wa:hover {
	background: #1da851 !important;
}
.pricing-button-wa .label::before {
	content: "💬 ";
}

/* Botones de pago alineados al pie de cada card de plan */
.pricing-button {
	width: 100%;
}
.pricing-button + .pricing-button,
.pricing-button + .pricing-button-wa {
	margin-top: 8px;
}

/* Video/embed dentro del hero de la home (contenido de la página home-hero) */
.section-hero-media {
	margin-top: 24px;
	width: 100%;
	max-width: none;
}
.section-hero-media .kg-embed-card,
.section-hero-media figure {
	margin: 0;
}
.section-hero-media iframe,
.section-hero-media video {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 14px;
}

/* Video del hero: modo "fondo vivo" — sin controles ni overlays del player de Ghost */
.section-hero-media .kg-video-overlay,
.section-hero-media .kg-video-player-container,
.section-hero-media .kg-video-player {
	display: none !important;
}
.section-hero-media .kg-video-container video {
	width: 100%;
	display: block;
}

/* El hero ocupa el ancho completo del área de contenido */
.section-hero-content {
	max-width: none;
}
.section-hero-media .kg-video-card,
.section-hero-media .kg-width-regular,
.section-hero-media .kg-width-wide {
	max-width: none !important;
	width: 100%;
}

/* Botones de pago alineados al pie de cada card de plan */
.pricing-pay-group {
	margin-top: auto;
}

/* ============ Template Curso ============ */
.curso-page { padding-top: 32px; padding-bottom: 64px; }
.curso-header { text-align: center; margin-bottom: 24px; }
.curso-kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.curso-titulo { margin: 0 0 10px; }
.curso-bajada { max-width: 560px; margin: 0 auto; opacity: 0.75; font-size: 1.05em; line-height: 1.6; }
.curso-video { margin-bottom: 28px; }
.curso-video .kg-embed-card iframe, .curso-video video { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; }

.curso-metricas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; }
.curso-metrica { text-align: center; border: 1px solid rgba(128,128,128,0.25); border-radius: 12px; padding: 14px 8px; }
.curso-metrica strong { display: block; font-size: 1.5em; }
.curso-metrica span { font-size: 0.85em; opacity: 0.65; }

.curso-beneficios { list-style: none; padding: 0; margin: 0 0 28px; }
.curso-beneficios li { padding: 7px 0 7px 28px; position: relative; }
.curso-beneficios li::before { content: "✓"; position: absolute; left: 4px; color: #1D9E75; font-weight: 700; }

.curso-progreso { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.curso-progreso-barra { flex: 1; height: 6px; border-radius: 3px; background: rgba(128,128,128,0.25); overflow: hidden; }
.curso-progreso-barra span { display: block; height: 100%; width: 0; background: #1D9E75; transition: width 0.4s; }
.curso-progreso-num { font-size: 0.85em; opacity: 0.7; white-space: nowrap; }

.curso-lecciones details { border: 1px solid rgba(128,128,128,0.25); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.curso-lecciones summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 600; }
.curso-lecciones summary::-webkit-details-marker { display: none; }
.curso-lecciones summary::after { content: "▾"; opacity: 0.5; transition: transform 0.2s; }
.curso-lecciones details[open] summary::after { transform: rotate(180deg); }
.curso-lecciones summary .curso-grupo-estado { font-size: 0.8em; font-weight: 400; opacity: 0.65; margin-left: auto; padding-right: 8px; }
.curso-grupo-items { padding: 4px 8px 10px; }

.curso-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: inherit; }
.curso-item:hover { background: rgba(128,128,128,0.12); }
.curso-item .curso-check { width: 18px; text-align: center; flex: none; color: #1D9E75; font-weight: 700; }
.curso-item .curso-nombre { flex: 1; min-width: 0; }
.curso-item .curso-min { font-size: 0.8em; opacity: 0.55; flex: none; }
.curso-item .curso-lock { flex: none; opacity: 0.5; font-size: 0.85em; }
.curso-item.curso-siguiente { background: rgba(29,158,117,0.14); font-weight: 600; }
.curso-item.curso-gratis .curso-min::after { content: " · gratis"; color: #1D9E75; }

.curso-cta { text-align: center; border-top: 1px solid rgba(128,128,128,0.25); margin-top: 32px; padding-top: 28px; }
.curso-cta-titulo { margin: 0 0 8px; }
.curso-precio { font-size: 2em; }
.curso-precio-periodo { opacity: 0.6; }
.curso-toggle { display: inline-flex; gap: 0; border: 1px solid rgba(128,128,128,0.35); border-radius: 999px; margin: 14px 0 18px; overflow: hidden; }
.curso-toggle button { border: 0; background: transparent; color: inherit; padding: 8px 20px; cursor: pointer; font: inherit; font-size: 0.9em; }
.curso-toggle button.activo { background: rgba(128,128,128,0.2); font-weight: 600; }
.curso-pagos { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.curso-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; color: inherit; font-weight: 600; }
.curso-btn:hover { background: rgba(128,128,128,0.15); }
.curso-login { font-size: 0.85em; opacity: 0.7; }
