:root{--teba:#27a999;--teba-dark:#0f766e;--ink:#102a43;--muted:#617184;--bg:#f6faf9;--danger:#c0392b;--warning:#f39c12;--ok:#168a5b;--line:#e3ecea;--white:#fff;--shadow:0 12px 32px rgba(16,42,67,.10)}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit}.container{width:min(1180px,92%);margin:auto}.topbar{background:#0b5f58;color:white;font-size:14px;padding:8px 0}.navbar{background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;box-shadow:0 2px 16px rgba(0,0,0,.04)}.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}.logo{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;color:var(--teba-dark)}.logo img{height:52px;max-width:150px;object-fit:contain}.nav-links{display:flex;gap:18px;align-items:center}.nav-links a{text-decoration:none;font-weight:700;color:#20485a}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:10px 16px;font-weight:800;text-decoration:none;cursor:pointer;background:var(--teba);color:white;box-shadow:0 8px 18px rgba(39,169,153,.25)}.btn.secondary{background:white;color:var(--teba-dark);border:1px solid var(--line);box-shadow:none}.btn.danger{background:var(--danger)}.hero{position:relative;min-height:440px;display:grid;align-items:center;overflow:hidden;background:linear-gradient(135deg,#0f766e,#27a999)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.12));z-index:1}.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-content{position:relative;z-index:2;color:white;max-width:720px;padding:70px 0}.hero h1{font-size:clamp(34px,5vw,60px);line-height:1;margin:0 0 14px;font-weight:900}.hero p{font-size:20px;line-height:1.5;margin:0 0 26px}.section{padding:58px 0}.section h2{font-size:32px;margin:0 0 10px}.section-sub{color:var(--muted);margin:0 0 28px}.grid{display:grid;gap:22px}.grid.products{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.grid.stores{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.grid.banners{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.card{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}.card-body{padding:18px}.card img{width:100%;height:190px;object-fit:cover;background:#eaf4f2}.product-title{font-size:17px;font-weight:900;min-height:42px}.price{font-size:22px;font-weight:900;color:var(--teba-dark);margin-top:10px}.old-price{text-decoration:line-through;color:#8795a1;font-size:14px;margin-left:8px}.badge{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#e7f8f5;color:var(--teba-dark)}.badge.closed{background:#fdecea;color:#b42318}.badge.open{background:#e8f7ef;color:#087443}.footer{background:#0c312e;color:white;padding:34px 0;margin-top:40px}.admin-shell{display:flex;min-height:100vh}.sidebar{width:260px;background:#0c312e;color:white;padding:22px;position:fixed;inset:0 auto 0 0;overflow:auto}.sidebar img{height:54px;margin-bottom:22px}.sidebar a{display:block;color:white;text-decoration:none;padding:12px 14px;border-radius:12px;margin:4px 0;font-weight:700}.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.12)}.main{margin-left:260px;width:calc(100% - 260px);padding:28px}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.panel{background:white;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:20px;margin-bottom:22px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .full{grid-column:1/-1}label{display:block;font-weight:800;font-size:13px;margin:0 0 6px;color:#29465a}input,textarea,select{width:100%;border:1px solid #ccd9d6;border-radius:12px;padding:11px 12px;font-size:15px;background:white}textarea{min-height:95px;resize:vertical}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:white}.table th,.table td{border-bottom:1px solid var(--line);padding:12px;text-align:left;vertical-align:middle}.table th{font-size:12px;text-transform:uppercase;color:#5f7180;background:#f8fbfb}.thumb{width:76px;height:58px;object-fit:cover;border-radius:10px;background:#edf4f3}.flash{padding:12px 14px;border-radius:12px;margin-bottom:12px;font-weight:700}.flash.ok{background:#e8f7ef;color:#087443}.flash.error{background:#fdecea;color:#b42318}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f766e,#27a999)}.login-card{background:white;width:min(420px,92%);padding:30px;border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.22)}.login-card img{height:70px;display:block;margin:0 auto 18px}.muted{color:var(--muted);font-size:14px}.small{font-size:12px}.danger-text{color:var(--danger);font-weight:800}@media(max-width:820px){.nav-links{display:none}.admin-shell{display:block}.sidebar{position:relative;width:auto}.main{margin-left:0;width:auto}.form-grid{grid-template-columns:1fr}.hero-content{padding:44px 0}.card img{height:170px}}
.product-card img{object-fit:contain;padding:10px;background:#fff}.codebox{background:#0d2f2b;color:#e8fffb;border-radius:14px;padding:14px;overflow:auto;white-space:pre-wrap;font-size:13px}.panel h3{margin-top:22px}code{background:#edf7f5;border-radius:6px;padding:2px 6px}
.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0}.status-grid>div{background:#f8fbfb;border:1px solid var(--line);border-radius:14px;padding:12px}.search-form{display:flex;gap:10px;align-items:center;margin:18px 0 22px}.search-form input{max-width:520px}.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:28px;font-weight:800}.product-card .muted{margin:8px 0}.price:empty{display:none}@media(max-width:720px){.search-form{display:block}.search-form .btn{margin-top:8px;width:100%}}
.offer-carousel{overflow:hidden;border-radius:24px;border:1px solid var(--line);background:white;box-shadow:var(--shadow);padding:14px}.offer-track{display:flex;gap:18px;width:max-content;animation:offerSlide 30s linear infinite}.offer-carousel:hover .offer-track{animation-play-state:paused}.offer-slide{width:min(330px,82vw);aspect-ratio:4/5;display:block;position:relative;flex:0 0 auto;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:20px;overflow:hidden;background:white;box-shadow:0 4px 16px rgba(16,42,67,.08)}.offer-slide img{width:100%;height:100%;object-fit:cover;background:#fff;display:block}.offer-info{position:absolute;left:12px;right:12px;bottom:12px;padding:10px 12px;display:grid;gap:3px;border-radius:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(4px);box-shadow:0 8px 22px rgba(16,42,67,.12)}.offer-info strong{font-size:15px;color:var(--ink)}.offer-info span:not(.badge){font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.offer-info small{color:var(--muted);font-weight:700}.offer-slide:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,42,67,.14)}@keyframes offerSlide{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 9px))}}.offer-product-filter{margin:0 0 10px}.offer-product-select{min-height:230px}.admin-note{background:#f2fbf9;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:10px 0;color:var(--teba-dark);font-weight:700}.image-fallback{background:#fff} @media(max-width:720px){.offer-track{animation-duration:24s}.offer-slide{width:min(300px,86vw)}}.product-detail-section{background:#fff}.product-detail-card{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:26px;align-items:center;background:white;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:22px}.product-detail-card img{width:100%;height:330px;object-fit:contain;background:#fff;border-radius:18px;border:1px solid var(--line)}.product-detail-card h3{font-size:30px;margin:12px 0}.product-card .actions{margin-top:12px}@media(max-width:720px){.offer-track{animation-duration:22s}.product-detail-card{grid-template-columns:1fr}.product-detail-card img{height:250px}}


/* V3: carrusel limpio, sin recuadro blanco sobre la imagen, con flechas laterales */
.offer-carousel{position:relative;overflow:visible;border:0;background:transparent;box-shadow:none;padding:0;margin-top:16px}.offer-viewport{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}.offer-viewport::-webkit-scrollbar{display:none}.offer-track{display:flex;gap:18px;width:max-content;animation:none}.offer-carousel:hover .offer-track{animation-play-state:initial}.offer-slide{width:min(330px,82vw);aspect-ratio:4/5;display:block;position:relative;flex:0 0 auto;text-decoration:none;border:0;border-radius:20px;overflow:hidden;background:transparent;box-shadow:0 8px 26px rgba(16,42,67,.14);scroll-snap-align:start}.offer-slide img{width:100%;height:100%;object-fit:cover;background:transparent;display:block}.offer-info{display:none}.offer-slide:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(16,42,67,.18)}.offer-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:46px;height:46px;border:0;border-radius:999px;background:rgba(255,255,255,.95);color:var(--teba-dark);box-shadow:0 8px 22px rgba(16,42,67,.18);font-size:34px;line-height:1;display:grid;place-items:center;cursor:pointer}.offer-arrow:hover{background:var(--teba);color:#fff}.offer-arrow-prev{left:-14px}.offer-arrow-next{right:-14px}.category-filters{display:flex;flex-wrap:wrap;gap:10px;margin:-8px 0 24px}.category-chip{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;padding:8px 14px;background:#fff;color:var(--teba-dark);font-weight:800;text-decoration:none;font-size:14px}.category-chip:hover,.category-chip.active{background:var(--teba);border-color:var(--teba);color:#fff}.product-card .badge.open,.product-card .badge.closed,.product-detail-card .badge.open,.product-detail-card .badge.closed{display:none}@media(max-width:720px){.offer-slide{width:min(290px,82vw)}.offer-arrow{width:40px;height:40px;font-size:28px}.offer-arrow-prev{left:-8px}.offer-arrow-next{right:-8px}.category-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}.category-chip{white-space:nowrap}}

/* V4: productos clickeables, carrusel con movimiento suave y responsividad móvil */
.product-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.product-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(16,42,67,.14);border-color:rgba(39,169,153,.35)}.product-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.product-link:focus-visible{outline:3px solid rgba(39,169,153,.45);outline-offset:4px;border-radius:20px}.product-card .card-body{display:flex;flex-direction:column;flex:1}.product-card .price{margin-top:auto;padding-top:8px}.product-card .actions{display:none!important}
.offer-viewport{scroll-snap-type:none;scroll-behavior:smooth}.offer-track{will-change:transform}.offer-slide{transition:transform .25s ease,box-shadow .25s ease}.offer-slide:hover{transform:translateY(-4px) scale(1.01)}
@media (prefers-reduced-motion: reduce){.offer-slide,.product-card{transition:none!important}.offer-viewport{scroll-behavior:auto}}
@media(max-width:900px){.container{width:min(94%,1180px)}.topbar{font-size:12px}.nav-inner{gap:12px}.logo img{height:44px}.logo span{font-size:15px}.hero{min-height:340px}.hero-content{padding:42px 0}.hero p{font-size:16px}.section{padding:36px 0}.section h2{font-size:26px}.grid.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{border-radius:18px}.product-card img{height:155px}.product-title{font-size:15px;min-height:auto}.card-body{padding:15px}.price{font-size:20px}.offer-slide{width:min(270px,72vw);border-radius:18px}.offer-arrow{width:42px;height:42px;font-size:30px}.offer-arrow-prev{left:4px}.offer-arrow-next{right:4px}.product-detail-card{grid-template-columns:1fr;gap:18px}.product-detail-card h3{font-size:24px}.product-detail-card img{height:260px}.grid.stores{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:620px){body{font-size:15px}.topbar{display:none}.navbar{position:sticky;top:0}.nav-inner{padding:10px 0;align-items:flex-start}.logo{gap:8px}.logo img{height:38px}.logo span{font-size:14px}.nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.nav-links a{font-size:13px}.nav-links .btn{display:none}.hero{min-height:300px}.hero:before{background:linear-gradient(90deg,rgba(0,0,0,.64),rgba(0,0,0,.25))}.hero h1{font-size:30px}.hero p{font-size:15px}.btn{padding:9px 13px;border-radius:11px}.section{padding:30px 0}.search-form{display:grid;grid-template-columns:1fr;gap:8px}.search-form input{max-width:none}.search-form .btn{width:100%;margin:0}.category-filters{margin:0 0 18px;gap:8px}.category-chip{font-size:13px;padding:8px 12px}.grid.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card img{height:130px;padding:8px}.product-title{font-size:13.5px;line-height:1.25}.product-card .muted{font-size:12px;margin:6px 0}.price{font-size:18px}.card-body{padding:12px}.offer-carousel{margin-left:-2px;margin-right:-2px}.offer-slide{width:min(245px,78vw);aspect-ratio:4/5}.offer-arrow{top:50%;width:38px;height:38px;font-size:28px;background:rgba(255,255,255,.96)}.offer-arrow-prev{left:8px}.offer-arrow-next{right:8px}.pagination{gap:8px;flex-wrap:wrap}.pagination span{order:-1;width:100%;text-align:center}.grid.stores{grid-template-columns:1fr}.product-detail-card{padding:16px}.product-detail-card img{height:220px}.product-detail-card h3{font-size:22px}.footer{padding:24px 0;margin-top:20px}}
@media(max-width:390px){.grid.products{grid-template-columns:1fr}.product-card img{height:180px}.offer-slide{width:82vw}.nav-links a{font-size:12px}.logo span{display:none}}

/* V5: menú sándwich móvil, paginación de 20 productos y WhatsApp clickeable en sucursales */
.nav-toggle{display:none;border:1px solid var(--line);background:#fff;color:var(--teba-dark);width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;box-shadow:none}
.nav-toggle span{width:22px;height:3px;border-radius:999px;background:currentColor;display:block;transition:transform .2s ease,opacity .2s ease}
.nav-toggle.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.page-numbers{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.page-chip{min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;font-weight:900;color:var(--teba-dark)}
.page-chip:hover,.page-chip.active{background:var(--teba);border-color:var(--teba);color:#fff}
.whatsapp-link{display:inline-flex;align-items:center;gap:8px;color:#0b7f4f;text-decoration:none;font-weight:900;background:#e8f7ef;border:1px solid #c9ead8;border-radius:999px;padding:8px 12px}
.whatsapp-link:hover{background:#d9f3e6;transform:translateY(-1px)}
.whatsapp-svg{width:22px;height:22px;flex:0 0 auto}
@media(max-width:820px){
  .nav-inner{position:relative;align-items:center;padding:10px 0}
  .nav-toggle{display:inline-flex;flex:0 0 auto;margin-left:auto;z-index:31}
  .nav-links{display:none!important;position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 42px rgba(16,42,67,.14);padding:12px;z-index:30;flex-direction:column;align-items:stretch;gap:8px}
  .nav-links.open{display:flex!important}
  .nav-links a{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-radius:12px;background:#f8fbfb;font-size:15px;color:var(--teba-dark)}
  .nav-links a:hover{background:#e7f8f5}
  .nav-links .btn.secondary{display:flex!important;background:var(--teba);color:#fff;border-color:var(--teba)}
}
@media(max-width:620px){
  .logo span{display:inline!important;font-size:14px}
  .pagination{gap:8px;flex-wrap:wrap}
  .pagination span{order:-2;width:100%;text-align:center;margin-bottom:2px}
  .page-numbers{order:-1;width:100%;gap:6px}
  .page-chip{min-width:36px;height:36px;border-radius:10px}
  .pagination .btn{flex:1 1 calc(50% - 8px);font-size:13px;padding:9px 10px}
  .whatsapp-link{width:100%;justify-content:center;border-radius:12px}
}
@media(max-width:390px){.logo span{display:inline!important}.nav-toggle{width:42px;height:42px}}

/* V6: carrusel auto con pausa, admin oculto, banner más limpio y botones de tiendas uniformes */
.hero .hero-content{width:min(1180px,92%);margin-left:clamp(20px,4.5vw,86px);margin-right:auto;max-width:680px;padding-top:72px;padding-bottom:72px}
.hero .badge{margin-bottom:10px}
.hero h1{max-width:640px;margin-bottom:0;text-align:left}
.hero .btn{display:none!important}
.nav-links .admin-link{display:none!important}
.offer-viewport{overflow-x:auto;scroll-behavior:smooth;overscroll-behavior-x:contain;cursor:grab}
.offer-viewport:active{cursor:grabbing}
.offer-track{animation:none!important;transform:none!important}
.offer-carousel:hover .offer-track{animation-play-state:initial!important}
.store-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;align-items:center}
.store-action{width:100%;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;padding:10px 12px;text-align:center;text-decoration:none;font-weight:900;font-size:14px;line-height:1;border:1px solid var(--line);box-shadow:none;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.store-action:hover{transform:translateY(-1px)}
.store-action.whatsapp-link{color:#0b7f4f;background:#e8f7ef;border-color:#c9ead8;border-radius:14px}
.store-action.whatsapp-link:hover{background:#d9f3e6;border-color:#abdabc}
.map-link{color:#174ea6;background:#eef5ff;border-color:#cfe0ff}
.map-link:hover{background:#e3efff;border-color:#b6d0ff}
.whatsapp-svg,.maps-svg{width:22px;height:22px;flex:0 0 auto}
@media(max-width:900px){.hero .hero-content{width:min(94%,1180px);margin-left:auto;margin-right:auto;max-width:620px;padding:42px 0}.hero h1{font-size:clamp(30px,8vw,48px)}}
@media(max-width:620px){.store-actions{grid-template-columns:1fr}.store-action{min-height:46px}.hero .hero-content{margin-left:auto;margin-right:auto}.hero h1{max-width:92%}}


/* V7: carrusel automático robusto en escritorio, tiendas centradas y banner arriba a la izquierda */
@media (min-width:901px){
  .hero{align-items:start;min-height:410px;}
  .hero .hero-content{
    width:min(620px,88%);
    max-width:620px;
    margin-left:clamp(28px,4vw,72px);
    margin-right:auto;
    padding-top:clamp(28px,3.6vw,54px);
    padding-bottom:0;
  }
  .hero .badge{margin-bottom:12px;}
  .hero h1{max-width:620px;margin:0;text-align:left;font-size:clamp(38px,4.6vw,58px);line-height:1.02;}
}

.offer-carousel{isolation:isolate;}
.offer-viewport{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:none!important;}
.offer-track{display:flex!important;gap:18px;width:max-content;transform:none!important;animation:none!important;will-change:auto!important;}
.offer-slide[data-clone="true"]{pointer-events:auto;}
.offer-arrow{z-index:10;}

@media (min-width:621px){
  .store-actions{
    grid-template-columns:1fr!important;
    justify-items:center;
    align-items:center;
    gap:10px;
    margin-top:18px;
  }
  .store-action{
    width:min(100%,250px)!important;
    min-height:48px;
    justify-self:center;
  }
  .store-action span{text-align:center;}
}

/* V8: corrección carrusel - el auto-scroll no queda bloqueado después de usar mouse/flechas */
.offer-viewport{scroll-behavior:auto!important;touch-action:pan-x;}
.offer-track{animation:none!important;transform:none!important;}
.offer-carousel:hover .offer-track{animation-play-state:initial!important;}
.offer-arrow:focus{outline:none;}
.offer-arrow:focus-visible{outline:3px solid rgba(39,169,153,.45);outline-offset:3px;}

/* V10: título principal fuera del banner y corrección de anclas con menú fijo */
html{scroll-behavior:smooth;scroll-padding-top:96px;}
.section{scroll-margin-top:96px;}
.hero-heading{background:var(--bg);padding:32px 0 18px;}
.hero-heading h1{margin:0;color:var(--ink);font-size:clamp(32px,4.3vw,54px);line-height:1.05;font-weight:900;max-width:780px;}
.hero{min-height:360px;align-items:stretch;background:#eaf4f2;}
.hero:before{display:none!important;}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
.hero .hero-content{display:none!important;}

@media(max-width:900px){
  html{scroll-padding-top:78px;}
  .section{scroll-margin-top:78px;}
  .hero-heading{padding:24px 0 14px;}
  .hero-heading h1{font-size:clamp(28px,7vw,42px);max-width:92%;}
  .hero{min-height:300px;}
}
@media(max-width:620px){
  html{scroll-padding-top:70px;}
  .section{scroll-margin-top:70px;}
  .hero-heading{padding:20px 0 12px;}
  .hero-heading h1{font-size:28px;line-height:1.08;}
  .hero{min-height:235px;}
  .hero img{object-position:center;}
}

/* V11: contacto elegante en detalle de producto */
.product-contact-panel{margin-top:26px;background:linear-gradient(135deg,#f2fbf9,#ffffff);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:24px;overflow:hidden;position:relative}
.product-contact-panel:before{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:999px;background:rgba(39,169,153,.10);pointer-events:none}
.contact-panel-heading{position:relative;max-width:860px;margin-bottom:18px}
.contact-eyebrow{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#e7f8f5;color:var(--teba-dark);font-weight:900;font-size:12px;padding:7px 12px;margin-bottom:10px}
.contact-panel-heading h3{margin:0 0 8px;font-size:clamp(24px,3vw,32px);line-height:1.1;color:var(--ink)}
.contact-panel-heading p{margin:0;color:#41576a;font-size:16px;line-height:1.55}
.contact-store-grid{position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:18px}
.contact-store-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 10px 26px rgba(16,42,67,.08);display:flex;flex-direction:column;gap:12px;min-height:100%}
.contact-store-main{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:flex-start}
.contact-store-icon{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#e7f8f5;color:var(--teba-dark);font-weight:900;font-size:22px;line-height:1;flex:0 0 auto}
.contact-store-card h4{margin:0 0 5px;font-size:18px;color:var(--ink);line-height:1.2}
.contact-store-card p{margin:0;color:#425b6f;line-height:1.35}
.contact-hours{font-size:13.5px;color:var(--muted)!important;background:#f8fbfb;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.contact-buttons{display:grid;grid-template-columns:1fr;gap:9px;margin-top:auto}
.contact-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;text-decoration:none;font-weight:900;padding:10px 12px;border:1px solid var(--line);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;text-align:center;line-height:1.1}
.contact-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(16,42,67,.10)}
.contact-btn svg{width:21px;height:21px;flex:0 0 auto}
.call-btn{background:#fff8e8;color:#8a5b00;border-color:#ffe1a6}
.call-btn:hover{background:#fff1cc;border-color:#f6c86c}
.whatsapp-btn{background:#e8f7ef;color:#0b7f4f;border-color:#c9ead8}
.whatsapp-btn:hover{background:#d9f3e6;border-color:#abdabc}
.maps-btn{background:#eef5ff;color:#174ea6;border-color:#cfe0ff}
.maps-btn:hover{background:#e3efff;border-color:#b6d0ff}
@media(min-width:760px){.contact-buttons{grid-template-columns:1fr 1fr}.contact-buttons .maps-btn:nth-child(3){grid-column:1/-1}}
@media(max-width:620px){.product-contact-panel{padding:18px;border-radius:20px}.contact-store-grid{grid-template-columns:1fr}.contact-panel-heading p{font-size:15px}.contact-store-card{padding:16px}.contact-buttons{grid-template-columns:1fr}.contact-btn{min-height:45px}}

/* V12: detalle de producto con aviso simple y botón a tiendas */
.product-contact-panel.contact-compact{
  margin-top:26px;
  background:linear-gradient(135deg,#f2fbf9,#ffffff);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:28px;
  text-align:center;
  display:flex;
  justify-content:center;
}
.product-contact-panel.contact-compact:before{display:none!important;}
.product-contact-panel.contact-compact .contact-panel-heading{
  max-width:780px;
  margin:0 auto;
}
.product-contact-panel.contact-compact .contact-panel-heading h3{
  margin:0 0 10px;
  font-size:clamp(24px,3vw,34px);
  line-height:1.1;
  color:var(--ink);
}
.product-contact-panel.contact-compact .contact-panel-heading p{
  margin:0 auto;
  color:#41576a;
  font-size:17px;
  line-height:1.55;
  max-width:720px;
}
.contact-stores-btn{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  min-height:48px;
  border-radius:14px;
}
@media(max-width:620px){
  .product-contact-panel.contact-compact{padding:20px 16px;border-radius:20px;}
  .product-contact-panel.contact-compact .contact-panel-heading p{font-size:15px;}
  .contact-stores-btn{width:100%;max-width:260px;}
}

/* Ajuste mínimo navegación: los enlaces Ofertas/Productos/Tiendas muestran el título arriba, sin alterar diseño */
html{scroll-padding-top:44px!important;}
.section{scroll-margin-top:0!important;}
@media(max-width:900px){
  html{scroll-padding-top:42px!important;}
  .section{scroll-margin-top:0!important;}
}
@media(max-width:620px){
  html{scroll-padding-top:34px!important;}
  .section{scroll-margin-top:0!important;}
}

/* V13: portada mayorista tipo referencia visual */
:root{
  --teba:#17a99b;
  --teba-dark:#08756f;
  --ink:#111827;
  --muted:#5f6f7f;
  --bg:#f6faf8;
  --line:#dfe9e6;
  --accent:#f4b43f;
  --deep:#17324d;
  --shadow:0 14px 34px rgba(23,50,77,.10);
}
body{background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
.container{width:min(1240px,92%);margin:auto}
.navbar{background:#fff;border-bottom:1px solid #eef3f1;box-shadow:0 4px 18px rgba(17,24,39,.05)}
.nav-inner{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(220px,300px) 42px 42px;align-items:center;gap:18px;padding:13px 0}
.logo{min-width:138px}
.logo img{height:46px;max-width:154px;width:auto;object-fit:contain}
.nav-links{display:flex;align-items:center;justify-content:center;gap:24px}
.nav-links a{font-size:14px;color:#24384b;font-weight:800;text-decoration:none;white-space:nowrap}
.nav-links a:hover{color:var(--teba-dark)}
.nav-search{height:38px;display:flex;align-items:center;border:1px solid #e4ece9;border-radius:999px;background:#fbfdfc;overflow:hidden}
.nav-search input{height:100%;border:0;background:transparent;border-radius:0;padding:0 12px;font-size:13px;min-width:0}
.nav-search button{width:42px;height:100%;border:0;background:transparent;color:var(--teba-dark);display:grid;place-items:center;cursor:pointer}
.nav-round{width:42px;height:42px;border:1px solid #e4ece9;border-radius:999px;background:#fff;color:#0b756b;display:grid;place-items:center;text-decoration:none}
.nav-round:hover{background:#eaf8f5;border-color:#caebe5}
.nav-search svg,.nav-round svg,.btn svg,.section-link svg,.category-icon svg,.benefits-panel svg,.stats-band svg,.reason-grid svg{width:19px;height:19px;fill:currentColor;flex:0 0 auto}
.btn{border-radius:8px;padding:12px 18px;gap:8px;background:var(--teba);box-shadow:0 10px 20px rgba(23,169,155,.22);font-size:14px}
.btn.secondary{border-color:#dce8e5;background:#fff;color:#0b756b}
.home-hero{position:relative;background:#fff;overflow:hidden}
.hero-shell{display:grid;grid-template-columns:minmax(320px,.82fr) minmax(420px,1.18fr);align-items:stretch;min-height:385px}
.hero-copy{padding:66px 36px 62px 0;display:flex;flex-direction:column;justify-content:center;max-width:590px}
.eyebrow{margin:0 0 10px;color:var(--teba-dark);font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:0}
.hero-copy h1{margin:0;color:#101827;font-size:48px;line-height:1.07;font-weight:900;letter-spacing:0}
.hero-copy h1 span{display:block;color:var(--teba-dark)}
.hero-copy p:not(.eyebrow){margin:18px 0 0;color:#415365;font-size:16px;line-height:1.6;max-width:520px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.hero-media{min-height:385px;margin-right:calc((100vw - min(1240px,92vw)) / -2);position:relative;overflow:hidden;background:#dcefed}
.hero-media:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.88),rgba(255,255,255,.18) 30%,rgba(255,255,255,0));z-index:1}
.hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.benefits-panel{position:relative;z-index:2;margin-top:-26px;margin-bottom:18px}
.benefits-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden}
.benefits-grid article{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:center;padding:22px 26px;border-right:1px solid #edf2f0}
.benefits-grid article:last-child{border-right:0}
.benefits-grid svg{width:34px;height:34px;color:var(--teba)}
.benefits-grid strong,.reason-grid strong{display:block;font-size:14px;color:#1b2a3b;margin-bottom:5px}
.benefits-grid span,.reason-grid span{display:block;color:#607080;font-size:13px;line-height:1.35}
.section{padding:44px 0}
.section-heading{margin-bottom:24px}
.section-heading.center{text-align:center}
.section-heading.split{display:flex;justify-content:space-between;align-items:end;gap:24px}
.section-heading h2{margin:0;color:#141c2b;font-size:28px;line-height:1.15;font-weight:900;letter-spacing:0}
.section-link{display:inline-flex;align-items:center;gap:7px;color:var(--teba-dark);font-size:14px;font-weight:900;text-decoration:none;white-space:nowrap}
.categories-home{padding-top:34px}
.category-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.category-card{position:relative;display:block;min-height:126px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;text-decoration:none;color:#162235;box-shadow:0 8px 18px rgba(23,50,77,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.category-card:hover{transform:translateY(-3px);box-shadow:0 14px 26px rgba(23,50,77,.12);border-color:#bde5de}
.category-card img{width:100%;height:92px;object-fit:cover;display:block;background:#eef5f3}
.category-card strong{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;font-size:14px;text-align:center}
.category-icon{position:absolute;left:50%;top:72px;transform:translateX(-50%);width:42px;height:42px;border-radius:999px;background:var(--teba);color:#fff;border:4px solid #fff;display:grid;place-items:center;box-shadow:0 8px 16px rgba(23,169,155,.24)}
.category-icon svg{width:18px;height:18px}
.center-action{display:flex;justify-content:center;margin-top:18px}
.stats-band{padding:0 0 36px}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;background:var(--teba);border-radius:8px;color:#fff;box-shadow:var(--shadow);overflow:hidden}
.stats-grid article{display:grid;grid-template-columns:44px auto;grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:24px 30px}
.stats-grid svg{grid-row:1/3;width:38px;height:38px;color:rgba(255,255,255,.86)}
.stats-grid strong{font-size:29px;line-height:1;font-weight:900}
.stats-grid span{font-size:13px;opacity:.9;margin-top:5px}
.products-home{background:#fff}
.products-home .search-form{margin:0 0 16px;background:#f8fbfa;border:1px solid #e8f0ee;border-radius:8px;padding:10px;display:flex}
.products-home .search-form input{max-width:none;border-radius:8px}
.grid.products{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.products-home .product-card{border-radius:8px;border:1px solid #e4ece9;box-shadow:0 8px 20px rgba(23,50,77,.08);overflow:hidden;background:#fff}
.products-home .product-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(23,50,77,.13);border-color:#bde5de}
.products-home .product-card img{height:150px;padding:14px;object-fit:contain;background:#fff}
.products-home .product-card .card-body{padding:14px;min-height:170px}
.products-home .product-title{min-height:40px;font-size:14px;line-height:1.28;font-weight:900;color:#172033;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.products-home .product-card .muted{font-size:12px;line-height:1.35;margin:7px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.products-home .price{margin-top:auto;font-size:19px;color:#152336}
.product-cta{margin-top:10px;min-height:34px;border-radius:8px;background:var(--teba);color:#fff;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:900}
.product-cta svg{width:16px;height:16px;fill:currentColor}
.offers-home{background:#fff;padding-top:0}
.weekly-promo{min-height:148px;border-radius:8px;overflow:hidden;background:linear-gradient(90deg,rgba(18,163,151,.98),rgba(18,163,151,.90) 48%,rgba(18,163,151,.18) 72%),var(--promo-image) center right/cover no-repeat;color:#fff;display:flex;align-items:center;padding:30px;box-shadow:var(--shadow)}
.weekly-promo h2{margin:0;font-size:30px;line-height:1.05;color:#fff}
.weekly-promo p:not(.eyebrow){margin:8px 0 18px;color:rgba(255,255,255,.92);font-size:16px}
.weekly-promo .eyebrow{color:rgba(255,255,255,.88)}
.weekly-promo .btn.secondary{background:#fff;color:var(--teba-dark);border:0}
.offers-home .offer-carousel{margin-top:22px}
.offer-group{padding:26px 0 10px}
.offer-group+.offer-group{margin-top:18px;border-top:1px solid var(--line)}
.offer-group-heading h2{margin:0;font-size:28px;color:#141c2b}
.offer-carousel:hover .offer-track{animation-play-state:running!important}
.bulk-offer-intro{display:grid;gap:5px;margin:8px 0 14px}.bulk-images-picker{display:grid;gap:7px;margin-bottom:12px}.bulk-offer-row{display:grid;grid-template-columns:minmax(280px,500px) minmax(340px,1fr);gap:18px 22px;align-items:start;border:1px solid var(--line);border-radius:14px;background:#f8fbfa;padding:16px;margin:18px 0}.bulk-offer-row-heading{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-bottom:0}.bulk-offer-row-heading>strong{font-size:17px;color:var(--teba-dark);overflow-wrap:anywhere}.bulk-offer-preview{display:flex;justify-content:center;align-items:flex-start;margin:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.bulk-offer-preview img{display:block;width:100%;max-width:500px;height:auto;max-height:620px;object-fit:contain;border-radius:8px}.bulk-product-field{display:grid;gap:7px;align-content:start}.bulk-offer-row .offer-product-select{min-height:540px}.edit-offer-image{display:grid;gap:8px}.edit-offer-image img{display:block;width:auto;max-width:500px;height:auto;max-height:620px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px}@media(max-width:900px){.bulk-offer-row{grid-template-columns:1fr}.bulk-offer-row-heading{grid-column:1}.bulk-offer-preview img{max-width:100%;max-height:500px}.bulk-offer-row .offer-product-select{min-height:260px}}@media(max-width:720px){.bulk-offer-row{padding:13px}.bulk-offer-preview img{max-height:380px}}
.stores-home{background:var(--bg)}
.grid.stores{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.stores-home .card{border-radius:8px;border:1px solid var(--line);box-shadow:0 8px 20px rgba(23,50,77,.08);background:#fff}
.stores-home .card img{height:142px;object-fit:cover}
.stores-home .card-body{padding:16px}
.stores-home h3{margin:10px 0 8px;font-size:16px;color:#172033}
.stores-home p{font-size:13px;line-height:1.45;margin:0 0 7px;color:#3b4c5c}
.stores-home .badge{border-radius:999px;padding:5px 9px;font-size:11px}
.store-actions{grid-template-columns:1fr!important;justify-items:stretch!important;gap:8px!important;margin-top:12px!important}
.store-action{width:100%!important;border-radius:8px!important;min-height:40px!important;font-size:13px!important}
.reasons-home{background:#fff;padding-top:36px}
.reason-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.reason-grid article{display:grid;grid-template-columns:42px 1fr;gap:13px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;box-shadow:0 8px 18px rgba(23,50,77,.07)}
.reason-grid svg{width:34px;height:34px;color:var(--teba)}
.brands-home{padding:18px 0 34px;background:#fff;text-align:center}
.brand-carousel{position:relative;margin-top:16px;padding:0 54px}.brand-viewport{overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain}.brand-viewport::-webkit-scrollbar{display:none}.brand-track{display:flex;align-items:stretch;gap:18px;width:max-content}.brand-slide{width:210px;height:118px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 8px 20px rgba(23,50,77,.08)}.brand-slide img{display:block;width:100%;height:100%;object-fit:contain}.brand-arrow{position:absolute;top:50%;z-index:3;width:42px;height:42px;transform:translateY(-50%);display:grid;place-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--teba-dark);box-shadow:0 8px 20px rgba(23,50,77,.14);font-size:30px;line-height:1;cursor:pointer}.brand-arrow:hover{background:var(--teba);border-color:var(--teba);color:#fff}.brand-arrow-prev{left:0}.brand-arrow-next{right:0}@media(max-width:620px){.brand-carousel{padding:0 42px}.brand-track{gap:12px}.brand-slide{width:170px;height:96px;padding:10px 14px}.brand-arrow{width:36px;height:36px;font-size:26px}}
.contact-band{padding:28px 0;background:#fff}
.contact-band-inner{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);gap:24px;align-items:center;background:var(--teba);border-radius:8px;padding:28px;color:#fff;box-shadow:var(--shadow)}
.contact-band h2{max-width:520px;margin:0 0 18px;font-size:28px;line-height:1.12;color:#fff}
.contact-band .eyebrow{color:rgba(255,255,255,.78)}
.contact-actions{display:flex;gap:12px;flex-wrap:wrap}
.contact-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.contact-gallery img,.discount-tile{height:104px;border-radius:8px;object-fit:cover;width:100%;border:2px solid rgba(255,255,255,.45)}
.discount-tile{background:#0d756d;display:flex;flex-direction:column;align-items:center;justify-content:center;text-transform:uppercase}
.discount-tile span,.discount-tile small{font-size:11px;font-weight:900;color:rgba(255,255,255,.84)}
.discount-tile strong{font-size:34px;line-height:1;color:#fff}
.footer{background:#08756f;color:#fff;margin-top:0;padding:30px 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px;padding-bottom:26px}
.footer img{height:58px;width:auto;object-fit:contain;filter:brightness(0) invert(1)}
.footer p{max-width:280px;font-size:13px;line-height:1.5;color:rgba(255,255,255,.82)}
.footer strong{display:block;margin-bottom:12px;font-size:13px;text-transform:uppercase}
.footer a,.footer span{display:block;color:rgba(255,255,255,.82);text-decoration:none;font-size:13px;margin:7px 0}
.footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);padding:14px 0;font-size:12px;color:rgba(255,255,255,.76)}
@media(max-width:1100px){
  .nav-inner{grid-template-columns:auto minmax(0,1fr) 44px}
  .nav-search,.nav-user{display:none}
  .nav-round{justify-self:end}
  .nav-links{gap:14px;justify-content:flex-end}
  .hero-copy h1{font-size:40px}
  .category-card-grid,.grid.stores,.reason-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid.products{grid-template-columns:repeat(4,minmax(0,1fr))}
  .benefits-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .benefits-grid article:nth-child(2){border-right:0}
  .stats-grid article{padding:22px}
}
@media(max-width:820px){
  .nav-inner{display:grid;grid-template-columns:auto 44px;gap:10px}
  .logo img{height:42px}
  .nav-toggle{display:inline-flex;grid-column:2;grid-row:1;justify-self:end;border-radius:8px}
  .nav-links{display:none!important;position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:50;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 32px rgba(23,50,77,.14);padding:10px;flex-direction:column;align-items:stretch;gap:7px}
  .nav-links.open{display:flex!important}
  .nav-links a{min-height:40px;border-radius:8px;background:#f8fbfa;display:flex;align-items:center;justify-content:center}
  .nav-round{display:none}
  .nav-search{display:flex;grid-column:1/-1;grid-row:2;width:100%;height:40px}
  .hero-shell{grid-template-columns:1fr;min-height:0}
  .hero-copy{padding:42px 0 28px;max-width:none}
  .hero-copy h1{font-size:36px}
  .hero-media{margin:0 -4.35vw;min-height:245px}
  .hero-media:before{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0))}
  .benefits-panel{margin-top:0}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-band-inner{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .container{width:min(94%,1240px)}
  .section{padding:32px 0}
  .section-heading.split{display:block}
  .section-heading h2{font-size:24px}
  .section-link{margin-top:10px}
  .hero-copy{padding:34px 0 22px}
  .hero-copy h1{font-size:31px}
  .hero-copy p:not(.eyebrow){font-size:15px}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .benefits-grid,.category-card-grid,.reason-grid,.grid.stores{grid-template-columns:1fr}
  .benefits-grid article{border-right:0;border-bottom:1px solid #edf2f0;padding:18px}
  .benefits-grid article:last-child{border-bottom:0}
  .stats-grid{grid-template-columns:1fr}
  .stats-grid article{padding:18px 22px}
  .products-home .search-form{display:grid;grid-template-columns:1fr;gap:8px}
  .products-home .search-form .btn{width:100%}
  .grid.products{gap:12px}
  .products-home .product-card img{height:128px;padding:10px}
  .products-home .product-card .card-body{min-height:160px;padding:12px}
  .weekly-promo{padding:22px;min-height:210px;background:linear-gradient(180deg,rgba(18,163,151,.98),rgba(18,163,151,.84)),var(--promo-image) center/cover no-repeat}
  .weekly-promo h2{font-size:26px}
  .contact-band-inner{padding:20px}
  .contact-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:390px){
  .grid.products{grid-template-columns:1fr}
  .products-home .product-card img{height:170px}
}
