/* ============================================================
   Estado Fit — Tienda web
   Identidad: repostería saludable artesanal. Papel kraft, verde salvia,
   mostaza horneado y un acabado festoneado (como el borde de una caja
   de pastelería) en vez del típico kit de tarjetas SaaS genéricas.
   ============================================================ */
:root {
    --verde:        #71954E;
    --verde-oscuro: #3F5A2B;
    --verde-suave:  #E4EDD8;
    --kraft:        #F6EEDF;
    --kraft-oscuro: #EDE1CA;
    --crema:        #FFFCF6;
    --mostaza:      #D79A3B;
    --mostaza-osc:  #B87E27;
    --rosa:         #D98C9B;
    --tinta:        #332B22;
    --borde:        #E4D7BC;
    --radio: 18px;
    --sombra: 0 14px 34px rgba(62,94,66,.12);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html,body { margin:0; padding:0; scroll-behavior: smooth; }
:focus-visible { outline: 2.5px solid var(--mostaza); outline-offset: 2px; border-radius: 4px; }
body {
    font-family: var(--font-body);
    background: var(--kraft);
    color: var(--tinta);
}
img { max-width: 100%; }
a { color: var(--verde-oscuro); text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; margin: 0; }
.text-eco { color: var(--verde-oscuro); }
.btn-eco {
    background: linear-gradient(155deg, #71a073 0%, var(--verde) 55%, var(--verde-oscuro) 100%);
    color: #fff !important; border: none; font-weight: 600; border-radius: 12px; transition: all .2s;
    box-shadow: 0 6px 16px rgba(62,94,66,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-eco:hover, .btn-eco:focus { color: #fff !important; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(62,94,66,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-eco:active, .qty-btn:active, .btn-nav-cta:active, .search-form button:active { transform: scale(.94); }
.btn-outline-eco { border: 1.5px solid var(--verde); border-radius: 12px; color: var(--verde-oscuro) !important; background: transparent; font-weight: 600; }
.btn-outline-eco:hover { background: var(--verde-suave); }

.page-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 20px 60px; min-height: 60vh; }

/* ===================== TOP BAR ===================== */
.topbar-web { background: var(--crema); position: sticky; top: 0; z-index: 50; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 16px 20px 10px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-stamp { width: 54px; display: flex; align-items: center; flex-shrink: 0; }
.brand-stamp img { width: 100%; height: auto; display: block; }
.brand-txt strong { display: block; font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; color: var(--verde-oscuro); line-height: 1.1; }
.brand-txt small { color: #8a7c63; font-style: italic; font-size: .76rem; }

.search-form { flex: 1; max-width: 500px; display: flex; align-items: center; background: var(--kraft); border: 1px solid var(--borde); border-radius: 30px; padding: 4px 6px 4px 18px; gap: 8px; }
.search-form i { color: #9c8c6e; }
.search-form input { flex: 1; border: none; background: transparent; outline: none; padding: 9px 0; font-size: .92rem; color: var(--tinta); font-family: var(--font-body); }
.search-form input::placeholder { color: #a99a7e; }
.search-form button { border: none; background: var(--mostaza); color: #fff; font-weight: 700; padding: 9px 20px; border-radius: 24px; cursor: pointer; }
.search-form button:hover { background: var(--mostaza-osc); }

.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
.nav-links a { color: var(--tinta); font-weight: 600; font-size: .9rem; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--verde-oscuro); }
.btn-nav-cta { background: var(--verde); color: #fff !important; padding: 8px 18px; border-radius: 20px; font-weight: 700 !important; }
.btn-nav-cta:hover { background: var(--verde-oscuro); }
.nav-cart { position: relative; background: var(--verde-suave); padding: 9px 18px; border-radius: 20px; color: var(--verde-oscuro) !important; }
.nav-cart:hover { background: #cfe0cf; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--rosa); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; min-width: 20px; text-align: center; }
.burger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--verde-oscuro); }

.cats-strip { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 18px; max-width: 1240px; margin: 0 auto; }
.cats-strip a { flex: 0 0 auto; padding: 8px 15px; border-radius: 20px; background: var(--crema); border: 1px solid var(--borde); font-size: .82rem; font-weight: 700; color: var(--verde-oscuro); white-space: nowrap; transition: background .15s; }
.cats-strip a:hover { background: var(--verde-suave); }
.cats-strip a.active { background: var(--verde-oscuro); border-color: var(--verde-oscuro); color: #fff; }

/* Borde festoneado: el cierre de la caja de pastelería */
.scallop-edge {
    height: 18px;
    background-color: var(--kraft);
    background-image: radial-gradient(circle at 10px 0, transparent 10px, var(--crema) 10.5px);
    background-size: 20px 20px;
    background-position: 10px 0;
}

@media (max-width: 992px) {
    .search-form, .nav-links { display: none; }
    .burger { display: block; margin-left: auto; }
    body.menu-open .search-form, body.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 10; }
    .topbar-inner { flex-wrap: wrap; }
}

/* ===================== HERO ===================== */
.hero-web {
    border-radius: 26px; color: #fff; padding: 48px 50px; margin-bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden;
    box-shadow: 0 22px 50px rgba(36,57,31,.35);
    background-size: cover; background-position: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1.05; margin: 0 0 10px; letter-spacing: .01em; }
.hero-text .hero-slogan { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #E9C47A; margin-bottom: 26px; }
.hero-text .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-text .hero-cta .btn-menu {
    background: linear-gradient(155deg, #F0C26B 0%, var(--mostaza) 55%, var(--mostaza-osc) 100%);
    color: #fff; border: none; font-weight: 700; padding: 12px 28px; border-radius: 13px;
    box-shadow: 0 8px 18px rgba(184,126,39,.35); transition: all .2s; font-size: .95rem;
}
.hero-text .hero-cta .btn-menu:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(184,126,39,.45); }
.hero-text .hero-cta .btn-cuenta {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.85);
    padding: 12px 28px; border-radius: 13px; font-weight: 700; font-size: .95rem; transition: all .2s;
}
.hero-text .hero-cta .btn-cuenta:hover { background: rgba(255,255,255,.12); }
.hero-logo-wrap { width: 210px; height: 210px; max-width: 210px; flex: 0 0 210px; border-radius: 50%; background: var(--crema); display: flex; align-items: center; justify-content: center; padding: 30px; box-shadow: 0 0 0 10px rgba(255,255,255,.08); position: relative; z-index: 1; }
.hero-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
@keyframes feSube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
    .hero-text h1, .hero-text .hero-slogan, .hero-text .hero-cta {
        opacity: 0; animation: feSube .6s cubic-bezier(.2,.7,.3,1) forwards;
    }
    .hero-text h1 { animation-delay: .05s; }
    .hero-text .hero-slogan { animation-delay: .18s; }
    .hero-text .hero-cta { animation-delay: .3s; }
}
@media (max-width: 768px) {
    .hero-web { padding: 30px 24px; flex-direction: column; align-items: flex-start; text-align: left; }
    .hero-text h1 { font-size: 2.1rem; }
    .hero-text .hero-slogan { font-size: 1.2rem; }
    .hero-logo-wrap { display: none; }
}

/* ===================== INFO ROW ===================== */
.info-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 18px 0 4px; }
.info-item { background: var(--crema); border: 1px solid var(--borde); border-radius: 14px; padding: 13px 14px; display: flex; gap: 10px; align-items: center; font-size: .84rem; }
.info-item i { font-size: 1.3rem; flex-shrink: 0; }
.info-item b { display: block; font-size: .88rem; }
.info-item span { color: #7A7767; }
@media (max-width: 760px) { .info-row { grid-template-columns: 1fr; } }

/* ===================== LOADING SCREEN ===================== */
.ef-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(155deg, #2A3D1D 0%, #1E2C15 40%, #162210 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    transition: opacity .55s ease, visibility .55s;
}
.ef-loader.fuera { opacity: 0; visibility: hidden; pointer-events: none; }
.ef-loader-wrap { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.ef-loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ef-loader-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ef-loader-ring .pista { stroke: rgba(113,149,78,.3); }
.ef-loader-ring .prog { stroke: #D79A3B; stroke-dasharray: 754; stroke-dashoffset: 754; animation: efRing 2s cubic-bezier(.6,.05,.3,1) forwards; }
.ef-loader-logo { width: 165px; animation: efGlow 2.5s ease-in-out infinite; }
.ef-loader-t { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.3); letter-spacing: .03em; opacity: 0; animation: efIn .7s .35s ease forwards; }
.ef-loader-s { font-family: var(--font-display); font-style: italic; color: #D79A3B; font-size: 1.2rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); margin-top: -12px; opacity: 0; animation: efIn .7s .6s ease forwards; }
@keyframes efRing { to { stroke-dashoffset: 0; } }
@keyframes efGlow { 0%,100% { filter: drop-shadow(0 12px 40px rgba(113,149,78,.4)) brightness(1.2); } 50% { filter: drop-shadow(0 12px 50px rgba(113,149,78,.6)) brightness(1.3); } }
@keyframes efIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ef-loader-logo { animation: none; } .ef-loader-ring .prog { animation: none; stroke-dashoffset: 0; } .ef-loader-t, .ef-loader-s { animation: none; opacity: 1; } }

/* ===================== BOTTOM NAV MOBILE ===================== */
.bottom-nav { display: none; }
@media (max-width: 992px) {
    .bottom-nav {
        display: grid; grid-template-columns: repeat(4,1fr);
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
        background: var(--crema); border-top: 1px solid var(--borde);
        padding: 8px 6px env(safe-area-inset-bottom, 12px);
        box-shadow: 0 -6px 20px rgba(60,70,40,.08);
    }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: #7A7767; text-decoration: none; position: relative; padding: 4px 0; }
    .bottom-nav a.active { color: var(--verde-oscuro); }
    .bottom-nav a.active::before { content: ""; position: absolute; top: -9px; width: 26px; height: 3px; border-radius: 3px; background: var(--verde); }
    .bottom-nav a i { font-size: 1.25rem; }
    .bottom-nav .bnav-badge { position: absolute; top: -2px; right: calc(50% - 20px); background: var(--rosa); color: #fff; font-size: .6rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
    .page-wrap { padding-bottom: 100px; }
    .site-footer { padding-bottom: 80px; }
}

/* ===================== STRIP DECORATIVO ===================== */
.deco-strip {
    height: 100px; display: flex; align-items: center; justify-content: center; gap: 14px;
    color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
    background: var(--verde-oscuro);
}

/* ===================== CHAT DE SOPORTE ===================== */
.chat-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 60;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--verde); color: #fff; border: none; cursor: pointer;
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(63,90,43,.35);
    transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(63,90,43,.45); }
.chat-fab:active { transform: scale(.94); }
@media (max-width: 992px) { .chat-fab { bottom: 80px; } }

.chat-box {
    position: fixed; bottom: 96px; right: 24px; z-index: 61;
    width: 360px; max-width: calc(100vw - 32px); max-height: 480px;
    background: var(--crema); border: 1px solid var(--borde); border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18); display: none; flex-direction: column; overflow: hidden;
}
.chat-box.open { display: flex; }
@media (max-width: 992px) { .chat-box { bottom: 150px; } }
.chat-head { background: var(--verde-oscuro); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; background: var(--crema); padding: 4px; }
.chat-head strong { flex: 1; }
.chat-head button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.4; }
.chat-msg.bot { background: var(--verde-suave); color: var(--tinta); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--verde); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--borde); }
.chat-input input { flex: 1; border: 1px solid var(--borde); border-radius: 20px; padding: 10px 16px; font-size: .88rem; outline: none; background: var(--kraft); }
.chat-input input:focus { border-color: var(--verde); }
.chat-input button { background: var(--verde); color: #fff; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }

/* ===================== SONIDO CARRITO ===================== */
.cart-toast {
    position: fixed; top: 20px; right: 20px; z-index: 200;
    background: var(--verde); color: #fff; padding: 12px 20px; border-radius: 14px;
    font-weight: 700; font-size: .9rem; box-shadow: 0 10px 30px rgba(63,90,43,.35);
    transform: translateY(-20px); opacity: 0; transition: all .3s ease; pointer-events: none;
}
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* ===================== SECCIONES ===================== */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 18px; }
.sec-title h2 { font-size: 1.55rem; color: var(--verde-oscuro); }
.sec-title a { font-size: .88rem; font-weight: 700; }

/* ===================== GRID PRODUCTOS ===================== */
.grid-prod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid-prod { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid-prod { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .grid-prod { grid-template-columns: 1fr 1fr; } }

.prod-card { background: var(--crema); border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(63,90,43,.18); }
.prod-card .pc-link { display: block; flex: 1; color: inherit; }
.prod-card .ph { aspect-ratio: 1 / .78; position: relative; overflow: hidden; background: var(--verde-suave); }
.prod-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .rib { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--mostaza); color: #2b1d05; font-size: .7rem; font-weight: 800; padding: 5px 12px; border-radius: 12px; box-shadow: 0 4px 12px rgba(176,122,32,.25); }
.prod-card .inf { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 3px; }
.prod-card .c { font-size: .72rem; color: #7A7767; font-weight: 600; }
.prod-card .n { font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--tinta); }
.prod-card .pe { font-size: .74rem; color: var(--mostaza-osc); font-weight: 700; }
.prod-card .f { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 14px; }
.prod-card .pr { font-weight: 800; color: var(--verde-oscuro); font-size: 1.05rem; }
.prod-card .pr small { font-weight: 600; color: #7A7767; font-size: .7rem; }
.add-form { margin: 0; }
.add-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--verde); color: #fff !important; font-size: 1.3rem; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; }
.add-btn:hover { background: var(--verde-oscuro); }
.add-btn:active { transform: scale(.88); }

/* ===================== GRID CATEGORÍAS ===================== */
.grid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 992px) { .grid-cats { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .grid-cats { grid-template-columns: repeat(2,1fr); } }
.cat-card {
    background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px 16px;
    text-align: center; display: block; transition: all .2s;
}
.cat-card:hover { background: var(--verde-suave); border-color: var(--verde); transform: translateY(-4px); box-shadow: var(--sombra); }
.cat-card i { font-size: 2.3rem; display: block; margin-bottom: 10px; }
.cat-card .nm { font-family: var(--font-display); font-weight: 600; color: var(--tinta); font-size: 1.05rem; }
.cat-card small { color: #a9865a; }

/* ===================== BUSCADOR resultados vacío ===================== */
.vacio-box { text-align: center; padding: 60px 20px; color: #8a7c63; }
.vacio-box i { font-size: 4rem; color: var(--borde); display:block; margin-bottom: 14px; }

/* ===================== AUTH (login/registro) ===================== */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: var(--crema); border-radius: 24px; overflow: hidden; box-shadow: var(--sombra); max-width: 980px; margin: 20px auto; border: 1px solid var(--borde); }
.auth-visual { background: var(--verde-oscuro); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.auth-visual img { width: 118px; margin-bottom: 18px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.auth-visual h3 { font-family: var(--font-display); font-weight: 700; }
.auth-visual p { opacity: .9; font-style: italic; font-family: var(--font-display); }
.auth-form-side { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-side h4 { font-weight: 700; color: var(--verde-oscuro); margin-bottom: 4px; }
.auth-form-side .sub { color: #8a7c63; margin-bottom: 24px; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-visual { padding: 30px; } }

/* ===================== CARRITO / CHECKOUT ===================== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { background: var(--crema); border: 1px solid var(--borde); border-radius: 14px; padding: 14px; margin-bottom: 10px; display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cart-item .nm { font-weight: 700; }
.cart-item .pr { color: var(--verde-oscuro); font-weight: 700; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--kraft); border: 1px solid var(--borde); display: inline-flex; align-items:center; justify-content:center; cursor: pointer; font-weight: 700; color: var(--verde-oscuro); }
.qty-btn:hover { background: var(--verde); color: #fff; }

.totales { background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; position: sticky; top: 100px; }
.totales .row-t { display: flex; justify-content: space-between; margin: 6px 0; color: #6b5f4a; }
.totales .tot { font-size: 1.3rem; font-weight: 700; color: var(--verde-oscuro); font-family: var(--font-display); border-top: 1px dashed var(--borde); padding-top: 10px; margin-top: 10px; }

.card-box { background: var(--crema); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; margin-bottom: 20px; }
.card-box h6 { font-family: var(--font-display); font-weight: 600; color: var(--verde-oscuro); margin-bottom: 14px; font-size: 1.05rem; }
.opt-radio { display: block; border: 1.5px solid var(--borde); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.opt-radio:hover { border-color: var(--verde); }
.opt-radio.checked, .opt-radio:has(input:checked) { background: var(--verde-suave); border-color: var(--verde); }

/* ===================== PEDIDOS (lista / detalle) ===================== */
.ped-card { background: var(--crema); border: 1px solid var(--borde); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; display: block; color: inherit; transition: box-shadow .2s; }
.ped-card:hover { box-shadow: var(--sombra); }
.ped-card .cod { font-family: var(--font-display); font-weight: 700; color: var(--verde-oscuro); font-size: 1.1rem; }
.ped-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: .74rem; font-weight: 700; }
.b-nuevo { background: #FBE8C6; color: #8a5a10; }
.b-confirmado { background: #DCE8F2; color: #2c5a82; }
.b-preparando { background: var(--verde-suave); color: var(--verde-oscuro); }
.b-listo { background: #D8ECE6; color: #1f6e5c; }
.b-en_camino { background: #EBE4D8; color: #6b5f4a; }
.b-entregado { background: #CFE3CF; color: #2f4f31; }
.b-cancelado { background: #F4D9D9; color: #8a3030; }

.estados-map { display: flex; justify-content: space-between; padding: 24px 10px; }
.estados-map .st { flex: 1; text-align: center; position: relative; }
.estados-map .st::before { content: ''; position: absolute; top: 17px; left: 50%; right: -50%; height: 3px; background: var(--borde); z-index: 0; }
.estados-map .st:last-child::before { display: none; }
.estados-map .st .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--borde); color: #fff; display: inline-flex; align-items:center; justify-content:center; position: relative; z-index: 1; }
.estados-map .st.on .dot, .estados-map .st.on::before { background: var(--verde); }
.estados-map .st small { display: block; font-size: .72rem; margin-top: 6px; color: #8a7c63; }

/* ===================== DETALLE PRODUCTO ===================== */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
@media (max-width: 860px) { .prod-detail { grid-template-columns: 1fr; } }
.prod-top { background: var(--verde-suave); border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.prod-top img { width: 100%; height: 100%; object-fit: cover; }
.prod-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.prod-price { font-size: 1.8rem; color: var(--verde-oscuro); font-weight: 700; font-family: var(--font-display); }
.variante-opt { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.variante-opt label { flex: 1; min-width: 120px; border: 1.5px solid var(--borde); border-radius: 12px; padding: 12px; background: var(--crema); cursor:pointer; text-align:center; transition: all .15s; }
.variante-opt input { display: none; }
.variante-opt label:has(input:checked) { background: var(--verde); border-color: var(--verde); color: #fff; }

/* ===================== PERFIL ===================== */
.perfil-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--verde); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; font-family: var(--font-display); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--verde-oscuro); color: #d6e2d6; margin-top: 54px; position: relative; }
.site-footer::before {
    content: ''; display: block; height: 16px;
    background-color: var(--kraft);
    background-image: radial-gradient(circle at 10px 16px, transparent 10px, var(--verde-oscuro) 10.5px);
    background-size: 20px 20px; background-position: 10px 0;
}
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 40px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.f-brand img { width: 54px; margin-bottom: 8px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.f-brand strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.f-brand em { color: #a9c0a9; font-size: .85rem; }
.f-col h6 { color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 12px; }
.f-col a, .f-col span { display: block; color: #c3d4c3; font-size: .88rem; margin-bottom: 8px; }
.f-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #a9c0a9; }

/* ===================== UTILIDADES ===================== */
.alert-eco { background: var(--verde-suave); border: 1px solid var(--verde); color: var(--verde-oscuro); border-radius: 12px; padding: 14px 18px; }
.form-control, .form-select { border-radius: 10px; border: 1px solid var(--borde); padding: 10px 14px; background: var(--crema); }
.form-control:focus, .form-select:focus { border-color: var(--verde); box-shadow: 0 0 0 .2rem rgba(95,135,97,.15); background: var(--crema); }
label { font-weight: 600; font-size: .88rem; color: #6b5f4a; margin-bottom: 4px; display: inline-block; }

/* Drag & drop de imágenes (usado también en admin) */
.drop-zone {
    border: 2px dashed var(--borde); border-radius: 14px; padding: 24px; text-align: center;
    background: var(--kraft); cursor: pointer; transition: all .2s; position: relative;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--verde); background: var(--verde-suave); }
.drop-zone i { font-size: 2.2rem; color: var(--verde); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-preview { max-width: 160px; max-height: 160px; border-radius: 10px; margin-top: 10px; object-fit: cover; }

/* ===================== MENÚ POR CATEGORÍAS (inicio) ===================== */
.cat-block { margin-top: 36px; scroll-margin-top: 196px; }
#menu { scroll-margin-top: 196px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--borde); }
.cat-head h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--verde-oscuro); margin: 0; display: flex; align-items: center; gap: 10px; }
.cat-n { font-family: var(--font-body); font-size: .72rem; font-weight: 800; background: var(--verde-suave); color: var(--verde-oscuro); border-radius: 12px; padding: 3px 10px; }
.cat-head p { margin: 4px 0 0; font-size: .86rem; color: #7A7767; }
.cat-head > a { font-size: .82rem; font-weight: 700; white-space: nowrap; color: var(--verde-oscuro); }
.cat-head > a:hover { text-decoration: underline; }
@media (max-width: 640px) { .cat-head { align-items: flex-start; flex-direction: column; gap: 6px; } .cat-block { margin-top: 28px; } }

/* Barra de categorías: desplazamiento fino en escritorio, oculto en móvil */
.cats-strip { scrollbar-width: thin; scrollbar-color: #D9CFB0 transparent; }
.cats-strip::-webkit-scrollbar { height: 6px; }
.cats-strip::-webkit-scrollbar-thumb { background: #D9CFB0; border-radius: 6px; }
.cats-strip::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 992px) { .cats-strip { scrollbar-width: none; } .cats-strip::-webkit-scrollbar { display: none; } }
