/* Ficha de producto */
.hm-pdp { margin-bottom: 8px; }

.hm-pdp-media .thumbnails {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 18px;
  overflow: visible;
  padding: 0;
}

.hm-pdp-media .thumbnails > li {
  float: none;
  margin: 0;
  max-width: none;
}

.hm-pdp-media .thumbnails > li:first-child {
  grid-column: 1 / -1;
  position: relative;
}

.hm-pdp-media .thumbnails .thumbnail,
.hm-pdp-media .thumbnails .image-additional a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.hm-pdp-media .thumbnails > li:first-child .thumbnail {
  box-shadow: var(--hm-shadow);
  min-height: 320px;
  padding: 14px;
}

.hm-pdp-media .thumbnails > li:first-child img {
  height: auto;
  max-height: 560px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

.hm-pdp-media .thumbnails .image-additional {
  float: none;
  margin: 0;
  max-width: none;
}

.hm-pdp-media .thumbnails .image-additional a {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hm-pdp-media .thumbnails .image-additional a:hover {
  border-color: var(--hm-blue-bright);
  box-shadow: var(--hm-ring);
}

.hm-pdp-media .thumbnails .image-additional img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.hm-buybox {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  box-shadow: var(--hm-shadow);
  margin-bottom: 18px;
  padding: 22px;
}

.hm-buybox h1 {
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 12px;
}

.hm-facts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.hm-facts li {
  background: var(--hm-tint-2);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  color: var(--hm-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.2;
  padding: 6px 12px;
}

.hm-facts > a { display: contents; }

.hm-facts li a { color: var(--hm-blue); font-weight: 650; }

.hm-facts li:last-child {
  align-items: center;
  color: var(--hm-ink);
  display: inline-flex;
  font-weight: 650;
  gap: 6px;
}

.hm-facts li:last-child:before {
  background: url("../image/hm-stock.png") center / contain no-repeat;
  content: "";
  height: 18px;
  width: 18px;
}

.hm-price { margin: 0 0 18px; }

.hm-price li { line-height: 1.25; }

.hm-price h2 {
  color: var(--hm-navy);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}

.hm-price li span[style*="line-through"] {
  color: var(--hm-muted);
  display: inline-block;
}

.hm-price li span[style*="line-through"] h2 {
  color: var(--hm-muted);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hm-price h3[style] {
  background: var(--hm-danger);
  border-radius: 999px;
  color: #fff !important;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0;
  margin: 8px 0 0;
  padding: 4px 12px;
}

.hm-price li:not(:first-child):not(:has(h2)):not(:has(h3)) {
  color: var(--hm-muted);
  font-size: 13px;
  margin-top: 4px;
}

.hm-price hr { margin: 10px 0; }
.hm-price li h3:not([style]) { color: var(--hm-blue-dark); font-size: 15px; margin: 4px 0; }

#product {
  border-top: 1px solid var(--hm-line-soft);
  padding-top: 16px;
}

#product > hr { display: none; }

#product h3 {
  color: var(--hm-navy);
  font-size: 15px;
  margin: 0 0 12px;
}

#product .radio,
#product .checkbox {
  background: var(--hm-tint-2);
  border: 1px solid var(--hm-line);
  border-radius: 10px;
  margin: 0 0 8px;
  padding: 10px 12px;
}

#product .radio label,
#product .checkbox label { display: block; padding-left: 0; }

.hm-qtyrow {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 0;
}

.hm-qtyrow > label { flex: 0 0 100%; margin: 0; }
.hm-qtyrow > br { display: none; }
.hm-qtyrow > input[type="text"] { flex: 0 0 110px; text-align: center; }
.hm-qtyrow > #avisame-container { flex: 0 0 100%; padding: 16px; }

#avisame-container .input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

#avisame-container .input-group .form-control {
  border-radius: 8px !important;
  flex: 999 1 200px;
  float: none;
  min-width: 0;
  width: auto;
}

#avisame-container .input-group-btn {
  display: flex;
  flex: 1 0 120px;
  width: auto;
}

#avisame-container #btn-avisame {
  border-radius: 8px !important;
  margin: 0;
  width: 100%;
}

