:root{
    --bp-green:#16a34a;
    --bp-dark:#0f172a;
    --bp-muted:#64748b;
    --bp-bg:#f6f8fb;
    --bp-card:#ffffff;
    --bp-border:#e5e7eb;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--bp-bg);
    font-family:Arial, Helvetica, sans-serif;
    color:var(--bp-dark);
    padding-bottom:78px;
}

a{
    text-decoration:none;
}

.bp-app{
    max-width:1280px;
    margin:0 auto;
}

.bp-topbar{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(226,232,240,.9);
}

.bp-topbar-inner{
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.bp-logo{
    height:64px;
    width:auto;
}

.bp-brand-text{
    font-weight:800;
    font-size:22px;
    color:var(--bp-dark);
    letter-spacing:-.5px;
}

.bp-brand-text span{
    color:var(--bp-green);
}

.bp-menu-btn{
    width:42px;
    height:42px;
    border-radius:14px;
    border:1px solid var(--bp-border);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:var(--bp-dark);
}

.bp-hero{
    background:
        radial-gradient(circle at top right, rgba(22,163,74,.18), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius:0 0 34px 34px;
    padding:52px 0 46px;
    overflow:hidden;
}

.bp-hero-title{
    font-size:36px;
    line-height:1.08;
    font-weight:900;
    letter-spacing:-1.3px;
    margin:14px 0 12px;
}

.bp-hero-title span{
    color:var(--bp-green);
    display:block;
}

.bp-hero-subtitle{
    color:var(--bp-muted);
    font-size:16px;
    line-height:1.45;
    margin-bottom:18px;
}

.bp-search-card{
    background:#fff;
    border:1px solid rgba(226,232,240,.9);
    border-radius:24px;
    padding:12px;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
}

.bp-search-row{
    display:flex;
    gap:10px;
}

.bp-search-input{
    min-height:54px;
    border:0;
    background:#f8fafc;
    border-radius:18px;
    padding:0 16px;
    font-size:15px;
    width:100%;
    outline:none;
}

.bp-search-input:focus{
    box-shadow:0 0 0 3px rgba(22,163,74,.16);
}

.bp-search-btn{
    width:58px;
    min-width:58px;
    height:54px;
    border:0;
    border-radius:18px;
    background:var(--bp-green);
    color:#fff;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.bp-small-help{
    font-size:12px;
    color:var(--bp-muted);
    margin:10px 4px 0;
}

.bp-location-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#ecfdf5;
    color:#166534;
    border:1px solid #bbf7d0;
    border-radius:999px;
    padding:8px 13px;
    font-size:13px;
    font-weight:700;
    margin-top:14px;
}

.bp-section{
    padding:24px 0 4px;
}

.bp-section-header{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.bp-section-title{
    font-size:22px;
    font-weight:900;
    letter-spacing:-.5px;
    margin:0;
}

.bp-section-subtitle{
    color:var(--bp-muted);
    font-size:14px;
    margin:4px 0 0;
}

.bp-category-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
}

.bp-category-card{
    background:#fff;
    border:1px solid rgba(226,232,240,.9);
    border-radius:22px;
    min-height:112px;
    padding:13px 8px;
    text-align:center;
    box-shadow:0 10px 24px rgba(15,23,42,.055);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    transition:.18s ease;
    color:var(--bp-dark);
}

.bp-category-card:hover,
.bp-category-card.active{
    border-color:rgba(22,163,74,.55);
    box-shadow:0 14px 30px rgba(22,163,74,.12);
    transform:translateY(-2px);
}

.bp-category-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    background:#f0fdf4;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:31px;
    margin-bottom:8px;
}

.bp-category-name{
    font-size:12.5px;
    line-height:1.15;
    font-weight:800;
}

.bp-empty-state{
    background:#fff;
    border:1px dashed #cbd5e1;
    border-radius:24px;
    padding:24px;
    text-align:center;
    color:var(--bp-muted);
}

.bp-empty-state strong{
    color:var(--bp-dark);
}

.bp-business-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}

.bp-business-card{
    background:#fff;
    border:1px solid rgba(226,232,240,.9);
    border-radius:24px;
    padding:14px;
    box-shadow:0 10px 26px rgba(15,23,42,.055);
}

