/* Actualización visual ALMAHIR · 29/08/2026 */

/* Mejoras progresivas de claridad y accesibilidad · 03/09/2026 */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(201, 154, 56, 0.48);
  outline-offset: 3px;
}

html.maintenance-active-v4,
html.maintenance-active-v4 body {
  overflow: hidden !important;
}

.maintenance-page-v4 {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  overflow: auto;
  padding: 28px 18px;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 177, 76, 0.16), transparent 30%),
    radial-gradient(circle at 82% 85%, rgba(215, 177, 76, 0.12), transparent 32%),
    #f7f4ed;
  color: #171713;
}

.maintenance-shell-v4 {
  width: min(660px, 100%);
  padding: clamp(34px, 7vw, 70px) clamp(24px, 7vw, 64px);
  border: 1px solid rgba(161, 130, 46, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(54, 47, 29, 0.12);
  text-align: center;
}

.maintenance-kicker-v4 {
  color: #9a771d;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.maintenance-logo-v4 {
  display: block;
  width: min(210px, 68%);
  max-height: 105px;
  margin: 24px auto 30px;
  object-fit: contain;
}

.maintenance-shell-v4 h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.maintenance-message-v4 {
  max-width: 520px;
  margin: 20px auto 0;
  color: #655f53;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.65;
}

.maintenance-return-v4 {
  margin: 18px 0 0;
  color: #3d392f;
  font-weight: 800;
}

.maintenance-whatsapp-v4 {
  display: inline-flex;
  min-height: 52px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  padding: 0 23px;
  border-radius: 999px;
  background: #171713;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(23, 23, 19, 0.2);
}

.maintenance-whatsapp-v4:hover { transform: translateY(-2px); }
.maintenance-whatsapp-v4 svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.maintenance-note-v4 { margin: 23px 0 0; color: #928b7d; font-size: 0.8rem; }

@media (max-width: 520px) {
  .maintenance-page-v4 { padding: 14px; }
  .maintenance-shell-v4 { border-radius: 22px; }
  .maintenance-whatsapp-v4 { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.product-card .add-btn[data-enhanced="true"] {
  width: auto;
  min-width: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.product-card .add-btn[data-enhanced="true"] svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .product-card .price-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .product-card .add-btn[data-enhanced="true"] {
    width: auto;
    align-self: flex-start;
  }
}
.wholesale-header-btn {
  min-height: 46px !important;
  padding: 0 20px !important;
  border: 1px solid #f1d486 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #b77d1e, #f1d486 52%, #c58c25) !important;
  color: #090806 !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

.wholesale-header-btn:hover,
.wholesale-header-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: none !important;
}

.wholesale-header-btn:focus-visible {
  outline: 3px solid rgba(241, 212, 134, 0.35);
  outline-offset: 3px;
}

.wholesale-header-icon {
  stroke: currentColor !important;
}

.wholesale-label-mobile {
  display: none;
}

.cart-wholesale-price.wholesale-price-card {
  width: min(100%, 205px);
  max-width: 100%;
  display: block !important;
  margin: 0 !important;
  color: #765316 !important;
  line-height: 1.25;
}

.cart-wholesale-price.wholesale-price-card strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #765316;
  font-size: 12px;
  font-weight: 700;
}

.cart-wholesale-price.wholesale-price-card .wholesale-price-amount {
  color: #17130d;
  font-size: 13px;
  font-weight: 800;
}

.cart-grand-price.grand-price-card {
  width: min(100%, 205px);
  max-width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 5px !important;
  padding: 6px 0 1px !important;
  border: 0;
  border-top: 1px solid #ded6c8;
  border-radius: 0;
  background: transparent;
  color: #5f5548 !important;
  line-height: 1.25;
}

.cart-grand-price.grand-price-card strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #765316;
  font-size: 12px;
  font-weight: 700;
}

.cart-grand-price.grand-price-card .grand-price-amount {
  color: #17130d;
  font-size: 13px;
  font-weight: 800;
}

.cart-grand-price.grand-price-card small {
  display: inline-flex;
  align-items: center;
  color: #8a8277;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cart-grand-price.grand-price-card small::before {
  width: 3px;
  height: 3px;
  margin-right: 7px;
  border-radius: 50%;
  background: #b9b0a2;
  content: "";
}

.checkout-section {
  width: min(100%, 1090px) !important;
  padding: 34px 22px 72px !important;
}

.checkout-section > .product-back {
  width: auto;
  margin: 0 0 20px;
  padding: 8px 0;
  text-align: left;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr) !important;
  gap: 24px !important;
}

.checkout-card,
.checkout-summary {
  padding: 26px !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08) !important;
}

.checkout-card h1 {
  margin: 3px 0 7px !important;
  font-size: clamp(2rem, 3.25vw, 2.75rem) !important;
}

