body {
	margin: 0;
	font-family: 'Raleway', sans-serif;
	background: url('img/bg2.jpg') no-repeat center center fixed;
	background-size: cover;
}

/* --- CABECERAS --- */
.section-header {
	width: 100%;
	text-align: center;
	padding: 40px 20px;
	background-color: rgba(0,0,0,0.5);
	color: white;
	font-size: 28px;
	font-weight: bold;
	box-sizing: border-box;
}

.section-header span {
	display: block;
	font-size: 18px;
	font-weight: normal;
	margin-top: 10px;
}

/* --- CABECERA SUPERIOR CON LOGO --- */
.header-with-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	text-align: left; 
	padding: 20px 40px;
}

.header-with-logo .header-logo {
	width: 150px;
	height: 150px;
	object-fit: contain;
}

.header-with-logo .header-text {
	display: flex;
	flex-direction: column;
}

/* --- GRID --- */
.container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.box {
	width: 300px;
	height: 300px;
	margin: 50px;
	overflow: hidden;
	position: relative;
	clip-path: polygon(
		0 0,
		calc(100% - 40px) 0,
		100% 40px,
		100% 100%,
		0 100%
	);
}

.box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- ENLACE EN TODO EL BOX --- */
.box a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	position: relative;
}

/* --- EFECTO HOVER ACLARAR --- */
.box::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0);
	transition: background 0.3s ease;
	z-index: 2;
	pointer-events: none;
}

.box:hover::before {
	background: rgba(255,255,255,0.25); /* intensidad del aclarado */
}

/* --- BOTÓN ACTIVOS --- */
.box-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgb(0 64 125 / 78%);
	color: white;
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	padding: 15px 0;
	z-index: 3;
	cursor: pointer;
}

/* --- DESACTIVADOS --- */
.box.disabled {
	pointer-events: none; /* no clickeable visualmente */      
	cursor: not-allowed;
}

.box.disabled img {
	filter: grayscale(100%);
}

.box.disabled::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.6);
	z-index: 1;
}

.box.disabled .box-footer {
	display: none; /* ocultamos botón ACCEDER */
}

.disabled-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 24px;
	font-weight: bold;
	text-transform: uppercase;
	z-index: 2;
	pointer-events: none;
}

/* --- FOOTER --- */
footer {
	width: 100%;
	background-color: rgba(0,0,0,0.7);
	color: white;
	text-align: center;
	padding: 20px 10px;
	font-size: 14px;
	box-sizing: border-box;
}

footer a {
	color: white;
	text-decoration: none;
	margin: 0 10px;
}

footer a:hover {
	text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
	.box {
		width: 300px;
		height: 300px;
	}
	footer {
		font-size: 12px;
	}
}