.bp-business-content{
    display:flex;
    gap:14px;
    align-items:center;
}

.bp-business-logo{
    width:74px;
    height:74px;
    min-width:74px;
    object-fit:contain;
    border-radius:20px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    padding:7px;
}

.bp-business-placeholder{
    width:74px;
    height:74px;
    min-width:74px;
    border-radius:20px;
    background:#ecfdf5;
    color:var(--bp-green);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    border:1px solid #bbf7d0;
}

.bp-business-name{
    font-size:17px;
    font-weight:900;
    margin:0 0 4px;
    letter-spacing:-.2px;
}

.bp-business-address{
    color:var(--bp-muted);
    font-size:13px;
    margin:0 0 10px;
}

.bp-business-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.bp-btn-outline{
    border:1px solid var(--bp-green);
    color:var(--bp-green);
    background:#fff;
    border-radius:999px;
    padding:7px 13px;
    font-size:13px;
    font-weight:800;
}

.bp-btn-green{
    border:1px solid var(--bp-green);
    color:#fff;
    background:var(--bp-green);
    border-radius:999px;
    padding:7px 13px;
    font-size:13px;
    font-weight:800;
}

.bp-featured-scroll{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding:4px 2px 12px;
    scroll-snap-type:x mandatory;
}

.bp-featured-scroll::-webkit-scrollbar{
    height:6px;
}

.bp-featured-scroll::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:999px;
}

.bp-featured-card{
    min-width:122px;
    max-width:122px;
    scroll-snap-align:start;
    text-align:center;
    color:var(--bp-dark);
}

.bp-featured-logo{
    width:88px;
    height:88px;
    border-radius:28px;
    object-fit:cover;
    background:#fff;
    border:1px solid #e2e8f0;
    box-shadow:0 10px 25px rgba(15,23,42,.08);
    padding:6px;
}

.bp-featured-placeholder{
    width:88px;
    height:88px;
    border-radius:28px;
    margin:0 auto;
    background:#ecfdf5;
    border:1px solid #bbf7d0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    box-shadow:0 10px 25px rgba(15,23,42,.08);
}

.bp-featured-name{
    display:block;
    margin-top:8px;
    font-size:12px;
    font-weight:900;
    line-height:1.15;
}

.bp-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:18px;
}

.bp-stat{
    background:#fff;
    border:1px solid rgba(226,232,240,.9);
    border-radius:20px;
    padding:14px 8px;
    text-align:center;
}

.bp-stat strong{
    display:block;
    font-size:19px;
    color:var(--bp-green);
    line-height:1;
}

.bp-stat span{
    color:var(--bp-muted);
    font-size:11px;
    font-weight:700;
}

.bp-footer{
    background:#fff;
    border-top:1px solid #e2e8f0;
    padding:26px 0;
    margin-top:32px;
    text-align:center;
    color:var(--bp-muted);
    font-size:13px;
}

.bp-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1000;
    background:#fff;
    border-top:1px solid #e2e8f0;
    box-shadow:0 -8px 30px rgba(15,23,42,.08);
}

.bp-bottom-nav-inner{
    max-width:600px;
    margin:0 auto;
    height:68px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.bp-bottom-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#475569;
    font-size:11px;
    font-weight:800;
}

.bp-bottom-item span{
    font-size:22px;
    line-height:1;
}

.bp-bottom-item.active{
    color:var(--bp-green);
}

@media(max-width:767px){
    .bp-topbar-inner{
        min-height:74px;
    }

    .bp-logo{
        height:58px;
    }

    .bp-hero{
        padding:24px 0 28px;
    }

    .bp-hero-title{
        font-size:34px;
    }

    .bp-section{
        padding:24px 0 8px;
    }

    .bp-category-card{
        min-height:142px;
        border-radius:24px;
    }

    .bp-category-icon{
        width:64px;
        height:64px;
        font-size:34px;
    }

    .bp-category-name{
        font-size:15px;
    }

    .bp-empty-state{
        padding:26px 18px;
    }
}


@media(min-width:768px){
    body{
        padding-bottom:0;
    }

    .bp-hero{
        padding:38px 0 34px;
    }

    .bp-hero-title{
        font-size:50px;
    }

    .bp-hero-subtitle{
        font-size:18px;
        max-width:580px;
    }

    .bp-category-grid{
        grid-template-columns:repeat(4,1fr);
    }

    .bp-business-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .bp-bottom-nav{
        display:none;
    }
}