.hm-qtyrow #button-cart {
  border-radius: 10px;
  flex: 1 1 170px;
  font-size: 16px;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  width: 100%;
}
.hm-buybox .btn-group {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.hm-buybox .btn-group .btn {
  border-radius: 10px;
  float: none;
  height: 42px;
  width: 46px;
}

.hm-buybox .btn-group .btn[onclick^="compare."] { display: none; }

.hm-buybox .btn-group .hm-photo-btn {
  font-weight: 600;
  padding: 0 14px;
  white-space: nowrap;
  width: auto;
}

.hm-buybox .btn-group .hm-photo-btn[disabled] { opacity: 1; }

.hm-buybox .rating {
  border-top: 1px solid var(--hm-line-soft);
  margin-top: 16px;
  padding-top: 12px;
}

.hm-buybox .rating hr { display: none; }

.hm-pdp-tabs { margin: 10px 0 8px; }

.hm-pdp-tabs .tab-content {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  box-shadow: var(--hm-shadow);
  overflow-x: auto;
  padding: 22px;
}

.hm-pdp-tabs .nav-tabs { margin-bottom: 14px; }

#tab-description { font-size: 15px; line-height: 1.65; }
#tab-description img { height: auto; max-width: 100%; }

.hm-pdp-related { margin-top: 30px; }

.hm-buybar { display: none; }

@media (min-width: 992px) {
  .hm-pdp { display: flex; flex-wrap: wrap; }
  .hm-buybox { position: sticky; top: 16px; }
}

@media (max-width: 991px) {
  .hm-buybox { padding: 18px; }
  .hm-buybox h1 { font-size: 22px; }
  .hm-price h2 { font-size: 30px; }
}

@media (max-width: 767px) {
  .hm-pdp-media .thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-pdp-media .thumbnails > li:first-child .thumbnail { min-height: 240px; }
  .hm-pdp-tabs .tab-content { padding: 16px; }
  .hm-qtyrow > input[type="text"] { flex-basis: 96px; }

  .hm-buybar {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--hm-line);
    bottom: 0;
    box-shadow: 0 -10px 28px rgba(8, 42, 107, 0.14);
    display: none;
    gap: 12px;
    justify-content: space-between;
    left: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1030;
  }

  .hm-buybar.is-visible { display: flex; }
  .hm-buybar-price { line-height: 1.2; min-width: 0; }
  .hm-buybar-price strong { color: var(--hm-navy); display: block; font-size: 18px; font-weight: 800; }
  .hm-buybar-price s { color: var(--hm-muted); font-size: 13px; }
  .hm-buybar .btn { flex: 0 0 auto; height: 46px; padding: 0 22px; }

  body.hm-buybar-on { padding-bottom: 72px; }
  body.hm-buybar-on .whats_box { margin-bottom: 72px; }
}

/* Carro: en teléfono cada fila pasa a ser una tarjeta */
@media (max-width: 767px) {
  form[action*="checkout/cart/edit"] .table-responsive {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  form[action*="checkout/cart/edit"] table,
  form[action*="checkout/cart/edit"] tbody,
  form[action*="checkout/cart/edit"] tr,
  form[action*="checkout/cart/edit"] td {
    border: 0;
    display: block;
    width: 100%;
  }

  form[action*="checkout/cart/edit"] table { background: transparent; border-radius: 0; box-shadow: none; }
  form[action*="checkout/cart/edit"] thead { display: none; }

  form[action*="checkout/cart/edit"] tbody tr {
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    column-gap: 12px;
    display: grid;
    grid-template-areas: "img name name" "img qty total";
    grid-template-columns: 72px minmax(0, 1fr) auto;
    margin-bottom: 12px;
    padding: 12px;
    row-gap: 8px;
  }

  form[action*="checkout/cart/edit"] .table > tbody > tr > td {
    border: 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0;
    white-space: normal;
  }
  form[action*="checkout/cart/edit"] td:nth-child(1) { grid-area: img; text-align: center; }
  form[action*="checkout/cart/edit"] td:nth-child(2) { font-weight: 600; grid-area: name; line-height: 1.35; }
  form[action*="checkout/cart/edit"] td:nth-child(3),
  form[action*="checkout/cart/edit"] td:nth-child(5) { display: none; }
  form[action*="checkout/cart/edit"] td:nth-child(4) { align-self: end; grid-area: qty; }
  form[action*="checkout/cart/edit"] td:nth-child(4) .input-group { max-width: 150px !important; }
  form[action*="checkout/cart/edit"] td:nth-child(6) {
    align-self: end;
    color: var(--hm-navy);
    font-size: 17px;
    font-weight: 800;
    grid-area: total;
    text-align: right;
  }

  form[action*="checkout/cart/edit"] td:nth-child(1) img { border: 0; padding: 0; }
}

/* Home */
@media (min-width: 992px) {
  #menu .nav > li > a { font-size: 15px; padding: 14px 11px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #menu .nav > li > a { font-size: 14px; padding: 13px 8px; }
}

.site-second-title { display: none; }

#content .panel:has(.almanaque-btn) {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  display: flex;
  gap: 8px 18px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 10px 16px;
}

