/* ============================================
   CheckGoo — assets/css/index.css
   Página principal pública
   ============================================ */

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 80px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,56,92,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(255,180,0,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-badge svg { width: 18px; height: 18px; color: var(--success); }

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 18px;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Buscador del hero */
.hero-search {
    display: flex;
    background: white;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-width: 560px;
    margin: 0 auto 20px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 22px;
    font-family: inherit;
    font-size: 15px;
    color: var(--dark);
    background: transparent;
}

.hero-search input::placeholder { color: var(--gray-light); }

.hero-search-divider {
    width: 1px;
    background: var(--border);
    margin: 12px 0;
}

.hero-search select {
    border: none;
    outline: none;
    padding: 18px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--dark);
    background: transparent;
    cursor: pointer;
    min-width: 130px;
    -webkit-appearance: none;
}

.hero-search-btn {
    background: var(--primary);
    border: none;
    padding: 0 28px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    white-space: nowrap;
}

.hero-search-btn:hover { background: var(--primary-dark); }
.hero-search-btn svg { width: 18px; height: 18px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 0;
}

/* ===== SECCIÓN TÍTULO ===== */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-head a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-head a:hover { color: var(--dark); }
.section-head a svg { width: 14px; height: 14px; }

/* ===== GRID DE NEGOCIOS ===== */
.negocios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

/* ===== CARD DE NEGOCIO ===== */
.negocio-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark);
    display: block;
    transition: transform 0.2s;
}

.negocio-card:hover { transform: translateY(-3px); }

.negocio-card:hover .card-img img { transform: scale(1.05); }

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg);
    position: relative;
    margin-bottom: 12px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Placeholder cuando no hay imagen */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0efed, #e8e5e0);
    font-size: 48px;
}

.card-verified {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.card-verified svg { width: 15px; height: 15px; }

.card-cat-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.card-body { padding: 0 2px; }

.card-location {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-location svg { width: 12px; height: 12px; }

.card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.card-stars { color: var(--warning); font-size: 13px; letter-spacing: 0.5px; }
.card-score { font-weight: 700; color: var(--dark); }
.card-count { color: var(--gray); font-size: 13px; }

/* ===== CHIPS DE FILTRO ===== */
.filter-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray);
    background: white;
    transition: all 0.15s;
    white-space: nowrap;
}

.chip:hover { border-color: var(--dark); color: var(--dark); }

.chip.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* ===== BANNER CTA ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 48px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.cta-text h3 {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cta-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 420px;
}

.cta-btn {
    background: white;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
    position: relative;
    z-index: 1;
}

.cta-btn:hover { opacity: 0.92; }

/* ===== EMPTY STATE ===== */
.empty-public {
    text-align: center;
    padding: 80px 24px;
}

.empty-public .ep-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-public h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-public p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

/* ===== PAGINACIÓN ===== */
.pub-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 48px;
}

.pub-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s;
}

.pub-page-btn:hover { border-color: var(--dark); }
.pub-page-btn.active { background: var(--dark); color: white; border-color: var(--dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .negocios-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    .negocios-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cta-banner    { flex-direction: column; padding: 32px 24px; text-align: center; }
    .cta-text p    { max-width: 100%; }
    .hero          { padding: 56px 16px 72px; }
    .hero-search   { border-radius: 16px; flex-wrap: wrap; }
    .hero-search-btn { width: 100%; justify-content: center; padding: 16px; border-radius: 0 0 16px 16px; }
    .hero-search-divider { display: none; }
}

    /* ===== BUSCADOR HERO MÓVIL ===== */
@media (max-width: 800px) {

    .hero-search {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 12px 34px rgba(0,0,0,.28);
        margin: 0 auto 28px;
    }

    .hero-search input {
        flex: none;
        width: 100%;
        height: 72px;
        padding: 0 22px;
        border: none;
        outline: none;
        font-family: inherit;
        font-size: 17px;
        color: var(--dark);
        background: #fff;
    }

    .hero-search-divider {
        display: block;
        width: calc(100% - 44px);
        height: 1px;
        margin: 0 auto;
        background: var(--border);
    }

    .hero-search select {
        flex: none;
        width: 100%;
        min-width: 0;
        height: 64px;
        padding: 0 22px;
        border: none;
        outline: none;
        background: #fff;
        font-family: inherit;
        font-size: 17px;
        color: var(--dark);
        appearance: none;
        -webkit-appearance: none;
    }

    .hero-search-btn {
        flex: none;
        width: 100%;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        border: none;
        border-radius: 0;
        background: var(--primary);
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        padding: 0;
    }

    .hero-search-btn svg {
        width: 24px;
        height: 24px;
    }
}


.card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-placeholder-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-placeholder-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.section-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 8px;
}

.section-title-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.3;
}


/* ===== INDEX RESPONSIVE MÓVIL IGUAL QUE LOGIN/REGISTRO ===== */
@media (max-width: 768px) {

    .hero {
        padding: 28px 22px 54px;
    }

    .hero-inner {
        max-width: 100%;
    }

    .hero-badge {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;

        width: calc(100% - 28px);
        max-width: 370px;
        min-height: 58px;

        padding: 10px 42px 10px 58px;
        margin: 0 auto 28px;

        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        text-align: center;

        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.22);
        border-radius: 999px;
    }

    .hero-badge svg {
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        color: #00D6C4;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.12;
        letter-spacing: -1.1px;
        margin-bottom: 12px;
    }

    .hero p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 28px;
        color: rgba(255,255,255,0.72);
    }

    .hero-search {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        border-radius: 20px;
        margin-bottom: 0;
    }

    .hero-search input {
        width: 100%;
        min-width: 0;
        height: 54px;
        font-size: 15px;
        padding: 0 18px;
    }

    .hero-search-divider {
        display: block;
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .hero-search-btn {
        width: 100%;
        height: 54px;
        justify-content: center;
        border-radius: 0;
        font-size: 16px;
        padding: 0;
        min-width: 0;
    }

    .hero-stats {
        display: none;
    }

    .main-content {
        padding: 28px 22px 0;
    }

    .section-head {
        align-items: center;
        gap: 16px;
        margin-bottom: 22px;
    }

    .section-head h2 {
        font-size: 20px;
        line-height: 1.15;
        max-width: 70%;
    }

    .section-head a {
        margin-left: auto;
        font-size: 15px;
        font-weight: 700;
        color: var(--dark);
        white-space: nowrap;
    }

    .negocios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cta-banner {
        padding: 28px 20px;
        border-radius: 20px;
        text-align: center;
        flex-direction: column;
    }

    .cta-text h3 {
        font-size: 20px;
        line-height: 1.2;
    }

    .cta-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== ARREGLO BOTÓN BUSCADOR HERO ESCRITORIO ===== */
.hero-search {
    max-width: 760px;
}

.hero-search input {
    min-width: 0;
}

.hero-search-btn {
    min-width: 160px;
    flex-shrink: 0;
    justify-content: center;
}