/* ====== ESTUCHE BUILDER v2.5 ====== */

/* Reset base — ancho completo Elementor, padding móvil */
.eb-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .eb-wrap { padding: 1rem 16px; }
}
.eb-wrap *, .eb-wrap *::before, .eb-wrap *::after { box-sizing: border-box; }

/* Topbar */
.eb-topbar { margin-bottom: 1rem; }
.eb-brand   { font-size: 12px; font-weight: 600; color: #888; letter-spacing: .09em; text-transform: uppercase; }

/* Step banner con botones integrados */
.eb-step-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fffdf0;
  border: 1px solid #f0d870;
  border-radius: 10px;
  font-size: 13px;
  color: #6b5000;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.eb-step-banner.done { background: #f0faf5; border-color: #9FE1CB; color: #085041; }
.eb-step-num {
  min-width: 24px; height: 24px; border-radius: 50%;
  background: #1a1108; color: #F5E6C0;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.eb-step-done { background: #0F6E56 !important; }
.eb-step-content { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eb-step-content > span { font-size: 13px; font-weight: 500; }

/* =============================================
   BOTONES TAMAÑO — especificidad alta para
   sobreescribir reglas del tema/Elementor
   ============================================= */
#estuche-builder .eb-sz-toggle {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
#estuche-builder button.eb-sz-btn {
  /* Reset total de estilos heredados del tema */
  all: unset;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 22px !important;
  border-radius: 7px !important;
  border: 1.5px solid #cccccc !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  color: #333333 !important;
  text-shadow: none !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: background .15s, border-color .15s, color .15s !important;
  white-space: nowrap !important;
}
#estuche-builder button.eb-sz-btn:hover {
  border-color: #777777 !important;
  background: #f8f8f8 !important;
  color: #111111 !important;
}
#estuche-builder button.eb-sz-btn.active {
  background: #1a1108 !important;
  background-image: none !important;
  color: #F5E6C0 !important;
  border-color: #1a1108 !important;
  box-shadow: none !important;
}

/* Buscador */
.eb-search-row { margin-bottom: 12px; }
.eb-search-wrap { position: relative; max-width: 380px; }
@media (max-width: 768px) { .eb-search-wrap { max-width: 100%; } }
.eb-search-ico {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; pointer-events: none; color: #999;
}
.eb-search-ico svg { width: 16px; height: 16px; }
.eb-search-inp {
  width: 100%; padding: 9px 36px 9px 36px;
  border: 1px solid #ddd; border-radius: 22px;
  font-size: 13px; color: #222; background: #fff; outline: none;
  transition: border-color .15s;
}
.eb-search-inp:focus { border-color: #B8860B; box-shadow: 0 0 0 2px rgba(184,134,11,.1); }
.eb-search-clear {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 13px; color: #aaa; cursor: pointer; padding: 0;
}
.eb-search-clear:hover { color: #c0392b; }

/* =============================================
   FILTROS — especificidad alta
   ============================================= */
#estuche-builder .eb-filters {
  display: flex !important; gap: 7px !important;
  flex-wrap: wrap !important; margin-bottom: 1rem !important;
}
#estuche-builder span.eb-fc {
  all: unset;
  box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important;
  padding: 5px 14px !important; border-radius: 22px !important;
  border: 1px solid #dddddd !important;
  font-size: 12px !important; cursor: pointer !important;
  color: #666666 !important; background: #ffffff !important;
  white-space: nowrap !important; transition: all .15s !important;
  font-family: inherit !important; line-height: 1.3 !important;
}
#estuche-builder span.eb-fc.active {
  background: #1a1108 !important; border-color: #1a1108 !important;
  color: #F5E6C0 !important; font-weight: 500 !important;
}
#estuche-builder span.eb-fc:hover:not(.active) {
  border-color: #999999 !important; color: #222222 !important;
}

/* Layout principal */
.eb-main { display: grid; grid-template-columns: 1fr 310px; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .eb-main { grid-template-columns: 1fr; } }

/* Lock overlay */
#eb-grid-lock { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.eb-lock-msg {
  background: #fff; border: 1px dashed #ccc; border-radius: 10px;
  padding: 22px 32px; font-size: 14px; color: #888; text-align: center;
}