#content .panel:has(.almanaque-btn) > .panel-heading {
  background: transparent;
  border: 0;
  color: var(--hm-blue);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 0;
  text-transform: uppercase;
}

#content .panel:has(.almanaque-btn) > .panel-heading:before {
  content: "";
  background: var(--hm-blue-bright);
  border-radius: 2px;
  display: inline-block;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  width: 4px;
}

#content .panel:has(.almanaque-btn) > .panel-body {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 12px 8px 6px 4px;
  scrollbar-width: none;
  text-align: left;
}

#content .panel:has(.almanaque-btn) > .panel-body::-webkit-scrollbar { display: none; }

#content .almanaque-btn {
  border-color: var(--hm-line);
  border-radius: 10px;
  box-shadow: none;
  flex: 0 0 auto;
  margin: 0;
  width: 58px;
}

#content .almanaque-btn .mes {
  background: var(--hm-blue);
  border-radius: 9px 9px 0 0;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 3px 0;
}

#content .almanaque-btn .dia { font-size: 20px; font-weight: 800; padding: 5px 0 6px; }
#content .almanaque-btn:hover { border-color: var(--hm-blue-bright); box-shadow: var(--hm-shadow); }

#content .almanaque-btn.resaltar {
  border: 2px solid var(--hm-blue-bright);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .14);
}

#content .almanaque-btn.resaltar .mes { background: var(--hm-blue-bright); }

#content .row:has(#demo) {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#content .row:has(#demo):before,
#content .row:has(#demo):after { display: none; }

#content .row:has(#demo) > [class*="col-"] { margin-bottom: 18px; }
#content .row:has(#demo) > [class*="col-"] > .panel { height: 100%; margin: 0; }

#content .row:has(#demo) .panel-heading {
  background: transparent;
  border: 0;
  color: var(--hm-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 16px 18px 0;
  text-transform: uppercase;
}

#content .row:has(#demo) .panel > .panel { border: 0; box-shadow: none; margin: 0; padding: 0 12px 12px; }
#content .row:has(#demo) canvas#demo { max-width: 100%; }
#content .row:has(#demo) h3.text-center { color: var(--hm-navy); font-size: 18px; font-weight: 800; margin: 0 0 4px; }

#content .row:has(#demo) > [class*="col-"] > div:not([class]) {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  height: 100%;
  padding: 18px 22px;
}

#content .row:has(#demo) > [class*="col-"] > div:not([class]) > h2:first-child {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

#content .row:has(#demo) > [class*="col-"] > div:not([class]) h4 { color: var(--hm-ink); font-size: 15px; line-height: 1.45; margin: 0 0 8px; }
#content .row:has(#demo) > [class*="col-"] > div:not([class]) h4 span { font-size: inherit !important; }

#content .row:has(#demo) > [class*="col-"] > div:not([class]) h4 a:not(:has(img)) {
  background: linear-gradient(135deg, #082a6b 0%, #1d4ed8 100%);
  border-radius: var(--hm-radius-sm);
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  text-decoration: none;
}

#content .row:has(#demo) > [class*="col-"] > div:not([class]) h4 b { color: var(--hm-muted); font-weight: 600; }

.hm-section-title { margin-top: 6px; }