.checkout-intro {
  max-width: 620px;
  margin-bottom: 22px !important;
  font-size: 14px;
}

.checkout-fields {
  gap: 14px !important;
}

.checkout-card input:not([type="checkbox"]):not([type="radio"]),
.checkout-card textarea {
  min-height: 46px;
  padding: 12px 14px !important;
}

.checkout-notes textarea {
  min-height: 82px !important;
}

.payment-options {
  margin: 22px 0 !important;
}

.payment-options > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
}

.payment-options .payment-method-card {
  min-width: 0;
}

.payment-options .payment-method-card > span {
  min-height: 68px;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  background: #fffdf8 !important;
  color: #302b23 !important;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.payment-options .payment-method-card > span:hover {
  border-color: #c9aa66;
  background: #fffaf0 !important;
}

.payment-options .payment-method-card input:checked + span {
  border: 2px solid #ba8525 !important;
  background: #fff8e8 !important;
  color: #19150e !important;
  box-shadow: 0 0 0 3px rgba(201, 154, 56, 0.12);
}

.payment-method-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f2e5c2;
  color: #825b13;
}

.payment-method-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-method-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-options .payment-method-card .payment-method-copy,
.payment-options .payment-method-card .payment-method-check {
  padding: 0 !important;
  border-radius: 0;
  background: transparent;
  cursor: inherit;
}

.payment-options .payment-method-card .payment-method-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3px;
  border: 0 !important;
}

.payment-method-copy strong {
  display: block;
  overflow: hidden;
  color: #252017;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-method-copy small {
  display: block;
  color: #847c70;
  font-size: 9.5px;
  line-height: 1.25;
}

.payment-method-icon.has-custom-logo {
  overflow: hidden;
  border: 1px solid #eadfc9;
  background: #fff;
}

.payment-method-logo {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.luxury-footer .footer-payment-icon {
  display: none;
}

.luxury-footer .payment-badge.has-custom-logo::before {
  display: none;
}

.luxury-footer .payment-badge.has-custom-logo .footer-payment-icon {
  width: 24px;
  height: 24px;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.footer-payment-logo {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}

.payment-method-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #d8cfbf;
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.payment-options .payment-method-card .payment-method-check {
  width: 20px;
  height: 20px;
  border: 1px solid #d8cfbf !important;
  border-radius: 50% !important;
}

.payment-method-card input:checked + span .payment-method-check {
  border-color: #b77d1e !important;
  background: #b77d1e !important;
  color: #fff;
}

.checkout-consent {
  margin: 18px 0 !important;
  font-size: 12px;
}

.checkout-submit {
  min-height: 48px;
  margin-top: 4px !important;
}

.checkout-summary h2 {
  margin-bottom: 14px !important;
  font-size: 1.7rem !important;
}

.checkout-item {
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 11px 0 !important;
}

.checkout-item img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
  background: #fff;
}

.checkout-success {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.checkout-success-card {
  width: min(100%, 620px);
  padding: 46px 34px;
  border: 1px solid #ded7ca;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(17, 17, 17, 0.1);
  text-align: center;
}

.checkout-success-check {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #e9f8ef;
  color: #16884a;
  box-shadow: 0 0 0 10px rgba(22, 136, 74, 0.08);
  font-size: 42px;
  font-weight: 800;
}

.checkout-success-card h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.checkout-success-card p {
  max-width: 470px;
  margin: 0 auto;
  color: #676158;
  line-height: 1.65;
}

.checkout-success-code {
  display: inline-flex;
  margin: 18px 0 6px !important;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f8f1df;
  color: #765316 !important;
  font-size: 12px;
  font-weight: 800;
}

.checkout-success-card .gold-btn {
  min-width: 220px;
  margin-top: 26px;
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .checkout-summary {
    position: static !important;
  }
}

@media (max-width: 760px) {
  .wholesale-header-btn {
    min-height: 40px !important;
    padding: 0 11px !important;
  }

  .wholesale-label-desktop {
    display: none;
  }

  .wholesale-label-mobile {
    display: inline;
  }

  .checkout-section {
    padding: 24px 14px 88px !important;
  }

  .checkout-card,
  .checkout-summary {
    padding: 20px 17px !important;
    border-radius: 17px !important;
  }

  .checkout-card h1 {
    font-size: clamp(2rem, 10vw, 2.55rem) !important;
  }

  .payment-options > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-options .payment-method-card > span {
    min-height: 64px;
  }

  .checkout-success {
    min-height: 430px;
    padding: 22px 0;
  }

  .checkout-success-card {
    padding: 38px 22px;
    border-radius: 20px;
  }
}

@media (max-width: 390px) {
  .wholesale-header-btn {
    min-width: 88px !important;
    padding: 0 8px !important;
  }

  .checkout-item {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  .checkout-item img {
    width: 48px !important;
    height: 48px !important;
  }
}
