/* ============ SVF Histórico — sistema visual ============ */
.svf-app {
	--svf-primary: #163a5f;
	--svf-primary-light: #2a5c91;
	--svf-accent: #ff7a3d;
	--svf-bg: #f4f6f9;
	--svf-card: #ffffff;
	--svf-border: #e4e8ee;
	--svf-text: #1c2430;
	--svf-text-muted: #697586;
	--svf-radius: 16px;
	--svf-radius-sm: 10px;
	--svf-shadow: 0 2px 10px rgba(22, 58, 95, 0.07), 0 1px 2px rgba(22, 58, 95, 0.06);
	--svf-shadow-hover: 0 10px 24px rgba(22, 58, 95, 0.14), 0 2px 6px rgba(22, 58, 95, 0.08);

	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 24px 20px 60px;
	box-sizing: border-box;
	color: var(--svf-text);
	font-size: 16px;
	line-height: 1.5;
}
.svf-app * {
	box-sizing: border-box;
}
.svf-app h1 {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 1.9em;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 6px;
	color: var(--svf-primary);
}
.svf-app h2 {
	font-size: 1.3em;
	font-weight: 700;
	margin: 36px 0 14px;
	color: var(--svf-primary);
}
.svf-app a {
	color: var(--svf-primary-light);
}

