/* IMPORTAR FUENTE MODERNA */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --primary: #0f172a;       /* Azul Oscuro Profundo */
    --accent: #22c55e;        /* Verde Vibrante */
    --accent-hover: #16a34a;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    box-sizing: border-box;
}

.nav-logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- HERO SECTION (PORTADA) --- */
.hero-section {
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)), url('https://images.unsplash.com/photo-1518609878373-06d740f60d8b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
}

/* --- SUPER BUSCADOR --- */
.search-container {
    width: 100%;
    max-width: 850px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: var(--white);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Formulario de Búsqueda */
.search-form {
    display: none;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    gap: 10px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    align-items: center;
}

.search-form.active { display: flex; }

.search-input, .search-select {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.search-input {
    flex: 2;
    border-right: 1px solid #e2e8f0;
}

.search-select { flex: 1; }

.btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-search:hover {
    background: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

/* --- SECCIÓN DE CANCHAS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 5px;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.venue-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.venue-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.15);
}

.venue-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.venue-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.venue-card:hover .venue-img { transform: scale(1.1); }

.price-badge {
    position: absolute;
    bottom: 15px; right: 15px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.venue-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sport-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.venue-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- SECCIÓN JUGADORES (FICHAJES) --- */
.players-section {
    background: var(--white);
    border-radius: 30px;
    padding: 60px 40px;
    margin-top: 60px;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.home-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* TARJETAS JUGADORES */
.player-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
    margin-top: 40px;
}

.player-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.player-header {
    position: relative;
}

.player-avatar {
    width: 80px; height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800;
    margin: -50px auto 15px; /* Avatar sobresaliendo */
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    border: 4px solid var(--white);
}

.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.player-pos {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.btn-contact {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid #e2e8f0;
    transition: 0.3s;
}

.btn-contact:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f0fdf4;
}

/* --- RESPONSIVO (MÓVIL) --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    .search-container {
        padding: 20px;
        border-radius: 20px;
        background: var(--white);
    }
    
    .search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    
    .search-input, .search-select {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    .btn-search { width: 100%; margin-top: 10px; }
    
    .navbar { position: absolute; padding: 15px 20px; }
    .nav-logo { font-size: 1.5rem; }
}