/* Bucaneros Rugby: tokens, base y piezas mínimas (contenedor, botones, foco). Identidad del club: rojo Bucaneros,
   dorado y azul de Gines sobre la noche de los entrenamientos (el senior entrena a las 21:00 con focos) y el blanco
   de la línea de cal. Poppins alojada. */

:root {
	--buc-noche: #101114;
	--buc-noche-2: #1b1d23;
	--buc-noche-3: #2a2d35;
	--buc-rojo: #d72525;
	--buc-rojo-hondo: #b11b1b;
	--buc-oro: #e9b108;
	--buc-oro-claro: #f5c84a;
	--buc-azul: #235de6;
	--buc-azul-hondo: #1a45ad;
	--buc-blanco: #ffffff;
	--buc-cal: #f3f5f8;
	--buc-linea: #dfe3ea;
	--buc-tinta: #14161a;
	--buc-gris: #4a505d;
	--buc-gris-noche: #b9bec9;

	--buc-fuente: Poppins, "Segoe UI", system-ui, -apple-system, sans-serif;
	--buc-salida: cubic-bezier(0.23, 1, 0.32, 1);
	--buc-cajon: cubic-bezier(0.32, 0.72, 0, 1);

	--buc-ancho: 1200px;
	--buc-hueco: clamp(1rem, 0.6rem + 1.8vw, 2rem);
	--buc-seccion: clamp(4rem, 2.6rem + 5vw, 7.5rem);
	--buc-radio: 14px;
	--buc-radio-s: 8px;
	--buc-sombra: 0 1px 2px rgb(16 17 20 / 0.06), 0 10px 30px -12px rgb(16 17 20 / 0.22);

	--buc-h1: clamp(2.35rem, 1.3rem + 4.4vw, 4.75rem);
	--buc-h2: clamp(1.7rem, 1.2rem + 1.9vw, 2.65rem);
	--buc-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
	--buc-cuerpo: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--buc-blanco);
	color: var(--buc-tinta);
	font-family: var(--buc-fuente);
	font-size: var(--buc-cuerpo);
	font-weight: 400;
	line-height: 1.65;
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4) {
	margin: 0;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: var(--buc-h1);
	letter-spacing: -0.03em;
	line-height: 1.04;
}

h2 {
	font-size: var(--buc-h2);
}

h3 {
	font-size: var(--buc-h3);
	font-weight: 600;
}

:where(p, ul, ol, dl, figure) {
	margin: 0;
}

p {
	text-wrap: pretty;
}

:where(img, svg, video) {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--buc-azul);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:not([class]):hover {
	color: var(--buc-azul-hondo);
	text-decoration-thickness: 2px;
}

::selection {
	background: var(--buc-oro);
	color: var(--buc-noche);
}

:focus-visible {
	outline: 3px solid var(--buc-azul);
	outline-offset: 3px;
	border-radius: 4px;
}

.buc-oscuro :focus-visible,
.buc-cabecera :focus-visible,
.buc-pie :focus-visible,
.buc-panel :focus-visible {
	outline-color: var(--buc-oro);
}

html {
	scrollbar-color: var(--buc-noche-3) var(--buc-cal);
}

input,
button,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

.buc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.buc-saltar {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.75rem 1.1rem;
	border-radius: var(--buc-radio-s);
	background: var(--buc-oro);
	color: var(--buc-noche);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 0.2s var(--buc-salida);
}

.buc-saltar:focus {
	transform: none;
}

.buc-main:focus {
	outline: none;
}

.buc-contenedor {
	width: 100%;
	max-width: calc(var(--buc-ancho) + 2 * var(--buc-hueco));
	margin-inline: auto;
	padding-inline: var(--buc-hueco);
}

.buc-contenedor--estrecho {
	max-width: calc(46rem + 2 * var(--buc-hueco));
}

.buc-icono {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.buc-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Botones: se hunden un poco al pulsar. El rojo es la acción del club (WhatsApp incluido: el verde de la marca no
   llega al contraste con texto blanco). */
.buc-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.7rem 1.25rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 0.97rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.16s var(--buc-salida);
}

.buc-boton:active {
	transform: scale(0.97);
}

.buc-boton--grande {
	min-height: 54px;
	padding: 0.85rem 1.6rem;
	font-size: 1.02rem;
}

.buc-boton--wa,
.buc-boton--rojo {
	background: var(--buc-rojo);
	color: var(--buc-blanco);
}

.buc-boton--wa:hover,
.buc-boton--rojo:hover {
	background: var(--buc-rojo-hondo);
	color: var(--buc-blanco);
}

.buc-boton--linea {
	border-color: var(--buc-tinta);
	color: var(--buc-tinta);
	background: transparent;
}

.buc-boton--linea:hover {
	background: var(--buc-tinta);
	color: var(--buc-blanco);
}

.buc-boton--claro {
	border-color: rgb(255 255 255 / 0.55);
	color: var(--buc-blanco);
	background: rgb(255 255 255 / 0.04);
}

.buc-boton--claro:hover {
	background: var(--buc-blanco);
	border-color: var(--buc-blanco);
	color: var(--buc-noche);
}

.buc-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.buc-enlace-flecha {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
	color: var(--buc-azul);
	text-decoration: none;
}

.buc-enlace-flecha .buc-icono {
	transition: transform 0.2s var(--buc-salida);
}

.buc-enlace-flecha:hover {
	color: var(--buc-azul-hondo);
}

.buc-enlace-flecha:hover .buc-icono {
	transform: translateX(3px);
}

.buc-enlace-wa {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	color: var(--buc-azul);
}

.buc-enlace-wa:hover {
	color: var(--buc-azul-hondo);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* En los fondos oscuros, los enlaces de texto aclaran al pasar el ratón (el azul hondo no se lee sobre la noche). */
:where(.buc-hero--oscuro, .buc-familias, .buc-cierre, .buc-valores, .buc-pie, .buc-mapa) a:not([class]):hover {
	color: var(--buc-oro-claro);
}
