/* BREAK POINT PATAGONIA · catálogo blanco y compra en ventana V37 */

:root {
  --bp-ink: #0b1d2d;
  --bp-muted: #607181;
  --bp-soft: #f5f8fa;
  --bp-line: #dfe7eb;
  --bp-cyan: #20d9c5;
  --bp-cyan-dark: #087f76;
}

body {
  background: #fff !important;
  color: var(--bp-ink) !important;
}

main {
  overflow: hidden;
  background: #fff;
}

.shipping {
  border-bottom-color: rgba(53, 239, 213, .18) !important;
  background: #061321 !important;
  color: #d8e8f0 !important;
}

/* El cabezal conserva la identidad oscura elegida. */
.site-header {
  background: rgba(4, 14, 27, .98) !important;
}

/* Portada blanca, con la imagen oscura tratada como pieza visual. */
.hero {
  min-height: 590px !important;
  gap: clamp(34px, 5vw, 84px);
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  background: #fff !important;
  color: var(--bp-ink);
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  color: #071a2b !important;
  font-size: clamp(48px, 5.6vw, 82px) !important;
}

.hero p {
  max-width: 690px;
  color: #506374 !important;
}

.hero .button.primary {
  border: 1px solid var(--bp-cyan);
  background: var(--bp-cyan) !important;
  color: #032b28 !important;
  box-shadow: 0 12px 24px rgba(32, 217, 197, .2);
}

.hero .button.ghost {
  border-color: #0c3248 !important;
  color: #0c3248 !important;
}

.hero .button.ghost:hover,
.hero .button.ghost:focus-visible {
  background: #0c3248;
  color: #fff !important;
}

.hero .benefits {
  color: #4e6273 !important;
}

.hero figure {
  overflow: hidden;
  border: 1px solid #d9e5e9;
  border-radius: 24px;
  background: #061321;
  box-shadow: 0 26px 60px rgba(11, 37, 55, .18);
}

.hero figure img {
  display: block;
}

/* Secciones generales. */
.section,
.steps,
.products,
#categorias,
#contacto {
  background: #fff !important;
  color: var(--bp-ink);
}

.heading h2,
.steps h2,
.final-cta h2 {
  color: #0a1d2e !important;
}

.heading > small,
.steps > small,
.final-cta small {
  color: var(--bp-cyan-dark) !important;
}

/* Promoción mensual convertida en bloque claro. */
.monthly-promo {
  border-color: #cfe9e5 !important;
  background: linear-gradient(135deg, #fff 0%, #f4fbfa 65%, #e6f8f5 100%) !important;
  box-shadow: 0 22px 55px rgba(18, 57, 74, .09) !important;
}

.monthly-promo::after {
  background: rgba(32, 217, 197, .12) !important;
}

.monthly-promo-copy small,
.monthly-promo-steps b {
  color: var(--bp-cyan-dark) !important;
}

.monthly-promo-copy h2,
.monthly-promo-steps strong {
  color: var(--bp-ink) !important;
}

.monthly-promo-copy p,
.monthly-promo-steps i,
.monthly-promo-note {
  color: var(--bp-muted) !important;
}

.monthly-promo-steps span {
  border-color: #d7e9e6 !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 8px 18px rgba(21, 62, 79, .05);
}

/* Categorías: el entorno es blanco; la fotografía mantiene contraste propio. */
#categorias .category-card {
  border-color: #dce6ea !important;
  box-shadow: 0 16px 36px rgba(14, 43, 60, .12) !important;
}

#categorias .category-card:hover,
#categorias .category-card:focus-visible {
  border-color: var(--bp-cyan) !important;
  box-shadow: 0 20px 44px rgba(14, 43, 60, .16), 0 0 0 1px rgba(32, 217, 197, .18) !important;
}

/* Buscador y filtros del catálogo. */
.shop-tools {
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  padding: 14px;
  background: var(--bp-soft);
}

