/**
 * Futuros Vinotinto FC - Section Torneos & Competiciones
 * Logos Grid & Editorial Competition Cards Showcase
 */

.fv-section--torneos {
	padding: 85px 0 95px;
	background: var(--fv-white);
}

.fv-torneos-header {
	text-align: center;
	margin-bottom: 50px;
}

.fv-torneos-header .fv-section-header__title {
	font-family: var(--fv-font-heading);
	font-size: clamp(32px, 4.5vw, 48px);
	line-height: 1;
	color: var(--fv-vinotinto-dark);
	margin: 0 auto;
	text-align: center;
	letter-spacing: 0.5px;
}

/* 1. Logos Grid (Clean Borderless 2-Row Display) */
.fv-torneos-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 40px 36px;
	align-items: center;
	justify-items: center;
	max-width: 1140px;
	margin: 0 auto 70px;
}

.fv-torneo-logo-item {
	width: 100%;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	background: transparent;
	border: none;
	box-shadow: none;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-torneo-logo-item:hover {
	transform: scale(1.1);
}

.fv-torneo-logo-img {
	max-width: 100%;
	max-height: 90px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.fv-torneo-logo-item:hover .fv-torneo-logo-img {
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

/* 2. Editorial Competition Cards Block */
.fv-competitions-block {
	max-width: 1140px;
	margin: 0 auto;
}

.fv-competitions-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 28px;
}

/* Card 01 & 02 span 3 columns each (50% width on row 1) */
.fv-competition-card--half {
	grid-column: span 3;
}

/* Card 03, 04, 05 span 2 columns each (33% width on row 2) */
.fv-competition-card--third {
	grid-column: span 2;
}

.fv-competition-card {
	background: var(--fv-white);
	border-radius: var(--fv-radius-md);
	border: 1px solid var(--fv-gray-200);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.fv-competition-card:hover {
	transform: translateY(-5px);
	border-color: var(--fv-gold);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.fv-competition-card__media {
	width: 100%;
	aspect-ratio: 16 / 10;
	position: relative;
	overflow: hidden;
	background: #111;
}

.fv-competition-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.5s ease, opacity 0.3s ease;
}

.fv-competition-card:hover .fv-competition-card__img {
	transform: scale(1.05);
}

/* Tabbed Image Switching for AFDC */
.fv-competition-card--tabs .fv-competition-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-competition-card--tabs .fv-competition-card__img.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

/* Card Body */
.fv-competition-card__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
}

.fv-competition-card__header-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fv-competition-card__num {
	font-family: var(--fv-font-heading);
	font-size: 26px;
	line-height: 1;
	color: var(--fv-gold);
	letter-spacing: 0.5px;
}

.fv-competition-card__title {
	font-family: var(--fv-font-heading);
	font-size: 22px;
	line-height: 1.15;
	color: var(--fv-vinotinto-dark);
	letter-spacing: 0.5px;
	margin: 0;
}

/* Pills for levels/series */
.fv-competition-card__levels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.fv-comp-pill {
	font-family: var(--fv-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--fv-vinotinto);
	background: rgba(101, 0, 22, 0.06);
	padding: 4px 10px;
	border-radius: var(--fv-radius-full);
	border: 1px solid rgba(101, 0, 22, 0.12);
}

.fv-competition-card__desc {
	font-family: var(--fv-font-body);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--fv-gray-600);
	margin: 0;
}

/* Mini Tabs for AFDC */
.fv-competition-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.fv-comp-tab-btn {
	background: var(--fv-gray-100);
	border: 1px solid var(--fv-gray-200);
	border-radius: var(--fv-radius-sm);
	padding: 5px 12px;
	font-family: var(--fv-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--fv-gray-600);
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fv-comp-tab-btn:hover {
	border-color: var(--fv-vinotinto);
	color: var(--fv-vinotinto);
}

.fv-comp-tab-btn.is-active {
	background: var(--fv-vinotinto);
	color: var(--fv-white);
	border-color: var(--fv-vinotinto);
	box-shadow: 0 2px 8px rgba(101, 0, 22, 0.25);
}

.fv-competition-tab-content {
	display: none;
}

.fv-competition-tab-content.is-active {
	display: block;
	animation: fvTabFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fvTabFade {
	from {
		opacity: 0;
		transform: translateY(3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
	.fv-torneos-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px 20px;
		margin-bottom: 50px;
	}

	.fv-competitions-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.fv-competition-card--half,
	.fv-competition-card--third {
		grid-column: span 1;
	}

	.fv-competition-card:last-child:nth-child(odd) {
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	.fv-section--torneos {
		padding: 50px 0;
	}

	.fv-torneos-header {
		margin-bottom: 32px;
	}

	.fv-torneos-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 14px;
		margin-bottom: 40px;
	}

	.fv-torneo-logo-item {
		height: 75px;
	}

	.fv-torneo-logo-img {
		max-height: 64px;
	}

	.fv-competitions-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.fv-competition-card--half,
	.fv-competition-card--third,
	.fv-competition-card:last-child:nth-child(odd) {
		grid-column: span 1;
	}

	.fv-competition-card__body {
		padding: 18px 20px 22px;
	}

	.fv-competition-card__title {
		font-size: 20px;
	}
}