@media (max-width: 767px) {
  #content .panel:has(.almanaque-btn) { display: block; padding: 12px 14px 4px; }
  #content .panel:has(.almanaque-btn) > .panel-body { padding: 12px 2px 10px 0; }
  #content .row:has(#demo) { display: block; }
  #content .row:has(#demo) > [class*="col-"] > .panel { height: auto; }
  #content .row:has(#demo) > [class*="col-"] > div:not([class]) { height: auto; padding: 16px; }
}

/* Tarjetas de una misma fila con la misma altura */
.hm-grid,
.hm-products { display: flex; flex-wrap: wrap; }

.hm-grid:before,
.hm-grid:after,
.hm-products:before,
.hm-products:after { display: none; }

.hm-grid > .product-layout,
.hm-products > .product-layout { display: flex; }

.hm-grid > .product-layout > .hm-card,
.hm-products > .product-layout > .hm-card { flex: 1 1 100%; min-width: 0; }

.hm-grid > .product-layout:not(.product-list) > .hm-card,
.hm-products > .product-layout:not(.product-list) > .hm-card { display: flex; flex-direction: column; }

.hm-card .hm-body { display: flex; flex: 1 1 auto; flex-direction: column; }
.hm-card .hm-buy { margin-top: auto; }

@media (min-width: 992px) {
  #content .row:has(#demo) > [class*="col-"] { width: 50%; }
}

