/* BREAK POINT PATAGONIA · cabezal comercial y categorías grandes V36 */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-padding-top: 104px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(13px, 1.5vw, 24px);
  width: 100%;
  height: auto;
  min-height: 84px;
  padding: 10px clamp(20px, 3.5vw, 68px);
  border-bottom: 1px solid rgba(52, 238, 215, .24);
  background: rgba(4, 14, 27, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .27);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-header .brand img {
  width: clamp(116px, 8.5vw, 150px);
  height: 56px;
  object-fit: contain;
}

.site-header .brand span {
  display: none;
}

.site-primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  font-size: 13px;
  font-weight: 850;
}

.site-primary-nav > a,
.header-categories > summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 9px;
  padding: 0 10px;
  color: #e6f2fa;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, background .2s ease;
}

.site-primary-nav > a:hover,
.site-primary-nav > a:focus-visible,
.header-categories > summary:hover,
.header-categories > summary:focus-visible,
.header-categories[open] > summary {
  outline: none;
  background: rgba(47, 232, 211, .11);
  color: #3feed7;
}

.header-categories {
  position: relative;
}

.header-categories > summary::-webkit-details-marker {
  display: none;
}

.header-categories > summary span {
  margin-left: 6px;
  color: #37ead4;
  font-size: 15px;
}

.header-category-menu {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(165px, 1fr));
  gap: 5px;
  width: min(430px, 86vw);
  border: 1px solid #24465e;
  border-radius: 15px;
  padding: 10px;
  background: #071827;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
}

.header-category-menu::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 1px solid #24465e;
  border-left: 1px solid #24465e;
  content: '';
  background: #071827;
  transform: translateX(-50%) rotate(45deg);
}

.header-category-menu a {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  padding: 11px 12px;
  color: #dceaf4;
  font-size: 12px;
  line-height: 1.25;
}

.header-category-menu a:hover,
.header-category-menu a:focus-visible {
  outline: none;
  background: #103147;
  color: #3feed7;
}

.header-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  min-width: 0;
  height: 50px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #f7fbfd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within {
  border-color: #31ead5;
  box-shadow: 0 0 0 4px rgba(49, 234, 213, .14), 0 8px 20px rgba(0, 0, 0, .22);
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  border: 0;
  outline: none;
  padding: 0 18px;
  background: transparent;
  color: #102232;
  font: inherit;
  font-size: 14px;
}

.header-search input::placeholder {
  color: #6c7d89;
}

.header-search button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  align-self: center;
  justify-self: end;
  margin-right: 3px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #09263a;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.header-search button:hover,
.header-search button:focus-visible {
  outline: none;
  background: #31ead5;
  color: #05212a;
  transform: scale(1.04);
}

.header-search svg,
.header-actions svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  min-width: max-content;
}

.header-help,
.site-header .account-top,
.site-header .cart-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: 6px 9px;
  background: transparent;
  color: #f3f9fd;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.header-help:hover,
.header-help:focus-visible,
.site-header .account-top:hover,
.site-header .account-top:focus-visible,
.site-header .cart-top:hover,
.site-header .cart-top:focus-visible {
  outline: none;
  background: rgba(47, 232, 211, .11);
  color: #3feed7;
}

.header-help > span,
.site-header .account-top > span {
  display: grid;
  gap: 1px;
  text-align: left;
}

.header-help small,
.site-header .account-top small {
  color: #9db1c1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header .account-top img {
  width: 30px;
  height: 30px;
  border: 2px solid #30e7d1;
  border-radius: 50%;
  object-fit: cover;
}

.site-header .cart-top {
  position: relative;
  padding-right: 14px;
}

.site-header .cart-top b {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #071522;
  border-radius: 999px;
  padding: 0 5px;
  background: #35efd5;
  color: #03231e;
  font-size: 10px;
  line-height: 1;
}

/* Tres rectángulos grandes por fila en escritorio. */
#categorias .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(18px, 1.6vw, 28px) !important;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

#categorias .category-card {
  width: 100%;
  min-height: 270px !important;
  aspect-ratio: 16 / 9 !important;
  border: 1px solid #2b526b;
  border-radius: 20px !important;
  background: #071625;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .25);
}

#categorias .category-card:hover,
#categorias .category-card:focus-visible {
  border-color: #35efd5;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .34), 0 0 0 1px rgba(53, 239, 213, .18);
  transform: translateY(-5px);
}

#categorias .category-card-image {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: cover;
  object-position: center;
  background: #0b1b29;
}

#categorias .category-card:hover .category-card-image,
#categorias .category-card:focus-visible .category-card-image {
  transform: scale(1.045);
}

#categorias .category-card-shade {
  background: linear-gradient(180deg, rgba(2, 12, 22, .02) 25%, rgba(3, 16, 29, .45) 55%, rgba(2, 14, 26, .98) 100%);
}

#categorias .category-card-copy {
  gap: 6px !important;
  padding: clamp(20px, 2vw, 30px) !important;
}

#categorias .category-card-copy strong {
  color: #fff;
  font-size: clamp(23px, 1.65vw, 30px) !important;
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -.025em;
  text-shadow: 0 3px 15px rgba(0, 0, 0, .9);
}

#categorias .category-card-copy small {
  display: -webkit-box !important;
  max-width: 92%;
  overflow: hidden;
  color: #d6e5ee;
  font-size: 13px !important;
  line-height: 1.35 !important;
  letter-spacing: .03em;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .9);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1 !important;
}

#categorias .category-card-copy b {
  width: max-content;
  margin-top: 4px;
  border-bottom: 1px solid rgba(53, 239, 213, .55);
  padding-bottom: 2px;
  color: #35efd5;
  font-size: 13px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  .site-primary-nav {
    display: none;
  }

  .header-help > span,
  .site-header .account-top > span,
  .site-header .cart-top > span {
    display: none;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 150px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 0;
    padding: 9px 18px 12px;
  }

  .site-header .brand img {
    width: 112px;
    height: 47px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 46px;
  }

  .header-search button {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    grid-column: 3;
  }

  .header-help {
    display: none;
  }

  .site-header .account-top,
  .site-header .cart-top {
    min-width: 46px;
    min-height: 46px;
    padding: 5px 8px;
  }

  #categorias .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #categorias .category-card {
    min-height: 230px !important;
    aspect-ratio: 16 / 10 !important;
  }
}

@media (max-width: 580px) {
  .shipping {
    padding: 8px 14px;
    font-size: 11px;
    line-height: 1.25;
  }

  .site-header {
    padding-right: 13px;
    padding-left: 13px;
  }

  .site-header .brand img {
    width: 104px;
  }

  .header-actions {
    gap: 0;
  }

  .site-header .account-top,
  .site-header .cart-top {
    min-width: 43px;
    padding: 4px 6px;
  }

  .site-header .cart-top {
    padding-right: 10px;
  }

  .site-header .cart-top b {
    right: -1px;
  }

  .header-search input {
    padding-left: 15px;
    font-size: 13px;
  }

  #categorias .category-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #categorias .category-card {
    min-height: 230px !important;
    aspect-ratio: 16 / 10 !important;
  }

  #categorias .category-card-copy {
    padding: 20px !important;
  }

  #categorias .category-card-copy strong {
    font-size: 24px !important;
  }

  #categorias .category-card-copy small {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  #categorias .category-card,
  #categorias .category-card-image {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
