/**
 * ============================================================
 * home.css (v2 — según mockup "GUA FUTBOL")
 * Dark mode + verde lima neón #c8f31d (unificado con el
 * dashboard y el perfil público). Responsive.
 * Guardar en: /tu-tema/css/home.css
 * ============================================================
 */

:root {
	--hp-fondo:       #101418;   /* azul-negro del mockup */
	--hp-panel:       #1a1f26;
	--hp-panel-2:     #222831;
	--hp-borde:       #2c333d;
	--hp-texto:       #f2f2f2;
	--hp-texto-suave: #9aa2ad;
	--hp-neon:        #c8f31d;
	--hp-neon-suave:  rgba(200, 243, 29, 0.12);
	--hp-radio:       12px;
}

html { scroll-behavior: smooth; }

body.hp-body { margin: 0; background: var(--hp-fondo); }

#home-plataforma {
	background: var(--hp-fondo);
	color: var(--hp-texto);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ------------------------------------------------------------
   1. HEADER
------------------------------------------------------------ */
.hp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(16, 20, 24, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--hp-borde);
}
.hp-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.hp-logo { display: flex; align-items: center; text-decoration: none; }
.hp-logo img { max-height: 44px; width: auto; }
.hp-logo-texto {
	font-size: 20px;
	font-weight: 900;
	color: var(--hp-texto);
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.1;
}

.hp-nav { display: flex; gap: 26px; margin-left: auto; }
.hp-nav a {
	color: var(--hp-texto-suave);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.hp-nav a:hover { color: var(--hp-texto); }
.hp-nav a.activo {
	color: var(--hp-neon);
	border-bottom-color: var(--hp-neon);
}

.hp-header-acciones { display: flex; gap: 12px; align-items: center; }
.hp-btn-header-sec {
	color: var(--hp-texto);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	transition: background .15s ease;
}
.hp-btn-header-sec:hover { background: var(--hp-panel); color: var(--hp-texto); }
.hp-btn-header-neon {
	background: var(--hp-neon);
	color: #101418;
	text-decoration: none;
	font-size: 14px;
	font-weight: 800;
	padding: 11px 20px;
	border-radius: 8px;
	transition: filter .15s ease;
}
.hp-btn-header-neon:hover { filter: brightness(1.1); color: #101418; }

.hp-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--hp-borde);
	color: var(--hp-texto);
	font-size: 20px;
	border-radius: 8px;
	padding: 6px 12px;
	cursor: pointer;
}

/* ------------------------------------------------------------
   2. HERO (con buscador + filtros + destacados integrados)
------------------------------------------------------------ */
.hp-hero {
	position: relative;
	flex: 1;
	/* Cambia la ruta por tu imagen real */
	background: url('../assets/img/hero-estadio.jpg') center top / cover no-repeat, var(--hp-fondo);
}
.hp-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
		rgba(16, 20, 24, 0.72) 0%,
		rgba(16, 20, 24, 0.85) 55%,
		var(--hp-fondo) 100%);
}
.hp-hero-contenido {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	padding: 90px 24px 70px;
}

.hp-hero h1 {
	font-size: clamp(34px, 5.5vw, 60px);
	font-weight: 900;
	line-height: 1.08;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: -0.5px;
	max-width: 760px;
}
.hp-hero h1 .neon {
	color: var(--hp-neon);
	text-shadow: 0 0 26px rgba(200, 243, 29, 0.4);
}
.hp-hero-sub {
	font-size: clamp(16px, 2vw, 20px);
	color: #d5d9de;
	margin: 0 0 34px;
}

/* Buscador central */
.hp-form-busqueda {
	position: relative;
	max-width: 900px;
	margin-bottom: 22px;
}
.hp-lupa {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	opacity: .55;
	font-size: 17px;
	pointer-events: none;
}
.hp-form-busqueda input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	padding: 19px 22px 19px 52px;
	border-radius: var(--hp-radio);
	border: none;
	background: #f5f6f7;
	color: #1a1a1a;
	font-size: 17px;
	outline: none;
	box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}
