/**
 * T7.5 – Estilos para variantes premium (services, editorial, retail).
 * Hide inner hero cuando el home layout premium renderiza su propio hero.
 * Engitech-inspired header and footer for premium-services (reference: Engitech Home 3).
 */

/* Grid de márgenes igual que el footer para sliders (NormalSlider) */
.home-slider .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box;
}
.home-slider.fullwidth .container.slider-infor-wrap {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box;
}

/* Hide the default hero inside wrapped DefaultCommerceHomeLayout */
.template-premium-services-home__hide-inner-hero .home-top-banner-wrap,
.template-premium-editorial-home__hide-inner-hero .home-top-banner-wrap,
.template-premium-retail-home__hide-inner-hero .home-top-banner-wrap {
  display: none;
}

/* ========== Premium-services header (Engitech-style, referencia fija) ========== */
/* Higher specificity + !important so theme styles (styles.css/globals.css) do not override */
.template-premium-services.template-premium-services-header .engitech-header {
  background: var(--background-color-header, var(--primary-color, #0f172a)) !important;
  color: var(--text-color-header, #f8fafc) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Header fixed como en la referencia Engitech */
.template-premium-services.template-premium-services-header .engitech-header--fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible !important;
}

/* Espaciador para que el contenido no quede oculto bajo el header */
.template-premium-services.template-premium-services-header .engitech-header__spacer {
  height: 72px;
  flex-shrink: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 72px;
  overflow: visible !important;
}

.template-premium-services.template-premium-services-header .engitech-header__logo {
  flex-shrink: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__logo-link {
  display: block;
  line-height: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.template-premium-services.template-premium-services-header .engitech-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  margin: 0 0.5rem;
}

.template-premium-services.template-premium-services-header .engitech-header__menu {
  display: flex;
  align-items: center;
  gap: 0 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__menu-item {
  position: relative;
}

.template-premium-services.template-premium-services-header .engitech-header__menu-link {
  display: block;
  padding: 0.5rem 0.6rem;
  color: inherit;
  text-decoration: none;
  font-size: 1.375rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover con fondo sólido oscuro para buen contraste del texto blanco */
.template-premium-services.template-premium-services-header .engitech-header__menu-link:hover,
.template-premium-services.template-premium-services-header .engitech-header__menu-item--has-children:hover > .engitech-header__menu-link {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
}

/* Subrayado azul en ítem con dropdown abierto (referencia Engitech) */
.template-premium-services.template-premium-services-header .engitech-header__menu-item--has-children:hover > .engitech-header__menu-link {
  box-shadow: 0 2px 0 0 var(--accent-color, #38bdf8);
}

.template-premium-services.template-premium-services-header .engitech-header__toggle {
  display: inline-block;
  margin-left: 0.25rem;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  opacity: 0.85;
}

.template-premium-services.template-premium-services-header .engitech-header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding-top: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.template-premium-services.template-premium-services-header .engitech-header__menu-item--has-children:hover .engitech-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown mismo azul que el header, texto blanco, hover azul claro (referencia) */
.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--background-color-header, #15203a) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu .menu-item {
  margin: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-color-header, #f8fafc) !important;
  text-decoration: none;
  font-size: 1.375rem !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Hover con fondo más marcado para buen contraste con el texto */
.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu a:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

/* Forzar estilo en enlaces del menú recursivo (RecursiveMenu usa .vereeesa-menu-item-title) */
.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu a.vereeesa-menu-item-title {
  color: var(--text-color-header, #f8fafc) !important;
}
.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu a.vereeesa-menu-item-title:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.template-premium-services.template-premium-services-header .engitech-header__dropdown .submenu .submenu {
  left: 100%;
  top: 0;
  margin-left: 0.25rem;
  background: var(--background-color-header, #15203a) !important;
}

/* Buscador y carrito juntos, alineados y sin separación excesiva */
.template-premium-services.template-premium-services-header .engitech-header__actions {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.template-premium-services.template-premium-services-header .engitech-header__minicart {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.template-premium-services.template-premium-services-header .engitech-header__minicart .shopcart-icon {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
}

.template-premium-services.template-premium-services-header .engitech-header__search-wrap {
  display: flex;
  align-items: center;
}

.template-premium-services.template-premium-services-header .engitech-header__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.template-premium-services.template-premium-services-header .engitech-header__search-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.template-premium-services.template-premium-services-header .engitech-header__search-form {
  display: none;
  align-items: center;
  margin: 0;
}

.template-premium-services.template-premium-services-header .engitech-header__search-wrap.is-open .engitech-header__search-form {
  display: flex;
  align-items: center;
}

.template-premium-services.template-premium-services-header .engitech-header__search-wrap.is-open .engitech-header__search-toggle {
  display: none;
}

.template-premium-services.template-premium-services-header .engitech-header__search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 0.25rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.template-premium-services.template-premium-services-header .engitech-header__search-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.template-premium-services.template-premium-services-header .engitech-header__search-input {
  width: 200px;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.template-premium-services.template-premium-services-header .engitech-header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
}

.template-premium-services.template-premium-services-header .engitech-header__search-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  cursor: pointer;
}

.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .shopcart-icon {
  color: inherit;
}

.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .shopcart-icon:hover {
  color: var(--accent-color, #38bdf8);
}

/* Minicart dropdown: debajo del header, nada recortado al top; layout de ítems sin solapamiento */
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  margin: 0.5rem 0 0 0 !important;
  min-width: 320px;
  z-index: 1001;
  overflow: visible !important;
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .content-wrap {
  padding: 1rem 0 0 !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart {
  overflow: visible !important;
}
/* Título del carrito (estilo referencia: bold, oscuro) */
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .content-wrap .title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 1rem !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .minicart-items {
  display: block;
  padding: 0 1rem;
  margin: 0;
  list-style: none;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .minicart-items .mini_cart_item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .minicart-items .mini_cart_item:last-child {
  border-bottom: none;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-media {
  float: none !important;
  flex-shrink: 0;
  width: 72px;
  min-width: 72px;
  height: 72px;
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: #f0f0f0;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-left: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-name {
  margin: 0 !important;
  padding-right: 28px;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  word-break: break-word;
  color: #1e293b !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-name a {
  color: inherit !important;
  text-decoration: none;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-remove {
  position: absolute !important;
  top: 0;
  right: 0;
  float: none !important;
  margin: 0 !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-remove a {
  color: #dc2626 !important;
  font-size: 1.25rem;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-remove a:hover {
  color: #b91c1c !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .variations {
  font-size: 1.125rem !important;
  margin: 0 !important;
  color: #64748b;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-price,
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-quantity {
  font-size: 1.125rem !important;
  font-weight: 400;
  color: #334155;
  display: inline !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .mini_cart_item .product-quantity {
  margin-left: 0.25rem;
}
/* Subtotal: etiqueta izquierda, valor derecha, misma línea (estilo referencia) */
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .subtotal {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem !important;
  margin: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .subtotal .total-title {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .subtotal .total-price,
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .subtotal .total-price .Price-amount {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}
/* Botones: Ver Carrito = relleno (azul), Pagar = borde (estilo referencia) */
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions {
  display: flex !important;
  gap: 0.5rem;
  padding: 0 1rem 1rem !important;
  flex-wrap: wrap;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-viewcart {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.6rem 1rem !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  background: var(--accent-color, #38bdf8) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-viewcart:hover {
  background: var(--accent-color, #38bdf8) !important;
  opacity: 0.9;
  color: #fff !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-checkout {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.6rem 1rem !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  background: #fff !important;
  color: #1e293b !important;
  border: 2px solid #7c3aed !important;
  border-radius: 6px;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-checkout:hover {
  border-color: #6d28d9 !important;
  color: #5b21b6 !important;
}

@media (max-width: 991px) {
  .template-premium-services.template-premium-services-header .engitech-header__nav {
    display: none;
  }
  .template-premium-services.template-premium-services-header .engitech-header__inner {
    flex-wrap: wrap;
  }
}

/* ========== Banner ancho completo (premium-services, referencia Engitech) ========== */
/* Márgenes iguales al footer: max-width 1200px, padding 0 1.5rem */
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .inner,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .inner {
  min-height: 400px;
  box-sizing: border-box;
}
/* Misma grid de márgenes que el footer: el Hero ya tiene padding 0 1.5rem; el wrap no añade más para alinear con .engitech-footer__inner */
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-full-content-wrap,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-full-content-wrap {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
}
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
  width: 100%;
}
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .title.banner-full-title,
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .banner-full-description,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .title.banner-full-title,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .banner-full-description {
  grid-column: 1;
}
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .banner-full-actions,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .banner-full-actions {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
/* Título: referencia 36–48px; sin sombra ni blur (anula estilos globales) */
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .title.banner-full-title,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .title.banner-full-title {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  margin: 0 0 1rem 0 !important;
  -webkit-text-shadow: none !important;
  -moz-text-shadow: none !important;
  text-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
/* Descripción: referencia 14–16px; sin sombra ni blur */
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .banner-full-description,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .banner-full-description {
  font-size: 1rem !important;
  line-height: 1.5;
  margin: 0 !important;
  -webkit-text-shadow: none !important;
  -moz-text-shadow: none !important;
  text-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
/* Botón: estilos de tamaño y forma desde referencia; color desde configuración (slide.button_color / button_text_color) */
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .button.btn-view-promotion,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .button.btn-view-promotion {
  padding: 14px 32px !important;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none !important;
  text-decoration: none !important;
  display: inline-block;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .button.btn-view-promotion:hover,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .button.btn-view-promotion:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}
/* Texto de apoyo: referencia 12–14px; sin sombra ni blur */
.template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .banner-full-support,
.template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .banner-full-support {
  font-size: 0.875rem;
  color: #333333;
  display: inline;
  -webkit-text-shadow: none !important;
  -moz-text-shadow: none !important;
  text-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}
@media (max-width: 767px) {
  .template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content,
  .template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content {
    grid-template-columns: 1fr !important;
  }
  .template-premium-services-hero .banner-wrapp.banner-full-width .item-banner.style6 .banner-content .banner-full-actions,
  .template-premium-services-hero .banner-wrapp .item-banner.style6 .banner-content .banner-full-actions {
    grid-column: 1;
    grid-row: auto;
    align-self: flex-start;
  }
}

/* ========== Premium-services footer (Engitech-style, español) ========== */
.template-premium-services.template-premium-services-footer .engitech-footer {
  background: var(--engitech-footer-bg, #0f172a);
  color: var(--engitech-footer-text, #f8fafc);
  padding: 3rem 0 2rem;
}

.template-premium-services.template-premium-services-footer .engitech-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* Logo centrado arriba */
.template-premium-services.template-premium-services-footer .engitech-footer__brand {
  margin-bottom: 2.5rem;
}

.template-premium-services.template-premium-services-footer .engitech-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

.template-premium-services.template-premium-services-footer .engitech-footer__logo-img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* Fila de contacto: solo columnas con contenido, icono solo si hay dato */
.template-premium-services.template-premium-services-footer .engitech-footer__contact-row {
  display: grid !important;
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-row--cols-1 {
  grid-template-columns: 1fr;
}
.template-premium-services.template-premium-services-footer .engitech-footer__contact-row--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.template-premium-services.template-premium-services-footer .engitech-footer__contact-row--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  .template-premium-services.template-premium-services-footer .engitech-footer__contact-row.engitech-footer__contact-row--cols-1,
  .template-premium-services.template-premium-services-footer .engitech-footer__contact-row.engitech-footer__contact-row--cols-2,
  .template-premium-services.template-premium-services-footer .engitech-footer__contact-row.engitech-footer__contact-row--cols-3 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  font-size: 3rem;
  color: var(--engitech-footer-accent, #38bdf8);
  margin-bottom: 0.25rem;
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-text {
  margin: 0;
  font-size: 1.625rem !important;
  line-height: 1.45;
  font-weight: 500;
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-link:hover {
  color: var(--engitech-footer-accent, #38bdf8);
}

.template-premium-services.template-premium-services-footer .engitech-footer__contact-label {
  font-size: 1.25rem !important;
  opacity: 0.85;
  font-weight: 500;
}

/* Enlaces rápidos */
.template-premium-services.template-premium-services-footer .engitech-footer__quicklinks {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.template-premium-services.template-premium-services-footer .engitech-footer__quicklinks-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.template-premium-services.template-premium-services-footer .engitech-footer__quicklink {
  color: inherit;
  text-decoration: none;
  font-size: 1.25rem !important;
  opacity: 0.95;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.template-premium-services.template-premium-services-footer .engitech-footer__quicklink:hover {
  opacity: 1;
  color: var(--engitech-footer-accent, #38bdf8);
}

/* Copyright */
.template-premium-services.template-premium-services-footer .engitech-footer__copyright {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.25rem !important;
  opacity: 0.9;
}

/* Redes abajo */
.template-premium-services.template-premium-services-footer .engitech-footer__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.template-premium-services.template-premium-services-footer .engitech-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  text-decoration: none;
  font-size: 1.125rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.template-premium-services.template-premium-services-footer .engitech-footer__social-link:hover {
  background: var(--engitech-footer-accent, #38bdf8);
  color: #fff;
}

/* ========== TemplateButton: premium-services (estilo minicart dropdown) ========== */
.template-button.template-button--premium-services {
  border: none;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, filter 0.2s ease !important;
  cursor: pointer;
}
/* Primary con colores de la plantilla (sin override): hover usa color de configuración del sitio */
.template-button--premium-services.template-button--primary:not(.template-button--has-custom-colors) {
  background-color: var(--primary-color, #3498db) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 12px 24px !important;
  font-size: 0.9375rem !important;
}
.template-button--premium-services.template-button--primary:not(.template-button--has-custom-colors):hover {
  background-color: var(--accent-color, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
/* Primary con colores propios (banners/sliders): hover usa color de configuración del sitio */
.template-button--premium-services.template-button--primary.template-button--has-custom-colors {
  border-radius: 4px !important;
  padding: 12px 24px !important;
  font-size: 0.9375rem !important;
}
.template-button--premium-services.template-button--primary.template-button--has-custom-colors:hover {
  background-color: var(--accent-color, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
/* Secondary: colores de plantilla y hover relleno primary */
.template-button--premium-services.template-button--secondary {
  background: transparent !important;
  color: var(--primary-color, #3498db) !important;
  border: 2px solid var(--primary-color, #3498db) !important;
  border-radius: 4px !important;
  padding: 10px 22px !important;
  font-size: 0.9375rem !important;
}
.template-button--premium-services.template-button--secondary:hover {
  background: var(--primary-color, #3498db) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.template-button--premium-services.template-button--s {
  padding: 10px 20px !important;
  font-size: 0.8125rem !important;
}
.template-button--premium-services.template-button--l {
  padding: 14px 28px !important;
  font-size: 1rem !important;
}

/* Otras plantillas: TemplateButton con clase .button sin borde raro del tema */
.template-button.button {
  border: none !important;
}

/* ========== Premium-services: botones estilo referencia (CONTACT US) ========== */
/* Azul sólido, texto blanco, sin sombra, bordes ligeros, buen padding */
.template-premium-services-home .button,
.template-premium-services-home button:not([type="search"]),
.template-premium-services-hero .button:not(.btn-view-promotion),
.template-premium-services .button,
.template-premium-services-product-card .product-card-services__cta {
  background-color: var(--primary-color, #3498db) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: opacity 0.2s ease, background-color 0.2s ease !important;
}
.template-premium-services-home .button:hover,
.template-premium-services-home button:not([type="search"]):hover,
.template-premium-services-hero .button:not(.btn-view-promotion):hover,
.template-premium-services .button:hover,
.template-premium-services-product-card .product-card-services__cta:hover {
  opacity: 0.92 !important;
  box-shadow: none !important;
}
/* Minicart: botón principal (Ver carrito) mismo estilo */
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-viewcart {
  background: var(--primary-color, #3498db) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 12px 24px !important;
  font-size: 0.9375rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-checkout {
  background: transparent !important;
  color: var(--primary-color, #3498db) !important;
  border: 2px solid var(--primary-color, #3498db) !important;
  border-radius: 4px !important;
  padding: 10px 22px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
}
.template-premium-services.template-premium-services-header .engitech-header__minicart .block-minicart .vereesa-submenu .actions .button-checkout:hover {
  background: var(--primary-color, #3498db) !important;
  color: #fff !important;
}

/* Premium-services product card (Engitech-inspired) */
.product-card-services__link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-services__cta {
  margin-top: 0.75rem;
  text-align: center;
  background-color: var(--primary-color, #3498db) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
  display: inline-block !important;
  width: 100%;
  transition: opacity 0.2s ease !important;
}
.product-card-services__cta:hover {
  opacity: 0.92;
  color: #ffffff !important;
}
.product-card-services__image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: #f1f5f9;
}
.product-card-services__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-services__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
.product-card-services__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: #334155;
}
.product-card-services__price {
  margin: 0.25rem 0 0;
  font-size: 1.3125rem;
  font-weight: 600;
  color: #334155;
}
.product-card-services__price-old {
  margin-left: 0.35rem;
  text-decoration: line-through;
  font-weight: 500;
  font-size: 1.1875rem;
  opacity: 0.88;
}

/* Premium-editorial product card — Mattelsa-style listing (Framek / variante editorial) */
.product-card-editorial--mattelsa {
  cursor: pointer;
  outline: none;
}
.product-card-editorial--mattelsa:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-color, #38bdf8);
  border-radius: 4px;
}
/* Legacy: enlace único envolviendo toda la card (si reaparece en otro fork) */
.product-card-editorial__link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0.5rem 0.75rem 1rem;
}
.product-card-editorial__meta {
  padding: 0.5rem 0.75rem 1rem;
  text-align: left;
}
.product-card-editorial__text-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-editorial__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 0.625rem;
  border-radius: 0;
  background: #f3f4f6;
}
.product-card-editorial__embla {
  overflow: hidden;
  height: 100%;
  width: 100%;
  touch-action: pan-x pinch-zoom;
}
.product-card-editorial__embla__container {
  display: flex;
  height: 100%;
}
.product-card-editorial__embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}
.product-card-editorial__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
  transition: transform 0.42s ease;
}
.product-card-editorial__hover-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}
.product-card-editorial__hover-alt .product-card-editorial__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
  .product-card-editorial__image-wrap--crossfade-hover:hover .product-card-editorial__hover-alt {
    opacity: 1;
  }
  .product-card-editorial__image-wrap--hover-zoom:hover .product-card-editorial__img {
    transform: scale(1.06);
  }
}
.product-card-editorial__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  z-index: 4;
  max-width: calc(100% - 16px);
}
.product-card-editorial__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-card-editorial__dot:hover {
  background: rgba(0, 0, 0, 0.4);
}
.product-card-editorial__dot.is-selected {
  background: rgba(0, 0, 0, 0.55);
  transform: scale(1.15);
}
.product-card-editorial__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #64748b;
  font-size: 0.8125rem;
}
.product-card-editorial__name {
  margin: 0 0 0.1875rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8fafc;
}
.product-card-editorial__price {
  margin: 0.5rem 0 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #f8fafc;
}
.product-card-editorial__price-old {
  margin-left: 0.5rem;
  text-decoration: line-through;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.75;
}

/* Mattelsa PLP: sin calles; ancho viewport en móvil y desktop cuando hay tarjetas editorial.
   :has(.product-card-editorial--mattelsa) aplica aunque home/category no sea premium-editorial
   (p. ej. solo product_card_variant editorial). */
.product-card-editorial,
.product-card-editorial--mattelsa {
  width: 100%;
  max-width: 100%;
}
.masonry-grid-new:has(.product-card-editorial--mattelsa),
.category-layout-premium-editorial .masonry-grid-new,
.template-premium-editorial-home__inner .masonry-grid-new,
.template-premium-editorial-search .search-results-page .masonry-grid-new {
  margin-left: 0 !important;
  width: 100% !important;
}
.masonry-grid-new:has(.product-card-editorial--mattelsa) .masonry-grid-column,
.category-layout-premium-editorial .masonry-grid-column,
.template-premium-editorial-home__inner .masonry-grid-column,
.template-premium-editorial-search .search-results-page .masonry-grid-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.masonry-grid-new:has(.product-card-editorial--mattelsa) .masonry-item-new,
.category-layout-premium-editorial .masonry-item-new,
.template-premium-editorial-home__inner .masonry-item-new,
.template-premium-editorial-search .search-results-page .masonry-item-new {
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  max-width: 100%;
  align-items: stretch !important;
  justify-content: flex-start !important;
  border-radius: 0 !important;
}
.masonry-grid-new:has(.product-card-editorial--mattelsa) .masonry-item-new .product-inner,
.category-layout-premium-editorial .masonry-item-new .product-inner,
.template-premium-editorial-home__inner .masonry-item-new .product-inner,
.template-premium-editorial-search .search-results-page .masonry-item-new .product-inner {
  border-radius: 0 !important;
}
.masonry-grid-new:has(.product-card-editorial--mattelsa) .masonry-item-new .product-thumb img,
.category-layout-premium-editorial .masonry-item-new .product-thumb img,
.template-premium-editorial-home__inner .masonry-item-new .product-thumb img,
.template-premium-editorial-search .search-results-page .masonry-item-new .product-thumb img {
  border-radius: 0 !important;
}

/* Grid full-bleed al viewport: home y slots fuera de listados con sidebar */
.blog-list.masonry-style:has(.product-card-editorial--mattelsa) {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* Categoría / búsqueda / todos-productos: ancho de .products-column (respeta barra de filtros) */
.search-results-page .blog-list.masonry-style:has(.product-card-editorial--mattelsa) {
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  position: relative;
}

.fullwidth-template:has(.blog-list.masonry-style:has(.product-card-editorial--mattelsa)),
.category-layout-premium-editorial,
.template-premium-editorial-home,
.template-premium-editorial-search .main-content.search-results-page {
  overflow-x: hidden;
}

/* Premium-retail product card (Emoll/Emol-inspired): hover */
.product-card-retail__link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card-retail__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.product-card-retail__image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
}
.product-card-retail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.product-card-retail__link:hover .product-card-retail__img {
  transform: scale(1.03);
}
.product-card-retail__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
.product-card-retail__info {
  padding: 0 1.25rem 1rem;
}
.product-card-retail__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
}
.product-card-retail__price {
  margin: 0.35rem 0 0;
  font-size: 1.3125rem;
  font-weight: 600;
  color: #1a1a1a;
}
.product-card-retail__price-old {
  margin-left: 0.35rem;
  text-decoration: line-through;
  font-weight: 500;
  font-size: 1.1875rem;
  color: #64748b;
}