/* ---- buscador ---- */
.svf-buscador {
	display: flex;
	gap: 8px;
	margin-bottom: 22px;
	max-width: 420px;
}
.svf-buscador input[type="text"],
.svf-buscador input[type="search"] {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid var(--svf-border);
	border-radius: 999px;
	font-size: 0.95em;
	background: var(--svf-card);
}
.svf-buscador input:focus {
	outline: 2px solid var(--svf-primary-light);
	outline-offset: 1px;
}
.svf-buscador button {
	padding: 10px 20px;
	border: none;
	border-radius: 999px;
	background: var(--svf-primary);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.svf-buscador button:hover {
	background: var(--svf-primary-light);
}

/* ---- migas de pan ---- */
.svf-breadcrumb {
	margin-bottom: 20px;
	font-size: 0.88em;
	color: var(--svf-text-muted);
}
.svf-breadcrumb a {
	text-decoration: none;
	color: var(--svf-text-muted);
}
.svf-breadcrumb a:hover {
	color: var(--svf-primary);
	text-decoration: underline;
}
.svf-breadcrumb span {
	color: var(--svf-text);
	font-weight: 600;
}

/* ---- cabecera destacada (hero) ---- */
.svf-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	background: linear-gradient(135deg, var(--svf-primary) 0%, var(--svf-primary-light) 100%);
	color: #fff;
	border-radius: var(--svf-radius);
	padding: 26px 28px;
	margin-bottom: 8px;
	box-shadow: var(--svf-shadow);
}
.svf-hero h1 {
	color: #fff;
	margin: 0;
}
.svf-hero .svf-hero-sub {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95em;
	margin-top: 4px;
}
.svf-hero .svf-flag-grande {
	height: 64px;
	width: 64px;
	object-fit: contain;
	background: #fff;
	border-radius: 14px;
	padding: 6px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.svf-hero .svf-escudo {
	height: 128px;
	width: 128px;
	object-fit: contain;
	background: #fff;
	border-radius: 14px;
	padding: 6px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.svf-nombre-actual {
	display: inline-block;
	margin: 10px 0 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fff3ec;
	color: var(--svf-accent);
	font-size: 0.82em;
	font-weight: 600;
}

/* ---- rejillas genéricas ---- */
.svf-grid {
	display: grid;
	gap: 14px;
	margin: 20px 0;
}
.svf-grid-paises {
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.svf-grid-temporadas {
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.svf-grid-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 10px;
	text-align: center;
	text-decoration: none;
	background: var(--svf-card);
	border: 1px solid var(--svf-border);
	border-radius: var(--svf-radius-sm);
	color: var(--svf-text);
	box-shadow: var(--svf-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.svf-grid-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--svf-shadow-hover);
	border-color: var(--svf-primary-light);
}
.svf-grid-paises .svf-grid-item img {
	width: 52px;
	height: 36px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.svf-grid-item span {
	font-size: 0.86em;
	font-weight: 600;
}
.svf-widget-cumples {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
}
.svf-widget-cumples li {
	margin: 0;
	padding: 0;
	list-style: none;
	border: none;
}
.svf-widget-cumples-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 7px 8px;
	border-radius: 10px;
	text-decoration: none;
	color: #1c2430;
	transition: background 0.15s ease;
}
.svf-widget-cumples-card:hover {
	background: #f4f6f9;
}
.svf-widget-cumples-foto,
.svf-widget-cumples-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	max-width: 44px;
}
.svf-widget-cumples-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f4f6f9, #e4e8ee);
	color: #697586;
	font-size: 1.1em;
	font-weight: 700;
}
.svf-widget-cumples-texto {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.svf-widget-cumples-nombre {
	font-weight: 700;
	font-size: 0.9em;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.svf-widget-cumples-badge {
	display: inline-block;
	width: fit-content;
	padding: 2px 9px;
	border-radius: 999px;
	background: #fff3ec;
	color: #ff7a3d;
	font-size: 0.74em;
	font-weight: 700;
	white-space: nowrap;
}
.svf-cumples {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--svf-border);
}
.svf-pais-conteo {
	font-size: 0.72em;
	color: var(--svf-text-muted);
	font-weight: 500;
}
.svf-grid-temporadas .svf-grid-item {
	font-weight: 700;
	color: var(--svf-primary);
	font-size: 0.95em;
}

/* ---- clubes de un país ---- */
.svf-lista-clubes {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.svf-lista-clubes li {
	background: var(--svf-card);
	border: 1px solid var(--svf-border);
	border-radius: var(--svf-radius-sm);
	box-shadow: var(--svf-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.svf-lista-clubes li:hover {
	transform: translateY(-2px);
	box-shadow: var(--svf-shadow-hover);
}
.svf-lista-clubes a {
	display: block;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--svf-text);
	font-weight: 600;
}
.svf-lista-clubes a:hover {
	color: var(--svf-primary);
}

/* ---- plantilla: jugadoras en tarjetas ---- */
.svf-roster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin: 20px 0;
}
.svf-jugadora-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--svf-card);
	border: 1px solid var(--svf-border);
	border-radius: var(--svf-radius);
	padding: 18px 14px;
	text-decoration: none;
	color: var(--svf-text);
	box-shadow: var(--svf-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.svf-jugadora-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--svf-shadow-hover);
}
.svf-jugadora-card .svf-roster-foto {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 12px;
	border: 3px solid var(--svf-bg);
	box-shadow: var(--svf-shadow);
}
.svf-jugadora-card .svf-roster-foto-placeholder {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	margin-bottom: 12px;
	background: linear-gradient(135deg, var(--svf-bg), var(--svf-border));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--svf-text-muted);
	font-size: 1.8em;
	font-weight: 700;
}
.svf-jugadora-card .svf-roster-nombre {
	font-weight: 700;
	font-size: 0.98em;
	margin-bottom: 6px;
	line-height: 1.25;
}
.svf-jugadora-card .svf-roster-meta {
	font-size: 0.8em;
	color: var(--svf-text-muted);
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 4px;
}
.svf-posicion-badge {
	display: inline-block;
	margin-top: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--svf-bg);
	color: var(--svf-primary);
	font-size: 0.76em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ---- ficha de jugadora ---- */
.svf-jugadora {
	background: var(--svf-card);
	border: 1px solid var(--svf-border);
	border-radius: var(--svf-radius);
	box-shadow: var(--svf-shadow);
	padding: 28px;
	margin-top: 10px;
}
.svf-jugadora-header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.svf-jugadora-foto {
	width: 160px;
	height: 200px;
	object-fit: cover;
	border-radius: var(--svf-radius-sm);
	box-shadow: var(--svf-shadow);
	flex-shrink: 0;
}
.svf-jugadora-foto-placeholder {
	width: 160px;
	height: 200px;
	border-radius: var(--svf-radius-sm);
	background: linear-gradient(135deg, var(--svf-bg), var(--svf-border));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--svf-text-muted);
	font-size: 3em;
	font-weight: 700;
	flex-shrink: 0;
}
.svf-jugadora-nombre {
	margin: 0 0 14px;
	color: var(--svf-primary);
}
.svf-jugadora-datos p {
	margin: 0;
	display: grid;
	grid-template-columns: 170px 1fr;
	row-gap: 8px;
	font-size: 0.96em;
}
.svf-jugadora-datos strong {
	color: var(--svf-text-muted);
	font-weight: 600;
}