.hp-form-busqueda input::placeholder { color: #8a8f96; }
.hp-form-busqueda input:focus { box-shadow: 0 0 0 3px var(--hp-neon), 0 6px 30px rgba(0,0,0,0.35); }

/* Filtros por división */
.hp-filtros-division {
	display: flex;
	gap: 16px;
	margin-bottom: 60px;
	flex-wrap: wrap;
}
.hp-filtro {
	flex: 1;
	min-width: 200px;
	text-align: center;
	padding: 17px 20px;
	border-radius: 10px;
	border: 1px solid var(--hp-borde);
	background: rgba(16, 20, 24, 0.75);
	color: var(--hp-texto);
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
	transition: all .15s ease;
}
.hp-filtro:hover,
.hp-filtro.activo-visual {
	border-color: var(--hp-neon);
	color: var(--hp-neon);
	box-shadow: 0 0 18px rgba(200, 243, 29, 0.15);
}

/* ------------------------------------------------------------
   3. DESTACADOS DE LA SEMANA
------------------------------------------------------------ */
.hp-destacados h2 {
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .6px;
	margin: 0 0 22px;
}
.hp-grid-destacados {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.hp-card-jugador {
	background: rgba(26, 31, 38, 0.92);
	border: 1px solid var(--hp-borde);
	border-radius: var(--hp-radio);
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hp-card-jugador:hover {
	transform: translateY(-4px);
	border-color: var(--hp-neon);
	box-shadow: 0 10px 34px rgba(200, 243, 29, 0.12);
}
.hp-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 18px;
}

.hp-card-top {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 16px;
}
.hp-card-foto {
	width: 74px; height: 74px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--hp-panel-2);
}
.hp-card-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-card-foto-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; opacity: .35;
}
.hp-card-datos { flex: 1; min-width: 0; }
.hp-card-datos h3 { margin: 0 0 3px; font-size: 16px; font-weight: 800; }
.hp-card-club { margin: 0 0 3px; color: var(--hp-texto-suave); font-size: 13px; }
.hp-card-division { margin: 0; color: var(--hp-texto-suave); font-size: 13px; }
.hp-card-escudo { width: 34px; height: auto; flex-shrink: 0; }

.hp-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.hp-card-score .etiqueta {
	display: block;
	color: var(--hp-neon);
	font-size: 13px;
	font-weight: 700;
}
.hp-card-score .valor {
	color: var(--hp-neon);
	font-size: 30px;
	font-weight: 900;
	line-height: 1.1;
}
.hp-card-radar canvas { display: block; }

/* ------------------------------------------------------------
   4. FOOTER
------------------------------------------------------------ */
.hp-footer {
	background: rgba(13, 16, 20, 0.98);
	border-top: 1px solid var(--hp-borde);
}
.hp-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.hp-footer-copy { color: var(--hp-texto-suave); font-size: 13px; }
.hp-footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hp-footer-links a {
	color: var(--hp-texto-suave);
	text-decoration: none;
	font-size: 13px;
	transition: color .15s ease;
}
.hp-footer-links a:hover { color: var(--hp-neon); }
.hp-red { font-size: 16px; }

.hp-sin-datos { color: var(--hp-texto-suave); font-style: italic; }

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 980px) {
	.hp-grid-destacados { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.hp-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--hp-fondo);
		border-bottom: 1px solid var(--hp-borde);
		padding: 10px 24px 16px;
	}
	.hp-nav.abierto { display: flex; }
	.hp-nav a { padding: 12px 0; }
	.hp-menu-toggle { display: block; margin-left: auto; }
	.hp-header-acciones .hp-btn-header-sec { display: none; }
}
@media (max-width: 640px) {
	.hp-hero-contenido { padding: 60px 18px 50px; }
	.hp-grid-destacados { grid-template-columns: 1fr; }
	.hp-filtros-division { flex-direction: column; }
	.hp-filtro { min-width: 0; }
	.hp-footer-inner { flex-direction: column; text-align: center; }
}