/* Amperímetro fuera de la home (módulos de contenido superior) */
.panel:has(#demo) {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.panel:has(#demo) > .panel-heading {
  background: transparent;
  border: 0;
  color: var(--hm-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 16px 18px 0;
  text-transform: uppercase;
}

.panel:has(#demo) > .panel { border: 0; box-shadow: none; margin: 0; padding: 0 12px 12px; }
.panel:has(#demo) canvas#demo { max-width: 100%; }
.panel:has(#demo) h3.text-center { color: var(--hm-navy); font-size: 18px; font-weight: 800; margin: 0 0 4px; }

/* Inicio de sesión */
.hm-auth {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin: 8px auto 28px;
  max-width: 940px;
}

.hm-auth-login,
.hm-auth-new { padding: 34px 38px; }

.hm-auth-login {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius) 0 0 var(--hm-radius);
  box-shadow: var(--hm-shadow);
}

.hm-auth-login h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.hm-auth-lead { color: var(--hm-muted); margin: 0 0 22px; }

.hm-auth-form .form-group { margin-bottom: 16px; }
.hm-auth-form .form-control { height: 48px; }

.hm-pass { position: relative; }
.hm-pass .form-control { padding-right: 52px; }

.hm-pass-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--hm-muted);
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
}

.hm-pass-toggle:hover,
.hm-pass-toggle[aria-pressed="true"] { background: var(--hm-tint); color: var(--hm-blue); }
.hm-pass-toggle svg { height: 22px; width: 22px; }

.hm-auth-forgot { display: inline-block; font-size: 14px; font-weight: 600; margin-top: 8px; }

.hm-auth-form .form-group:has(#input-remember) {
  background: var(--hm-tint);
  border: 1.5px solid #b9cdf5;
  border-radius: var(--hm-radius-sm);
  margin-bottom: 18px;
  margin-top: 18px;
  transition: background .15s ease, border-color .15s ease;
}

.hm-auth-form .form-group:has(#input-remember:checked) {
  background: #dbe7ff;
  border-color: var(--hm-blue-bright);
}

.hm-auth-form .form-group:has(#input-remember) label {
  align-items: center;
  color: var(--hm-navy);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 12px;
  margin: 0;
  padding: 13px 14px;
}

.hm-auth-form #input-remember {
  accent-color: var(--hm-blue-bright);
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.hm-auth-form input[type="checkbox"] { margin: 0; }

.hm-auth-form input[type="submit"] {
  display: block;
  font-size: 16px;
  height: 50px;
  width: 100%;
}

.hm-auth-new {
  background: linear-gradient(150deg, #071833 0%, #082a6b 55%, #1d4ed8 100%);
  border-radius: 0 var(--hm-radius) var(--hm-radius) 0;
  box-shadow: var(--hm-shadow);
  color: #eaf1ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hm-auth-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 14px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.hm-auth-new h2 { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.hm-auth-new p { color: #d6e3ff; line-height: 1.55; }

.hm-auth-perks { list-style: none; margin: 4px 0 24px; padding: 0; }

.hm-auth-perks li {
  color: #fff;
  font-weight: 500;
  padding: 5px 0 5px 28px;
  position: relative;
}

.hm-auth-perks li:before {
  border-bottom: 2.4px solid #9fc0ff;
  border-left: 2.4px solid #9fc0ff;
  content: "";
  height: 7px;
  left: 4px;
  position: absolute;
  top: 10px;
  transform: rotate(-45deg);
  width: 13px;
}

.hm-auth-cta.btn {
  align-items: center;
  align-self: stretch;
  background: #fff;
  border-color: #fff;
  color: var(--hm-blue);
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 50px;
  justify-content: center;
  padding: 0 22px;
  width: 100%;
}

.hm-auth-cta.btn:hover { background: var(--hm-tint); color: var(--hm-blue-dark); }

@media (max-width: 767px) {
  .hm-auth { display: flex; flex-direction: column; gap: 14px; }
  .hm-auth-login,
  .hm-auth-new { border-radius: var(--hm-radius); padding: 24px 20px; }
  .hm-auth-login h1 { font-size: 23px; }
}

/* Contacto */
.hm-contact {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-bottom: 28px;
}

.hm-contact-info h2,
.hm-info-sub-title { color: var(--hm-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; margin: 4px 0 12px; text-transform: uppercase; }

.hm-contact-img { border-radius: var(--hm-radius); display: block; margin-bottom: 12px; max-width: 100%; }

.hm-info-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px 18px;
}

.hm-info-card > div { line-height: 1.5; min-width: 0; }
.hm-info-card strong { color: var(--hm-ink); display: block; font-weight: 700; }
.hm-info-card address { color: var(--hm-ink); margin: 0 0 6px; }
.hm-info-card span { overflow-wrap: anywhere; }
.hm-info-sub { margin-top: 10px; }

.hm-info-icon {
  align-items: center;
  background: linear-gradient(135deg, #082a6b 0%, #1d4ed8 100%);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.hm-info-link { font-size: 14px; font-weight: 700; }
.hm-info-link:after { content: " \2192"; }

.hm-contact-form {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  padding: 26px 28px;
}

.hm-contact-form legend { border: 0; color: var(--hm-ink); font-size: 20px; font-weight: 800; margin-bottom: 16px; padding: 0; }
.hm-contact-form .form-horizontal .form-group { margin-left: 0; margin-right: 0; }
.hm-contact-form .control-label { padding-top: 0; text-align: left; }
.hm-contact-form .buttons { margin-top: 8px; }
.hm-contact-form .buttons .btn { height: 48px; min-width: 180px; }

@media (min-width: 768px) {
  .hm-contact-form .form-horizontal .form-group > .control-label,
  .hm-contact-form .form-horizontal .form-group > div { float: none; padding-left: 0; padding-right: 0; width: 100%; }
  .hm-contact-form .control-label { margin-bottom: 6px; }
}

/* Formularios de cuenta (registro, recuperar clave, datos, direcciones) */
body[class*="account-"] #content form.form-horizontal,
body.information-sitemap-x #content form.form-horizontal {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  margin-bottom: 24px;
  padding: 24px 28px 8px;
}

body[class*="account-"] #content form.form-horizontal legend {
  align-items: center;
  border: 0;
  color: var(--hm-ink);
  display: flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
}

body[class*="account-"] #content form.form-horizontal legend:before {
  background: var(--hm-blue-bright);
  border-radius: 2px;
  content: "";
  height: 18px;
  width: 4px;
}

body[class*="account-"] #content form.form-horizontal .buttons {
  background: var(--hm-tint-2);
  border-top: 1px solid var(--hm-line-soft);
  border-radius: 0 0 var(--hm-radius) var(--hm-radius);
  margin: 12px -28px 0;
  padding: 16px 28px;
}

body[class*="account-"] #content form.form-horizontal .buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
}

body[class*="account-"] #content form.form-horizontal .buttons:before,
body[class*="account-"] #content form.form-horizontal .buttons:after { display: none; }

