.ranking-single-page {
    background-color: var(--blanco-legalzone);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.ranking-single-page h3 {
    border-left: 3px solid var(--lz-gold);
    padding-left: 10px;
}

.ranking-single-page .ranking-position {
    line-height: 0;
    background-color: var(--lz-gold);
    color: var(--lz-navy);
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    border-radius: 8px 0;
}

.ranking-single-page .ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
    padding: 20px;
    border-radius: 8px;
    position: relative;

    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgb(0 0 0 / .05);
}

.ranking-single-page .ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-single-page .ranking-item img {
    height: 50px;
    object-fit: contain;
}

.ranking-single-page .ranking-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-single-page .ranking-actions .btn-visitar {
    background-color: var(--lz-navy);
    color: var(--blanco);
    padding: 10px 50px;
    border-radius: 4px;
    text-align: center;
}

.ranking-single-page .ranking-actions .btn-reseña {
    color: var(--lz-navy);
    text-align: center;
    background: transparent;
    padding: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    text-transform: lowercase;
}

@media (max-width: 1024px) {

}

@media (max-width: 768px) {
    .ranking-single-page {
        padding: 20px 10px;
    }

    .ranking-single-page .ranking-item img {
        height: 40px;
        width: 150px;
        margin: 0;
    }

    .ranking-single-page .ranking-actions .btn-visitar {
        padding: 10px 20px;
    }

    .ranking-single-page .ranking-item {
        margin-bottom: 10px;
        padding: 10px;
    }

    .ranking-single-page .ranking-position {
        bottom: 0;
        right: 0;
        font-size: 12px;
        padding: 15px 10px;
    }
}

@media (max-width: 420px) {

}

/* ==============================================
   BONO CARD — legalzone_bonos_disponibles (cupón style)
   ============================================== */

/* --- Wrappers --- */
.bonos-wrap--featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 25px;
}

.bonos-wrap--sidebar {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.bonos-wrap__title {
    grid-column: 1 / -1;
    border-left: 3px solid var(--lz-gold);
    padding-left: .6rem;
    font-size: 1rem;
    color: var(--lz-navy);
    margin: 0 0 .5rem;
}

/* ==============================================
   BASE CARD (cupón style)
   ============================================== */
.bono-card {
    position: relative;
    background: #fff;
    border: 2px dashed var(--lz-gold);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .18s, border-color .2s;
}

.bono-card:hover {
    box-shadow: 0 8px 24px rgba(15,42,74,.12);
    transform: translateY(-3px);
    border-color: var(--lz-navy);
}

/* Hero / featured variant: full width, slightly larger */
.bono-card--featured {
    grid-column: 1 / -1;
    padding: 1.75rem;
    background: linear-gradient(135deg, #fff 0%, var(--lz-white) 100%);
    border-width: 2px;
    box-shadow: 0 4px 18px rgba(15,42,74,.07);
}

.bono-card--standard {
    padding: 1.25rem;
}

/* --- Header --- */
.bono-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ececec;
    margin-bottom: 1rem;
}

.bono-card__logo {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.bono-card__logo img {
    height: 40px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}

.bono-card--featured .bono-card__logo img {
    height: 52px;
    max-width: 170px;
}

.bono-card__logo-text {
    font-size: .85rem;
    font-weight: 700;
    color: var(--lz-navy);
}

/* --- Tags (DGOJ / urgent) --- */
.bono-card__tag {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .65rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(15,42,74,.08);
    color: var(--lz-navy);
}

.bono-card__tag--urgent {
    background: #fff0e0;
    color: #b45309;
    animation: pulse-tag 2.5s ease-in-out infinite;
}

@keyframes pulse-tag {
    0%, 100% { box-shadow: 0 0 0 0 rgba(180,83,9,0); }
    50%      { box-shadow: 0 0 0 4px rgba(180,83,9,.18); }
}

/* --- Body --- */
.bono-card__body {
    margin-bottom: 1rem;
}

.bono-card__amount {
    margin: 0 !important;
}

.bono-card--featured .bono-card__body {
    margin-bottom: 1.25rem;
}

.bono-card__label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--lz-muted);
    margin: 0 0 .35rem;
    font-weight: 600;
}

.bono-card__amount {
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 700;
    color: var(--lz-navy);
    line-height: 1.2;
    margin: 0 0 .5rem;
}