@media(min-width:992px){
    .bp-category-grid{
        grid-template-columns:repeat(6,1fr);
    }

    .bp-business-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* =========================================================
   BarrioPedidos - Public UI 2.0
   Mobile First / Diseño tipo App
   ========================================================= */

.bp-topbar{
    box-shadow:0 8px 25px rgba(15,23,42,.05);
}

.bp-hero{
    position:relative;
}

.bp-hero::after{
    content:"";
    position:absolute;
    right:-80px;
    top:40px;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(22,163,74,.08);
    pointer-events:none;
}

.bp-search-card{
    position:relative;
    z-index:2;
}

.bp-category-card,
.bp-business-card,
.bp-stat,
.bp-empty-state{
    backdrop-filter:blur(8px);
}

.bp-category-card{
    cursor:pointer;
}

.bp-category-icon{
    box-shadow:inset 0 0 0 1px rgba(22,163,74,.06);
}

.bp-business-card:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 34px rgba(15,23,42,.08);
}

.bp-btn-green:hover{
    background:#15803d;
    color:#fff;
}

.bp-btn-outline:hover{
    background:#ecfdf5;
    color:#15803d;
}

@media(max-width:767px){
    body{
        background:#f3f6fb;
    }

    .bp-app{
        max-width:100%;
    }

    .bp-topbar{
        border-bottom:1px solid #eef2f7;
    }

    .bp-topbar-inner{
        padding-left:20px;
        padding-right:20px;
    }

    .bp-hero{
        border-radius:0;
        padding:28px 20px 30px;
        background:
            radial-gradient(circle at top right, rgba(22,163,74,.18), transparent 42%),
            linear-gradient(180deg,#ffffff 0%,#f6f8fb 100%);
    }

    .bp-hero-title{
        font-size:38px;
        letter-spacing:-1.5px;
        margin-top:18px;
    }

    .bp-hero-subtitle{
        font-size:17px;
        line-height:1.5;
    }

    .bp-search-card{
        border-radius:28px;
        padding:14px;
        box-shadow:0 18px 40px rgba(15,23,42,.10);
    }

    .bp-search-input{
        min-height:62px;
        border-radius:22px;
        font-size:16px;
    }

    .bp-search-btn{
        width:68px;
        min-width:68px;
        height:62px;
        border-radius:22px;
        font-size:25px;
    }

    .bp-stats{
        gap:12px;
        margin-top:22px;
    }

    .bp-stat{
        border-radius:24px;
        padding:18px 8px;
    }

    .bp-stat strong{
        font-size:22px;
    }

    main.bp-app{
        padding-left:20px;
        padding-right:20px;
    }

    .bp-section-title{
        font-size:28px;
    }

    .bp-section-subtitle{
        font-size:16px;
    }

    .bp-category-grid{
        grid-template-columns:repeat(3, minmax(0,1fr));
        gap:16px;
    }

    .bp-category-card{
        min-height:150px;
        border-radius:28px;
        padding:16px 8px;
        box-shadow:0 12px 28px rgba(15,23,42,.08);
    }

    .bp-category-icon{
        width:72px;
        height:72px;
        border-radius:24px;
        font-size:38px;
        margin-bottom:12px;
    }

    .bp-category-name{
        font-size:16px;
        line-height:1.08;
    }

    .bp-business-card{
        border-radius:28px;
        padding:16px;
    }

    .bp-business-logo,
    .bp-business-placeholder{
        width:82px;
        height:82px;
        min-width:82px;
        border-radius:24px;
    }

    .bp-business-name{
        font-size:19px;
    }

    .bp-footer{
        margin-top:30px;
        padding-bottom:28px;
    }
}

@media(max-width:380px){
    .bp-category-grid{
        gap:12px;
    }

    .bp-category-card{
        min-height:138px;
    }

    .bp-category-icon{
        width:64px;
        height:64px;
        font-size:34px;
    }

    .bp-category-name{
        font-size:14px;
    }
}


/* =========================================================
   Secciones de impacto social y registro
   ========================================================= */

.bp-impact-section,
.bp-register-section{
    padding-top:28px;
}

.bp-impact-card{
    background:
        radial-gradient(circle at top right, rgba(22,163,74,.13), transparent 36%),
        #ffffff;
    border:1px solid rgba(226,232,240,.95);
    border-radius:30px;
    padding:26px;
    box-shadow:0 16px 40px rgba(15,23,42,.06);
}

.bp-impact-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 13px;
    border-radius:999px;
    background:#ecfdf5;
    color:#166534;
    border:1px solid #bbf7d0;
    font-size:13px;
    font-weight:800;
    margin-bottom:12px;
}