body[class*="account-"] #content form.form-horizontal .buttons .pull-left,
body[class*="account-"] #content form.form-horizontal .buttons .pull-right { float: none !important; }

body[class*="account-"] #content form.form-horizontal .buttons .pull-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  margin-left: auto;
}

body[class*="account-"] #content form.form-horizontal .buttons .btn {
  font-size: 16px;
  height: 50px;
  min-width: 200px;
  padding: 0 30px;
}

body[class*="account-"] #content form.form-horizontal .buttons input[type="checkbox"] { height: 20px; margin: 0; width: 20px; }

body.account-register #content > h1 { font-size: 24px; line-height: 1.3; }

@media (max-width: 767px) {
  .hm-contact { grid-template-columns: minmax(0, 1fr); }
  .hm-contact-form { padding: 20px 16px; }
  .hm-contact-form .buttons .btn { width: 100%; }
  body[class*="account-"] #content form.form-horizontal { padding: 18px 16px 4px; }
  body[class*="account-"] #content form.form-horizontal .buttons { margin: 8px -16px 0; padding: 14px 16px; }
  body[class*="account-"] #content form.form-horizontal .buttons { flex-direction: column-reverse; align-items: stretch; }
  body[class*="account-"] #content form.form-horizontal .buttons .pull-right { justify-content: flex-start; margin-left: 0; }
  body[class*="account-"] #content form.form-horizontal .buttons .btn { width: 100%; }
}

/* Marcas */
.hm-brand-index {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 10px 14px;
}

.hm-brand-index span { color: var(--hm-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-right: 6px; text-transform: uppercase; }

.hm-brand-index a {
  border-radius: 8px;
  color: var(--hm-blue);
  font-weight: 700;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
}

.hm-brand-index a:hover { background: var(--hm-tint); }

.hm-brand-group { margin-bottom: 22px; scroll-margin-top: 16px; }
.hm-brand-group h2 { color: var(--hm-blue); font-size: 22px; font-weight: 800; margin: 0 0 10px; }

.hm-brand-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.hm-brand {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 10px;
  box-shadow: var(--hm-shadow);
  color: var(--hm-ink);
  font-weight: 600;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.hm-brand:hover { border-color: var(--hm-blue-bright); color: var(--hm-blue); transform: translateY(-1px); }

@media (max-width: 767px) {
  .hm-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Páginas de información (HTML cargado desde el administrador) */
body[class^="information-information"] #content {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  margin-bottom: 28px;
  padding: 26px 30px;
}

body[class^="information-information"] #content > h1 { font-size: 26px; font-weight: 800; margin-top: 0; }

body[class^="information-information"] #content p,
body[class^="information-information"] #content li { line-height: 1.65; }

body[class^="information-information"] #content [style*="font-family"],
body[class^="information-information"] #content font { font-family: var(--hm-font) !important; }

body[class^="information-information"] #content img { height: auto; max-width: 100%; }
body[class^="information-information"] #content table { max-width: 100%; }

@media (max-width: 767px) {
  body[class^="information-information"] #content { padding: 18px 16px; }
  body[class^="information-information"] #content > h1 { font-size: 22px; }
}

body[class^="information-information"] #content > h3 {
  color: var(--hm-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 14px;
}

body[class^="information-information"] #content > h3 b,
body[class^="information-information"] #content > h3 strong { font-weight: 800; }

body[class^="information-information"] #content {
  margin-left: 15px;
  margin-right: 15px;
  width: calc(100% - 30px);
}

/* Separación compacta entre tarjetas */
.hm-grid,
.hm-products { margin-left: -6px; margin-right: -6px; }

.hm-grid > .product-layout,
.hm-products > .product-layout { padding-left: 6px; padding-right: 6px; }

/* Favoritos */
body.account-wishlist #content .price {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--hm-ink);
  display: block;
  font-size: 18px;
  font-weight: 800;
  padding: 0;
  text-align: right;
}

body.account-wishlist #content .price-new { color: var(--hm-danger); }
body.account-wishlist #content .price-old { color: var(--hm-muted); display: block; font-size: 13px; font-weight: 500; }

