/* oo_boxbuilder v4.0.2 - Diseño premium Oliva Oliva */
.oo-bb{
  --oo-brown:#4b3d3a;
  --oo-brown-2:#3a2e2b;
  --oo-gold:#c9921a;
  --oo-gold-2:#b78000;
  --oo-cream:#fbf8f3;
  --oo-cream-2:#f6efe6;
  --oo-border:#e6ddd2;
  --oo-text:#3c302b;
  --oo-muted:#7c6f67;
  --oo-white:#ffffff;
  --oo-shadow:0 14px 34px rgba(62,48,43,.08);
  margin:0 0 40px;
  color:var(--oo-text);
  font-family:inherit;
}
.oo-bb *{box-sizing:border-box}
.oo-bb button,.oo-bb input,.oo-bb select,.oo-bb textarea{font-family:inherit}

/* PASOS SUPERIORES */
.oo-bb-steps-wrap{
  position:relative;
  background:transparent;
  border:0;
  padding:24px 0 34px;
  margin:10px 0 18px;
  overflow:visible;
}
.oo-bb-steps{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  align-items:start;
  overflow:visible;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.oo-bb-steps::-webkit-scrollbar{display:none;width:0;height:0}
.oo-bb-step-dot{
  position:relative;
  min-width:0;
  padding:0 6px;
  background:transparent;
  border:0;
  text-align:center;
  cursor:pointer;
  color:var(--oo-brown);
}
.oo-bb-step-dot:before{
  content:"";
  position:absolute;
  top:21px;
  left:-50%;
  right:50%;
  height:1px;
  background:var(--oo-border);
  z-index:0;
}
.oo-bb-step-dot:first-child:before{display:none}
.oo-bb-step-dot.done:before,.oo-bb-step-dot.active:before{background:#d7bd84}
.oo-bb-num{
  position:relative;
  z-index:1;
  width:43px;
  height:43px;
  line-height:41px;
  margin:0 auto 12px;
  border-radius:50%;
  border:1px solid #d9cfc4;
  background:#fff;
  color:var(--oo-brown);
  font-family:inherit;
  font-size:16px;
  font-weight:600;
  box-shadow:0 3px 12px rgba(75,61,58,.04);
}
.oo-bb-step-dot.active .oo-bb-num{
  background:linear-gradient(135deg,var(--oo-gold),#d79b17);
  border-color:var(--oo-gold);
  color:#fff;
}
.oo-bb-step-dot.done .oo-bb-num{
  background:#f2e5c9;
  border-color:#e3c88f;
  color:var(--oo-brown);
}
.oo-bb-step-title{
  display:block;
  max-width:155px;
  margin:0 auto;
  font-size:14px;
  line-height:1.3;
  font-weight:500;
  color:var(--oo-text);
}
.oo-bb-step-dot.active .oo-bb-step-title{
  color:var(--oo-brown);
  font-weight:600;
}
.oo-bb-step-dot.active .oo-bb-step-title:after{
  content:"";
  display:block;
  width:44px;
  height:2px;
  margin:10px auto 0;
  background:var(--oo-gold);
}
.oo-bb-top-arrow{display:none!important}

/* CABECERA DEL PASO */
.oo-bb-panel-head{
  background:transparent;
  border:0;
  border-top:1px solid var(--oo-border);
  padding:34px 0 24px;
  margin:0 0 20px;
}
.oo-bb-step-kicker{
  display:block;
  margin:0 0 8px;
  color:var(--oo-gold);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:700;
}
.oo-bb-panel-head h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:40px;
  line-height:1.08;
  font-weight:500;
  letter-spacing:-.03em;
  color:var(--oo-text);
  margin:0 0 16px;
}
.oo-bb-panel-head h2:after{
  content:"";
  display:block;
  width:72px;
  height:2px;
  background:var(--oo-gold);
  margin:18px 0 0;
}
.oo-bb-panel-head p{
  margin:0;
  color:var(--oo-muted);
  font-size:16px;
  line-height:1.5;
}

/* PRODUCTOS */
.oo-bb-products{
  background:transparent;
  border:0;
  margin:0;
  padding:0 0 26px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}
.oo-bb-product{
  position:relative;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  padding:0;
  background:#fff;
  border:1px solid var(--oo-border);
  border-radius:18px;
  overflow:hidden;
  cursor:pointer;
  text-align:left;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow:0 6px 20px rgba(88,63,47,.04);
}
.oo-bb-product:hover{
  transform:translateY(-2px);
  border-color:#dbc49c;
  box-shadow:0 12px 28px rgba(88,63,47,.09);
}
.oo-bb-product.selected{
  border:2px solid var(--oo-gold);
  box-shadow:0 12px 30px rgba(201,146,26,.14);
}
.oo-bb-check{
  display:none;
  position:absolute;
  top:20px;
  right:20px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--oo-gold),#d89a14);
  color:#fff;
  font-size:22px;
  font-weight:700;
  line-height:40px;
  text-align:center;
  z-index:2;
  box-shadow:0 8px 18px rgba(201,146,26,.25);
}
.oo-bb-product.selected .oo-bb-check{display:block}
.oo-bb-img{
  width:100%;
  height:220px;
  margin:0;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fffdf9,var(--oo-cream));
}
.oo-bb-img img{
  max-width:100%;
  max-height:180px;
  object-fit:contain;
}
.oo-bb-name{
  display:block;
  min-height:auto;
  padding:16px 18px 4px;
  color:var(--oo-text);
  font-family:inherit;
  font-size:16px;
  line-height:1.35;
  font-weight:500;
  text-transform:none;
  letter-spacing:-.02em;
}
.oo-bb-price{
  display:block;
  padding:0 18px 18px;
  color:var(--oo-gold-2);
  font-size:16px;
  font-weight:600;
  text-align:right;
}
.oo-bb-error{
  background:#fff5f5;
  border:1px solid #f0c5c5;
  color:#9f1f1f;
  padding:13px 18px;
  margin:12px 0 20px;
  border-radius:10px;
  font-weight:600;
}