.bp-impact-card h2,
.bp-register-card h2{
    font-size:28px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:-.7px;
    margin:0 0 10px;
}

.bp-impact-card p,
.bp-register-card p{
    color:var(--bp-muted);
    font-size:16px;
    line-height:1.55;
    margin:0;
}

.bp-impact-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-top:20px;
}

.bp-impact-item{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:18px;
}

.bp-impact-item span{
    width:54px;
    height:54px;
    border-radius:18px;
    background:#f0fdf4;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:10px;
}

.bp-impact-item strong{
    display:block;
    font-size:15px;
    font-weight:900;
    margin-bottom:4px;
}

.bp-impact-item small{
    display:block;
    color:var(--bp-muted);
    font-size:13px;
    line-height:1.35;
}

.bp-register-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    background:linear-gradient(135deg,#16a34a,#15803d);
    color:#fff;
    border-radius:30px;
    padding:26px;
    box-shadow:0 18px 45px rgba(22,163,74,.22);
}

.bp-register-card p{
    color:rgba(255,255,255,.86);
}

.bp-register-icon{
    width:56px;
    height:56px;
    border-radius:19px;
    background:rgba(255,255,255,.16);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    margin-bottom:10px;
}

.bp-register-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 22px;
    border-radius:999px;
    background:#fff;
    color:#15803d;
    font-weight:900;
    white-space:nowrap;
    box-shadow:0 10px 24px rgba(15,23,42,.16);
}

.bp-register-btn:hover{
    color:#166534;
    transform:translateY(-1px);
}

@media(max-width:767px){
    .bp-impact-section,
    .bp-register-section{
        padding-top:22px;
    }

    .bp-impact-card,
    .bp-register-card{
        border-radius:28px;
        padding:22px;
    }

    .bp-impact-card h2,
    .bp-register-card h2{
        font-size:26px;
    }

    .bp-impact-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .bp-register-card{
        display:block;
    }

    .bp-register-btn{
        width:100%;
        margin-top:18px;
    }
}
/* =========================================================
   Categorías tipo aplicación móvil
   ========================================================= */

.bp-category-notice,
.bp-selected-zone{
    margin-bottom:14px;
    padding:11px 14px;
    border-radius:16px;
    background:#ecfdf5;
    border:1px solid #bbf7d0;
    color:#166534;
    font-size:13px;
    text-align:center;
}

.bp-category-notice strong,
.bp-selected-zone strong{
    font-weight:900;
}

@media(max-width:767px){

    .bp-hero{
        padding:20px 16px 22px;
    }

    .bp-location-pill{
        margin-top:4px;
        padding:6px 10px;
        font-size:11px;
    }

    .bp-hero-title{
        font-size:31px;
        line-height:1.06;
        margin:12px 0 8px;
    }

    .bp-hero-subtitle{
        font-size:14px;
        line-height:1.42;
        margin-bottom:14px;
    }

    .bp-search-card{
        padding:9px;
        border-radius:20px;
    }

    .bp-search-input{
        min-height:52px;
        border-radius:15px;
        font-size:14px;
    }

    .bp-search-btn{
        width:54px;
        min-width:54px;
        height:52px;
        border-radius:15px;
        font-size:21px;
    }

    main.bp-app{
        padding-left:14px;
        padding-right:14px;
    }

    .bp-section{
        padding-top:20px;
    }

    .bp-section-title{
        font-size:21px;
    }

    .bp-section-subtitle{
        font-size:13px;
    }

    .bp-mobile-category-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:9px;
    }

    .bp-mobile-category-grid .bp-category-card{
        min-height:108px;
        padding:10px 5px;
        border-radius:17px;
        box-shadow:0 7px 18px rgba(15,23,42,.07);
    }

    .bp-mobile-category-grid .bp-category-icon{
        width:52px;
        height:52px;
        border-radius:15px;
        font-size:27px;
        margin-bottom:7px;
    }

    .bp-mobile-category-grid .bp-category-name{
        font-size:11.5px;
        line-height:1.08;
        font-weight:800;
    }

    .bp-mobile-category-grid .bp-category-card.active{
        border:2px solid var(--bp-green);
        background:#f0fdf4;
        transform:none;
    }

    .bp-impact-card h2,
    .bp-register-card h2{
        font-size:22px;
    }

    .bp-impact-card p,
    .bp-register-card p{
        font-size:14px;
    }
}