.bono-card--featured .bono-card__amount {
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
}

.bono-card__desc {
    font-size: .82rem;
    color: #555;
    line-height: 1.55;
    margin: 0;
    margin-bottom: 0 !important;
}

.bono-card--featured .bono-card__desc {
    font-size: .92rem;
    color: #444;
    max-width: 70ch;
}

/* --- Urgency banner (light) --- */
.bono-card__urgency {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #b45309;
    padding: .55rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 6px;
    margin-top: .75rem;
}

.bono-card__urgency .lz-icon { flex-shrink: 0; }

/* ==============================================
   STATS (depósito / requisito / validez)
   ============================================== */
.bono-card__stats {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    margin-bottom: 1rem;
}

.bono-card--featured .bono-card__stats {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    margin-bottom: 1.1rem;
}

.bono-card__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .65rem .4rem;
    border-bottom: 1px solid #efefef;
    text-align: center;
    gap: .15rem;
}

.bono-card__stat:last-child { border-right: none; }

.bono-card__stat > .lz-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: .15rem;
}

.bono-card__stat em {
    font-style: normal;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--lz-muted);
    font-weight: 600;
}

.bono-card__stat strong {
    font-size: .85rem;
    font-weight: 700;
    color: var(--lz-navy);
    line-height: 1.2;
}

.bono-card--featured .bono-card__stat strong {
    font-size: .95rem;
}

/* ==============================================
   RATING row
   ============================================== */
.bono-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .5rem 0 .75rem;
    font-size: .82rem;
    color: var(--lz-muted);
}

.bono-card__rating-text strong {
    color: var(--lz-navy);
    font-weight: 700;
}

/* Override del star color para que case con el theme */
.bono-card__rating .legalzone-stars { font-size: 16px; }

/* ==============================================
   FOOTER + CTA
   ============================================== */
.bono-card__footer {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
}

.bono-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    background: var(--lz-navy);
    color: #fff !important;
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.bono-card--featured .bono-card__cta {
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, var(--lz-navy) 0%, var(--negro-legalzone) 100%);
}

.bono-card__cta:hover {
    background: var(--negro-legalzone);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(15,42,74,.28);
    color: #fff !important;
}

.bono-card__cta-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.bono-card__link {
    font-size: .78rem;
    color: var(--lz-muted) !important;
    text-decoration: none;
    transition: color .2s;
    font-weight: 500;
}

.bono-card__link:hover { color: var(--lz-navy) !important; }

.bono-card__legal {
    font-size: .62rem;
    color: #aaa;
    margin: 0;
    text-align: center;
    letter-spacing: .03em;
    margin-bottom: 0 !important;
}

/* ==============================================
   SIDEBAR COMPACT CARD (sin cambios visuales)
   ============================================== */
.bono-card--sidebar {
    flex-direction: row;
    align-items: center;
    padding: .65rem .9rem;
    gap: .75rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.bono-card--sidebar .bono-card__logo {
    flex-shrink: 0;
    height: 32px;
}

.bono-card--sidebar .bono-card__logo img {
    max-height: 32px;
    max-width: 76px;
}

.bono-card--sidebar .bono-card__sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.bono-card--sidebar .bono-card__sidebar-amount {
    font-size: .86rem;
    font-weight: 700;
    color: var(--lz-navy);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bono-card--sidebar .bono-card__sidebar-org {
    font-size: .65rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bono-card__cta--sm {
    flex-shrink: 0;
    width: auto;
    font-size: .68rem;
    padding: .4rem .85rem;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1199px) {
    .bonos-wrap--featured { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .bonos-wrap--featured { grid-template-columns: 1fr; }
    .bono-card--featured { padding: 1.5rem; }
    .bono-card--featured .bono-card__header { flex-wrap: wrap; }
    .bono-card--featured .bono-card__desc { max-width: 100%; }
}

@media (max-width: 575px) {
    .bono-card,
    .bono-card--featured,
    .bono-card--standard {
        padding: 1rem;
    }
    .bono-card--featured .bono-card__amount { font-size: 1.25rem; }
    .bono-card__stats { flex-wrap: wrap; }
    .bono-card__stat { flex-basis: 33.333%; padding: .5rem .25rem; }
}