/* =========================================================
   RANKING GREMIAL — GARDENIA
   ========================================================= */

.ranking-hero {
    min-height: 270px;
}

.ranking-hero .hero-content {
    min-height: 270px;
}

.ranking-hero .guild-title h1 {
    font-size: clamp(2.7rem, 4.5vw, 4.7rem);
    line-height: 1;
}

.ranking-notice {
    min-height: 205px;
    justify-content: flex-start;
}

.ranking-hero-links {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
}

.ranking-hero-links a {
    color: var(--navy-700);
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
}

.ranking-hero-links a:hover {
    color: var(--gold-700);
    text-decoration: underline;
}

.ranking-content {
    min-height: 620px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255,253,248,.99), rgba(246,241,231,.99));
}

.ranking-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(173,125,49,.28);
}

.ranking-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--gold-700);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ranking-heading h2,
.ranking-board-heading h2 {
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.ranking-heading p {
    max-width: 760px;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: .82rem;
    line-height: 1.55;
}

.ranking-summary-badge {
    min-width: 150px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    background: rgba(255,255,255,.6);
}

.ranking-summary-badge span {
    display: block;
    color: var(--text-soft);
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.ranking-summary-badge strong {
    display: block;
    margin-top: 3px;
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1;
}

/* Filtros */
.ranking-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 26px;
    padding: 11px;
    border: 1px solid rgba(173,125,49,.26);
    border-radius: 14px;
    background: rgba(255,255,255,.55);
}

.ranking-filter {
    min-height: 36px;
    padding: 7px 15px;
    border: 1px solid rgba(173,125,49,.28);
    border-radius: 999px;
    background: rgba(255,253,248,.88);
    color: var(--navy-800);
    font: 700 .68rem "Lato", Arial, sans-serif;
    letter-spacing: .04em;
    cursor: pointer;
    transition: .16s ease;
}

.ranking-filter:hover {
    transform: translateY(-1px);
    border-color: var(--gold-500);
}

.ranking-filter.is-active {
    color: var(--gold-100);
    border-color: var(--gold-600);
    background: linear-gradient(180deg, var(--navy-700), var(--navy-950));
}

/* Podio */
.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.podium-card {
    position: relative;
    min-height: 175px;
    padding: 20px 18px 17px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(209,168,83,.18), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,236,218,.9));
    box-shadow: var(--shadow-card);
}

.podium-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -38px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(173,125,49,.16);
}

.podium-position {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold-100);
    background: linear-gradient(180deg, var(--gold-500), var(--gold-800));
    font-family: "Marcellus", Georgia, serif;
    font-size: 1rem;
}

.podium-card h3 {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.08rem;
    font-weight: 400;
}

.podium-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: .66rem;
}

.podium-meta img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.podium-rp {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 15px;
    color: var(--navy-900);
}

.podium-rp strong {
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.podium-rp span {
    color: var(--text-soft);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.podium-state {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(11,37,69,.07);
    color: var(--navy-700);
    font-size: .61rem;
    font-weight: 700;
}

/* Tabla */
.ranking-board {
    margin-top: 6px;
}

.ranking-board-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.ranking-board-heading p {
    max-width: 390px;
    color: var(--text-soft);
    text-align: right;
    font-size: .64rem;
    line-height: 1.45;
}

.ranking-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-card);
}

.ranking-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.ranking-table thead {
    background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
}

.ranking-table th {
    padding: 12px 14px;
    color: var(--gold-100);
    text-align: left;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ranking-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(173,125,49,.16);
    color: var(--text-main);
    font-size: .75rem;
    vertical-align: middle;
}

.ranking-table tbody tr:nth-child(even) {
    background: rgba(244,234,213,.26);
}

.ranking-table tbody tr:hover {
    background: rgba(234,211,156,.2);
}

.ranking-table tbody tr:last-child td {
    border-bottom: 0;
}

.rank-pos {
    width: 74px;
    text-align: center !important;
}

.rank-rp {
    width: 130px;
    text-align: center !important;
}

.table-position {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--navy-900);
    background: rgba(173,125,49,.10);
    font-family: "Marcellus", Georgia, serif;
    font-size: .84rem;
}

.table-team strong {
    display: block;
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: .88rem;
    font-weight: 400;
}

.table-team span {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.table-rank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-rank img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.table-rp-value {
    font-family: "Marcellus", Georgia, serif;
    font-size: .98rem;
}

.table-state {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(11,37,69,.07);
    color: var(--navy-700);
    font-size: .62rem;
    font-weight: 700;
}

/* Lista móvil */
.ranking-mobile-list {
    display: none;
}

.ranking-mobile-card {
    padding: 15px;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow-soft);
}

.mobile-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-team img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.mobile-team h3 {
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: .94rem;
    font-weight: 400;
}

.mobile-team span {
    display: block;
    color: var(--text-soft);
    font-size: .58rem;
}

.mobile-rp {
    text-align: right;
}

.mobile-rp strong {
    display: block;
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.05rem;
}

.mobile-rp span {
    color: var(--text-soft);
    font-size: .58rem;
}

.mobile-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(173,125,49,.16);
}

.mobile-position {
    color: var(--gold-700);
    font-size: .68rem;
    font-weight: 700;
}

/* Nota */
.ranking-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 15px 18px;
    border: 1px solid rgba(173,125,49,.28);
    border-radius: 14px;
    background: rgba(255,255,255,.55);
}

.ranking-note img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.ranking-note span {
    display: block;
    color: var(--gold-700);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ranking-note strong {
    display: block;
    margin-top: 2px;
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: .86rem;
    font-weight: 400;
}

.ranking-note p {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: .67rem;
    line-height: 1.45;
}

.ranking-footer {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid rgba(173,125,49,.32);
    background: linear-gradient(180deg, rgba(247,242,232,.96), rgba(238,229,211,.96));
}

.ranking-footer img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ranking-footer strong,
.ranking-footer span {
    display: block;
}

.ranking-footer strong {
    color: var(--navy-900);
    font-family: "Marcellus", Georgia, serif;
    font-size: .78rem;
    font-weight: 400;
}

.ranking-footer span {
    color: var(--text-soft);
    font-size: .59rem;
}

/* Responsive */
@media (max-width: 900px) {
    .ranking-podium {
        grid-template-columns: 1fr;
    }

    .podium-card {
        min-height: 145px;
    }
}

@media (max-width: 720px) {
    .ranking-page {
        width: 100%;
        margin: 0;
        overflow: hidden;
        border-radius: 0;
    }

    .ranking-page .hero,
    .ranking-page .hero-content {
        min-height: auto;
    }

    .ranking-page .hero-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 18px 14px 24px;
    }

    .ranking-page .guild-logo {
        width: min(245px, 82vw);
        height: 218px;
        background-size: 145% auto;
    }

    .ranking-page .guild-title {
        width: 100%;
        text-align: center;
    }

    .ranking-page .guild-title h1 {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .ranking-page .guild-message {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ranking-content {
        padding: 20px 14px;
    }

    .ranking-heading,
    .ranking-board-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-board-heading p {
        text-align: left;
    }

    .ranking-filters {
        gap: 6px;
    }

    .ranking-filter {
        flex: 1 1 calc(33.333% - 6px);
        padding-inline: 8px;
    }

    .ranking-table-wrap {
        display: none;
    }

    .ranking-mobile-list {
        display: grid;
        gap: 10px;
    }

    .ranking-note {
        align-items: flex-start;
    }

    .ranking-note img {
        width: 46px;
        height: 46px;
    }
}
