:root {
  --azh-h: 64px;
  --azh-off: 64px;
}

html, body {
  overflow-x: clip !important;
}

html {
  scroll-padding-top: 84px;
}

.azh-ann, .azh, .azd, .azf {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.azh *, .azd *, .azf * {
  box-sizing: border-box;
}

/* Announcement Bar */
.azh-ann {
  background: #0B0D10;
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}

.azh-ann a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.azh {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid #E6E6E3;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.azh.is-hidden {
  transform: translateY(-100%);
}

.azh-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 0 14px;
  height: var(--azh-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.azh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0B0D10;
  flex-shrink: 0;
}

.azh-logo-mark {
  width: 58px;
  height: 24px;
  display: block;
}

.azh-logo img {
  height: 13px;
  width: auto;
  display: block;
}

.azh-nav {
  display: flex;
  align-items: stretch;
  gap: 26px;
  height: var(--azh-h);
  flex: 1;
  min-width: 0;
}

.azh-item {
  display: flex;
  align-items: stretch;
}

.azh .azh-top {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: #0B0D10;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: border-color .2s;
}

.azh .azh-item:hover .azh-top,
.azh .azh-item.is-open .azh-top,
.azh .azh-item.is-active .azh-top {
  border-bottom-color: #0B0D10;
}

.azh .azh-item.is-red .azh-top {
  color: #D4342C;
}

.azh .azh-item.is-red:hover .azh-top {
  border-bottom-color: #D4342C;
}

.azh-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.azh .azh-decide {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  background: #0B0D10;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 6px;
  transition: background .2s;
}

.azh .azh-decide:hover {
  background: #1F2937;
  color: #fff;
}

.azh .azh-ico {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0B0D10;
  transition: background .2s;
}

.azh .azh-ico:hover {
  background: #F4F3F0;
  color: #0B0D10;
}

.azh-ico svg {
  width: 22px;
  height: 22px;
}

.azh .azh-wa {
  color: #0B0D10;
}

.azh-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: -10px;
  cursor: pointer;
  color: #0B0D10;
  align-items: center;
  justify-content: center;
}

.azh-burger svg {
  width: 22px;
  height: 22px;
}

/* Mega Menús */
.azh-mm {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid #E6E6E3;
  box-shadow: 0 30px 50px rgba(11, 13, 16, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .25s, visibility 0s .25s;
}

.azh-mm.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .25s;
}

.azh-mm-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 28px 44px;
  display: flex;
  gap: 56px;
}

.azh-cols {
  display: flex;
  gap: 48px;
  flex: 0 0 auto;
}

.azh-col {
  display: flex;
  flex-direction: column;
  min-width: 190px;
}

.azh-col-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, auto));
  column-gap: 28px;
  align-content: start;
}

.azh-col-wide .azh-col-t {
  grid-column: 1 / -1;
}

.azh-col-t {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B7079;
}

.azh .azh-col a {
  color: #0B0D10;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  line-height: 1.35;
}

.azh .azh-col a:hover {
  color: #D4342C;
}

.azh-tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.azh .azh-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: #0B0D10;
}

.azh-tile-img {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #F2F1EE;
  margin-bottom: 8px;
}

.azh-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.azh-tile:hover img {
  transform: scale(1.05);
}

.azh-tile-img:has(img[src*="nav-ihht"]),
.azh-tile-img:has(img[src*="nav-victory"]),
.azh-tile-img:has(img[src*="nav-tienda"]) {
  background: #fff;
}

.azh-tile-img img[src*="nav-ihht"],
.azh-tile-img img[src*="nav-victory"],
.azd-tile img[src*="nav-ihht"],
.azd-tile img[src*="nav-victory"],
.azh-tile-img img[src*="nav-tienda"],
.azd-tile img[src*="nav-tienda"] {
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

.azh-tile-t {
  font-weight: 700;
  font-size: 16px;
  font-family: var(--az-display, 'Archivo', sans-serif);
}

.azh-tile-s {
  font-size: 14px;
  color: #6B7079;
}

.azh-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 16, .35);
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}

.azh-scrim.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s;
}

