/* ─── Estilos de la página de inicio (Home/Index) ─── */

:root {
    --navy:      #0c2d5e;
    --navy-mid:  #103876;
    --navy-lite: #1a5099;
    --gold:      #f0b429;
    --gold-dark: #d69a10;
    --white:     #ffffff;
    --text-muted-custom: #8fa3bf;
    --card-radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,.35);
    --shadow-sm: 0 4px 16px rgba(0,0,0,.2);
}


/* ── Contenedor oscuro de la home ──────────────── */
.inicio-wrap {
    background: linear-gradient(160deg, #091e42 0%, #0c2d5e 50%, #103876 100%);
    border-radius: 16px;
    min-height: calc(100vh - var(--qvip-topbar-h, 56px) - 48px);
    padding-bottom: 1.5rem;
}

/* ── Hero ───────────────────────────────────────── */
.hero-inicio {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(240,180,41,.15);
    border: 1px solid rgba(240,180,41,.35);
    color: var(--gold);
    border-radius: 20px;
    padding: .3rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .7rem;
}
.hero-inicio h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .3rem;
    line-height: 1.2;
}
.hero-name { color: var(--gold); }
.hero-sub {
    color: var(--text-muted-custom);
    font-size: .92rem;
    margin-bottom: 0;
}

/* ── Botón principal ────────────────────────────── */
.main-action-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.4rem 1rem 0;
}
.btn-quiniela {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #091e42;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    padding: .85rem 2.8rem;
    box-shadow: 0 6px 24px rgba(240,180,41,.45);
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}
.btn-quiniela:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(240,180,41,.6);
    color: #091e42;
    text-decoration: none;
}
.btn-quiniela .icon { font-size: 1.2rem; }

/* ── Cards de navegación ────────────────────────── */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .9rem;
    padding: 1.6rem 1rem;
    max-width: 680px;
    margin: 0 auto;
}
@media (min-width: 576px) {
    .nav-cards { grid-template-columns: repeat(4, 1fr); }
}
.nav-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--card-radius);
    padding: 1.2rem .8rem;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    transition: background .2s, transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.nav-card:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(240,180,41,.5);
    transform: translateY(-4px);
    color: var(--white);
    text-decoration: none;
}
.nav-card.disabled { opacity: .45; pointer-events: none; }
.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.card-label { font-size: .82rem; font-weight: 700; letter-spacing: .2px; }
.card-sub   { font-size: .7rem; color: var(--text-muted-custom); margin-top: -.25rem; }

.icon-puntos  { background: rgba(99,179,237,.15); }
.icon-results { background: rgba(72,187,120,.15); }
.icon-top     { background: rgba(240,180,41,.15); }
.icon-admin   { background: rgba(237,100,166,.15); }

/* ── Sección partidos ───────────────────────────── */
.section-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted-custom);
    margin-bottom: 1rem;
}
.matches-wrapper {
    padding: 0 1rem 2rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Indicadores del carousel sobre fondo oscuro */
.carousel-indicators-dark li {
    background-color: rgba(255,255,255,.4);
}
.carousel-indicators-dark .active {
    background-color: var(--gold);
}

/* Controles del carousel */
.btn-carousel {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 36px !important;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
}
.btn-carousel:hover {
    background: rgba(240,180,41,.25);
    border-color: var(--gold);
}

/* ── Logo liga (sin partidos) ───────────────────── */
.league-logo-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}
.league-logo {
    max-width: 200px;
    opacity: .7;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
}

/* ── Modales oscuros ────────────────────────────── */
.modal-content-dark {
    background: #0e2a5a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--card-radius);
    color: #fff;
}
.modal-content-dark .modal-header  { border-bottom: 1px solid rgba(255,255,255,.1); }
.modal-content-dark .modal-footer  { border-top:    1px solid rgba(255,255,255,.1); }
.modal-content-dark .modal-title   { font-weight: 700; }
.modal-content-dark .close         { color: #fff; text-shadow: none; opacity: .8; }
.modal-content-dark .btn-secondary {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
}

/* Tarjeta de modo de juego dentro del modal */
.modo-card {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 1.4rem;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: block;
}
.modo-card:hover {
    border-color: var(--gold);
    background: rgba(240,180,41,.08);
    color: #fff;
    text-decoration: none;
}
.modo-card img       { max-height: 70px; margin-bottom: .7rem; opacity: .9; }
.modo-card .modo-title { font-weight: 700; font-size: .95rem; }
.modo-card .modo-sub   { font-size: .78rem; color: var(--text-muted-custom); margin-top: .2rem; }

/* ── Banner verificación de correo ─────────────────────────────────── */
.verify-banner {
    background: rgba(240,180,41,.1);
    border: 1px solid rgba(240,180,41,.35);
    border-radius: 12px;
    padding: .75rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    flex-wrap: wrap;
}
.verify-btn {
    background: var(--gold);
    color: #091e42;
    border: none;
    border-radius: 8px;
    padding: .35rem .9rem;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.verify-btn:hover { opacity: .85; }
.invite-panel--locked { opacity: .6; pointer-events: none; }

/* ── Panel de invitaciones ──────────────────────────────────────────── */
.invite-panel { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:1.2rem 1.4rem; }
.invite-panel-title { font-weight:700; color:#fff; font-size:1rem; display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem; }
.invite-count { background:rgba(240,180,41,.2); color:var(--gold); border-radius:20px; padding:.15rem .6rem; font-size:.78rem; font-weight:700; }
.invite-hint { color:rgba(255,255,255,.6); font-size:.83rem; margin-bottom:.5rem; }
.invite-link-box { display:flex; gap:.5rem; align-items:center; background:rgba(255,255,255,.07); border-radius:10px; padding:.5rem .8rem; margin-bottom:.7rem; }
.invite-link-box span { flex:1; font-size:.78rem; color:rgba(255,255,255,.7); word-break:break-all; }
.btn-copy { background:var(--gold); color:#091e42; border:none; border-radius:8px; padding:.3rem .8rem; font-size:.8rem; font-weight:700; cursor:pointer; white-space:nowrap; }
.btn-copy:hover { opacity:.85; }
.invite-members { margin-top:.5rem; display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.invite-members small { color:rgba(255,255,255,.4); font-size:.75rem; width:100%; }
.invite-chip { background:rgba(255,255,255,.1); border-radius:20px; padding:.2rem .7rem; font-size:.78rem; color:rgba(255,255,255,.75); }