.shop-tools label,
.product-result-count {
  color: #4f6272 !important;
}

.shop-tools input,
.shop-tools select {
  border-color: #ccd8de !important;
  background: #fff !important;
  color: var(--bp-ink) !important;
}

.shop-tools input:focus,
.shop-tools select:focus {
  border-color: var(--bp-cyan) !important;
  box-shadow: 0 0 0 3px rgba(32, 217, 197, .13);
}

.category-strip button {
  border-color: #d5e0e5 !important;
  background: #fff !important;
  color: #344b5c !important;
}

.category-strip button:hover,
.category-strip button.active {
  border-color: #0b2a3d !important;
  background: #0b2a3d !important;
  color: #fff !important;
}

/* Tarjetas: vidriera limpia. La compra detallada vive en la ventana. */
.products .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(20px, 2vw, 30px) !important;
  align-items: stretch !important;
}

.products .product {
  align-self: stretch !important;
  overflow: hidden !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(14, 43, 60, .08) !important;
  color: var(--bp-ink) !important;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease !important;
}

.products .product:hover,
.products .product:focus-visible {
  border-color: #a7dcd6 !important;
  box-shadow: 0 19px 44px rgba(14, 43, 60, .14) !important;
  transform: translateY(-5px) !important;
}

.products .product .photo {
  position: relative;
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid #edf1f3 !important;
  border-radius: 0 !important;
  padding: 16px !important;
  background: #f7f9fa !important;
  cursor: pointer;
  touch-action: pan-y;
}

.products .product .photo::after,
.products .product .product-photo-copy,
.gallery > .prev,
.gallery > .next,
.gallery-position,
.gallery-dots,
.gallery-mobile-hint {
  display: none !important;
}

.products .product .gallery > img,
.products .product .gallery > img:first-of-type,
.products .product .gallery > img:nth-of-type(2),
.products .product .gallery > img:nth-of-type(n + 3) {
  grid-area: 1 / 1;
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.products .product .gallery > img.show,
.products .product:hover .gallery > img.show {
  display: block !important;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px 19px 20px;
}

.products .product .product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
}

