:root{--av-wine:#722a21;--av-wine-dark:#401713;--av-orange:#c96b33;--av-green:#285e42;--av-cream:#f7efe2;--av-sand:#ead8bd;--av-ink:#241914;--av-muted:#71635a;--av-line:#eadfce;--av-shadow:0 24px 70px rgba(56,35,23,.14)}
.business-page{background:#fffdf9;color:var(--av-ink)}
.business-topbar{border-bottom-color:rgba(114,42,33,.12)}
.profile-hero{min-height:610px;position:relative;display:flex;align-items:flex-end;background-image:var(--profile-cover);background-size:cover;background-position:center;isolation:isolate}
.profile-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,12,8,.9) 0%,rgba(43,17,10,.70) 40%,rgba(33,15,10,.2) 75%,rgba(33,15,10,.08) 100%);z-index:-1}
.profile-hero-inner{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:92px 0 72px;color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
.profile-identity{display:flex;align-items:center;gap:24px;max-width:820px}.profile-logo{width:118px;height:118px;border-radius:28px;object-fit:cover;background:#fff;border:5px solid rgba(255,255,255,.92);box-shadow:0 16px 45px rgba(0,0,0,.24);flex:0 0 auto}.profile-logo-fallback{display:grid;place-items:center;color:var(--av-wine);font-size:3rem;font-weight:900}.profile-category{display:inline-flex;padding:7px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.13);font-size:.78rem;font-weight:800;letter-spacing:.04em;backdrop-filter:blur(8px)}.profile-hero h1{font-size:clamp(3rem,6.5vw,6.2rem);letter-spacing:-.055em;margin:.12em 0 .14em}.profile-hero p{font-size:clamp(1rem,2vw,1.28rem);max-width:720px;color:#f7e9dc;margin:0}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.profile-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:14px;font-weight:850;transition:.2s;border:1px solid transparent}.profile-btn:hover{transform:translateY(-2px)}.profile-btn-wa{background:#1f8f55;color:#fff}.profile-btn-light{background:#fff;color:var(--av-wine-dark)}.profile-btn-ghost{border-color:rgba(255,255,255,.4);color:#fff;background:rgba(255,255,255,.08)}.profile-btn-dark{background:var(--av-wine);color:#fff}.profile-nav{position:sticky;top:64px;z-index:15;display:flex;gap:24px;overflow:auto;padding:14px max(20px,calc((100vw - 1180px)/2));background:rgba(255,253,249,.96);border-bottom:1px solid var(--av-line);backdrop-filter:blur(12px)}.profile-nav a{white-space:nowrap;font-size:.88rem;font-weight:800;color:var(--av-muted)}.profile-nav a:hover{color:var(--av-wine)}.profile-section{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:84px 0}.profile-kicker{display:inline-block;color:var(--av-orange);font-size:.76rem;font-weight:900;letter-spacing:.16em}.profile-kicker-light{color:#f2c89e}.profile-section h2,.profile-band h2,.profile-location h2{font-size:clamp(2rem,4.3vw,4rem);letter-spacing:-.045em;margin:.22em 0}.profile-intro{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start}.profile-copy{color:var(--av-muted);font-size:1.08rem}.profile-copy p{margin-top:0}.profile-note{display:flex;flex-direction:column;gap:2px;margin-top:28px;padding:18px 20px;border-left:4px solid var(--av-orange);background:var(--av-cream);border-radius:0 14px 14px 0}.profile-note span{color:var(--av-muted)}.profile-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:25px}.carousel-controls{display:flex;gap:8px}.carousel-controls button,.carousel-dots button{border:0;cursor:pointer}.carousel-controls button{width:44px;height:44px;border-radius:50%;background:var(--av-cream);font-size:1.2rem;color:var(--av-wine)}.business-carousel{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-top:28px}.business-carousel::-webkit-scrollbar{display:none}.business-slide{min-width:min(78vw,760px);height:470px;border-radius:28px;overflow:hidden;scroll-snap-align:start;margin:0;background:var(--av-cream);box-shadow:var(--av-shadow)}.business-slide img{width:100%;height:100%;object-fit:cover}.carousel-dots{display:flex;justify-content:center;gap:8px;margin-top:18px}.carousel-dots button{width:9px;height:9px;border-radius:50%;background:#d9cbbb;padding:0}.carousel-dots button.active{width:28px;border-radius:999px;background:var(--av-wine)}.profile-band{background:linear-gradient(120deg,var(--av-wine-dark),var(--av-wine));color:#fff}.profile-promo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:28px}.profile-promo-card{display:grid;grid-template-columns:auto 1fr;overflow:hidden;border-radius:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15)}.profile-promo-card>img{width:180px;height:100%;min-height:180px;object-fit:cover}.profile-promo-card>div{padding:25px}.profile-promo-card span{font-size:.72rem;letter-spacing:.13em;color:#f0cba8;font-weight:900}.profile-promo-card h3{font-size:1.6rem}.profile-promo-card p{color:#f7dfd3}.profile-products{margin-top:28px}.product-group{margin-top:42px}.product-group>h3{font-size:1.7rem}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.product-card{border:1px solid var(--av-line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 10px 35px rgba(56,35,23,.06)}.product-card>img{width:100%;height:190px;object-fit:cover}.product-card>div{padding:20px}.product-card h4{font-size:1.2rem;margin:0 0 8px}.product-card p{color:var(--av-muted);margin:0 0 12px}.product-card strong{color:var(--av-wine)}.profile-contact-layout{display:grid;grid-template-columns:1.4fr .75fr;gap:50px;align-items:start}.contact-main>p{color:var(--av-muted);font-size:1.05rem;max-width:720px}.contact-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:26px}.contact-card{display:flex;align-items:center;gap:14px;border:1px solid var(--av-line);border-radius:18px;padding:17px;background:#fff;transition:.2s}.contact-card:hover{border-color:#d4bfa2;transform:translateY(-2px);box-shadow:0 12px 35px rgba(56,35,23,.08)}.contact-card-wa{background:#edf8f1}.contact-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--av-cream);font-weight:900}.contact-card small,.info-row small,.hours-list>small{display:block;color:var(--av-muted);font-size:.73rem}.contact-card strong{display:block;word-break:break-word}.profile-info-card{padding:28px;border-radius:24px;background:var(--av-cream);border:1px solid #eadbc5}.profile-info-card h3{font-size:1.5rem}.info-row{display:flex;gap:12px;padding:14px 0;border-top:1px solid #deceb6}.info-row>span{font-size:1.3rem}.hours-list{padding-top:16px;border-top:1px solid #deceb6;margin-top:8px}.hours-list>div{display:flex;justify-content:space-between;gap:20px;padding:6px 0;font-size:.86rem}.hours-list>div span{color:var(--av-muted)}.profile-location{background:#f1e8dc}.profile-location-inner{display:grid;grid-template-columns:.7fr 1.3fr;gap:45px;align-items:center}.location-copy p{color:var(--av-muted)}.map-frame{height:470px;border-radius:28px;overflow:hidden;box-shadow:var(--av-shadow);background:#ddd}.map-frame iframe{border:0;width:100%;height:100%}.business-footer-cta{padding:58px max(20px,calc((100vw - 1180px)/2));background:#241512;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}.business-footer-cta span{font-size:.72rem;letter-spacing:.15em;color:#e3ad74;font-weight:900}.business-footer-cta h2{font-size:clamp(2rem,4vw,3.4rem);margin:.15em 0}.business-footer-cta p{color:#d9c6ba}.business-footer-cta>a{background:#fff;color:var(--av-wine-dark);padding:14px 20px;border-radius:14px;font-weight:900;white-space:nowrap}.floating-wa{position:fixed;right:18px;bottom:18px;z-index:40;padding:13px 18px;border-radius:999px;background:#1f8f55;color:#fff;font-weight:900;box-shadow:0 14px 40px rgba(0,0,0,.22)}
.business-dashboard{max-width:1080px}.dashboard-lead{color:var(--av-muted);max-width:780px}.business-panel-nav{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 24px}.business-panel-nav a{padding:9px 13px;border-radius:999px;background:var(--av-cream);font-weight:800;font-size:.86rem}.business-editor{margin-bottom:22px;scroll-margin-top:90px}.editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.editor-heading h2{margin:.15em 0}.template-lock,.gallery-count{padding:8px 12px;border-radius:999px;background:#f5efe7;color:var(--av-muted);font-size:.78rem;font-weight:800}.gallery-admin-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:20px 0}.gallery-admin-card{border:1px solid var(--av-line);border-radius:14px;overflow:hidden;background:#fff}.gallery-admin-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.gallery-admin-card form{padding:8px}.gallery-upload-form{padding-top:12px;border-top:1px solid var(--av-line)}.hours-editor{display:grid;gap:10px;margin-bottom:16px}.hours-editor-row{display:grid;grid-template-columns:130px 1fr 1fr auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--av-line)}.time-label{font-size:.75rem}.closed-check{display:flex;align-items:center;gap:7px;padding-bottom:12px}.closed-check input{width:auto}.field-help{font-weight:500;color:var(--av-muted);font-size:.78rem}
@media(max-width:900px){.profile-hero{min-height:690px}.profile-hero-inner{align-items:flex-start;flex-direction:column;justify-content:flex-end}.profile-actions{justify-content:flex-start}.profile-intro,.profile-contact-layout,.profile-location-inner{grid-template-columns:1fr}.profile-promo-grid,.product-grid{grid-template-columns:1fr 1fr}.gallery-admin-grid{grid-template-columns:repeat(3,1fr)}.hours-editor-row{grid-template-columns:1fr 1fr}.hours-editor-row>strong{grid-column:1/-1}.closed-check{padding-bottom:0}}
@media(max-width:640px){.profile-hero{min-height:650px}.profile-hero-inner{width:min(100% - 28px,1180px);padding:65px 0 42px}.profile-identity{align-items:flex-start;flex-direction:column;gap:14px}.profile-logo{width:88px;height:88px;border-radius:22px}.profile-hero h1{font-size:clamp(2.7rem,14vw,4.4rem)}.profile-actions{width:100%}.profile-actions .profile-btn{flex:1 1 46%}.profile-nav{top:59px;padding-left:14px;padding-right:14px}.profile-section{width:min(100% - 30px,1180px);padding:62px 0}.profile-intro{gap:20px}.business-slide{min-width:88vw;height:340px;border-radius:20px}.profile-promo-grid,.product-grid,.contact-cards{grid-template-columns:1fr}.profile-promo-card{grid-template-columns:1fr}.profile-promo-card>img{width:100%;height:180px}.map-frame{height:360px}.business-footer-cta{align-items:flex-start;flex-direction:column}.gallery-admin-grid{grid-template-columns:repeat(2,1fr)}.hours-editor-row{grid-template-columns:1fr}.hours-editor-row>strong{grid-column:auto}.editor-heading{flex-direction:column}.hours-list>div{font-size:.82rem}.floating-wa{left:16px;right:16px;text-align:center}}

/* v2.1 · editores de contenido del negocio */
.editor-subtitle{margin:2rem 0 .8rem;padding-top:1rem;border-top:1px solid #eadfd6;color:#7a2e24}
.media-editor-grid,.admin-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 1.25rem}
.media-editor-card,.inline-card,.content-editor-card{border:1px solid #eadfd6;border-radius:18px;background:#fff;padding:1rem}
.media-editor-card img{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:14px;margin:.75rem 0}
.media-editor-card .hero-preview{aspect-ratio:16/9}
.media-placeholder{display:grid;place-items:center;min-height:150px;background:#f7f2ed;border:1px dashed #d8c8bb;border-radius:14px;color:#7d6d62;margin:.75rem 0}
.danger-check{display:flex!important;align-items:center;gap:.5rem;color:#9f2f2f;margin-top:.6rem}
.danger-check input,.closed-check input{width:auto!important;margin:0!important}
.compact-editor{display:grid;gap:.55rem;margin-top:.75rem}
.compact-editor label{margin:0}
.inline-card{display:grid;grid-template-columns:1fr 90px auto;gap:.6rem;align-items:end;margin:.65rem 0}
.danger-link{border:0;background:none;color:#a62929;text-decoration:underline;cursor:pointer;padding:.3rem 0;font:inherit}
.editor-rule{border:0;border-top:1px solid #eadfd6;margin:2rem 0}
.item-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:end}
.item-editor-grid .wide{grid-column:1/-1}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.content-editor-list{display:grid;gap:1rem;margin-top:1rem}
.content-editor-card{display:grid;grid-template-columns:180px 1fr;gap:1rem;align-items:start}
.content-editor-card>img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;background:#f6f1ec}
.content-editor-fields{display:grid;gap:.8rem}
.editor-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.delete-row{margin:.25rem 0 1rem;padding-left:1rem}
.business-editor select{width:100%;border:1px solid #d9d3ce;border-radius:12px;padding:.85rem;background:#fff;font:inherit}
.business-editor input[type="file"]{padding:.65rem;background:#faf8f5}
.business-panel-nav{position:sticky;top:0;z-index:25;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);padding:.65rem;border-radius:16px;box-shadow:0 8px 28px rgba(60,30,15,.08);display:flex;gap:.45rem;overflow:auto;margin-bottom:1.2rem}
.business-panel-nav a{white-space:nowrap}

@media(max-width:850px){
  .media-editor-grid,.admin-split,.three{grid-template-columns:1fr}
  .item-editor-grid{grid-template-columns:1fr}
  .content-editor-card{grid-template-columns:1fr}
  .content-editor-card>img{max-width:260px}
  .inline-card{grid-template-columns:1fr}
}

/* =========================================================
   AtocpanVive · Panel negocio v2.2
   Mejoras de administración de productos y promociones
   ========================================================= */
.editor-description{margin:.35rem 0 0;color:var(--av-muted);max-width:780px;line-height:1.55}
.order-help{display:grid;grid-template-columns:auto 1fr;gap:12px 18px;align-items:start;margin:14px 0 22px;padding:16px 18px;border:1px solid #ead7c2;border-radius:16px;background:#fff8ef;color:#6d513d}.order-help strong{color:var(--av-wine-dark)}.order-help span{font-size:.9rem;line-height:1.45}
.editor-subheading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 16px}.editor-subheading h3{margin:.15rem 0 .25rem;font-size:1.45rem}.editor-subheading p{margin:0;color:var(--av-muted)}.mini-kicker{display:block;color:var(--av-orange);font-size:.7rem;font-weight:900;letter-spacing:.14em}.admin-counter{padding:8px 12px;border-radius:999px;background:#f5efe7;color:var(--av-muted);font-size:.78rem;font-weight:900;white-space:nowrap}
.empty-admin-state{padding:16px 18px;border:1px dashed #d9c7b5;border-radius:14px;background:#fffaf5;color:var(--av-muted)}.large-empty{margin-top:20px;padding:26px;text-align:center}
.product-sections-manager>div{border:1px solid #eee2d6;border-radius:18px;padding:18px;background:#fff}.section-admin-row{padding:10px 0;border-bottom:1px solid #f0e7df}.section-admin-row:last-child{border-bottom:0}.section-inline-card{margin:0;padding:0;border:0}.section-inline-card label{margin:0}.section-delete-form{margin-top:6px}
.create-item-card,.promo-create-box{padding:18px;border:1px solid #eadfd6;border-radius:20px;background:linear-gradient(180deg,#fff,#fffbf7)}.promo-create-box{margin-top:6px}.promo-create-box .item-editor-grid{margin-top:10px}.availability-check{align-self:end}
.product-manager-grid,.promo-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px}.manage-product-card,.manage-promo-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #e8ddd2;border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(73,43,28,.07)}.manage-product-card.is-hidden{opacity:.82}.manage-product-preview,.manage-promo-preview{position:relative;background:#f5eee8}.manage-product-preview{aspect-ratio:16/9}.manage-promo-preview{aspect-ratio:16/8.5}.manage-product-preview img,.manage-promo-preview img{width:100%;height:100%;object-fit:cover;display:block}.media-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#f2e7db,#fbf6f1);color:#977b68;font-weight:800}.promo-placeholder{background:linear-gradient(135deg,#f3e6df,#fff7f3)}.manage-card-badges{position:absolute;left:12px;right:12px;bottom:12px;display:flex;justify-content:space-between;gap:8px;align-items:center}.category-badge,.status-badge{display:inline-flex;align-items:center;min-height:28px;padding:6px 10px;border-radius:999px;font-size:.72rem;font-weight:900;line-height:1;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(0,0,0,.08)}.category-badge{color:var(--av-wine)}.status-badge{position:relative}.manage-promo-preview>.status-badge{position:absolute;top:12px;right:12px}.status-live{background:#e7f7ed;color:#157640}.status-off{background:#f0eeec;color:#6e655f}.status-draft{background:#fff2d8;color:#8a5a00}.status-archived{background:#eee8f6;color:#5b4775}
.manage-product-summary,.manage-promo-summary{padding:18px 18px 0}.manage-product-summary{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.manage-product-summary h4,.manage-promo-summary h4{margin:0;font-size:1.35rem;line-height:1.2}.manage-product-summary small{color:var(--av-muted);white-space:nowrap}.manage-price{display:block;margin-top:5px;color:var(--av-wine);font-size:1.05rem;font-weight:900}.promo-date-summary{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px;color:var(--av-muted);font-size:.82rem}.manage-card-form{display:grid;gap:12px;padding:18px}.manage-card-form label{margin:0}.product-edit-meta{align-items:start}.manage-actions{padding-top:4px}.manage-delete-zone{margin-top:auto;padding:0 18px 16px;border-top:1px solid #f0e6dc;padding-top:12px}.manage-delete-zone .danger-link{font-size:.82rem}.manage-card-form .btn-primary{margin-left:auto}
@media(max-width:900px){.product-manager-grid,.promo-manager-grid{grid-template-columns:1fr}.order-help{grid-template-columns:1fr}.editor-subheading{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.manage-product-summary{flex-direction:column}.manage-card-form .btn-primary{width:100%;margin-left:0}.promo-date-summary{flex-direction:column}.create-item-card,.promo-create-box{padding:14px}}
