/* ============================================ */
/* ESTILOS NO CRÍTICOS - CARGADOS ASYNC       */
/* ============================================ */

/* Featured Badge con animación */
.featured-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #f59e0b;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Estrellas de rating */
.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

/* Provider Cards */
.provider-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.provider-card .card-body .row {
    justify-content: center;
}

/* Featured Card */
.featured-card {
    background: linear-gradient(135deg, var(--primary), #3b56d3);
    border: none;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Score Circle */
.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

/* Modales */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Charts */
.chart-container {
    position: relative;
    height: 220px;
    margin: 20px 0;
}

/* Botones de afiliado */
.affiliate-btn {
    background: #ef4444;
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
    transition: 0.3s;
}

.affiliate-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark);
    color: #cbd5e1;
    font-size: 0.9375rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.875rem;
    color: #92400e;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: #1e293b;
}

/* Tabla comparativa */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: var(--light);
    font-weight: 600;
}

/* Logos */
.coupon-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #673de6, #9f6eff);
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #101626 0%, #1e293b 100%);
    border: 1px solid #334155;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stats-card small {
    font-size: 0.875rem;
    color: #d1d5db !important;
}

.stats-card h6 {
    font-size: 1rem;
}

.stats-card .text-success {
    color: #22c55e !important;
}

.stats-card .text-warning {
    color: #f59e0b !important;
}

.stats-card .text-info {
    color: #3b82f6 !important;
}

.stats-card .text-winner {
    color: #bbff00 !important;
}



.img-header {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================ */
/* RESPONSIVE - TABLETS Y MÓVILES             */
/* ============================================ */

/* Tablets y Mobile (hasta 991px) */
@media (max-width: 991px) {
    .provider-card .row {
        flex-wrap: wrap !important;
        text-align: center !important;
    }

    .provider-card .col-md-2,
    .provider-card .col-md-3,
    .provider-card .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .coupon-logo {
        width: 100px !important;
        height: auto !important;
        margin-bottom: 1rem;
    }

    .provider-card h3 {
        margin-top: 0.5rem;
    }

    .provider-card p,
    .provider-card ul {
        text-align: center;
    }
}

/* Mobile landscape */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 40px;
    }
}

/* Mobile específico (hasta 768px) */
@media (max-width: 768px) {
    .featured-card .row>div {
        margin-bottom: 1rem;
    }

    .score-circle {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .stats-card {
        margin-top: 3rem;
    }

    /* Charts responsive height */
    .chart-container {
        height: 180px !important;
    }
}