/* RESUMEN INFERIOR */
.oo-bb-bottom{
  position:sticky;
  bottom:22px;
  z-index:50;
  width:100%;
  margin:28px auto 0;
  min-height:88px;
  background:#fff;
  border:1px solid var(--oo-border);
  border-radius:22px;
  box-shadow:var(--oo-shadow);
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.oo-bb-bottom-selection{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
  flex:1 1 auto;
}
.oo-bb-bottom-thumbs{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:76px;
  max-width:360px;
  overflow:hidden;
  scrollbar-width:none;
}
.oo-bb-bottom-thumbs::-webkit-scrollbar{display:none}
.oo-bb-thumb{
  width:62px;
  height:62px;
  flex:0 0 auto;
  border:1px solid var(--oo-border);
  border-radius:14px;
  background:#fcfaf7;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
}
.oo-bb-thumb img{width:100%;height:100%;object-fit:contain;padding:4px}
.oo-bb-thumb span{display:none}
.oo-bb-bottom-meta{min-width:120px}
.oo-bb-bottom-meta strong{
  display:block;
  margin:0 0 3px;
  color:var(--oo-text);
  font-size:15px;
  font-weight:600;
}
.oo-bb-bottom-meta small{
  display:block;
  color:var(--oo-muted);
  font-size:14px;
}
.oo-bb-bottom-total{
  display:block;
  min-width:120px;
  padding-left:20px;
  border-left:1px solid var(--oo-border);
  color:var(--oo-muted);
  font-size:14px;
}
.oo-bb-bottom-total span{display:block;margin-bottom:4px}
.oo-bb-bottom-total strong{
  display:block;
  color:var(--oo-text);
  font-family:inherit;
  font-size:28px;
  line-height:1;
  font-weight:700;
}
.oo-bb-bottom-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.oo-bb-btn,.oo-bb-add-cart{
  min-width:150px;
  min-height:56px;
  border:1px solid var(--oo-border);
  border-radius:13px;
  padding:12px 22px;
  cursor:pointer;
  font-family:inherit;
  font-size:16px;
  font-weight:600;
  transition:.2s ease;
}
.oo-bb-prev{
  background:#fff;
  color:var(--oo-text);
}
.oo-bb-next,.oo-bb-add-cart{
  background:linear-gradient(135deg,var(--oo-gold),#d99a12);
  border-color:var(--oo-gold);
  color:#fff;
}
.oo-bb-btn:hover,.oo-bb-add-cart:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(88,63,47,.10)}

/* VISTA PREVIA */
.oo-bb-preview-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:28px;
  background:transparent;
  padding:0 0 28px;
}
.oo-bb-preview-left{min-width:0}
.oo-bb-preview-tabs{
  display:none!important;
  gap:8px;
  overflow-x:auto;
  margin-bottom:0;
  padding-bottom:0;
  border:0;
  scrollbar-width:none;
}
.oo-bb-preview-tabs::-webkit-scrollbar{display:none}
.oo-bb-preview-chip{
  min-width:auto;
  padding:10px 14px;
  background:#fff;
  border:1px solid var(--oo-border);
  border-radius:999px;
  color:var(--oo-muted);
  font-weight:500;
  text-align:left;
  clip-path:none;
  white-space:nowrap;
}
.oo-bb-preview-chip span{
  display:inline-flex;
  width:24px;
  height:24px;
  align-items:center;
  justify-content:center;
  border:1px solid currentColor;
  border-radius:50%;
  margin-right:6px;
  font-size:13px;
}
.oo-bb-preview-chip.active{
  background:#fff4e3;
  border-color:#e7c785;
  color:var(--oo-brown);
}
.oo-bb-preview-items{
  background:#fff;
  border:1px solid var(--oo-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(88,63,47,.04);
}
.oo-bb-preview-row{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:18px;
  align-items:center;
  border-bottom:1px solid var(--oo-border);
  padding:18px;
}
.oo-bb-preview-row:last-child{border-bottom:0}
.oo-bb-preview-row img{
  width:82px;
  height:82px;
  object-fit:contain;
  border:1px solid var(--oo-border);
  border-radius:12px;
  background:#fcfaf7;
  padding:5px;
}
.oo-bb-preview-row strong{
  display:block;
  color:var(--oo-text);
  font-family:inherit;
  font-size:18px;
  line-height:1.25;
  font-weight:600;
}
.oo-bb-preview-row span{display:block;color:var(--oo-muted);margin-top:4px;font-size:14px}
.oo-bb-preview-row em{display:block;font-style:normal;margin-top:6px;color:var(--oo-gold-2);font-weight:600}
.oo-bb-preview-totals{
  align-self:start;
  position:sticky;
  top:20px;
  background:#fff;
  border:1px solid var(--oo-border);
  border-radius:18px;
  padding:26px 28px;
  text-align:center;
  box-shadow:0 6px 20px rgba(88,63,47,.04);
}
.oo-bb-preview-totals h3{
  margin:0 0 20px;
  color:var(--oo-text);
  font-size:15px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:700;
}
.oo-bb-total-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px dashed var(--oo-border);
  padding:13px 0;
  text-align:left;
  color:var(--oo-muted);
}
.oo-bb-total-row strong{color:var(--oo-text)}
.oo-bb-add-cart{margin-top:24px;min-width:190px}

