/* Espacio B2B: barra superior, página /profesionales y bloqueo visual de compra para cuentas pendientes */

/* ---- Barra ---- */
.b2b-bar {
  background: #e8dcc8;
  color: #1a2340;
  font-size: 13px;
  line-height: 1.3;
  padding: 7px 0;
  text-align: center;
}
.b2b-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
}
.b2b-bar__tag {
  letter-spacing: .12em;
  font-weight: 700;
}
.b2b-bar__link {
  color: #1a2340;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Cuenta pendiente: sin botones de compra (el servidor además corta el checkout y no hay pago disponible) ---- */
body:has(.b2b-bar[data-b2b="pending"]) .product-add-to-cart,
body:has(.b2b-bar[data-b2b="pending"]) .mega2is-add-to-cart,
body:has(.b2b-bar[data-b2b="pending"]) .add-to-cart,
body:has(.b2b-bar[data-b2b="pending"]) [data-button-action="add-to-cart"] {
  display: none !important;
}

/* ---- Página /profesionales ---- */
.b2b-landing {
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.b2b-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.0625rem;
  color: #251f1a;
}
.b2b-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 992px) {
  .b2b-grid {
    grid-template-columns: 5fr 7fr;
  }
}
.b2b-card {
  background: #faf7f2;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(26, 35, 64, .06);
}
.b2b-card--wide {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.b2b-card h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a2340;
}
.b2b-card h3 {
  margin: 22px 0 10px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b6760;
}
.b2b-field {
  margin-bottom: 14px;
}
.b2b-field label,
.b2b-check label {
  text-align: left;
  display: block;
  margin-bottom: 4px;
  font-size: .875rem;
  font-weight: 600;
  color: #251f1a;
}
.b2b-check label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}
.b2b-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}
@media (min-width: 576px) {
  .b2b-row {
    grid-template-columns: 1fr 1fr;
  }
  .b2b-row--3 {
    grid-template-columns: 1fr 2fr 1.5fr;
  }
}
.b2b-card .form-control {
  border-radius: 10px;
}
.b2b-card .btn {
  border-radius: 999px;
  padding-left: 28px;
  padding-right: 28px;
}
.b2b-hint {
  display: block;
  margin: 8px 0 0;
  font-size: .8125rem;
  color: #6b6760;
}
.b2b-error {
  display: block;
  margin-top: 4px;
  font-size: .8125rem;
  color: #b3261e;
}
.b2b-error--form {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecea;
}
.has-error .form-control {
  border-color: #b3261e;
}
.b2b-state p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.b2b-actions {
  margin-top: 22px;
}
.b2b-actions .btn + .btn {
  margin-left: 8px;
}
/* Campo trampa anti-spam: fuera de pantalla, no display:none (algunos bots lo detectan) */
.b2b-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Acceso / alta en pestañas (Soy nuevo · Soy cliente) ---- */
.b2b-auth {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.b2b-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.b2b-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #e8dcc8;
}
.b2b-tab {
  flex: 1;
  margin: 0 0 -2px;
  padding: 14px 10px;
  text-align: center;
  font-weight: 600;
  color: #6b6760;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
#b2b-tab-login:checked ~ .b2b-tabs .b2b-tab--login,
#b2b-tab-new:checked ~ .b2b-tabs .b2b-tab--new {
  color: #1a2340;
  border-bottom-color: #1a2340;
}
.b2b-tab-input:focus-visible ~ .b2b-tabs .b2b-tab {
  outline: 2px solid #1a2340;
  outline-offset: -2px;
}
.b2b-intro--login,
.b2b-intro--new,
.b2b-panel {
  display: none;
}
#b2b-tab-login:checked ~ .b2b-intro--login,
#b2b-tab-new:checked ~ .b2b-intro--new,
#b2b-tab-login:checked ~ .b2b-panel--login,
#b2b-tab-new:checked ~ .b2b-panel--new {
  display: block;
}
.b2b-auth .b2b-intro {
  margin-bottom: 18px;
}
