/* ============================================
   CheckGoo — assets/css/todos_negocios.css
   Estilos propios de la página "Todos los negocios".
   Las tarjetas (.negocio-card, .negocios-grid) vienen de index.css.
   ============================================ */

:root {
    --tn-primary:   #FF385C;
    --tn-primary-d: #E31C5F;
    --tn-dark:      #1A1A1A;
    --tn-gray:      #6B6B6B;
    --tn-border:    #E5E0D8;
    --tn-bg:        #FAF7F2;
    --tn-white:     #FFFFFF;
    --cream:        #FAF7F2;
}


body {
    background: var(--cream);
}

/* ===== CABECERA ===== */
.tn-hero {
    background: var(--cream);
    padding: 48px 24px 36px;
    text-align: center;
    border-bottom: none;
}
.tn-hero-inner { max-width: 720px; margin: 0 auto; }
.tn-hero h1 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--tn-dark);
    margin: 0 0 10px;
    line-height: 1.15;
}
.tn-hero p { font-size: 16px; color: var(--tn-gray); margin: 0; }

/* ===== TOOLBAR (buscador + orden) ===== */
.tn-toolbar {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.tn-search { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 460px; }
.tn-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--tn-border);
    border-radius: 100px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: var(--tn-white);
}
.tn-search input:focus { border-color: var(--tn-primary); }
.tn-search button {
    padding: 12px 22px;
    border: none;
    border-radius: 100px;
    background: var(--tn-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.tn-search button:hover { background: var(--tn-primary-d); }

.tn-order { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }

.tn-order a {
    padding: 7px 14px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--tn-gray);
    font-weight: 600;
    transition: background .15s, color .15s;
}
.tn-order a:hover {
    background: #111;
    color: #fff;
}
.tn-order a.active {
    background: #111;
    color: #fff;
    border: 1.5px solid #111;
}

/* ===== CHIPS DE CATEGORÍAS ===== */
.tn-cats {
    max-width: 1100px;
    margin: 18px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tn-cat-chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--tn-border);
    background: var(--tn-white);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tn-gray);
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}
.tn-cat-chip:hover { border-color: var(--tn-primary); color: var(--tn-primary); }
.tn-cat-chip.active { border-color: var(--tn-primary); background: var(--tn-primary); color: #fff; }

/* ===== CONTENEDOR GRID ===== */
.tn-wrap {
    max-width: 1100px;
    margin: 32px auto 80px;
    padding: 0 24px;
}

/* ===== VACÍO ===== */
.tn-empty { text-align: center; padding: 70px 20px; }
.tn-empty svg { width: 54px; height: 54px; color: var(--tn-border); margin-bottom: 16px; }
.tn-empty h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--tn-dark); }
.tn-empty p { color: var(--tn-gray); margin: 0 0 20px; }
.tn-empty-btn {
    display: inline-block;
    background: var(--tn-primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 100px;
    text-decoration: none;
}
.tn-empty-btn:hover { background: var(--tn-primary-d); }

/* ===== PAGINACIÓN ===== */
.tn-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    flex-wrap: wrap;
}
.tn-pagination a,
.tn-pagination .current,
.tn-pagination .tn-page-arrow {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    color: var(--tn-dark);
    border: 1.5px solid var(--tn-border);
    background: var(--tn-white);
    transition: all .15s;
    padding: 0 6px;
}
.tn-pagination a:hover { border-color: var(--tn-primary); color: var(--tn-primary); }
.tn-pagination .current { background: var(--tn-primary); color: #fff; border-color: var(--tn-primary); }

@media (max-width: 700px) {
    .tn-toolbar { flex-direction: column; align-items: stretch; }
    .tn-search { max-width: none; }
    .tn-order { justify-content: center; }
}

.card-verified .verified-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #18c5c9; /* o el color que estés usando */
    transform: translateY(-1px);
}

/* ===== ORDEN MÓVIL CORREGIDO ===== */
@media (max-width: 700px) {

    .tn-toolbar {
        padding: 0 22px;
        margin-top: 10px;
    }

    .tn-order {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .tn-order a {
        width: 100%;
        padding: 11px 8px;
        text-align: center;
        font-size: 13px;
        font-weight: 800;
        border-radius: 999px;
        white-space: nowrap;
    }

    .tn-order a.active {
        background: #111;
        color: #fff;
        border-color: #111;
    }
}


/* ===== MÁRGENES MÓVIL IGUAL QUE NEGOCIO ===== */
@media (max-width: 768px) {
    
    .tn-hero h1 {
        font-size: 28px;
        line-height: 1.12;
        letter-spacing: -1.1px;
        margin-bottom: 12px;
    }


    .tn-hero {
        padding-left: 22px;
        padding-right: 22px;
    }

    .tn-toolbar {
        padding-left: 22px;
        padding-right: 22px;
    }

    .tn-cats {
        padding-left: 22px;
        padding-right: 22px;
    }

    .tn-wrap {
        padding-left: 22px;
        padding-right: 22px;
    }
}