/* ============================================
   COMPARADOR TARJETAS DE CRÉDITO - CSS
   ============================================ */

/* Variables */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --success: #22c55e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* Filtros Section */
.filtros-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filtros-section h2 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.filtros-descripcion {
    color: var(--gray-600);
    margin: 0 0 1.5rem 0;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filtro-btn {
    position: relative;
    cursor: pointer;
}

.filtro-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filtro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.filtro-btn:hover .filtro-content {
    border-color: var(--primary);
    background: var(--gray-100);
}

.filtro-btn input:checked + .filtro-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: var(--primary);
    color: white;
}

.filtro-icon {
    font-size: 2rem;
}

.filtro-text {
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
}

.ordenar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.ordenar-container label {
    font-weight: 600;
    color: var(--gray-800);
}

.ordenar-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ordenar-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.resultados-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 10px;
}

.resultados-info p {
    margin: 0;
    color: var(--gray-600);
}

.btn-limpiar {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-limpiar:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Tarjetas Grid */
.tarjetas-section {
    margin: 2rem 0;
}

.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tarjeta-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tarjeta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tarjeta-card.destacada {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.tarjeta-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.tarjeta-header {
    margin-bottom: 1.5rem;
}

.tarjeta-banco {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.tarjeta-nombre {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

.tarjeta-tipo {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.tarjeta-info {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.info-value {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.125rem;
}

.info-value.gratis {
    color: var(--success);
    font-size: 1.25rem;
}

.info-value.cashback {
    color: var(--success);
}

.tarjeta-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.125rem;
}

.rating-number {
    font-weight: 700;
    color: var(--gray-800);
}

.tarjeta-beneficios {
    margin-bottom: 1.5rem;
}

.tarjeta-beneficios h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.75rem 0;
}

.beneficios-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficios-list li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    gap: 0.5rem;
}

.beneficios-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.tarjeta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.btn-solicitar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-solicitar:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* No Resultados */
.no-resultados {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-resultados-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-resultados h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.no-resultados p {
    color: var(--gray-600);
    margin: 0 0 1.5rem 0;
}

/* SEO Content */
.seo-content {
    margin: 4rem 0;
}

.seo-article {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.seo-article h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.seo-article h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 2rem 0 1rem 0;
}

.seo-article p {
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0 0 1.25rem 0;
}

.seo-article strong {
    color: var(--primary);
    font-weight: 700;
}

.faq-item {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
}

.faq-item p {
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn-cta {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* AdSense Container */
.adsense-container {
    max-width: 100%;
    margin: 2rem auto;
    text-align: center;
}

/* Footer Disclaimer */
.disclaimer {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarjetas-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .ordenar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .resultados-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tarjetas-grid {
        grid-template-columns: 1fr;
    }

    .seo-article {
        padding: 1.5rem;
    }

    .seo-article h2 {
        font-size: 1.5rem;
    }

    .seo-article h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filtros-section {
        padding: 1.5rem;
    }

    .tarjeta-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}