/* HOME */
.oo-bb-home{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.oo-bb-home-card{border:1px solid var(--oo-border);border-radius:16px;padding:20px;background:#fff;box-shadow:0 6px 20px rgba(88,63,47,.04)}

@media(max-width:1100px){
  .oo-bb-preview-layout{grid-template-columns:1fr}
  .oo-bb-preview-totals{position:static}
}
@media(max-width:991px){
  .oo-bb-steps{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px}
  .oo-bb-step-dot{min-width:138px}
  .oo-bb-step-dot:before{display:none}
  .oo-bb-panel-head h2{font-size:42px}
  .oo-bb-bottom{position:sticky;bottom:12px;flex-wrap:wrap;gap:14px}
  .oo-bb-bottom-selection{width:100%;flex:1 0 100%}
  .oo-bb-bottom-total{border-left:0;padding-left:0}
  .oo-bb-bottom-actions{margin-left:auto}
}
@media(max-width:760px){
  .oo-bb{margin-bottom:20px}
  .oo-bb-steps-wrap{padding:18px 0 24px;margin-bottom:8px}
  .oo-bb-num{width:38px;height:38px;line-height:36px;font-size:19px}
  .oo-bb-step-title{font-size:13px}
  .oo-bb-panel-head{padding:24px 0 18px}
  .oo-bb-panel-head h2{font-size:36px}
  .oo-bb-panel-head p{font-size:15px}
  .oo-bb-products{grid-template-columns:1fr;gap:16px}
  .oo-bb-img{height:235px;padding:20px}
  .oo-bb-img img{max-height:205px}
  .oo-bb-name{font-size:23px;padding:16px 18px 4px}
  .oo-bb-price{padding:0 18px 18px;font-size:16px}
  .oo-bb-bottom{border-radius:18px;padding:12px;min-height:0}
  .oo-bb-bottom-thumbs{max-width:55vw}
  .oo-bb-thumb{width:52px;height:52px;border-radius:12px}
  .oo-bb-bottom-total strong{font-size:28px}
  .oo-bb-bottom-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .oo-bb-btn{min-width:0;width:100%;min-height:50px;font-size:18px;padding:10px 12px}
  .oo-bb-preview-row{grid-template-columns:78px 1fr;padding:14px}
  .oo-bb-preview-row img{width:64px;height:64px}
  .oo-bb-preview-row strong{font-size:20px}
}


/* v4.0.3 ajustes de tipografía y preview */
.oo-bb-num{display:inline-flex;align-items:center;justify-content:center;}
.oo-bb-step-title{word-break:break-word;}
.oo-bb-preview-left{min-width:0;}
.oo-bb-preview-tabs,.oo-bb-preview-chip{display:none!important;}
.oo-bb-preview-layout{align-items:start;}
.oo-bb-preview-row strong,.oo-bb-panel-head h2,.oo-bb-name,.oo-bb-bottom-total strong,.oo-bb-btn,.oo-bb-add-cart{font-family:inherit;}
.oo-bb-products .oo-bb-product{min-width:0;}
.oo-bb-preview-row em{font-size:15px;}
@media(max-width:760px){.oo-bb-name{font-size:15px}.oo-bb-price{font-size:15px}.oo-bb-panel-head h2{font-size:30px}.oo-bb-step-title{font-size:12px}.oo-bb-preview-row strong{font-size:16px}}


/* v4.0.4 - Ajuste estético tarjetas + eliminar en vista previa */
.oo-bb-product{
  background:#fff !important;
}

.oo-bb-img{
  background:#fff !important;
  border-bottom:1px solid var(--oo-border);
}

.oo-bb-name,
.oo-bb-price{
  background:#fff8ed !important;
}

.oo-bb-name{
  margin:0;
}

.oo-bb-price{
  text-align:right;
}

.oo-bb-product.selected .oo-bb-name,
.oo-bb-product.selected .oo-bb-price{
  background:#fff3df !important;
}

.oo-bb-preview-row{
  grid-template-columns:96px 1fr 46px;
}

.oo-bb-preview-remove{
  width:38px;
  height:38px;
  border:1px solid var(--oo-border);
  border-radius:50%;
  background:#fff;
  color:#7c6f67;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  transition:.18s ease;
}

.oo-bb-preview-remove:hover{
  color:#fff;
  background:#b84a3a;
  border-color:#b84a3a;
}

.oo-bb-preview-empty{
  background:#fff;
  border:1px solid var(--oo-border);
  border-radius:18px;
  padding:28px;
  color:var(--oo-muted);
  text-align:center;
}

@media(max-width:760px){
  .oo-bb-preview-row{
    grid-template-columns:70px 1fr 40px;
  }
  .oo-bb-preview-remove{
    width:34px;
    height:34px;
    font-size:16px;
  }
}