@media(max-width:360px){

    .bp-mobile-category-grid{
        gap:7px;
    }

    .bp-mobile-category-grid .bp-category-card{
        min-height:102px;
    }

    .bp-mobile-category-grid .bp-category-icon{
        width:47px;
        height:47px;
        font-size:24px;
    }

    .bp-mobile-category-grid .bp-category-name{
        font-size:10.5px;
    }
}
/* =========================================================
   Negocios del barrio
   ========================================================= */

.bp-nearby-section{
    padding-top:28px;
}

.bp-nearby-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-bottom:9px;
    padding:7px 12px;
    border:1px solid #bbf7d0;
    border-radius:999px;
    background:#ecfdf5;
    color:#166534;
    font-size:12px;
    font-weight:800;
}

.bp-nearby-scroll{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:15px;
}

.bp-nearby-card{
    overflow:hidden;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:24px;
    box-shadow:0 11px 28px rgba(15,23,42,.07);
    transition:transform .18s ease, box-shadow .18s ease;
}

.bp-nearby-card:hover{
    transform:translateY(-3px);
    box-shadow:0 17px 38px rgba(15,23,42,.11);
}

.bp-nearby-main{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:145px;
    padding:16px;
    color:var(--bp-dark);
}

.bp-nearby-main:hover{
    color:var(--bp-dark);
}

.bp-nearby-logo,
.bp-nearby-placeholder{
    width:88px;
    height:88px;
    min-width:88px;
    border-radius:22px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
}

.bp-nearby-logo{
    object-fit:contain;
    padding:7px;
}

.bp-nearby-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ecfdf5;
    font-size:34px;
}

.bp-nearby-info{
    min-width:0;
}

.bp-nearby-status{
    display:inline-block;
    margin-bottom:6px;
    padding:4px 8px;
    border-radius:999px;
    background:#ecfdf5;
    color:#15803d;
    font-size:10px;
    font-weight:800;
}

.bp-nearby-info h3{
    margin:0 0 5px;
    color:var(--bp-dark);
    font-size:17px;
    font-weight:900;
    line-height:1.15;
}

.bp-nearby-info p{
    margin:0 0 7px;
    color:var(--bp-muted);
    font-size:12px;
    line-height:1.35;
}

.bp-nearby-view{
    color:var(--bp-green);
    font-size:12px;
    font-weight:900;
}

.bp-nearby-whatsapp{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:43px;
    background:var(--bp-green);
    color:#fff;
    font-size:13px;
    font-weight:900;
}

.bp-nearby-whatsapp:hover{
    background:#15803d;
    color:#fff;
}

/* Tableta */
@media(max-width:991px){

    .bp-nearby-scroll{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

/* Celular: desplazamiento horizontal tipo aplicación */
@media(max-width:767px){

    .bp-nearby-section{
        padding-top:22px;
    }

    .bp-nearby-scroll{
        display:flex;
        gap:12px;
        overflow-x:auto;
        margin-left:-14px;
        margin-right:-14px;
        padding:2px 14px 14px;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
    }

    .bp-nearby-scroll::-webkit-scrollbar{
        display:none;
    }

    .bp-nearby-card{
        flex:0 0 86%;
        max-width:340px;
        scroll-snap-align:start;
        border-radius:22px;
    }

    .bp-nearby-main{
        min-height:132px;
        padding:14px;
    }

    .bp-nearby-logo,
    .bp-nearby-placeholder{
        width:78px;
        height:78px;
        min-width:78px;
        border-radius:20px;
    }

    .bp-nearby-info h3{
        font-size:16px;
    }
}