html, body {
    height: 100%;
}

body.site-body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
}

.main-content {
    flex: 1;
}

/* NAVBAR */
.custom-navbar {
    background: linear-gradient(90deg, var(--azul-principal), var(--azul-secundario));
    padding: 0.9rem 0;
}

.logo-club {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.brand-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
}

.brand-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
}

.user-pill {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.45rem 0.9rem !important;
}

/* HERO */
.hero-section {
    padding: 3rem 0;
}

.hero-card {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    color: var(--blanco);
    border-radius: var(--radio);
    padding: 2rem;
    box-shadow: var(--sombra);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.hero-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    max-width: 650px;
}

.hero-logo-box {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 2rem;
    box-shadow: var(--sombra);
}

.hero-logo {
    max-width: 260px;
}

/* LOGIN */
.login-section {
    padding: 3rem 0;
}

.login-card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 2rem;
    border: 1px solid var(--gris-borde);
}

.login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-principal);
}

.login-subtitle {
    color: var(--texto-suave);
    margin-bottom: 0;
}

.login-demo {
    background: var(--gris-claro);
    border: 1px dashed var(--gris-borde);
    border-radius: 14px;
    padding: 0.9rem;
    text-align: center;
}

/* PANELS */
.panel-card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.5rem;
    border: 1px solid var(--gris-borde);
    box-shadow: var(--sombra);
}

.section-title {
    color: var(--azul-principal);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-text {
    color: var(--texto-suave);
}

/* INPUTS */
.custom-input {
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    border: 1px solid #cfd8e6;
}

.custom-input:focus {
    border-color: var(--azul-hover);
    box-shadow: 0 0 0 0.2rem rgba(33, 77, 160, 0.18);
}

/* BUTTONS */
.custom-btn-primary,
.custom-btn-secondary,
.custom-btn-outline {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.custom-btn-primary {
    background: var(--azul-principal);
    border-color: var(--azul-principal);
    padding: 0.75rem 1.2rem;
}

.custom-btn-primary:hover {
    background: var(--azul-hover);
    border-color: var(--azul-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 31, 77, 0.20);
}

.custom-btn-secondary {
    padding: 0.75rem 1.2rem;
}

.custom-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.12);
}

.custom-btn-outline:hover {
    transform: translateY(-1px);
}

/* FOOTER */
.site-footer {
    background: var(--azul-principal);
    color: var(--blanco);
    padding: 1.2rem 0;
    margin-top: 2rem;
}
.subsection-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--azul-principal);
}

.empty-text {
    color: var(--texto-suave);
}

.player-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-box {
    background: var(--gris-claro);
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
}

.summary-box small {
    display: block;
    color: var(--texto-suave);
    margin-bottom: 0.25rem;
}

.summary-box strong {
    font-size: 1.1rem;
    color: var(--azul-principal);
}

.custom-list {
    border-radius: 14px;
    overflow: hidden;
}

.custom-list-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem;
}

.metric-card {
    display: block;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    color: var(--blanco);
    border-radius: var(--radio);
    padding: 1.2rem;
    box-shadow: var(--sombra);
    min-height: 110px;
}

.metric-card small {
    display: block;
    color: rgba(255,255,255,0.78);
    margin-bottom: 0.4rem;
}

.metric-card strong {
    font-size: 1.5rem;
    line-height: 1.2;
}

.metric-link {
    transition: all 0.25s ease;
}

.metric-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(11, 31, 77, 0.18);
}

.custom-table thead th {
    background: #eef3fb;
    color: var(--azul-principal);
    border-bottom: 1px solid var(--gris-borde);
    white-space: nowrap;
}

.custom-table tbody td {
    vertical-align: middle;
}
.ranking-table .ranking-position {
    display: inline-block;
    min-width: 52px;
    text-align: center;
    background: var(--gris-claro);
    border: 1px solid var(--gris-borde);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    color: var(--azul-principal);
}

.row-highlight {
    background: rgba(22, 58, 122, 0.06);
}

.row-highlight td {
    border-bottom-color: rgba(22, 58, 122, 0.18);
}
textarea.custom-input {
    resize: vertical;
    min-height: 110px;
}
.mini-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-principal);
}
.sponsors-section {
    max-width: 900px;
    margin: 0 auto;
}

.sponsors-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-principal);
}

.sponsor-grid {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sponsor-single {
    display: flex;
    justify-content: center;
}

.sponsor-card {
    width: 180px;
    height: 110px;
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .sponsor-card {
        width: 220px;
        height: 120px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        filter: invert(1);
    }
}