@media (max-width: 767px) {
  body.account-wishlist #content .table-responsive { background: transparent; border: 0; box-shadow: none; overflow: visible; }

  body.account-wishlist #content table,
  body.account-wishlist #content tbody,
  body.account-wishlist #content tr,
  body.account-wishlist #content td { display: block; width: 100%; }

  body.account-wishlist #content table { background: transparent; box-shadow: none; }
  body.account-wishlist #content thead { display: none; }

  body.account-wishlist #content tbody tr {
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    column-gap: 12px;
    display: grid;
    grid-template-areas: "img name name" "img price actions";
    grid-template-columns: 72px minmax(0, 1fr) auto;
    margin-bottom: 12px;
    padding: 12px;
    row-gap: 8px;
  }

  body.account-wishlist #content .table > tbody > tr > td {
    border: 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0;
    white-space: normal;
  }

  body.account-wishlist #content td:nth-child(1) { grid-area: img; text-align: center; }
  body.account-wishlist #content td:nth-child(2) { font-weight: 600; grid-area: name; line-height: 1.35; }
  body.account-wishlist #content td:nth-child(3),
  body.account-wishlist #content td:nth-child(4) { display: none; }
  body.account-wishlist #content td:nth-child(5) { align-self: end; grid-area: price; }
  body.account-wishlist #content td:nth-child(5) .price { text-align: left; }
  body.account-wishlist #content td:nth-child(6) { align-items: center; align-self: end; display: flex; gap: 6px; grid-area: actions; justify-content: flex-end; width: auto; }
}

/* Checkout rápido (Quick'n'Easy): los colores vienen de la configuración del módulo, se pisan acá */
div.poc_steps {
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--hm-line-soft) !important;
  overflow: hidden;
}

div.poc_steps div.step.completed,
div.poc_steps div.step.completed::after {
  background: linear-gradient(135deg, #082a6b 0%, #1d4ed8 100%) !important;
  border-color: #fff !important;
}

div.poc_steps div.step.completed span.number { color: #9fc0ff !important; }

div.perfect_one_checkout_main_container .panel_poc {
  border-color: var(--hm-line) !important;
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  overflow: hidden;
}

div.perfect_one_checkout_main_container .panel_poc > .panel_poc-heading {
  background: var(--hm-tint-2) !important;
  border-bottom: 1px solid var(--hm-line-soft);
  color: var(--hm-navy) !important;
  font-weight: 800;
}

div.perfect_one_checkout_main_container div.panel_confirm .panel_poc { box-shadow: 0 0 0 3px #c9d9fb, var(--hm-shadow) !important; }

div.perfect_one_checkout_main_container .btn-success,
div.perfect_one_checkout_main_container button.btn-success {
  background: linear-gradient(135deg, #082a6b 0%, #1d4ed8 100%) !important;
  border-color: #082a6b !important;
  color: #fff !important;
}

div.panel_confirm a.confirm_order_button,
div.panel_confirm a.confirm_register_button,
div.panel_confirm div.payment_info #button-confirm,
div.panel_confirm div.payment_info input[type="submit"],
div.perfect_one_checkout_main_container a.poc_btn.confirm_order_button {
  background: linear-gradient(135deg, #082a6b 0%, #1d4ed8 100%) !important;
  border-color: #082a6b !important;
  border-radius: var(--hm-radius-sm);
  box-shadow: none;
  font-size: 17px;
  padding: 14px 18px;
}

div.perfect_one_checkout_main_container div.panel_identification div.panel_poc div.panel_poc-body div.btn-group button.btn[disabled] {
  background: linear-gradient(135deg, #082a6b 0%, #1d4ed8 100%) !important;
  border-color: #082a6b !important;
  color: #fff !important;
}

div.perfect_one_checkout_main_container .price {
  color: var(--hm-navy);
  font-size: 16px;
  font-weight: 800;
}

body.extension-module-qnec #content > h1,
body.checkout-checkout #content > h1 { font-weight: 800; }

div.perfect_one_checkout_main_container .poc_btn-success,
div.perfect_one_checkout_main_container .poc_input-group-addon.poc_btn-success {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

div.perfect_one_checkout_main_container .poc_btn-success:hover { background: #082a6b !important; }

body[class*="account-"] #content form.form-horizontal .buttons .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

body[class*="account-"] #content > .buttons a.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
}