/* Grid de productos */
.eb-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
@media (max-width: 500px) { .eb-pgrid { grid-template-columns: repeat(2, 1fr); } }
.eb-no-results { padding: 2rem; text-align: center; color: #999; font-size: 14px; }

/* Tarjeta de producto */
.eb-pc {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 10px;
  padding: 10px; cursor: pointer;
  transition: border-color .15s, transform .1s;
  position: relative; user-select: none;
}
.eb-pc:hover   { border-color: #bbb; transform: translateY(-1px); }
.eb-pc.selected { border: 2px solid #B8860B; }
.eb-pc.disabled { opacity: .35; pointer-events: none; }

/* Imagen — más grande con border-radius */
.eb-pimg {
  width: 100%; height: 130px;
  object-fit: contain; display: block;
  border-radius: 8px; background: #fafafa;
  margin-bottom: 8px;
}
.eb-pimg-emoji {
  width: 100%; height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin-bottom: 8px;
  background: #fafafa; border-radius: 8px;
}

/* Etiqueta licor */
.eb-plicor {
  font-size: 10px; color: #B8860B;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 2px; font-weight: 600;
}
.eb-pnm { font-size: 12px; font-weight: 600; color: #222; line-height: 1.3; margin-bottom: 3px; }
.eb-ppr { font-size: 12px; color: #555; font-weight: 600; }

/* Botón info (lupa SVG) */
.eb-pc-info {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid #e0e0e0 !important;
  cursor: pointer !important; display: flex !important;
  align-items: center !important; justify-content: center !important;
  color: #666 !important; z-index: 2;
  transition: all .15s !important; padding: 0 !important;
  line-height: 1 !important; box-shadow: none !important;
  text-shadow: none !important; font-size: 0 !important;
}
.eb-pc-info:hover { background: #1a1108 !important; color: #F5E6C0 !important; border-color: #1a1108 !important; }
.eb-pc-info svg { width: 14px; height: 14px; flex-shrink: 0; }
.eb-pc.selected .eb-pc-info { right: 30px; }

/* Badge contador */
.eb-qbadge {
  position: absolute; top: 8px; left: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #1a1108; color: #F5E6C0;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Controles de cantidad */
.eb-qctrl { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.eb-qb {
  all: unset;
  box-sizing: border-box !important;
  width: 24px !important; height: 24px !important; border-radius: 50% !important;
  border: 1px solid #dddddd !important; background: #f5f5f5 !important;
  cursor: pointer !important; font-size: 15px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; color: #333 !important;
  line-height: 1 !important; transition: background .15s !important;
}
.eb-qb:disabled { opacity: .4 !important; cursor: not-allowed !important; }
.eb-qb:hover:not(:disabled) { background: #e8e8e8 !important; }
.eb-qn { font-size: 13px; font-weight: 600; min-width: 16px; text-align: center; color: #222; }

/* Panel lateral */
.eb-side {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 1.15rem; position: sticky; top: 20px;
}
@media (max-width: 800px) { .eb-side { position: static; } }
.eb-ptit { font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8rem; }

/* Slots */
.eb-slots { display: flex; flex-direction: column; gap: 5px; margin-bottom: .9rem; }
.eb-slot {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 7px;
  border: 1px dashed #ddd; background: #fafafa;
  font-size: 12px; color: #999; min-height: 38px;
}
.eb-slot.filled { border-style: solid; border-color: #e8e8e8; background: #fff; color: #222; }
.eb-slot-img    { width: 28px; height: 28px; object-fit: contain; border-radius: 3px; }
.eb-slot-emoji  { font-size: 18px; }
.eb-slot-info   { flex: 1; }
.eb-slot-name   { font-size: 12px; font-weight: 600; color: #222; }
.eb-slot-price  { font-size: 11px; color: #999; }
.eb-slot-rm {
  all: unset;
  cursor: pointer !important; color: #bbb !important;
  font-size: 13px !important; padding: 2px 4px !important;
  border-radius: 4px !important; transition: color .15s !important;
}
.eb-slot-rm:hover { color: #c0392b !important; }

/* Barra de progreso */
.eb-pbar { height: 4px; background: #f0f0f0; border-radius: 2px; margin: 8px 0; overflow: hidden; }
.eb-pbf  { height: 100%; background: #B8860B; border-radius: 2px; transition: width .3s; width: 0%; }

/* Personalización */
.eb-extra-block { margin-top: 9px; border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.eb-extra-block.active { border-color: #B8860B; }
.eb-extra-header { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; cursor: pointer; background: #fafafa; user-select: none; }
.eb-extra-block.active .eb-extra-header { background: #fffdf5; }
.eb-ex-left  { display: flex; align-items: center; gap: 8px; }
.eb-ex-ico   { font-size: 15px; }
.eb-ex-lbl   { font-size: 13px; font-weight: 600; color: #222; }
.eb-ex-sub   { font-size: 11px; color: #888; }
.eb-ex-right { display: flex; align-items: center; }
.eb-ex-tag   { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; margin-right: 8px; }
.eb-tag-gold { color: #B8860B; border: 1px solid #B8860B; }
.eb-pill {
  all: unset;
  box-sizing: border-box !important;
  width: 36px !important; height: 20px !important; border-radius: 10px !important;
  background: #cccccc !important; position: relative !important;
  cursor: pointer !important; transition: background .2s !important;
  flex-shrink: 0 !important; display: inline-block !important;
}
.eb-pill.active-gold { background: #1a1108 !important; }
.eb-pill::after {
  content: '' !important; position: absolute !important;
  top: 3px !important; left: 3px !important;
  width: 14px !important; height: 14px !important;
  border-radius: 50% !important; background: #fff !important;
  transition: transform .2s !important;
}
.eb-pill.active-gold::after { transform: translateX(16px) !important; }
.eb-extra-body { display: none; padding: 10px 12px; border-top: 1px solid #f0f0f0; background: #fff; }
.eb-extra-body.open { display: block; }
.eb-inp-lbl  { font-size: 12px; color: #666; margin-bottom: 5px; display: block; }
.eb-inp-lbl small { opacity: .7; }
.eb-nombre-wrap { position: relative; }
.eb-nombre-inp {
  width: 100%; padding: 9px 44px 9px 11px;
  border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; color: #222; background: #fff; outline: none;
}
.eb-nombre-inp:focus { border-color: #B8860B; box-shadow: 0 0 0 2px rgba(184,134,11,.12); }
.eb-nombre-inp.error { border-color: #c0392b; }
.eb-char-count { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #bbb; pointer-events: none; }
.eb-err-msg { font-size: 11px; color: #c0392b; margin-top: 4px; min-height: 14px; }
.eb-preview-nombre { margin-top: 8px; padding: 8px 11px; border-radius: 7px; background: #1a1108; display: flex; align-items: center; gap: 8px; color: #F5E6C0; font-size: 13px; font-weight: 600; }

/* Desglose precios */
.eb-div  { border: none; border-top: 1px solid #f0f0f0; margin: 10px 0; }
.eb-prow { display: flex; justify-content: space-between; font-size: 13px; color: #888; margin-bottom: 5px; align-items: center; }
.eb-ptot { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: #222; margin-top: 7px; }

/* Botón CTA */
#estuche-builder button.eb-cta {
  all: unset;
  box-sizing: border-box !important;
  display: block !important; width: 100% !important;
  margin-top: 12px !important; padding: 13px !important;
  border-radius: 7px !important;
  background: #1a1108 !important; background-image: none !important;
  color: #F5E6C0 !important; text-align: center !important;
  font-size: 14px !important; font-weight: 600 !important;
  cursor: pointer !important; transition: opacity .15s !important;
  text-shadow: none !important; box-shadow: none !important;
  letter-spacing: normal !important; text-transform: none !important;
  font-family: inherit !important;
}
#estuche-builder button.eb-cta:disabled { opacity: .33 !important; cursor: not-allowed !important; }
#estuche-builder button.eb-cta:not(:disabled):hover { opacity: .85 !important; }

.eb-hmsg { font-size: 12px; color: #888; text-align: center; margin-top: 7px; min-height: 16px; }
.eb-loader { text-align: center; padding: 12px; color: #888; font-size: 13px; }
.eb-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid #ddd; border-top-color: #B8860B;
  border-radius: 50%; animation: eb-spin .7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes eb-spin { to { transform: rotate(360deg); } }

/* Modal */
.eb-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 99999;
  align-items: center; justify-content: center; padding: 20px;
}
.eb-modal-overlay.open { display: flex; }
.eb-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto; position: relative;
  animation: eb-modal-in .2s ease;
}
@keyframes eb-modal-in { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.eb-modal-close {
  all: unset;
  box-sizing: border-box !important;
  position: absolute !important; top: 12px !important; right: 14px !important;
  background: #f0f0f0 !important; width: 28px !important; height: 28px !important;
  border-radius: 50% !important; font-size: 13px !important; cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #555 !important; z-index: 2 !important; transition: background .15s !important;
}
.eb-modal-close:hover { background: #e0e0e0 !important; color: #c0392b !important; }
.eb-modal-body { padding: 24px; }
.eb-modal-inner { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
@media (max-width: 480px) { .eb-modal-inner { grid-template-columns: 1fr; } }
.eb-modal-img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: #fafafa; padding: 10px; }
.eb-modal-img-placeholder { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; font-size: 64px; background: #fafafa; border-radius: 10px; }
.eb-modal-licor  { font-size: 11px; color: #B8860B; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; font-weight: 600; }
.eb-modal-name   { font-size: 18px; font-weight: 700; color: #1a1108; margin: 0 0 6px; line-height: 1.3; }
.eb-modal-price  { font-size: 20px; font-weight: 700; color: #B8860B; margin-bottom: 12px; }
.eb-modal-desc   { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 16px; }
.eb-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.eb-modal-add-btn {
  all: unset;
  box-sizing: border-box !important;
  display: block !important; width: 100% !important;
  padding: 11px 18px !important; border-radius: 7px !important;
  background: #1a1108 !important; color: #F5E6C0 !important;
  text-align: center !important; font-size: 14px !important;
  font-weight: 600 !important; cursor: pointer !important;
  transition: opacity .15s !important; font-family: inherit !important;
}
.eb-modal-add-btn:hover:not([disabled]) { opacity: .85 !important; }
.eb-modal-link { font-size: 12px; color: #B8860B; text-decoration: none; text-align: center; display: block; }
.eb-modal-link:hover { text-decoration: underline; }

/* =============================================
   v2.5 — Feature 2: Header con H2 + descripción
   ============================================= */
.eb-header { margin-bottom: 1.25rem; }
.eb-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1108 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border: none !important;
}
.eb-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  /* 1 línea en desktop con ellipsis si fuera necesario */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* En móvil sí puede saltar de línea */
@media (max-width: 768px) {
  .eb-subtitle {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* =============================================
   v2.5 — Feature 3: Botón "ver foto" y galería
   ============================================= */
.eb-sz-group { display: flex; gap: 8px; flex-wrap: wrap; }
.eb-sz-item  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.eb-ver-foto {
  font-size: 11px;
  color: #B8860B;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: .01em;
  transition: color .15s;
  user-select: none;
}
.eb-ver-foto:hover { color: #8a6200; }

/* Modal galería */
.eb-gallery-modal {
  max-width: 720px !important;
}
.eb-gallery-body { padding: 24px; }
.eb-gallery-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.eb-gal-label {
  font-size: 14px; font-weight: 600; color: #1a1108;
  text-align: center; letter-spacing: .02em;
}
.eb-gal-main-wrap {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  width: 100%;
}
.eb-gal-main-img {
  max-width: 100%; max-height: 420px;
  object-fit: contain; border-radius: 10px;
  display: block; margin: 0 auto;
}
.eb-gal-nav {
  all: unset;
  box-sizing: border-box !important;
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.9) !important;
  border: 1px solid #ddd !important;
  font-size: 20px !important; cursor: pointer !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; color: #333 !important;
  z-index: 2 !important; transition: all .15s !important;
  line-height: 1 !important;
}
.eb-gal-prev { left: 4px !important; }
.eb-gal-next { right: 4px !important; }
.eb-gal-nav:hover { background: #1a1108 !important; color: #F5E6C0 !important; border-color: #1a1108 !important; }
.eb-gal-counter { font-size: 12px; color: #999; }
.eb-gal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.eb-gal-thumb {
  all: unset;
  box-sizing: border-box !important;
  width: 60px !important; height: 60px !important;
  border-radius: 7px !important; overflow: hidden !important;
  border: 2px solid transparent !important;
  cursor: pointer !important; transition: border-color .15s !important;
  display: block !important;
}
.eb-gal-thumb.active { border-color: #B8860B !important; }
.eb-gal-thumb img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block !important;
}

/* =============================================
   v2.5 — Feature 1: Banner "completo" en panel
   ============================================= */
.eb-complete-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f0faf5;
  border: 1px solid #9FE1CB;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 13px;
  color: #085041;
  font-weight: 500;
  animation: eb-pop-in .3s ease;
}
.eb-complete-ico { font-size: 16px; flex-shrink: 0; }

/* =============================================
   v2.5 — Feature 1: Toast notificación móvil
   ============================================= */
.eb-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 99998;
  background: #1a1108;
  color: #F5E6C0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
  opacity: 0;
}
.eb-toast.eb-toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.eb-toast-ico { font-size: 22px; flex-shrink: 0; }
.eb-toast-content { flex: 1; }
.eb-toast-content strong { display: block; font-size: 14px; margin-bottom: 2px; }
.eb-toast-content span   { font-size: 12px; opacity: .8; display: block; }
.eb-toast-total { font-size: 16px !important; font-weight: 700 !important; color: #B8860B !important; opacity: 1 !important; margin-top: 3px !important; }
.eb-toast-scroll {
  all: unset;
  box-sizing: border-box !important;
  padding: 7px 13px !important;
  border-radius: 7px !important;
  background: #B8860B !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: opacity .15s !important;
  flex-shrink: 0 !important;
}
.eb-toast-scroll:hover { opacity: .85 !important; }

/* Solo mostrar toast en móvil */
@media (min-width: 801px) { .eb-toast { display: none !important; } }

@keyframes eb-pop-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1);  }
}

/* =============================================
   v2.6 — Botón descarga resumen
   ============================================= */
#estuche-builder button.eb-download-btn {
  all: unset;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 10px !important;
  border-radius: 7px !important;
  border: 1.5px solid #B8860B !important;
  background: transparent !important;
  color: #B8860B !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
#estuche-builder button.eb-download-btn:hover {
  background: #B8860B !important;
  color: #ffffff !important;
}
#estuche-builder button.eb-download-btn svg {
  flex-shrink: 0;
  transition: stroke .15s;
}

/* ====== Tarjeta integrada en Estuche Builder ====== */
#eb-tarjeta-block { margin-bottom: 8px; }
.eb-tarjeta-wrap  { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; background: #fff; }
.eb-tarjeta-wrap.active { border-color: #1D9E75; }
.eb-tarjeta-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; cursor: pointer; user-select: none; gap: 8px;
  background: #fafafa;
}
.eb-tarjeta-wrap.active .eb-tarjeta-header { background: #f0faf5; }
.eb-tag-gratis { font-size: 11px; font-weight: 600; color: #0F6E56; border: 1px solid #1D9E75; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.eb-tarjeta-cta { padding: 8px 12px 10px; }
.eb-tarjeta-open-btn {
  all: unset; box-sizing: border-box !important; display: block !important;
  width: 100% !important; padding: 9px !important; border-radius: 6px !important;
  border: 1.5px solid #1D9E75 !important; color: #0F6E56 !important;
  font-size: 12px !important; font-weight: 600 !important; text-align: center !important;
  cursor: pointer !important; transition: all .15s !important; font-family: inherit !important;
}
.eb-tarjeta-open-btn:hover { background: #f0faf5 !important; }
.eb-tarjeta-open-btn.confirmed { background: #0F6E56 !important; color: #fff !important; border-color: #0F6E56 !important; }