/* ---- tablas (currículum, historial de nombres, búsqueda) ---- */
.svf-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 10px 0;
	background: var(--svf-card);
	border: 1px solid var(--svf-border);
	border-radius: var(--svf-radius-sm);
	overflow: hidden;
	box-shadow: var(--svf-shadow);
}
.svf-table th {
	background: var(--svf-bg);
	color: var(--svf-text-muted);
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}
.svf-table th,
.svf-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--svf-border);
}
.svf-table tbody tr:last-child td {
	border-bottom: none;
}
.svf-table tbody tr:hover {
	background: var(--svf-bg);
}
.svf-table a {
	font-weight: 600;
	text-decoration: none;
}
.svf-table a:hover {
	text-decoration: underline;
}

/* ---- currículum deportivo ---- */
.svf-curriculum {
	margin: 10px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.svf-curriculum-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--svf-card);
	border: 1px solid var(--svf-border);
	border-radius: var(--svf-radius-sm);
	border-left: 4px solid var(--svf-primary-light);
	box-shadow: var(--svf-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.svf-curriculum-row:hover {
	transform: translateY(-2px);
	box-shadow: var(--svf-shadow-hover);
	border-left-color: var(--svf-accent);
}
.svf-curriculum-temporada {
	flex: 0 0 auto;
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--svf-primary);
	color: #fff;
	font-weight: 700;
	font-size: 0.82em;
	white-space: nowrap;
}
.svf-curriculum-club {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.svf-curriculum-club .svf-escudo-mini {
	height: 32px;
	width: 32px;
	object-fit: contain;
	border-radius: 8px;
	background: var(--svf-bg);
	padding: 3px;
	flex-shrink: 0;
}
.svf-curriculum-club a,
.svf-curriculum-club span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}
.svf-curriculum-club .svf-flag {
	flex-shrink: 0;
	margin-right: 0;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.svf-curriculum-posicion {
	flex: 0 0 auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--svf-bg);
	color: var(--svf-text-muted);
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.svf-flag {
	height: 14px;
	vertical-align: middle;
	margin-right: 4px;
	border-radius: 2px;
}
.svf-escudo {
	height: 40px;
	width: auto;
	vertical-align: middle;
}
.svf-escudo-mini {
	height: 26px;
	width: auto;
	vertical-align: middle;
	margin-right: 6px;
	border-radius: 4px;
}

/* ---- paginación ---- */
.svf-paginacion {
	margin-top: 16px;
	display: flex;
	gap: 6px;
}
.svf-paginacion a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--svf-border);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9em;
	color: var(--svf-text);
}
.svf-paginacion a:hover {
	border-color: var(--svf-primary-light);
}
.svf-paginacion a.current {
	background: var(--svf-primary);
	color: #fff;
	border-color: var(--svf-primary);
}

/* ---- responsive ---- */
@media (max-width: 640px) {
	.svf-app h1 {
		font-size: 1.5em;
	}
	.svf-hero {
		flex-direction: column;
		text-align: center;
	}
	.svf-jugadora-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.svf-jugadora-datos p {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.svf-curriculum-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 16px;
		border-left-width: 0;
		border-top: 4px solid var(--svf-primary-light);
	}
	.svf-curriculum-row:hover {
		border-top-color: var(--svf-accent);
	}
	.svf-curriculum-temporada {
		flex-basis: auto;
		font-size: 0.85em;
	}
	.svf-curriculum-club {
		flex-basis: auto;
		width: 100%;
	}
	.svf-curriculum-club .svf-escudo-mini {
		height: 40px;
		width: 40px;
	}
	.svf-curriculum-club a,
	.svf-curriculum-club span {
		white-space: normal;
		font-size: 1.05em;
	}
	.svf-curriculum-posicion {
		flex-basis: auto;
	}
}
