/* Escuela de rugby y rugby femenino: cabecera con foto, categorías, método por pasos, datos para familias, banda de
   foto, preguntas y contacto. Las piezas comunes (dos columnas, horario, preguntas, cierre) están en comun.css. */

.buc-hero {
	padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem) var(--buc-seccion);
	background: var(--buc-cal);
}

.buc-hero--oscuro {
	background: var(--buc-noche);
	color: var(--buc-blanco);
}

.buc-hero__rejilla {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
}

.buc-hero h1 {
	font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem);
	max-width: 15ch;
}

.buc-hero__entradilla {
	margin-top: 1.25rem;
	max-width: 38rem;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	color: var(--buc-gris);
}

.buc-hero--oscuro .buc-hero__entradilla {
	color: #d6d9e0;
}

.buc-hero__foto img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--buc-radio);
	box-shadow: var(--buc-sombra);
}

.buc-hero .buc-boton--linea {
	border-color: var(--buc-tinta);
}

.buc-horario--hero {
	max-width: 30rem;
	margin-top: 1.5rem;
}

.buc-hero--oscuro .buc-horario li {
	background: rgb(255 255 255 / 0.08);
}

.buc-hero--oscuro .buc-horario__nota {
	color: var(--buc-gris-noche);
}

.buc-hero--oscuro .buc-horario li[data-buc-hoy] {
	background: rgb(233 177 8 / 0.18);
	box-shadow: inset 0 0 0 1px rgb(233 177 8 / 0.6);
}

.buc-hero--oscuro .buc-horario li[data-buc-hoy]::after {
	background: var(--buc-oro);
	color: var(--buc-noche);
}

@media (max-width: 900px) {
	.buc-hero__rejilla {
		grid-template-columns: minmax(0, 1fr);
	}

	.buc-hero__foto {
		order: -1;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.buc-hero__texto > * {
		animation: buc-llega 0.8s var(--buc-salida) both;
	}

	.buc-hero__texto > :nth-child(3) {
		animation-delay: 70ms;
	}

	.buc-hero__texto > :nth-child(n + 4) {
		animation-delay: 130ms;
	}
}

@keyframes buc-llega {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

/* Categorías de la escuela. */
.buc-categorias {
	padding-block: var(--buc-seccion);
}

.buc-categorias__lista {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.buc-categoria {
	position: relative;
	padding: 1.5rem 1.4rem 1.4rem;
	border-top: 6px solid var(--buc-rojo);
	border-radius: var(--buc-radio-s);
	background: var(--buc-blanco);
	box-shadow: var(--buc-sombra);
}

.buc-categoria:nth-child(2) {
	border-top-color: var(--buc-oro);
}

.buc-categoria:nth-child(3) {
	border-top-color: var(--buc-azul);
}

.buc-categoria h3 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	letter-spacing: -0.02em;
}

.buc-categoria p {
	margin-top: 0.6rem;
	color: var(--buc-gris);
}

@media (max-width: 900px) {
	.buc-categorias__lista {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Método por pasos, con la línea de cal que los une. */
.buc-metodo {
	padding-block: 0 var(--buc-seccion);
}

.buc-dos-bloques {
	padding-block: var(--buc-seccion);
}

.buc-pasos {
	display: grid;
	gap: 1.1rem;
	padding: 0;
	margin: 1.5rem 0;
	list-style: none;
	counter-reset: paso;
}

.buc-pasos li {
	position: relative;
	padding-left: 3rem;
	counter-increment: paso;
}

.buc-pasos li::before {
	content: counter(paso);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--buc-noche);
	color: var(--buc-oro);
	font-size: 0.9rem;
	font-weight: 700;
}

.buc-pasos li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1rem - 1px);
	top: 2.25rem;
	bottom: -1rem;
	width: 2px;
	background: var(--buc-linea);
}

/* Para las familias. */
.buc-familias {
	padding-block: var(--buc-seccion);
	background: var(--buc-noche);
	color: var(--buc-blanco);
}

.buc-datos-rejilla {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
	margin: 2.25rem 0 0;
}

.buc-datos-rejilla div {
	padding-top: 1rem;
	border-top: 1px solid rgb(255 255 255 / 0.18);
}

.buc-datos-rejilla dt {
	color: var(--buc-oro);
	font-weight: 600;
	font-size: 1.1rem;
}

.buc-datos-rejilla dd {
	margin: 0.5rem 0 0;
	color: var(--buc-gris-noche);
}

.buc-datos-rejilla a {
	color: var(--buc-blanco);
	font-weight: 600;
}

@media (max-width: 900px) {
	.buc-datos-rejilla {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.buc-datos-rejilla {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Rugby femenino. */
.buc-cantera-fem {
	padding-block: 0 var(--buc-seccion);
}

.buc-banda-foto {
	position: relative;
	margin: 0;
	background: var(--buc-noche);
}

.buc-banda-foto img {
	width: 100%;
	max-height: 78svh;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.buc-banda-foto figcaption {
	padding-block: 0.9rem;
	color: var(--buc-gris-noche);
	font-size: 0.9rem;
}

/* Noticias relacionadas. */
.buc-noticias {
	padding-block: var(--buc-seccion);
}