/* Cajón móvil (Drawer) */
.azd {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.azd.is-open {
  transform: none;
  visibility: visible;
}

.azd-top {
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #E6E6E3;
}

.azd-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #0B0D10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.azd-close svg {
  width: 24px;
  height: 24px;
}

.azd-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.azd-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 8px 20px 32px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  background: #fff;
}

.azd-sub {
  transform: translateX(100%);
}

.azd.is-sub .azd-main {
  transform: translateX(-30%);
}

.azd-sub.is-on {
  transform: none;
}

.azd .azd-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #EEEDEA;
  background: none;
  font: 500 19px 'Archivo', sans-serif;
  color: #0B0D10;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.azd .azd-row svg {
  width: 20px;
  height: 20px;
  color: #6B7079;
}

.azd .azd-row.is-red {
  color: #D4342C;
}

.azd-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.azd-meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: #6B7079;
}

.azd-back {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 12px 0;
  font: 500 15px 'Archivo', sans-serif;
  color: #6B7079;
  cursor: pointer;
}

.azd-back svg {
  width: 18px;
  height: 18px;
}

.azd .azd-head {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #0B0D10;
  text-decoration: none;
  margin: 4px 0 16px;
  font-family: var(--az-display, 'Archivo', sans-serif);
}

.azd-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.azd .azd-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #0B0D10;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.azd-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.azd-t {
  margin: 20px 0 4px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B7079;
}

.azd .azd-link {
  display: block;
  padding: 11px 0;
  font-size: 17px;
  color: #0B0D10;
  text-decoration: none;
  border-bottom: 1px solid #F1F0ED;
}

/* Botones genéricos (.azb) */
.azb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  font: 500 16px 'Archivo', sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.azb svg {
  width: 20px;
  height: 20px;
}

.azb-dark {
  background: #0B0D10;
  color: #fff;
}
.azb-dark:hover {
  background: #1F2937;
  color: #fff;
}

.azb-line {
  background: transparent;
  color: #0B0D10;
  border: 1px solid #0B0D10;
}
.azb-line:hover {
  background: #0B0D10;
  color: #fff;
}

.azb-light {
  background: #fff;
  color: #0B0D10;
}
.azb-light:hover {
  background: #E9E8E4;
  color: #0B0D10;
}

.azb-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
}
.azb-ghost:hover {
  background: #fff;
  color: #0B0D10;
}

.azb-blue {
  background: #D4342C;
  color: #fff;
}
.azb-blue:hover {
  background: #A3231F;
  color: #fff;
}

/* Footer (.azf) */
.azf {
  background: #0B0D10;
  color: #C9CCD1;
  font-size: 15px;
  line-height: 1.6;
}

.azf-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.azf-usp {
  border-bottom: 1px solid #22262D;
  background: #0E1116;
}

.azf-usp-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.azf-usp b {
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}

.azf-usp span {
  font-size: 14px;
  color: #8B9099;
}

.azf-main {
  display: flex;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.azf-brand {
  flex: 0 0 280px;
}

.azf .azf-logo {
  color: #fff;
}

.azf-brand p {
  margin: 18px 0 0;
  color: #8B9099;
  font-size: 14px;
}

.azf-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.azf .azf-social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #2C313A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}

.azf .azf-social a:hover {
  background: #22262D;
  color: #fff;
}

.azf-social svg {
  width: 20px;
  height: 20px;
}

.azf .azf-contact a {
  color: #C9CCD1;
  text-decoration: none;
}

.azf .azf-contact a:hover {
  color: #fff;
}

.azf-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.azf-t {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  margin: 0 0 14px;
  color: #fff;
  font: 500 15px 'Archivo', sans-serif;
  cursor: default;
}

.azf-t span {
  display: none;
}

.azf-links {
  display: flex;
  flex-direction: column;
}

.azf .azf-links a {
  color: #A3A8B0;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
}

.azf .azf-links a:hover {
  color: #fff;
}

.azf-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid #22262D;
  font-size: 13px;
  color: #8B9099;
}

.azf-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.azf .azf-legal a {
  color: #8B9099;
  text-decoration: none;
}
.azf .azf-legal a:hover {
  color: #fff;
}