.products .product .product-meta-row > small {
  overflow: hidden;
  color: var(--bp-cyan-dark) !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.products .product .product-rating {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 2px 0 !important;
  color: #bd7a00 !important;
  font-size: 11px;
}

.products .product .product-rating small {
  color: #7f8f9c !important;
}

.product-card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 11px 0 7px !important;
  overflow: hidden;
  color: #0a1d2e !important;
  font-size: clamp(19px, 1.45vw, 23px) !important;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-body .product-summary {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 !important;
  overflow: hidden;
  color: #687987 !important;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.products .product .product-card-offer .discount-badge {
  position: static !important;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff0f3;
  color: #c7264b;
  font-size: 10px;
}

.products .product .product-card-offer .discount-timer {
  margin: 0 !important;
  color: #9a4a5c !important;
  font-size: 10px;
}

.product-card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.products .product .product-card-bottom .product-card-price {
  min-width: 0;
  color: #0b2639 !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  font-weight: 950;
  line-height: 1.15;
}

.products .product .product-card-bottom .product-card-price del {
  display: block;
  margin: 0 0 3px;
  color: #9aa6af !important;
  font-size: 12px;
  font-weight: 700;
}

.products .product .product-card-buy {
  min-width: 105px;
  min-height: 44px;
  margin: 0 !important;
  border: 1px solid #0a273a;
  border-radius: 10px;
  padding: 10px 17px;
  background: #0a273a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.products .product .product-card-buy:hover,
.products .product .product-card-buy:focus-visible {
  border-color: var(--bp-cyan);
  outline: none;
  background: var(--bp-cyan);
  color: #042824;
  transform: translateY(-1px);
}

/* Pasos, contacto y cierre sobre fondo claro. */
.steps {
  text-align: center;
}

.steps article {
  border: 1px solid var(--bp-line) !important;
  border-left: 3px solid var(--bp-cyan) !important;
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(14, 43, 60, .06);
}

.steps article h3 {
  color: var(--bp-ink);
}

.steps article p {
  color: var(--bp-muted) !important;
}

.steps article > b {
  color: #b6ded9 !important;
}

.contact-grid a {
  border-color: var(--bp-line) !important;
  background: #fff !important;
  color: var(--bp-ink) !important;
  box-shadow: 0 10px 26px rgba(14, 43, 60, .06);
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  border-color: var(--bp-cyan) !important;
  outline: none;
}

.contact-grid small {
  color: var(--bp-cyan-dark) !important;
}

.contact-grid span {
  color: var(--bp-muted) !important;
}

.final-cta {
  border-color: #bfe7e1 !important;
  background: linear-gradient(135deg, #f8fffe 0%, #e8faf7 100%) !important;
  box-shadow: 0 18px 40px rgba(18, 63, 73, .08);
}

.final-cta .button.primary {
  background: #0a273a !important;
  color: #fff !important;
}

footer {
  border-top-color: var(--bp-line) !important;
  background: #fff;
  color: #647684 !important;
}

footer img {
  border-radius: 10px;
  padding: 7px 10px;
  background: #061321;
}

/* La ventana de compra también pasa a modo claro. */
.product-quick-overlay {
  background: rgba(4, 17, 28, .72) !important;
}

.product-quick {
  border-color: #d6e1e6 !important;
  background: #fff !important;
  color: var(--bp-ink) !important;
  box-shadow: 0 28px 80px rgba(0, 20, 35, .3) !important;
}

.product-quick-close {
  border: 1px solid #d7e1e6 !important;
  background: #fff !important;
  color: #102b3d !important;
  box-shadow: 0 5px 16px rgba(12, 42, 57, .12);
}

.product-quick-media {
  border-right: 1px solid #e4eaed;
  background: #f7f9fa !important;
}

.product-quick-main,
.product-quick-thumbs button {
  background: #fff !important;
}

.product-quick-info > small,
.product-quick-category {
  color: var(--bp-cyan-dark) !important;
}

.product-quick-info h2 {
  color: #071b2b !important;
}

.product-quick-description {
  color: #5d6f7d !important;
}

.product-quick-tabs {
  border-bottom-color: #dce5e9 !important;
}

.product-quick-tabs button {
  color: #71808b !important;
}

.product-quick-tabs button.active {
  border-bottom-color: var(--bp-cyan-dark) !important;
  color: var(--bp-cyan-dark) !important;
}

.product-quick-meta span,
.product-quick-tiers,
.quick-review-summary,
.quick-review {
  border: 1px solid #e0e7ea !important;
  background: #f5f8f9 !important;
}

.product-quick-meta b {
  color: #6f7f8b !important;
}

.product-quick-meta i,
.product-quick-tiers,
.quick-review p,
.quick-review header {
  color: var(--bp-ink) !important;
}

.product-quick-price,
.quantity-summary {
  border-color: #d8e4e7 !important;
  background: #f5f9fa !important;
}

.quantity-current span,
.quantity-monthly,
.quantity-shortcuts > span {
  color: #697b88 !important;
}

.quantity-current b {
  color: #09283a !important;
}

.quantity-shortcuts button {
  border-color: #cad8de !important;
  background: #fff !important;
  color: #233e50 !important;
}

.quantity-shortcuts button:hover,
.quantity-shortcuts button:focus-visible,
.quantity-shortcuts button.active {
  border-color: var(--bp-cyan-dark) !important;
  background: #e9faf7 !important;
  color: #057269 !important;
}

.product-quick-purchase .quantity-control {
  border-color: #cbd9df !important;
  background: #fff !important;
}

.product-quick-purchase .quantity-control button,
.product-quick-purchase .quantity-control input {
  color: #102b3d !important;
}

.product-quick-purchase .quantity-control button:hover {
  background: #edf7f6 !important;
}

.product-quick-purchase .add-cart {
  border-color: var(--bp-cyan) !important;
  background: var(--bp-cyan) !important;
  color: #042824 !important;
}

.product-quick-purchase .buy-now {
  border-color: #0a273a !important;
  background: #0a273a !important;
  color: #fff !important;
}

.quick-share-product {
  border-color: #cbd9df !important;
  background: #fff !important;
  color: #284658 !important;
}

/* Mi cuenta y carrito claros para no volver al tema oscuro fuera del cabezal. */
.account-modal {
  border-color: #d6e1e6 !important;
  background: #fff !important;
  color: var(--bp-ink) !important;
}

.account-close {
  color: #143247 !important;
}

.account-modal > p,
.account-user-card span {
  color: #647684 !important;
}

.account-tabs button {
  border-color: #cfdae0 !important;
  background: #f5f8fa !important;
  color: #294657 !important;
}

.account-tabs button.active,
.account-submit {
  border-color: var(--bp-cyan) !important;
  background: var(--bp-cyan) !important;
  color: #042824 !important;
}

.account-panel input {
  border-color: #ccd9df !important;
  background: #fff !important;
  color: var(--bp-ink) !important;
}

.account-guest {
  border-color: #cbd7dd !important;
  color: #435c6c !important;
}

.account-separator {
  color: #778895 !important;
}

.account-separator::before,
.account-separator::after {
  background: #dfe7eb !important;
}

.account-user-card,
.account-monthly {
  border-color: #d7e2e6 !important;
}

.account-monthly > span {
  border-bottom-color: #e4eaed !important;
  color: #60727f !important;
}

.account-monthly strong {
  color: var(--bp-ink) !important;
}

.cart-drawer {
  background: #fff !important;
  color: var(--bp-ink) !important;
}

.cart-close {
  color: #17354a !important;
}

.cart-lines article {
  border-bottom-color: #e1e8eb !important;
}

.cart-lines small,
.quote-only {
  color: #697b88 !important;
}

.cart-drawer .qty button {
  border-color: var(--bp-cyan-dark) !important;
  color: var(--bp-cyan-dark) !important;
}

.cart-drawer input,
.cart-drawer select,
.cart-drawer textarea,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border-color: #cbd8de !important;
  background: #fff !important;
  color: var(--bp-ink) !important;
}

.cart-remove-item {
  color: #c42d4d !important;
}

@media (max-width: 1000px) {
  .products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
  }

  .hero figure {
    max-width: 800px;
  }
}

@media (max-width: 650px) {
  .hero {
    min-height: 0 !important;
    padding-top: 46px !important;
    padding-bottom: 48px !important;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 60px) !important;
  }

  .hero figure {
    border-radius: 16px;
  }

  .products .product-grid {
    grid-template-columns: 1fr !important;
  }

  .products .product .photo {
    aspect-ratio: 1 / .82 !important;
  }

  .product-card-body {
    padding: 17px 17px 18px;
  }

  .product-card-body h3 {
    min-height: 0;
    font-size: 21px !important;
  }

  .product-card-bottom {
    gap: 10px;
  }

  .products .product .product-card-buy {
    min-width: 104px;
  }

  .product-quick-overlay {
    align-items: end !important;
    padding: 0 !important;
  }

  .product-quick {
    width: 100% !important;
    max-height: 94dvh !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 23px 23px 0 0 !important;
  }

  .product-quick-media {
    border-right: 0;
    border-bottom: 1px solid #e4eaed;
    padding: 18px !important;
  }

  .product-quick-main {
    height: 245px !important;
  }

  .product-quick-info {
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom)) !important;
  }

  .product-quick-purchase {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-right: -18px;
    margin-left: -18px;
    border-top: 1px solid #e1e8eb;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 24px rgba(13, 42, 57, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .products .product,
  .products .product .photo img,
  .products .product .product-card-buy {
    transition: none !important;
  }
}
