/**
 * Las Abejitas – estilos añadidos (v1.1)
 * Portada con foto, sección de estudiantes, cursos con galería y página Nosotros.
 * Se escriben a mano porque style.css es Tailwind ya compilado.
 */

/* ---------- Accesibilidad: enlace "Skip to content" oculto hasta recibir foco ---------- */
.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Portada (hero) ---------- */
.abj-hero-photo {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	padding: 0 12px 18px 0;
}
.abj-hero-photo__frame {
	position: absolute;
	inset: 18px 0 0 18px;
	border-radius: 1.25rem;
	background: rgba(255, 193, 7, 0.35);
	z-index: 0;
}
.abj-hero-photo__img {
	position: relative;
	z-index: 1;
	aspect-ratio: 16 / 9;
	border-radius: 1.25rem;
	overflow: hidden;
	border: 3px solid var(--color-honey, #ffc107);
	box-shadow: 0 18px 40px -18px rgba(33, 33, 33, 0.45);
	background: #fff;
}
.abj-hero-photo__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
	display: block;
	transition: transform 0.7s ease;
}
.abj-hero-photo__img:hover img {
	transform: scale(1.04);
}
.abj-hero-photo__badge {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
}

/* ---------- Estudiantes ---------- */
.abj-students {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 1024px) {
	.abj-students {
		grid-template-columns: 5fr 7fr;
		gap: 4rem;
	}
}
.abj-students__photo {
	position: relative;
	margin: 0;
	max-width: 440px;
	width: 100%;
	justify-self: center;
	aspect-ratio: 4 / 5;
	border-radius: 1.25rem;
	overflow: hidden;
	border: 3px solid var(--color-honey, #ffc107);
	box-shadow: 0 18px 40px -20px rgba(33, 33, 33, 0.5);
	background: #fff;
}
.abj-students__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	display: block;
}
.abj-students__caption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: #fff;
	border: 1px solid rgba(255, 193, 7, 0.5);
	border-radius: 0.5rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-charcoal, #212121);
}
.abj-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
}
.abj-stats > div {
	background: #fff;
	border: 1px solid rgba(255, 193, 7, 0.3);
	border-radius: 0.75rem;
	padding: 0.9rem 0.75rem;
	text-align: center;
}
.abj-stats dt {
	font-family: var(--font-mono, monospace);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-charcoal-light, #5f5e5e);
}
.abj-stats dd {
	margin: 0.2rem 0 0;
	font-family: var(--font-display, sans-serif);
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--color-primary-brand, #785900);
}

/* ---------- Curso destacado en inicio ---------- */
.abj-showcase {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 1024px) {
	.abj-showcase {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
	.abj-showcase--reverse .abj-showcase__photos {
		order: 2;
	}
}
.abj-showcase__photos {
	display: grid;
	gap: 1rem;
}
.abj-showcase__photos--duo {
	grid-template-columns: 1fr 1fr;
}
.abj-showcase__photos figure {
	margin: 0;
	aspect-ratio: 3 / 4;
	border-radius: 1rem;
	overflow: hidden;
	border: 2px solid rgba(255, 193, 7, 0.6);
	box-shadow: 0 14px 30px -18px rgba(33, 33, 33, 0.5);
}
.abj-showcase__photos--duo figure:nth-child(2) {
	transform: translateY(1.5rem);
}
.abj-showcase__photos:not(.abj-showcase__photos--duo) figure {
	aspect-ratio: 4 / 3;
}
.abj-showcase__photos img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.abj-showcase__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.5rem;
}
@media (min-width: 640px) {
	.abj-showcase__list {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------- Tarjetas de curso con 1 o 2 fotos ---------- */
.abj-card-photos {
	display: grid;
	width: 100%;
	height: 100%;
	gap: 2px;
}
.abj-card-photos--duo {
	grid-template-columns: 1fr 1fr;
}
.abj-card-photos img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.9;
}
.abj-new-ribbon {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: var(--color-primary-brand, #785900);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 0.4rem;
	padding: 0.2rem 0.6rem;
}

/* ---------- Mapa de Google (Contacto) ---------- */
.abj-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Páginas de WordPress (Nosotros y demás), contenido editable ---------- */
.page .entry-content {
	color: var(--color-charcoal-medium, #3a3a3a);
	font-size: 1.075rem;
	line-height: 1.8;
}
.page .entry-content > * + * {
	margin-top: 1.1rem;
}
.page .entry-content h2 {
	font-family: var(--font-display, sans-serif);
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--color-primary-brand, #785900);
	margin-top: 2.25rem;
	line-height: 1.25;
}
.page .entry-content h3 {
	font-family: var(--font-display, sans-serif);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--color-charcoal, #212121);
}
.page .entry-content strong {
	color: var(--color-charcoal, #212121);
}
.page .entry-content a:not(.wp-block-button__link) {
	color: var(--color-primary-brand, #785900);
	text-decoration: underline;
}
/* Solo listas escritas en el editor (no afecta a la tienda de WooCommerce) */
.page .entry-content > ul.wp-block-list,
.page .entry-content > ol.wp-block-list {
	padding-left: 1.4rem;
	list-style: disc;
}
.page .entry-content > ol.wp-block-list {
	list-style: decimal;
}
.page .entry-content .wp-block-image img {
	border-radius: 1rem;
	border: 3px solid var(--color-honey, #ffc107);
	height: auto;
	max-width: 100%;
}
.page .entry-content .wp-block-image figcaption {
	margin-top: 0.6rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--color-charcoal-light, #5f5e5e);
}
/* Foto vertical de estudiantes: que no ocupe toda la pantalla */
.page .entry-content .wp-block-image img[class*="wp-image"][src*="estudiantes-clase"] {
	max-height: 560px;
	width: auto;
	margin: 0 auto;
	display: block;
}
/* Línea de tiempo 1985 · 1996 · 2025 (bloque Columnas con la clase abj-historia-linea) */
.page .entry-content .abj-historia-linea {
	background: #fff;
	border: 1px solid rgba(255, 193, 7, 0.35);
	border-radius: 1rem;
	padding: 1.25rem 1.5rem;
	gap: 1rem;
	box-shadow: 0 14px 30px -18px rgba(33, 33, 33, 0.35);
}
.page .entry-content .abj-historia-linea .wp-block-column {
	border-left: 3px solid var(--color-honey, #ffc107);
	padding-left: 0.85rem;
}
.page .entry-content .abj-historia-linea h3 {
	color: var(--color-primary-brand, #785900);
	font-size: 1.5rem;
	margin: 0;
}
.page .entry-content .abj-historia-linea p {
	margin: 0.2rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
}
.page .entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.page .entry-content .wp-block-button__link {
	background: var(--color-honey, #ffc107);
	color: var(--color-charcoal, #212121);
	font-family: var(--font-display, sans-serif);
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 0.5rem;
	padding: 0.75rem 1.4rem;
	text-decoration: none;
	display: inline-block;
}
.page .entry-content .is-style-outline .wp-block-button__link {
	background: #fff;
	border: 2px solid var(--color-honey, #ffc107);
	color: var(--color-primary-brand, #785900);
}

/* ---------- Ficha de curso (plugin AIFRAD - Página de Producto) ---------- */
/* Sin horarios en ningún curso */
.aifrad-program-details li:has(.fa-calendar) {
	display: none !important;
}
/* Filas de detalles sin valor */
.aifrad-program-details li:has(strong:empty) {
	display: none !important;
}
/* Secciones que el tema vacía por JS (sin contenido propio) */
.aifrad-product-page .abj-oculto {
	display: none !important;
}