.ih-bar {
  top: var(--azh-off) !important;
  transition: top .35s cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1360px) and (min-width: 1201px) {
  .azh-nav { gap: 16px; }
  .azh-bar { gap: 18px; padding-left: 14px; padding-right: 20px; }
  .azh .azh-top { font-size: 13.5px; }
  .azh .azh-decide { height: 38px; padding: 0 14px; font-size: 13px; }
}

@media (max-width: 1200px) and (min-width: 1141px) {
  .azh-nav { gap: 10px; }
  .azh-bar { gap: 12px; padding-left: 10px; padding-right: 14px; }
  .azh .azh-top { font-size: 12.5px; }
  .azh .azh-decide { height: 34px; padding: 0 11px; font-size: 12px; }
  .azh-logo-mark { width: 46px; height: 19px; }
  .azh-logo img { height: 11.5px; }
}

@media (max-width: 1140px) {
  .azh-nav, .azh .azh-decide, .azh-mm, .azh .azh-ico:not(.azh-wa), .azh-right { display: none; }
  .azh-burger { display: inline-flex; }
  .azh-bar { padding: 0 16px; gap: 8px; justify-content: flex-start; }
  .azh-logo { margin: 0 auto; }
  .azf-main { flex-direction: column; gap: 32px; }
  .azf-brand { flex: none; }
  .azf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .azf-usp-in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --azh-h: 58px; }
  .azh-ann { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .azh-ann-x { display: none; }
  .azh-logo-mark { width: 48px; height: 20px; }
  .azh-logo img { height: 12px; }
  .azf-in { padding-left: 20px; padding-right: 20px; }
  .azf-cols { grid-template-columns: 1fr; gap: 0; }
  .azf-col { border-bottom: 1px solid #22262D; }
  .azf-t { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin: 0; cursor: pointer; }
  .azf-t span { display: inline; font-weight: 300; font-size: 22px; line-height: 1; }
  .azf-links { display: none; padding-bottom: 12px; }
  .azf-col.is-open .azf-links { display: flex; }
  .azf-usp-in { grid-template-columns: 1fr 1fr; gap: 18px; }
  .azf-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .azh, .azh-mm, .azd, .azd-panel { transition: none; }
}

/* Floating WhatsApp */
.az-wa {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .2s, box-shadow .2s;
}

.az-wa:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}

.az-wa svg {
  width: 32px;
  height: 32px;
}

.az-wa:focus-visible {
  outline: 3px solid #0B0D10;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .az-wa {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .az-wa svg {
    width: 29px;
    height: 29px;
  }
}

@media print {
  .az-wa {
    display: none;
  }
}

/* Mobile Bottom Action Bar (Chapter 2.2) */
.az-mb-bar {
  display: none;
}

@media (max-width: 768px) {
  .az-mb-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 890;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #E6E6E3;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
    transition: transform .25s ease-out, opacity .25s ease-out;
  }
  .az-mb-bar.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
  .az-mb-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
  }
  .az-mb-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .az-mb-price {
    font-size: 19px;
    font-weight: 700;
    color: #121417;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .az-mb-sub {
    font-size: 11px;
    color: #6A6F78;
    line-height: 1.3;
  }
  .az-mb-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .az-mb-btn-full {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 600;
  }
  .az-mb-bar .azb-red {
    background: #D4342C !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 0 20px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
  }
  .az-mb-bar.az-mb-no-wa .azb-red {
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .az-mb-bar .azb-dark {
    background: #121417 !important;
    color: #F5F3EE !important;
    border-radius: 4px;
    padding: 0 16px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
  }
  .azb-icon-wa {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366 !important;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s, transform .15s;
  }
  .azb-icon-wa:hover {
    background: #20bd5a !important;
  }
  .azb-icon-wa svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex-shrink: 0 !important;
  }
  body:has(.az-mb-bar:not(.is-hidden)) .az-wa {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.az-mb-bar:not(.is-hidden)) {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* PDP con barra ih-bar: una sola barra de compra fija (evita ~195px de solape) */
  body:has(.ih-bar.show) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.ih-bar.show) .az-mb-bar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
}
