* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========= HEADER ========= */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f2b3d 0%, #1e5a7d 50%, #2d8fbd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #5b6e8c;
    letter-spacing: normal;
    margin-top: 0.2rem;
    display: block;
}

.tagline {
    font-size: 0.85rem;
    color: #2c6e9e;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
}

/* ========= FILTROS ========= */
.filters-section {
    margin: 2.5rem 0 2rem 0;
}

.filter-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #3b7ca5;
    margin-bottom: 1.2rem;
    text-align: center;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    row-gap: 1rem;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.filter-btn i {
    margin-right: 8px;
    font-size: 0.85rem;
    color: #5f8ab6;
    transition: 0.2s;
}

.filter-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: linear-gradient(135deg, #0f2b3d 0%, #1b4a6e 100%);
    border-color: #0f2b3d;
    color: white;
    box-shadow: 0 8px 18px rgba(15, 43, 61, 0.2);
}

.filter-btn.active i {
    color: #ffd966;
}

/* ========= SECCIONES ========= */
.category-section {
    margin: 2.5rem 0 3rem;
    animation: fadeInUp 0.5s ease-out;
    text-align: center;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: block;
    text-align: center;
    width: 100%;
}

.section-futbol .section-header {
    border-bottom-color: #1e5a7d;
    color: #1e5a7d;
}

.section-otrosDeportes .section-header {
    border-bottom-color: #d97706;
    color: #b45309;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= TARJETAS - VERSIÓN CORREGIDA ========= */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 2rem;
    justify-content: center;
    align-items: start;
}

/* Tarjeta principal */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(203, 213, 225, 0.5);
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

/* Contenedor de la imagen - SIN padding, SIN bordes internos */
.card-img-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Imagen: ocupa TODO el espacio disponible */
.card-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    /* Cambiado de 'cover' a 'contain' */
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
    background: white;
    padding: 1rem;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.03);
}

/* Contenido de texto */
.card-info {
    padding: 1rem 1rem 1.5rem 1rem;
    background: white;
}

.card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0f172a;
    margin-bottom: 0.6rem;
    text-align: center;
}

.card-desc {
    font-size: 0.8rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-link {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    color: #1e40af;
    font-weight: 500;
    transition: 0.2s;
}

.card:hover .badge-link {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}

.empty-message {
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 48px;
    color: #5b6e8c;
    font-size: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* ========= RESTO DE SECCIONES (FAQ, HOW TO, BENEFITS) ========= */
.section {
    margin: 4rem 0;
    animation: fadeInUp 0.5s ease-out;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1e5a7d, #2d8fbd);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* FAQ */
.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    text-align: center;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1e5a7d;
}

.faq-item p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

/* Cómo comprar */
.how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.how-step {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    position: relative;
}

.how-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.how-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e5a7d, #3b9cd9);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1rem auto;
}

.how-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

.how-step p {
    font-size: 0.85rem;
    color: #5b6e8c;
    line-height: 1.5;
}

.how-to-cta {
    text-align: center;
    margin-top: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: white;
    padding: 1rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(7, 94, 84, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(7, 94, 84, 0.3);
    gap: 12px;
}

/* Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.benefit-card {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.benefit-icon i {
    font-size: 1.8rem;
    color: #1e5a7d;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

.benefit-card p {
    font-size: 0.85rem;
    color: #5b6e8c;
    line-height: 1.5;
}

/* ========= FOOTER ========= */
footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    margin-top: 3rem;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

footer p {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid #334155;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .filter-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.75rem;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .section-header {
        font-size: 1.4rem;
    }

    .card-img-wrapper {
        height: 180px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #eef2ff;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}