* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8f9fb;
    color: #111;
    line-height: 1.6;
}

a {
    color: inherit;
}


/* =========================
   HEADER
========================= */

.site-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #111;
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo span {
    color: #5a45fe;
}

.header-meta {
    font-size: 13px;
    color: #666;
}


/* =========================
   HERO
========================= */

.hero {
    max-width: 1100px;
    margin: 20px auto;
    padding: 60px 20px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef0ff;
    color: #5a45fe;
    font-size: 11px;
    font-weight: 600;
}

.hero h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero p {
    max-width: 600px;
    margin: 16px auto;
    color: #666;
    font-size: 18px;
}


/* =========================
   SEARCH
========================= */

.search-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 24px auto;
}

.search {
    width: 100%;
    display: block;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: #111;
    font-size: 16px;
}

.search::placeholder {
    color: #999;
}

.search:focus {
    border-color: #5a45fe;
    box-shadow: 0 0 0 3px rgba(90, 69, 254, 0.08);
}


/* =========================
   SEARCH STATUS
========================= */

.search-status {
    max-width: 1100px;
    min-height: 20px;
    margin: 0 auto 10px;
    padding: 0 20px;
    text-align: center;
    color: #777;
    font-size: 13px;
}


/* =========================
   CATEGORY
========================= */

.category-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-heading p {
    max-width: 450px;
    margin: 0;
    color: #777;
    font-size: 14px;
}

.section-label {
    display: block;
    margin-bottom: 5px;
    color: #5a45fe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
}


/* =========================
   GRID
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}


/* =========================
   CARD
========================= */

.card {
    overflow: hidden;
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    color: #111;
    text-decoration: none;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #111;
}


/* =========================
   CARD VISUAL
========================= */

.card-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


/*
   Visuales suaves para darle algo
   de personalidad a cada tarjeta,
   sin cambiar el diseño original.
*/

.card-visual::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: -80px;
    right: -40px;
    background: rgba(255, 255, 255, 0.12);
}

.card-visual::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    bottom: -60px;
    left: -20px;
    background: rgba(255, 255, 255, 0.10);
}

.card-visual span {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}


/* =========================
   CARD COLORS
========================= */

.visual-freecash {
    background: linear-gradient(135deg, #6d59f5, #5642df);
}

.visual-prime {
    background: linear-gradient(135deg, #715df5, #5968ed);
}

.visual-attapoll {
    background: linear-gradient(135deg, #8067f5, #6252e7);
}

.visual-toluna {
    background: linear-gradient(135deg, #5a58e8, #6877f1);
}

.visual-swagbucks {
    background: linear-gradient(135deg, #6851e9, #5146d8);
}

.visual-mistplay {
    background: linear-gradient(135deg, #6250ea, #7759e9);
}

.visual-rewarded {
    background: linear-gradient(135deg, #6959ed, #5365ed);
}

.visual-giraffe {
    background: linear-gradient(135deg, #7658e9, #895ce8);
}

.visual-justplay {
    background: linear-gradient(135deg, #5547dc, #6268ed);
}

.visual-freecash-games {
    background: linear-gradient(135deg, #654fe9, #4d63e5);
}

.visual-rakuten {
    background: linear-gradient(135deg, #684ee7, #7959eb);
}

.visual-ibotta {
    background: linear-gradient(135deg, #5948df, #5d68ed);
}

.visual-fetch {
    background: linear-gradient(135deg, #6b52e9, #5161e7);
}

.visual-shopkick {
    background: linear-gradient(135deg, #7459ea, #5864e5);
}

.visual-checkout {
    background: linear-gradient(135deg, #5847df, #7459e7);
}


/* =========================
   CARD CONTENT
========================= */

.card-content {
    padding: 18px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef0ff;
    color: #5a45fe;
    font-size: 11px;
    font-weight: 600;
}

.card h3 {
    margin: 11px 0 6px;
    font-size: 18px;
    line-height: 1.2;
}

.card p {
    min-height: 62px;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    margin-top: 10px;
    color: #5a45fe;
    font-size: 12px;
    font-weight: 700;
}


/* =========================
   SEARCH FILTER
========================= */

.card.is-hidden {
    display: none;
}

.category-section.is-hidden {
    display: none;
}


/* =========================
   SEO CONTENT
========================= */

.seo-content {
    max-width: 1100px;
    margin: 65px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.seo-content article {
    padding: 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
}

.seo-content h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.3;
}

.seo-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================
   FAQ
========================= */

.faq {
    max-width: 850px;
    margin: 70px auto 0;
    padding: 0 20px 70px;
}

.faq-heading {
    margin-bottom: 20px;
}

.faq-heading h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -1px;
}

.faq-list {
    border-top: 1px solid #e5e5e5;
}

.faq details {
    border-bottom: 1px solid #e5e5e5;
}

.faq summary {
    padding: 19px 35px 19px 0;
    position: relative;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 700;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 15px;
    color: #5a45fe;
    font-size: 22px;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    max-width: 720px;
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    border-top: 1px solid #eee;
    background: #fff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
}

.footer-logo span {
    color: #5a45fe;
}

.footer-inner p {
    margin: 6px 0 12px;
    color: #777;
    font-size: 13px;
}

.footer-copy {
    color: #999;
    font-size: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .seo-content {
        grid-template-columns: 1fr;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .site-header {
        padding: 18px 16px;
    }

    .header-meta {
        font-size: 11px;
    }

    .hero {
        margin-top: 10px;
        padding: 45px 16px;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .category-section {
        padding: 25px 16px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 8px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-visual {
        height: 105px;
    }

    .card-content {
        padding: 14px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        min-height: auto;
        font-size: 12px;
    }

    .seo-content {
        margin-top: 45px;
        padding: 0 16px;
    }

    .faq {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 430px) {

    .header-meta {
        display: none;
    }

    .hero h1 {
        font-size: 35px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card-visual {
        height: 115px;
    }
}

.is-hidden { display: none !important; }