#wrapper .breadcrumb > .row > .col-auto{
  display: none;
}
#wrapper .breadcrumb li:last-child::after{
  content: none !important;
}
/* ==========================================================================
   Topbar: un único enlace centrado (bloque 2 de iqitlinksmanager en displayNav1).
   La zona izquierda ocupa todo el ancho; centro y derecha se ocultan.
   ========================================================================== */
#header .header-nav {
  padding-top: 7px;
  padding-bottom: 7px;
}

#header .header-nav .left-nav {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
}

#header .header-nav .center-nav,
#header .header-nav .right-nav {
  display: none;
}

.header-nav .left-nav .block-links-inline ul {
  margin: 0;
}

.header-nav .left-nav .block-links-inline li {
  margin: 0;
  padding: 0;
}

.header-nav .left-nav .block-links-inline a {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-nav .left-nav .block-links-inline a:hover {
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   Ficha de producto (diseño Figma "Página de producto")
   Tipografía (Outfit), colores de texto, botones y etiquetas: iqitthemeeditor. Aquí variables y maquetación. Proporción 5/7 e
   referencia bajo el título: iqitthemeeditor (pp_img_width, pp_reference).
   ========================================================================== */
:root {
  --mes-ink: #202122;        /* textos principales */
  --mes-ink-strong: #121212; /* títulos de sección, botón principal */
  --mes-muted: #6b7280;      /* textos secundarios */
  --mes-faint: #d1d5db;      /* separadores de las migas */
  --mes-border: #e5e7eb;     /* bordes de tarjetas, pestañas y muestras */
  --mes-accent: #7de4ff;     /* selección */
  --mes-surface: #f3f4f6;    /* fondo de la imagen y cajas grises */
  --mes-surface-accent: #eafbff;
  --mes-font: "Outfit", sans-serif;
}

/* Imagen: sobresale hacia la izquierda hasta el borde de una pantalla de 1920px y queda fija al hacer scroll */
@media (min-width: 768px) {
  #product .col-product-image .product-cover {
    --mes-page-w: calc(100vw - var(--mes-sbw, 0px));
    --mes-container-w: 1530px; /* ancho máximo del .container (iqitthemeeditor) */
    --mes-bleed: calc((min(var(--mes-page-w), 1920px) - min(var(--mes-page-w), var(--mes-container-w))) / 2 + 10.5px);
    width: calc(100% + var(--mes-bleed));
    margin-left: calc(-1 * var(--mes-bleed));
  }

  /* Panel gris con la proporción del diseño (827x896) y la foto cuadrada contenida con margen: en
     Figma la silla mide ~610px de alto (68% del panel); en las fotos ocupa el 84% del cuadrado */
  #product .col-product-image .product-cover .product-lmage-large {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 827 / 896;
    padding: 9.5% 5.5%;
  }

  #product .col-product-image .product-cover .product-lmage-large picture {
    display: contents;
  }

  #product .col-product-image .product-cover .product-lmage-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #product .col-product-image .images-container {
    position: sticky;
    top: 110px; /* bajo la cabecera fija (96px) */
  }
}

#product .col-product-image .product-cover .product-lmage-large img {
  mix-blend-mode: multiply;
}

#product .col-product-image .product-cover .product-lmage-large {
  background-color: var(--mes-surface);
}

/* Columna de información: 845px de contenido, alineada con el borde derecho del contenedor */
#product #col-product-info {
  padding-left: 26px;
}

.breadcrumb.mes-breadcrumb-inline {
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.breadcrumb.mes-breadcrumb-inline li,
.breadcrumb.mes-breadcrumb-inline a {
  color: var(--mes-muted);
}

.breadcrumb.mes-breadcrumb-inline li:last-child span {
  color: var(--mes-ink);
}

.breadcrumb.mes-breadcrumb-inline li::after {
  color: var(--mes-faint);
}

#product .product_header_container .page-title {
  margin: 0 0 14px;
  color: var(--mes-ink);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.05;
}

#product .product-reference {
  margin: 0 0 12px;
  color: var(--mes-muted);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#product .product-reference .label {
  font-size: 0;
}

#product .product-reference .label::before {
  content: "Ref.";
  font-size: 12px;
}

/* Descripción corta: columna estrecha de 448px como en el diseño (unas dos líneas) */
#product .product-information > .product-description,
#product #product-description-short,
#product .product-description-short {
  max-width: 448px;
  color: var(--mes-muted);
  font-size: 15px;
  line-height: 20px;
}

#product .product-information > .product-description p:last-child {
  margin-bottom: 0;
}

#product .product_header_container {
  padding-top: 25px;
  border-bottom: 0;
  padding-bottom: 0;
}

#product #wrapper{
  padding-top: 0px;
}

.mes-configure-title {
  margin: 28px 0 14px;
  color: var(--mes-muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ==========================================================================
   Configurador de combinaciones (ver catalog/_partials/product-variants.tpl)
   ========================================================================== */
.product-variants > .mes-variant-card {
  float: none;
  width: 100%;
  margin: 0 0 15px;
  padding: 16px 20px;
  border: 2px solid var(--mes-border);
  border-radius: 20px;
  background: #fff;
}

.product-variants > .mes-variant-card .mes-variant-card__title {
  display: block;
  margin: 0 0 15px;
  padding: 0;
  color: var(--mes-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
}

/* Pestañas */
.mes-variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.mes-variant-tab {
  min-width: 121px;
  height: 40px;
  padding: 0 16px;
  border: 2px solid var(--mes-border);
  border-radius: 10px;
  background: #fff;
  color: var(--mes-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.mes-variant-tab:hover {
  border-color: #cbd0d6;
  color: var(--mes-ink);
}

.mes-variant-tab.is-active {
  border: 4px solid var(--mes-accent);
  color: var(--mes-ink);
  font-weight: 600;
}

.mes-variant-tab:focus-visible {
  outline: 2px solid var(--mes-ink);
  outline-offset: 2px;
}

/* Muestras */
.product-variants .mes-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-variants .mes-swatches .mes-swatch {
  float: none;
  width: 64px;
  margin: 0;
  padding: 0;
}

.product-variants .mes-swatches .mes-swatch.is-hidden {
  display: none;
}

.mes-swatch__label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.product-variants .mes-swatch .input-color {
  position: absolute;
  top: 0;
  left: 50%;
  width: 45px;
  height: 45px;
  margin: 0 0 0 -22.5px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

/* 45px con borde gris; seleccionada: borde de acento y la muestra encogida dentro (hueco blanco) */
.product-variants .mes-swatch .mes-swatch__color {
  display: block;
  box-sizing: border-box;
  width: 45px;
  height: 45px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mes-border);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-origin: content-box;
  background-clip: content-box;
  transition: padding .15s, border-color .15s;
}

.product-variants .mes-swatch__label:hover .mes-swatch__color {
  border-color: #b9bfc7;
}

.product-variants .mes-swatch .input-color:checked + .mes-swatch__color {
  padding: 6px;
  border: 2px solid var(--mes-accent);
}

.product-variants .mes-swatch .input-color:focus-visible + .mes-swatch__color {
  outline: 2px solid var(--mes-ink);
  outline-offset: 3px;
}

.mes-swatch__name {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--mes-muted);
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mes-swatch.attribute-not-in-stock .mes-swatch__color {
  opacity: .45;
}

/* Seleccionadas: nombre de la muestra en tinta y pestaña con fondo celeste (también en escritorio) */
.product-variants .mes-swatch .input-color:checked ~ .mes-swatch__name {
  color: var(--mes-ink);
  font-weight: 500;
}

.mes-variant-tab.is-active {
  background: var(--mes-surface-accent);
}

/* Resumen de la configuración elegida */
.mes-config-summary {
  margin: 0 0 24px;
  padding: 12px 23px;
  border: 2px solid var(--mes-border);
  border-radius: 20px;
}

.mes-config-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.mes-config-summary__title {
  color: var(--mes-ink);
  font-weight: 600;
  text-transform: uppercase;
}

.mes-config-summary__text {
  color: var(--mes-muted);
}

.mes-config-summary__item + .mes-config-summary__item::before {
  content: "|";
  margin: 0 8px;
  color: var(--mes-faint);
}

.mes-config-summary__item strong {
  color: var(--mes-ink);
  font-weight: 600;
}

@media (max-width: 575px) {
  .product-variants > .mes-variant-card {
    padding: 14px 14px 10px;
  }

  .mes-variant-tab {
    min-width: 0;
  }
}

/* ==========================================================================
   Ficha de producto: botones, cajas de ayuda, pestañas, banner y relacionados
   ========================================================================== */
#wrapper .mes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 16px 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}

#wrapper .mes-btn--dark {
  background: var(--mes-ink-strong);
  color: #fff;
}

#wrapper .mes-btn--dark:hover {
  border-color: #000;
  background: #fff;
  color: var(--mes-ink-strong);
}

#wrapper .mes-btn--outline {
  border-color: #000;
  background: #fff;
  color: var(--mes-ink-strong);
}

#wrapper .mes-btn--outline:hover {
  background: var(--mes-ink-strong);
  color: #fff;
}

#wrapper .mes-btn--light {
  background: #fff;
  color: var(--mes-ink-strong);
  font-weight: 500;
}

#wrapper .mes-btn--light:hover {
  background: var(--mes-border);
  color: var(--mes-ink-strong);
}

#wrapper .mes-btn--outline-light {
  border-color: #fff;
  color: #fff;
  font-weight: 500;
}

#wrapper .mes-btn--outline-light:hover {
  background: #fff;
  color: var(--mes-ink-strong);
}

.mes-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 32px;
}

/* Iconos Font Awesome de los botones (descargar configuración / contacto) */
#wrapper .mes-btn .mes-btn__icon {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

#wrapper .mes-arrow-link {
  color: var(--mes-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#wrapper .mes-arrow-link::after {
  content: "\f061";
  font-family: 'Font Awesome 7 PRO';
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin-left: 8px;
}

#wrapper .mes-arrow-link:hover {
  color: #000;
}

.mes-help-box {
  margin: 0 0 15px;
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--mes-surface-accent);
  text-align: center;
}

.mes-help-box__title {
  margin: 0 0 12px;
  color: var(--mes-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

.mes-help-box__text {
  max-width: 485px;
  margin: 0 auto 16px;
  color: var(--mes-muted);
  font-size: 16px;
  line-height: 22px;
}

.mes-help-box__text strong {
  font-weight: 600;
}

.mes-help-box__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
}

.mes-distributor-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 15px;
  padding: 32px 38px;
  border-radius: 20px;
  background: var(--mes-surface);
}

.mes-distributor-box__title {
  margin: 0;
  color: var(--mes-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

/* Escritorio (Figma "Página de producto"): muestras cada 76px, sin línea sobre los botones
   (33px tras el resumen), cajas de ayuda de 210 y 114px de alto */
@media (min-width: 768px) {
  .product-variants .mes-swatches {
    gap: 14px 12px;
  }

  #product .product-add-to-cart.pt-3 {
    padding-top: 0 !important; /* la clase pt-3 de Bootstrap lleva !important */
  }

  #product .product-additional-info {
    padding-top: 0;
    border-top: 0;
  }

  .mes-config-summary {
    margin-bottom: 33px;
  }

  .mes-product-actions {
    margin-bottom: 45px;
  }

  .mes-help-box {
    margin-bottom: 20px;
    padding: 36px 28px;
  }

  .mes-help-box__title {
    margin-bottom: 16px;
  }

  .mes-help-box__text {
    margin-bottom: 27px;
  }

  .mes-distributor-box {
    padding: 43px 38px;
  }
}

/* Pestañas Descripción / Ficha técnica / Descargables (Figma): texto 15px gris, la activa en tinta
   con subrayado de 2px sobre la línea gris; contenido gris 16/22 con ancho máximo de ~940px */
#product .product-tabs .nav-tabs {
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--mes-border);
}

#product .product-tabs .nav-tabs .nav-item {
  margin: 0 0 -1px;
}

#product .product-tabs .nav-tabs .nav-link {
  margin: 0;
  padding: 14px 24px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--mes-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  opacity: 1; /* el tema atenúa las pestañas inactivas al 40% */
  transition: color .2s, border-color .2s;
}

#product .product-tabs .nav-tabs .nav-link:hover {
  color: var(--mes-ink);
}

#product .product-tabs .nav-tabs .nav-link.active {
  border-bottom-color: var(--mes-ink);
  color: var(--mes-ink);
}

#product .product-tabs .nav-tabs .nav-link:focus-visible {
  outline: 2px solid var(--mes-ink);
  outline-offset: -2px;
}

#product .product-tabs .tab-content {
  max-width: 940px;
  padding: 36px 0 0;
  border: 0;
}

#product .product-tabs .tab-content,
#product .product-tabs .product-description {
  color: var(--mes-muted);
  font-size: 16px;
  line-height: 22px;
}

#product .product-tabs .product-description p {
  margin: 0 0 16px;
}

/* Ficha técnica: filas etiqueta / valor separadas por líneas finas */
.mes-datasheet {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  margin: 0;
  border-top: 1px solid var(--mes-border);
}

.mes-datasheet dt,
.mes-datasheet dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--mes-border);
  font-size: 15px;
  line-height: 22px;
}

.mes-datasheet dt {
  padding-right: 24px;
  color: var(--mes-muted);
  font-weight: 400;
}

.mes-datasheet dd {
  color: var(--mes-ink);
  font-weight: 500;
}

.mes-datasheet__note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 20px 0 0;
  color: var(--mes-muted);
  font-size: 15px;
}

/* Descargables: una fila por archivo con etiqueta de formato y enlace de descarga */
.mes-downloads {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-downloads__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mes-border);
}

.mes-downloads__item:first-child {
  border-top: 1px solid var(--mes-border);
}

.mes-downloads__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mes-surface);
  color: var(--mes-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}

.mes-downloads__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.mes-downloads__name {
  color: var(--mes-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.mes-downloads__desc {
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 20px;
}

#wrapper .mes-downloads__link {
  flex: none;
  color: var(--mes-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mes-downloads__size {
  color: var(--mes-muted);
  font-weight: 400;
}

@media (max-width: 767px) {
  /* Pestañas en una fila (el tema las apila); si no caben, se desplazan en horizontal */
  #product .product-tabs .nav-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 var(--mes-border); /* línea gris bajo las pestañas sin que el scroll recorte el subrayado */
    scrollbar-width: none;
  }

  #product .product-tabs .nav-tabs .nav-item {
    flex: none;
    width: auto;
    margin: 0;
  }

  #product .product-tabs .nav-tabs .nav-link {
    padding: 12px 14px 11px;
    white-space: nowrap;
  }

  #product .product-tabs .tab-content {
    padding-top: 24px;
  }

  .mes-datasheet {
    grid-template-columns: 1fr 1.4fr;
  }

  .mes-downloads__item {
    flex-wrap: wrap;
  }
}

/* Banner "¿Dónde comprar el producto?" */
.mes-where-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  margin: 60px 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--mes-ink-strong);
}

.mes-where-banner__content {
  align-self: center;
  padding: 48px 40px;
}

.mes-where-banner__kicker {
  margin: 0 0 10px;
  color: var(--mes-border);
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

#product .mes-where-banner__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
}

.mes-where-banner__text {
  max-width: 485px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
  line-height: 22px;
}

.mes-where-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* El icono de ubicación de "Ver mapa de tiendas" solo está en el diseño móvil */
@media (min-width: 768px) {
  #wrapper .mes-where-banner__pin {
    display: none;
  }
}

#wrapper .mes-where-banner__actions .mes-btn {
  min-height: 0;
  padding: 12px 26px;
}

/* El diseño lleva un mapa; mientras no lo haya, una foto de ambiente fundida con el negro */
.mes-where-banner__media {
  background:
    linear-gradient(90deg, var(--mes-ink-strong) 0%, rgba(18, 18, 18, .35) 45%, rgba(18, 18, 18, .1) 100%),
    url("/img/cms/ideas/ambientes/04-livia02.jpg") center / cover no-repeat;
}

@media (max-width: 767px) {
  .mes-product-actions {
    grid-template-columns: 1fr;
  }

  .mes-distributor-box,
  .mes-help-box {
    padding: 24px 20px;
  }

  .mes-where-banner {
    grid-template-columns: 1fr;
  }

  .mes-where-banner__content {
    padding: 32px 24px;
  }

  .mes-where-banner__media {
    min-height: 160px;
  }
}

/* Productos relacionados y demás títulos de sección de la ficha */
#product .section-title,
#product .block-section .section-title {
  border-bottom: 0;
  color: var(--mes-ink-strong);
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

#product .section-title span {
  border-bottom: 0;
}

/* ==========================================================================
   Ficha de producto en móvil (Figma "Ficha producto", 393px): migas, nombre, referencia y
   descripción antes de la foto (panel gris a todo el ancho), configurador en tarjetas con
   muestras en 4 columnas, cajas de ayuda alineadas a la izquierda, pestañas en acordeón
   (custom.js), "Dónde comprar" sin foto y relacionados con las flechas debajo.
   ========================================================================== */
.mes-acc-toggle {
  display: none;
}

@media (max-width: 767px) {
  #product #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  /* Cabecera antes de la foto: las columnas dejan de ser cajas y se ordenan en una sola */
  #product .product-info-row {
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  #product .product-info-row > .col-product-info,
  #product #col-product-info,
  #product .product-information {
    display: contents;
  }

  #product .product-info-row > .col-product-image {
    order: 1;
    padding: 0;
  }

  #product .product-information > .product-actions {
    order: 2;
  }

  #product .product_header_container {
    margin: 0;
    padding: 0;
  }

  #product .breadcrumb.mes-breadcrumb-inline {
    margin: 6px 0 17px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  #product .breadcrumb.mes-breadcrumb-inline li:last-child span {
    font-weight: 500;
  }

  #product .product_header_container .page-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 34px;
  }

  #product .product-reference {
    margin: 0 0 14px;
    line-height: 15px;
    letter-spacing: 0;
  }

  #product .product-reference * {
    line-height: 15px;
  }

  #product .product-prices {
    margin: 0;
    padding: 0;
  }

  #product .product-information > .product-description {
    max-width: none;
    margin: 0 0 18px !important;
    padding: 0;
    font-size: 15px;
    line-height: 22px;
  }

  /* Foto: panel gris de 393x408 de borde a borde */
  #product .col-product-image .images-container {
    margin: 0 -18px;
  }

  #product .col-product-image .product-cover .product-lmage-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 408px;
    padding: 40px 24px;
  }

  #product .col-product-image .product-cover .product-lmage-large picture {
    display: contents;
  }

  #product .col-product-image .product-cover .product-lmage-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Configurador */
  .mes-configure-title {
    margin: 0 0 17px;
    font-size: 20px;
    line-height: 30px;
  }

  .product-variants > .mes-variant-card {
    margin: 0 0 5px;
    padding: 16px;
    border-width: 1px;
    border-radius: 16px;
  }

  .product-variants > .mes-variant-card .mes-variant-card__title {
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 24px;
  }

  .mes-variant-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 16px;
  }

  .mes-variant-tab {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    border-width: 1px;
    font-size: 14px;
  }

  .mes-variant-tab.is-active {
    border-width: 4px;
    background: var(--mes-surface-accent);
  }

  .product-variants .mes-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 8px;
    padding-bottom: 8px;
  }

  .product-variants .mes-swatches .mes-swatch {
    width: auto;
  }

  .product-variants .mes-swatch .mes-swatch__color,
  .product-variants .mes-swatch .input-color {
    width: 44px;
    height: 44px;
  }

  .product-variants .mes-swatch .input-color {
    margin-left: -22px;
  }

  .mes-swatch__name {
    font-size: 12px;
    line-height: 15px;
  }

  .product-variants .mes-swatch .input-color:checked ~ .mes-swatch__name {
    color: var(--mes-ink);
    font-weight: 500;
  }

  .mes-config-summary {
    margin: 0 0 17px;
    padding: 24px;
    border-width: 2px;
    border-radius: 16px;
  }

  .mes-config-summary p {
    font-size: 15px;
  }

  .mes-config-summary__title {
    font-size: 14px !important;
  }

  /* Botones a todo el ancho, 52px */
  .mes-product-actions {
    gap: 6px;
    margin: 0 0 32px;
  }

  #wrapper .mes-product-actions .mes-btn {
    min-height: 52px;
    padding: 0 24px;
    font-weight: 500;
  }

  #wrapper .mes-product-actions .mes-btn--outline {
    border-width: 1.5px;
    border-color: var(--mes-ink);
  }

  /* Cajas de ayuda: alineadas a la izquierda, enlaces uno debajo de otro */
  .mes-help-box,
  .mes-distributor-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 24px;
    border-radius: 16px;
    text-align: left;
  }

  .mes-help-box {
    gap: 12px;
  }

  .mes-distributor-box {
    gap: 8px;
  }

  .mes-help-box__title,
  .mes-distributor-box__title {
    margin: 0;
    font-size: 22px !important;
    line-height: 28px !important;
  }

  .mes-help-box__text {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
  }

  .mes-help-box__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 12px;
  }

  .mes-distributor-box .mes-arrow-link {
    margin-top: 12px;
  }

  #wrapper .mes-help-box .mes-arrow-link,
  #wrapper .mes-distributor-box .mes-arrow-link {
    font-size: 14px;
    font-weight: 400;
  }

  /* Galería: título 24/30 sin flechas y fotos de 302x276 */
  .mes-gallery {
    margin: 32px 0 48px;
  }

  .mes-gallery .mes-related__nav {
    display: none;
  }

  .mes-gallery__slide {
    width: 302px;
    max-width: none;
    height: 276px;
    aspect-ratio: auto;
  }

  /* Pestañas en acordeón (custom.js añade un botón antes de cada panel) */
  #product .product-tabs .nav-tabs {
    display: none;
  }

  #product .product-tabs .tab-content {
    padding: 0;
  }

  #product .product-tabs .tab-content > .tab-pane {
    display: none !important;
    padding: 24px 0;
    border-bottom: 1px solid var(--mes-border);
    opacity: 1;
  }

  #product .product-tabs .tab-content > .tab-pane.mes-acc-open {
    display: block !important;
  }

  #product .product-tabs .product-description,
  #product .product-tabs .tab-content {
    font-size: 15px;
    line-height: 23px;
  }

  .mes-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--mes-border);
    background: none;
    color: var(--mes-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 23px;
    text-align: left;
    cursor: pointer;
  }

  .mes-acc-toggle::after {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  }

  .mes-acc-toggle[aria-expanded="true"]::after {
    background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat;
  }

  .mes-acc-toggle:focus-visible {
    outline: 2px solid var(--mes-ink);
    outline-offset: 2px;
  }

  /* Dónde comprar: tarjeta negra sin foto y dos botones blancos a todo el ancho */
  .mes-where-banner {
    display: block;
    min-height: 0;
    margin: 32px 0 56px;
  }

  .mes-where-banner__media {
    display: none;
  }

  .mes-where-banner__content {
    padding: 24px;
  }

  .mes-where-banner__kicker {
    font-size: 12px;
    letter-spacing: 0;
  }

  #product .mes-where-banner__title {
    font-size: 28px;
    line-height: 34px;
  }

  .mes-where-banner__text {
    margin-bottom: 20px;
    color: #b6b7b9;
    font-size: 15px;
    line-height: 22px;
  }

  .mes-where-banner__actions {
    flex-direction: column;
  }

  #wrapper .mes-where-banner__actions .mes-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    background: #fff;
    color: var(--mes-ink-strong);
  }

  /* Productos relacionados: título centrado en dos líneas, 2 tarjetas y flechas debajo */
  #product .category-products.mes-related {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  #product .category-products.mes-related > .mes-related__head {
    display: contents;
  }

  #wrapper #product .mes-related .mes-related__title,
  #product #wrapper .mes-related .mes-related__title {
    order: 1;
    max-width: 263px;
    margin: 0 auto 28px;
    font-size: 28px;
    line-height: 30px;
    text-align: center;
  }

  #product .category-products.mes-related > .block-content {
    order: 2;
  }

  #product .category-products.mes-related .mes-related__nav {
    order: 3;
    justify-content: center;
    margin-top: 22px;
  }

  #product .mes-related .swiper-slide {
    width: calc(50% - 8px);
  }

  #product .mes-related .product-miniature-grid .thumbnail-container {
    aspect-ratio: 171 / 223.5;
    border-radius: 15px;
  }

  #wrapper #product .mes-related .product-miniature-grid .product-title,
  #product #wrapper .mes-related .product-miniature-grid .product-title a {
    font-size: 15px;
    line-height: 22px;
  }

  #product .mes-related .product-miniature-grid .product-category-name {
    font-size: 12px;
    line-height: 16px;
  }
}

/* ==========================================================================
   Footer (plantillas _partials/_variants/footer-1.tpl y footer-copyrights-1.tpl), según el
   componente "Footer" de Figma: fondo #202122, contenedor de 1536px con 24px de margen,
   padding 64/64, marca de 320px a la izquierda y tres columnas (192/195/258px, hueco 48px).
   Colores de fondo, enlaces y títulos: iqitthemeeditor. Aquí maquetación y tipografía.
   ========================================================================== */
#footer {
  --mes-f-strong: #fff;
  --mes-f-muted: rgba(255, 255, 255, .6);
  --mes-f-faint: rgba(255, 255, 255, .5);
}

#footer .mes-footer > .container,
#footer .mes-footer-bottom > .container {
  max-width: 1536px;
  padding-right: 24px;
  padding-left: 24px;
}

#footer-container-main.mes-footer {
  padding-top: 64px;
  padding-bottom: 64px;
}

.mes-footer > .container > .row:first-child {
  flex-wrap: nowrap;
  gap: 48px;
  margin: 0;
  min-height: 212px; /* alto del bloque superior en el diseño */
}

.mes-footer > .container > .row:first-child > * {
  padding: 0;
}

.mes-footer > .container > .row:empty {
  display: none;
}

/* Marca: logo (36px, 90 %), texto y redes con 31px entre bloques */
.mes-footer .mes-footer__brand {
  flex: 1 1 auto;
  min-width: 0;
}

.mes-footer .mes-footer__brand > * {
  max-width: 320px;
}

.mes-footer .mes-footer__logo {
  display: block;
  margin-bottom: 31px;
  opacity: .9;
}

.mes-footer .mes-footer__logo img {
  display: block;
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1); /* logo oscuro en blanco */
}

#footer .mes-footer .mes-footer__tagline {
  max-width: 276px;
  margin: 0 0 31px;
  color: var(--mes-f-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 22.75px;
}

#footer .mes-footer .social-links._footer {
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 24px;
  line-height: 24px;
}

#footer .mes-footer .social-links._footer li {
  margin: 0;
  padding: 0;
}

#footer .mes-footer .social-links._footer a {
  display: block;
  width: 32px;
  line-height: 24px;
  text-align: center;
  transition: opacity .2s;
}

#footer .mes-footer .social-links._footer a:hover {
  opacity: .6;
}

#footer .mes-footer .social-links._footer i {
  width: auto;
}

/* Columnas de enlaces y contacto */
.mes-footer .block-iqitlinksmanager,
.mes-footer .block-iqitcontactpage {
  flex: 0 0 192px;
  width: 192px;
  max-width: none;
}

.mes-footer .block-iqitlinksmanager + .block-iqitlinksmanager {
  flex-basis: 195px;
  width: 195px;
}

.mes-footer .block-iqitcontactpage {
  flex-basis: 258px;
  width: 258px;
}

#footer .mes-footer .block-title {
  margin: 0 0 20px;
  padding: 0;
  color: var(--mes-f-faint);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 1.2px;
}

.mes-footer .block-links ul,
.mes-footer .mes-contact {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-footer .block-links ul {
  gap: 12px;
}

.mes-footer .mes-contact {
  gap: 8px;
}

#footer .mes-footer .block-links li,
#footer .mes-footer .mes-contact li {
  margin: 0;
  padding: 0;
  color: var(--mes-f-strong);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* Sin el chevron que el tema pone delante de los enlaces del footer */
.mes-footer .block-links li a::before {
  display: none;
}

#footer .mes-footer .block-links li a,
#footer .mes-footer .mes-contact a {
  padding-left: 0;
  font-size: inherit;
  line-height: inherit;
  transition: color .2s;
}

#footer .mes-footer .mes-contact a[href^="tel:"] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Barra inferior: línea del ancho del contenido, 32px de aire y 64px abajo */
#footer-copyrights.mes-footer-bottom {
  padding: 0 0 64px;
  color: var(--mes-f-faint);
  font-size: 14px;
  line-height: 16px;
}

#footer-copyrights.mes-footer-bottom > .container > .row {
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

#footer-copyrights.mes-footer-bottom > .container > .row > * {
  padding: 0;
}

.mes-footer-bottom .copyright-txt p {
  margin: 0;
}

.mes-footer-bottom__links .block-links-inline ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-footer-bottom__links .block-links-inline li {
  margin: 0;
  padding: 0;
}

.mes-footer-bottom__links .block-links-inline li::after {
  display: none;
}

#footer-copyrights .mes-footer-bottom__links a {
  color: var(--mes-f-faint);
  font-size: 14px;
  line-height: 16px;
  transition: color .2s;
}

#footer-copyrights .mes-footer-bottom__links a:hover {
  color: var(--mes-f-strong);
}

/* Tablet: la marca pasa arriba y las tres columnas debajo */
@media (max-width: 1199px) {
  .mes-footer > .container > .row:first-child {
    flex-wrap: wrap;
    min-height: 0;
    row-gap: 40px;
  }

  .mes-footer .mes-footer__brand {
    flex: 0 0 100%;
  }
}

/* Móvil: columnas apiladas (el tema las convierte en desplegables) */
@media (max-width: 767px) {
  #footer-container-main.mes-footer {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  #footer .mes-footer > .container,
  #footer .mes-footer-bottom > .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mes-footer > .container > .row:first-child {
    row-gap: 0;
    gap: 0;
    min-height: 0;
  }

  .mes-footer .mes-footer__brand {
    margin-bottom: 32px;
  }

  .mes-footer .block-iqitlinksmanager,
  .mes-footer .block-iqitlinksmanager + .block-iqitlinksmanager,
  .mes-footer .block-iqitcontactpage {
    flex: 0 0 100%;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  #footer .mes-footer .block-toggle > .block-title {
    margin: 0;
  }

  #footer .mes-footer .block-toggle._toggled > .block-content {
    padding-top: 16px;
  }

  #footer-copyrights.mes-footer-bottom {
    padding-bottom: 40px;
  }

  #footer-copyrights.mes-footer-bottom > .container > .row {
    gap: 16px;
    padding-top: 24px;
    text-align: center;
  }

  .mes-footer-bottom__links .block-links-inline ul {
    justify-content: center;
  }
}

/* Footer en móvil (Figma "Home Mobile"): columnas siempre desplegadas, sin acordeón */
@media (max-width: 767px) {
  #footer-container-main.mes-footer {
    padding-bottom: 72px;
  }

  .mes-footer .mes-footer__brand {
    margin-bottom: 36px;
  }

  .mes-footer .mes-footer__brand > * {
    max-width: none;
  }

  #footer .mes-footer .mes-footer__tagline {
    max-width: 320px;
  }

  .mes-footer .block-iqitlinksmanager,
  .mes-footer .block-iqitlinksmanager + .block-iqitlinksmanager,
  .mes-footer .block-iqitcontactpage {
    padding: 0;
    border-top: 0;
  }

  .mes-footer .block-iqitlinksmanager,
  .mes-footer .block-iqitlinksmanager + .block-iqitlinksmanager {
    margin-bottom: 24px;
  }

  #footer .mes-footer .block-toggle > .block-title {
    margin: 0 0 19px;
    pointer-events: none;
  }

  #footer .mes-footer .block-toggle > .block-title::after,
  #footer .mes-footer .block-toggle > .block-title i,
  #footer .mes-footer .block-toggle > .block-title span::after {
    display: none;
  }

  #footer .mes-footer .block-toggle > .block-content,
  #footer .mes-footer .block-toggle._toggled > .block-content {
    display: block !important;
    padding-top: 0;
  }

  #footer-copyrights.mes-footer-bottom {
    padding-bottom: 32px;
  }

  #footer-copyrights.mes-footer-bottom > .container > .row {
    gap: 24px;
    padding-top: 32px;
  }
}

/* ==========================================================================
   iqitelementor: las secciones "a ancho completo" miden window.innerWidth
   (incluye la barra de scroll) y provocaban scroll horizontal.
   ========================================================================== */
#wrapper {
  overflow-x: clip;
}

/* ==========================================================================
   Galerías con visor (.mes-lightbox, ver custom.js): rótulo "Ver detalle" al pasar el ratón
   ========================================================================== */
.mes-lightbox .elementor-image a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.mes-lightbox .elementor-image img {
  display: block;
  width: 100%;
  transition: transform .4s ease;
}

.mes-lightbox .elementor-image a::after {
  content: "Ver detalle";
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transition: opacity .25s ease;
}

.mes-lightbox .elementor-image a:hover img,
.mes-lightbox .elementor-image a:focus-visible img {
  transform: scale(1.04);
}

.mes-lightbox .elementor-image a:hover::after,
.mes-lightbox .elementor-image a:focus-visible::after {
  opacity: 1;
}

@media (hover: none) {
  .mes-lightbox .elementor-image a::after {
    opacity: 1;
  }
}

.mes-lb-lock {
  overflow: hidden;
}

.mes-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  background: rgba(15, 15, 17, .92);
}

.mes-lb.is-open {
  display: flex;
}

.mes-lb__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.mes-lb__img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.mes-lb__caption {
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.mes-lb__caption:empty {
  display: none;
}

.mes-lb button {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}

.mes-lb button:hover,
.mes-lb button:focus-visible {
  opacity: 1;
}

.mes-lb__close {
  top: 14px;
  right: 20px;
  font-size: 40px;
}

.mes-lb__nav {
  top: 50%;
  padding: 10px;
  font-size: 56px;
  transform: translateY(-50%);
}

.mes-lb__nav--prev { left: 12px; }
.mes-lb__nav--next { right: 12px; }
.mes-lb--single .mes-lb__nav { display: none; }

@media (max-width: 767px) {
  .mes-lb {
    padding: 50px 10px;
  }

  .mes-lb__nav {
    top: auto;
    bottom: 6px;
    transform: none;
    font-size: 44px;
  }
}

/* ==========================================================================
   Páginas de acabados (categoría CMS 2). Diseño Figma "Acabados":
   columna izquierda de 320px con las páginas de la categoría (cms/page.tpl) y, a la derecha,
   miga de pan + contenido de iqitelementor (h1, etiqueta, intro y rejillas de muestras de 4 columnas).
   ========================================================================== */
.mes-acab {
  display: flex;
  align-items: flex-start;
  gap: 53px;
  padding-bottom: 124px;
}

.mes-acab__nav {
  flex: 0 0 323px;
  width: 323px;
}

.mes-acab__nav-box {
  min-height: 483px;
  padding: 45px 28px 28px;
  border-radius: 20px;
  background: var(--mes-surface);
}

#wrapper .mes-acab__nav-title {
  display: block;
  margin: 0 0 26px;
  color: var(--mes-ink);
  font-size: 32px;
  font-weight: 400;
  line-height: 24px;
}

.mes-acab__nav-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#wrapper .mes-acab__nav-list a {
  color: var(--mes-ink-strong);
  font-size: 16px;
  line-height: 24px;
  transition: color .2s;
}

#wrapper .mes-acab__nav-list a:hover,
#wrapper .mes-acab__nav-list a.is-active {
  color: var(--mes-accent);
  font-weight: 500;
}

.mes-acab__main {
  flex: 1 1 auto;
  min-width: 0;
}

.mes-acab__main .breadcrumb.mes-breadcrumb-inline {
  margin-bottom: 24px;
}

.mes-acab__main #content {
  margin: 0;
  padding: 0;
}

/* Logos y banner: ocupan todo el contenedor, también bajo la columna lateral (320 + 54px) */
.mes-acab__main .mes-acab-wide {
  width: calc(100% + 376px);
  margin-left: -376px;
}

.mes-acab-intro {
  max-width: 738px;
}

.mes-acab-intro p:last-child {
  margin-bottom: 0;
}

/* Rejilla de muestras: 4 columnas de 264px con 19px de hueco (2 en móvil) */
.mes-swatch-grid > .elementor-container > .elementor-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 19px;
}

.mes-swatch-grid > .elementor-container > .elementor-row > .elementor-column {
  width: auto !important;
}

.mes-swatch .elementor-image-box-img {
  position: relative;
  display: block;
  width: 100% !important;
  margin: 0 0 22px !important;
  overflow: hidden;
  border-radius: 20px;
}

/* Borde interior fino: las muestras blancas no se pierden sobre el fondo */
.mes-swatch .elementor-image-box-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 20px;
  pointer-events: none;
}

.mes-swatch .elementor-image-box-img img {
  display: block;
  width: 100%;
  aspect-ratio: 264 / 281.6;
  object-fit: cover;
  transition: transform .4s ease;
}

.mes-swatch .elementor-image-box-img a:hover img,
.mes-swatch .elementor-image-box-img a:focus-visible img {
  transform: scale(1.05);
}

.mes-swatch .elementor-image-box-title,
#wrapper .mes-swatch .elementor-image-box-title a {
  margin: 0;
  color: var(--mes-ink-strong);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Página principal: tarjetas de material con su descripción */
.mes-swatch--material .elementor-image-box-title,
#wrapper .mes-swatch--material .elementor-image-box-title a {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.mes-swatch--material .elementor-image-box-description {
  margin-top: 4px;
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 1199px) {
  .mes-acab {
    gap: 32px;
  }

  .mes-acab__main .mes-acab-wide {
    width: calc(100% + 272px);
    margin-left: -272px;
  }

  .mes-acab__nav {
    flex-basis: 240px;
    width: 240px;
  }

  .mes-swatch-grid > .elementor-container > .elementor-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Móvil: el menú de acabados pasa arriba como fila deslizable de pastillas */
@media (max-width: 767px) {
  .mes-acab {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 56px;
  }

  .mes-acab__main .mes-acab-wide {
    width: 100%;
    margin-left: 0;
  }

  .mes-acab__nav {
    position: static;
    flex: none;
    order: 2;
    width: 100%;
  }

  .mes-acab__main {
    display: contents;
  }

  .mes-acab__main .breadcrumb.mes-breadcrumb-inline {
    order: 1;
    margin-bottom: 0;
  }

  .mes-acab__main #content {
    order: 3;
  }

  .mes-acab__nav-box {
    min-height: 0;
    padding: 0;
    background: none;
  }

  #wrapper .mes-acab__nav-title {
    display: none;
  }

  .mes-acab__nav-list {
    flex-direction: row;
    gap: 8px;
    margin: 0 -15px;
    padding: 0 15px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mes-acab__nav-list::-webkit-scrollbar {
    display: none;
  }

  #wrapper .mes-acab__nav-list a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--mes-surface);
    white-space: nowrap;
  }

  #wrapper .mes-acab__nav-list a.is-active {
    background: var(--mes-ink);
    color: #fff;
  }

  .mes-swatch-grid > .elementor-container > .elementor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .mes-swatch .elementor-image-box-img {
    margin-bottom: 10px !important;
  }

  .mes-swatch .elementor-image-box-title,
  #wrapper .mes-swatch .elementor-image-box-title a {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Acabados en móvil (sin diseño móvil en el Figma: mismas reglas que las demás páginas móviles).
   Tipografías, márgenes y banner van en Elementor; aquí el margen lateral de 18px, los logos en
   2 columnas de 100px y el banner con radio 10 y botones en una fila. */
@media (max-width: 767px) {
  #cms #inner-wrapper:has(.mes-acab) {
    padding-right: 18px;
    padding-left: 18px;
  }

  /* Sin esto el contenido toma su ancho mínimo y sobresale 16px por la derecha */
  .mes-acab__main #content {
    width: 100%;
    min-width: 0;
  }

  /* Pastillas del menú hasta el borde de la pantalla */
  .mes-acab__nav-list {
    margin: 0 -18px;
    padding: 0 18px 4px;
  }

  .mes-acab .mes-logo-grid > .elementor-container {
    margin: 0;
  }

  .mes-acab .mes-logo-grid + .mes-logo-grid {
    margin-top: 16px;
  }

  .mes-acab .mes-logo-grid > .elementor-container > .elementor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .mes-acab .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column {
    width: auto;
  }

  .mes-acab .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 0;
  }

  .mes-acab .mes-logo-grid .elementor-column:not(.mes-logo-card) {
    display: none;
  }

  .mes-acab .mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap {
    height: 100px;
    padding: 8px;
    border: 2px solid var(--mes-border);
    border-radius: 10px;
  }

  .mes-acab .mes-cta-banner > .elementor-column-wrap {
    border-radius: 10px;
  }

  .mes-acab .mes-cta-banner .mes-btn-row > .elementor-container > .elementor-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  #wrapper .mes-acab .mes-cta-banner .elementor-button {
    padding: 9.5px 18px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Cabecera: flechas finas y lupa de trazo fino.
   Altura, tamaño de letra y espaciado: iqitthemeeditor (h_padding, hm_height, hm_typo, hm_padding).
   ========================================================================== */
#desktop-header #cbp-hrmenu > ul > li > a,
#desktop-header #cbp-hrmenu > ul > li > span {
  font-weight: 400;
}

/* Flecha de los desplegables: chevron fino en lugar del icono de FontAwesome */
#desktop-header #cbp-hrmenu .cbp-submenu-aindicator {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-left: 4px;
  vertical-align: 2px;
  font-size: 0;
}

#desktop-header #cbp-hrmenu .cbp-submenu-aindicator::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease, top .2s ease;
}

#desktop-header #cbp-hrmenu .cbp-hropen .cbp-submenu-aindicator::before {
  top: 2px;
  transform: rotate(-135deg);
}

/* Lupa de trazo fino */
#desktop-header .header-search-btn .icon {
  width: 24px;
  height: 24px;
  font-size: 0;
}

#desktop-header .header-search-btn .icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 18 18' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 3 18 18' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cabecera fija al hacer scroll (iqitthemeeditor: h_sticky = header, fondo blanco): línea sutil para separarla del contenido */
#desktop-header.stuck-header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .04);
}

/* ==========================================================================
   Cabecera móvil (componente "Navegación mobile" de Figma): 72px, logo de 201px a la
   izquierda y lupa y menú (botones de 44px, 8px de hueco) a la derecha; sin cuenta.
   ========================================================================== */
#mobile-header .container {
  padding-right: 18px;
  padding-left: 18px;
}

/* Barra de 72px exactos (el tema le pone 17px de relleno) y sin línea inferior, como en Figma */
#mobile-header {
  border-bottom: 0;
}

#mobile-header .mobile-main-bar {
  padding-top: 0;
  padding-bottom: 0;
}

#mobile-header .row-mobile-header {
  flex-wrap: nowrap;
  gap: 8px;
  height: 72px;
}

#mobile-header .col-mobile-logo {
  order: -1;
  margin-right: auto;
  text-align: left !important;
}

#mobile-header .col-mobile-logo a {
  display: inline-block;
}

#mobile-header .col-mobile-logo img {
  display: block;
  width: 201px;
  max-width: 100%;
  height: auto;
}

#mobile-header .col-mobile-btn-search {
  order: 1;
}

#mobile-header .col-mobile-btn-menu {
  order: 2;
}

#mobile-header .col-mobile-btn-account {
  display: none;
}

#mobile-header .m-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--mes-ink);
}

#mobile-header .m-nav-btn span {
  display: none;
}

#mobile-header .m-nav-btn i {
  width: 28px;
  height: 28px;
  font-size: 0;
}

#mobile-header .m-nav-btn i::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--mes-icon) center / contain no-repeat;
  mask: var(--mes-icon) center / contain no-repeat;
}

#mobile-header .col-mobile-btn-search i {
  --mes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12.5' cy='12.5' r='9'/%3E%3Cpath d='M25 25l-5.9-5.9'/%3E%3C/svg%3E");
}

#mobile-header .col-mobile-btn-menu i {
  --mes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 5h24M2 14h24M2 23h24'/%3E%3C/svg%3E");
}

/* Home: la cabecera va transparente sobre la foto del banner, con logo e iconos en blanco */
@media (max-width: 991px) {
  #index #wrapper {
    padding-top: 0;
  }

  #index #mobile-header {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 30;
    background: transparent;
  }

  #index #mobile-header,
  #index #mobile-header #mobile-header-sticky:not(.stuck-header) {
    border-bottom: 0;
    background: transparent;
  }

  #index #mobile-header-sticky:not(.stuck-header) .col-mobile-logo img {
    filter: brightness(0) invert(1);
  }

  #index #mobile-header-sticky:not(.stuck-header) .m-nav-btn {
    color: #fff;
  }
}

/* ==========================================================================
   Submenús de la cabecera (iqitmegamenu), sin imágenes: panel blanco con línea fina, columnas
   separadas por divisores, título pequeño en mayúsculas grises (como el pie) y enlaces en tinta
   con una flecha que aparece al pasar el ratón.
   ========================================================================== */
#desktop-header #cbp-hrmenu .cbp-hrsub {
  border-top: 1px solid var(--mes-border);
  box-shadow: 0 20px 32px -24px rgba(18, 18, 18, .22);
}

#desktop-header #cbp-hrmenu .cbp-hrsub-inner {
  padding: 36px 0 40px;
  border: 0;
  background: #fff;
}

#desktop-header #cbp-hrmenu .iqitmegamenu-submenu-container {
  max-width: 1100px;
}

/* Columnas con divisor fino a la izquierda (salvo la primera) */
#desktop-header #cbp-hrmenu .cbp-categories-row > [class*="col-"],
#desktop-header #cbp-hrmenu .menu_row > .cbp-menu-column {
  padding-right: 32px;
  padding-left: 32px;
  border-left: 1px solid var(--mes-border);
}

#desktop-header #cbp-hrmenu .cbp-categories-row > [class*="col-"]:first-child,
#desktop-header #cbp-hrmenu .menu_row > .cbp-menu-column:first-child {
  border-left: 0;
}

/* Sin el chevron del tema */
#desktop-header #cbp-hrmenu .cbp-links li a::before {
  display: none;
}

/* Títulos de columna: pequeños, en mayúsculas y gris */
#desktop-header #cbp-hrmenu .cbp-column-title {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  color: var(--mes-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color .2s;
}

#desktop-header #cbp-hrmenu a.cbp-column-title:hover {
  color: var(--mes-ink-strong);
}

/* Enlace "Ver todas" al final de cada columna de categoría */
#desktop-header #cbp-hrmenu a.cbp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--mes-ink);
  font-size: 16px;
  line-height: 22px;
  transition: color .2s;
}

#desktop-header #cbp-hrmenu a.cbp-view-all:hover {
  color: #000;
}

/* Flecha de Font Awesome (fa-arrow-right) */
#desktop-header #cbp-hrmenu a.cbp-view-all::after {
  content: "\f061";
  font-family: 'Font Awesome 7 PRO';
  font-weight: 300;
  font-size: 14px;
  transition: transform .2s;
}

#desktop-header #cbp-hrmenu a.cbp-view-all:hover::after {
  transform: translateX(3px);
}

#desktop-header #cbp-hrmenu .cbp-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

#desktop-header #cbp-hrmenu .cbp-links li {
  margin: 0;
  padding: 0;
}

/* Enlaces en tinta; al pasar el ratón se desplazan un poco y aparece una flecha */
#desktop-header #cbp-hrmenu .cbp-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--mes-ink);
  font-size: 16px;
  line-height: 22px;
  transition: color .2s, transform .2s;
}

#desktop-header #cbp-hrmenu .cbp-links li a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}

#desktop-header #cbp-hrmenu .cbp-links li a:hover {
  color: #000;
  transform: translateX(2px);
}

#desktop-header #cbp-hrmenu .cbp-links li a:hover::after {
  opacity: 1;
  transform: none;
}

/* Acabados para mesas (6 acabados) en dos columnas, para que el panel sea más bajo */
#desktop-header #cbp-hrmenu .cbp-hrmenu-tab-3 .menu_row > .menu-element-id-2 {
  flex: 0 0 44%;
  max-width: 44%;
}

#desktop-header #cbp-hrmenu .cbp-hrmenu-tab-3 .cbp-column-title {
  white-space: nowrap;
}

#desktop-header #cbp-hrmenu .cbp-hrmenu-tab-3 .menu_row > .menu-element-id-3 {
  flex: 0 0 32%;
  max-width: 32%;
}

#desktop-header #cbp-hrmenu .cbp-hrmenu-tab-3 .menu_row > .menu-element-id-4 {
  flex: 0 0 24%;
  max-width: 24%;
}

#desktop-header #cbp-hrmenu .cbp-hrmenu-tab-3 .menu-element-id-2 .cbp-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

/* Home: con un submenú abierto, la cabecera transparente pasa a blanca para unirse al panel */
@media (min-width: 992px) {
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen),
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) #iqitmegamenu-horizontal,
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) .header-top {
    background: #fff;
    transition: background-color .2s;
  }

  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) #desktop_logo img {
    filter: none;
  }

  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) #cbp-hrmenu > ul > li > a,
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) #cbp-hrmenu > ul > li > span,
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) .col-header-right a,
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) .col-header-right button,
  #index #desktop-header:not(.stuck-header):has(.cbp-hropen) .col-header-right i {
    color: var(--mes-ink);
  }
}

/* Ficha de producto en móvil: títulos más contenidos que en escritorio */
@media (max-width: 767px) {
  #product .product_header_container .page-title {
    font-size: 34px;
  }

  .mes-configure-title {
    font-size: 17px;
  }

  .mes-help-box__title,
  .mes-distributor-box__title {
    font-size: 20px;
    line-height: 26px;
  }

  #product .mes-where-banner__title,
  #product .section-title,
  #product .block-section .section-title {
    font-size: 26px;
    line-height: 32px;
  }
}

/* ==========================================================================
   Miniaturas de producto (diseño Figma "Parrilla Mesinor"): tarjeta gris
   redondeada 4:5, etiqueta en píldora, nombre a 20px y "+ colores".
   Columnas, alineación y tamaño del nombre: iqitthemeeditor (pl_grid_*).
   ========================================================================== */
.product-miniature-grid .thumbnail-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: var(--mes-surface);
}

.product-miniature-grid .thumbnail-container .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10%;
}

.product-miniature-grid .thumbnail-container .product-thumbnail picture {
  display: contents;
}

.product-miniature-grid .thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}

/* Hover: sin sombra (iqitthemeeditor, pl_grid_bh_boxshadow) y la foto crece un poco dentro de la tarjeta */
@media (hover: hover) {
  .product-miniature-grid:hover .thumbnail-container img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-miniature-grid .thumbnail-container img {
    transition: none;
  }

  .product-miniature-grid:hover .thumbnail-container img {
    transform: none;
  }
}

/* La segunda imagen (cambio al pasar el ratón) ocupa el mismo hueco */
.product-miniature-grid .thumbnail-container .product-thumbnail-second {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
}

.product-miniature-grid .product-flags {
  top: 18px;
  left: 15px;
}

.product-miniature-grid .product-flags .product-flag {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 30px;
  line-height: 18px;
}

/* Etiquetas del módulo iqitproductflags ("Personalizable"): el texto y los colores se configuran
   en el módulo; el tema las pinta bajo el nombre y aquí suben a la esquina de la foto */
.product-miniature-grid {
  position: relative;
}

.product-miniature-grid .product-campagains {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin: 0 !important;
}

#wrapper .product-miniature-grid .product-campagains .product-flags__flag {
  padding: 4px 16px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 767px) {
  .product-miniature-grid .product-campagains {
    top: 7px;
    left: 7px;
  }

  #wrapper .product-miniature-grid .product-campagains .product-flags__flag {
    padding: 3px 9px;
    font-size: 12px;
    line-height: 15px;
  }
}

/* En el carrusel de la home el diseño no lleva la etiqueta (el módulo le pone d-flex con !important) */
.mes-home-products .product-campagains {
  display: none !important;
}

.product-miniature-grid .product-functional-buttons,
.product-miniature-grid .product-availability,
.product-miniature-grid .product-category-name,
.product-miniature-grid .product-reference {
  display: none !important;
}

.product-miniature-grid .product-description {
  padding: 14px 4px 0;
  text-align: left;
}

.product-miniature-grid .product-title,
.product-miniature-grid .product-title a {
  margin: 0;
  color: var(--mes-ink-strong);
  font-weight: 500;
  line-height: 1.48;
}

/* Muestras de color de la miniatura: el diseño solo indica que hay colores */
.product-miniature-grid .products-variants .variant-links {
  display: none;
}

.product-miniature-grid .products-variants::before {
  content: "+ colores";
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 1.54;
}

/* ==========================================================================
   Listado de categoría: título, barra superior y filtros ocultables
   ========================================================================== */
/* Tamaño y color de los títulos de página: iqitthemeeditor (c_page_title_*); el peso 500 del diseño no está en el editor */
#content-wrapper .page-title {
  font-weight: 500;
}
@media(max-width:992px){
  #content-wrapper .page-title {
    font-size: 32px;
    padding-bottom: 0;
  }
}

#category #js-product-list-header .page-title,
#category .page-title {
  line-height: 1.05;
}

/* Sin selector cuadrícula/lista ni contador */
#category #js-product-list-top .view-switcher,
#category #js-product-list-top .showing {
  display: none !important;
}

#wrapper .mes-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--mes-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .35px;
  text-transform: uppercase;
  cursor: pointer;
}

#wrapper .mes-filters-toggle:focus-visible {
  outline: 2px solid var(--mes-ink);
  outline-offset: 4px;
}

/* Con los filtros abiertos, el icono pasa a un xmark de Font Awesome */
.mes-filters-open .mes-filters-toggle__icon {
  display: none;
}

.mes-filters-open #wrapper .mes-filters-toggle::after {
  content: "\f00d";
  display: inline-block;
  width: 16px;
  font-family: 'Font Awesome 7 PRO';
  font-size: 16px;
  font-weight: 300;
  line-height: 16px;
  text-align: center;
}

/* Parrilla: 3 columnas con los filtros cerrados, 2 con los filtros abiertos o en pantallas medianas */
#category #js-product-list .products.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 41px 15px;
  margin: 0;
}

#category #js-product-list .products.row > .js-product-miniature-wrapper {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
}

@media (min-width: 992px) {
  #category #js-product-list .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #category.mes-filters-open #js-product-list .products.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  #category.mes-filters-open #js-product-list .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Botón "Filtrar" a la derecha de la barra, tras el selector de orden */
#category #js-product-list-top .mes-filters-toggle-w {
  order: 10;
  margin-left: 16px;
}


@media (max-width: 767px) {
  #category #js-product-list-header .page-title,
  #category .page-title {
    font-size: 34px;
  }

  #category #js-product-list .products.row {
    gap: 28px 12px;
  }

  .product-miniature-grid .product-flags .product-flag {
    min-height: 0;
    padding: 3px 8px;
    font-size: 12px;
  }
}

/* Listado: sin las líneas del tema alrededor del título y de la barra superior */
#category .page-title,
#category #js-product-list-top {
  border-top: 0;
  border-bottom: 0;
}

#category #js-product-list-top {
  margin-bottom: 16px;
  padding: 0;
}

/* Nombre de la miniatura (gana a la regla de enlaces a:link del tema) */
#wrapper .product-miniature-grid a.product-title {
  color: var(--mes-ink-strong);
}

#wrapper .product-miniature-grid a.product-title:hover {
  color: #000;
}

@media (max-width: 767px) {
  #wrapper .product-miniature-grid .product-title {
    font-size: 16px;
  }
}

/* Diseño "Parrilla Mesinor": sin orden ni productos por página, solo "Filtrar" */
#category #js-product-list-top .products-sort-nb-dropdown {
  display: none !important;
}

/* Migas centradas sobre el título, a 29px de él como en el diseño */
#category nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-bottom: 1px;
  margin-left: auto;
}

/* Nombre y "+ colores" a 4px del borde de la foto (gana al relleno de 10px del editor del tema) */
#category .product-miniature-grid .product-description {
  padding: 14px 4px 0;
}

#category nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

/* "Filtrar" en la misma línea que el título: #main pasa a rejilla de dos columnas y la barra
   superior (dentro de #products) sube a la fila del título */
#category #main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
}

#category #main > *,
#category #products > * {
  grid-column: 1 / -1;
  min-width: 0;
}

#category #products {
  display: contents;
}

#category #main > #js-product-list-header {
  grid-row: 1;
  grid-column: 1;
}

#category #products > div:has(> #js-product-list-top) {
  grid-row: 1;
  grid-column: 2;
}

#category #js-product-list-header .page-title {
  margin-bottom: 0;
  padding-bottom: 0;
}

#category #js-product-list-top {
  margin-bottom: 0;
}

#category #js-product-list-top .mes-filters-toggle-w {
  margin-left: 0;
}

#category #js-product-list {
  margin-top: 40px;
}

/* Filtros en escritorio: custom.js mete #left-column dentro de #main y la rejilla gana una
   primera columna (0 cerrada, 304px abierta) que solo ocupa las filas de la parrilla; el título,
   "Filtrar" y el bloque SEO no se mueven. El contenido de la columna mantiene su ancho para que
   no se recoloque durante la animación. */
@media (min-width: 768px) {
  #category #content-wrapper.left-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  /* Filas: título | filtros activos | parrilla. La parrilla es 1fr para que, si los filtros son
     más altos que los productos, el sobrante quede bajo la parrilla y no entre filtros activos
     y miniaturas. */
  #category #main {
    grid-template-columns: 0px minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    column-gap: 0;
    transition: grid-template-columns .45s cubic-bezier(.4, 0, .2, 1);
  }

  #category.mes-filters-open #main {
    grid-template-columns: 304px minmax(0, 1fr) auto;
  }

  #category #main > #js-product-list-header {
    grid-column: 1 / 3;
  }

  #category #main > #products > div:has(> #js-product-list-top) {
    grid-column: 3;
  }

  #category #main > #products > div:has(> #js-active-search-filters),
  #category #main > #products > div:has(> #js-product-list),
  #category #main > #products > #infinity-loader-icon,
  #category #main > #products > div:has(> #js-product-list-bottom) {
    grid-column: 2 / -1;
  }

  #category #main > #left-column {
    grid-row: 2 / span 2;
    grid-column: 1;
    align-self: start;
    width: auto;
    max-width: none;
    margin-top: 24px;
    padding: 0 24px 0 0;
    overflow: hidden;
    transition: opacity .3s ease, transform .45s cubic-bezier(.4, 0, .2, 1);
  }

  #category #main > #left-column > * {
    min-width: 280px;
  }

  #category:not(.mes-filters-open) #main > #left-column {
    opacity: 0;
    transform: translateX(-24px);
    visibility: hidden;
    transition-property: opacity, transform, visibility;
    transition-delay: 0s, 0s, .45s;
  }

  /* Mientras custom.js no ha movido la columna, no ocupa sitio */
  #category #inner-wrapper > .row > #left-column {
    display: none;
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  #category #main,
  #category #main > #left-column {
    transition: none;
  }
}

/* ==========================================================================
   Panel de filtros (columna izquierda): categorías + facetas con el estilo de la web
   ========================================================================== */
#category #left-column .block-categories,
#category #left-column #search_filters .facet {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--mes-border);
}

#category #left-column .block-categories {
  padding-top: 4px;
  border-top: 0;
}

#category #left-column .block-title,
#category #left-column #search_filters .facet-title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .35px;
  text-transform: uppercase;
}

/* El árbol de categorías se titula "Inicio" (categoría raíz): se muestra como "Categorías" */
#category #left-column .block-categories .block-title span {
  display: none;
}

#category #left-column .block-categories .block-title::before {
  content: "Categorías";
}

#category #left-column .category-sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

#category #left-column .category-sub-menu li {
  position: relative;
  padding: 0;
}

#category #left-column .category-sub-menu a {
  display: block;
  padding: 6px 28px 6px 0;
  color: var(--mes-ink);
  font-size: 15px;
  line-height: 20px;
}

#category #left-column .category-sub-menu a::before {
  display: none;
}

#category #left-column .category-sub-menu a:hover {
  color: var(--mes-ink-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#category #left-column .category-sub-menu .category-sub-menu {
  padding: 2px 0 6px 14px;
}

#category #left-column .category-sub-menu .category-sub-menu a {
  color: var(--mes-muted);
  font-size: 14px;
}

#category #left-column .category-sub-menu .collapse-icons {
  position: absolute;
  top: 6px;
  right: 0;
  width: 20px;
  height: 20px;
  color: var(--mes-muted);
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}

/* Facetas */
#category #left-column #search_filters {
  padding: 0;
  border: 0;
  background: none;
}

#category #left-column #search_filters .facet ul {
  margin: 0;
  padding: 0;
}

#category #left-column #search_filters .facet li {
  margin: 0;
  padding: 5px 0;
}

#category #left-column #search_filters .facet-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

#category #left-column #search_filters .facet-label a {
  margin: 0;
  color: var(--mes-ink);
  font-size: 15px;
  line-height: 20px;
}

#category #left-column #search_filters .facet-label .magnitude {
  color: var(--mes-muted);
  font-size: 13px;
}

/* Casillas: cuadradas redondeadas con borde gris; marcadas en negro con el check blanco */
#category #left-column #search_filters .custom-checkbox,
#category #left-column #search_filters .custom-radio {
  position: relative;
  flex: none;
  margin: 0;
}

#category #left-column #search_filters .custom-checkbox > span:not(.color),
#category #left-column #search_filters .custom-radio > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--mes-faint);
  border-radius: 6px;
  background: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}

#category #left-column #search_filters .custom-radio > span {
  border-radius: 50%;
}

#category #left-column #search_filters .facet-label:hover .custom-checkbox > span:not(.color) {
  border-color: var(--mes-ink);
}

#category #left-column #search_filters .custom-checkbox input:checked + span:not(.color),
#category #left-column #search_filters .facet-label.active .custom-checkbox > span:not(.color),
#category #left-column #search_filters .custom-radio input:checked + span {
  border-color: var(--mes-ink);
  background: var(--mes-ink);
}

#category #left-column #search_filters .custom-checkbox .checkbox-checked {
  display: none;
  margin: 0;
  color: #fff;
  font-size: 11px;
}

#category #left-column #search_filters .custom-checkbox input:checked + span .checkbox-checked,
#category #left-column #search_filters .facet-label.active .checkbox-checked {
  display: block;
}

#category #left-column #search_filters .custom-checkbox input:focus-visible + span {
  outline: 2px solid var(--mes-ink);
  outline-offset: 2px;
}

/* Colores: círculos como las muestras del configurador */
#category #left-column #search_filters .facet_color {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#category #left-column #search_filters .facet_color li {
  padding: 0;
}

#category #left-column #search_filters .facet_color .color {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 2px solid var(--mes-border);
  border-radius: 50%;
  outline: 0;
  box-shadow: none;
}

#category #left-column #search_filters .facet_color .facet-label:hover .color {
  border-color: var(--mes-muted);
}

#category #left-column #search_filters .facet_color input:checked + .color,
#category #left-column #search_filters .facet_color .facet-label.active .color {
  /* Aro dentro de la muestra: la columna de filtros recorta lo que sobresale */
  border-color: var(--mes-ink);
  box-shadow: inset 0 0 0 2px #fff;
}

/* Desplegable y deslizador de precio */
#category #left-column #search_filters .facet-dropdown .select-title {
  border: 2px solid var(--mes-border);
  border-radius: 10px;
  background: #fff;
  color: var(--mes-ink);
  font-size: 15px;
}

#category #left-column #search_filters .ui-slider {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: var(--mes-border);
}

#category #left-column #search_filters .ui-slider .ui-slider-range {
  background: var(--mes-ink);
}

#category #left-column #search_filters .ui-slider .ui-slider-handle {
  top: -7px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--mes-ink);
  border-radius: 50%;
  background: #fff;
}

/* Filtros activos: píldoras sobre la parrilla */
#category .active_filters {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

#category .active_filters #active-search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#category .active_filters .active-filter-title {
  margin: 0 4px 0 0;
  color: var(--mes-muted);
  font-size: 14px;
  font-weight: 400;
}

#category .active_filters ul {
  display: contents;
}

#category .active_filters .filter-block {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

#category .active_filters .filter-block .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 30px;
  background: var(--mes-surface);
  color: var(--mes-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

#category .active_filters .filter-block .btn:hover {
  background: var(--mes-border);
}

#category .active_filters .filter-block .fa-times {
  color: var(--mes-muted);
  font-size: 12px;
}

#category .active_filters .js-search-filters-clear-all {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--mes-ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Móvil: botón "Filtrar" igual que en escritorio y botones del panel en píldora */
#category #search_filter_toggler {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--mes-ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .35px;
  text-transform: uppercase;
}

#category #search_filter_toggler .fa-filter {
  display: none;
}

#category #search_filter_toggler::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23202122' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 5h14M3 10h14M3 15h14'/%3E%3Ccircle cx='7' cy='5' r='1.6' fill='%23fff'/%3E%3Ccircle cx='13' cy='10' r='1.6' fill='%23fff'/%3E%3Ccircle cx='9' cy='15' r='1.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Borrar todo" y "OK": misma píldora de 44px y mismo ancho (el tema usa btn-sm y btn-lg), sin iconos */
#search_filter_controls {
  display: flex;
  gap: 8px;
  padding-right: 0;
  padding-left: 0;
}

#search_filters_wrapper #search_filter_controls .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--mes-ink-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-transform: none;
}

#search_filter_controls .btn i {
  display: none;
}

#search_filter_controls .btn-primary {
  background: var(--mes-ink-strong);
  color: #fff;
}

#search_filter_controls .btn-secondary {
  border-color: var(--mes-border);
  background: #fff;
  color: var(--mes-ink);
}

/* ==========================================================================
   Bloque SEO al pie de la categoría (iqitelementor, displayCategoryElementor)
   Plantilla Elementor "Categoría - Bloque SEO": márgenes, anchos de columna, tipografías
   (también las de móvil) y radio de la foto van en Elementor. Aquí solo lo que el editor
   no tiene: separación entre párrafos y proporción de la foto.
   ========================================================================== */
#category .mes-cat-seo .elementor-text-editor p {
  margin: 0 0 10px;
}

#category .mes-cat-seo .elementor-image img {
  width: 100%;
  aspect-ratio: 553 / 444;
  object-fit: cover;
}

/* ==========================================================================
   Listado de categoría en móvil (Figma "Parrilla/catálogo Mobile", 393px): márgenes de 18px,
   miga a la izquierda, título 32/34 con "Filtrar" en su línea, tarjetas de 171x223 (15px de
   hueco) y bloque SEO y logos en una columna.
   ========================================================================== */
@media (max-width: 767px) {
  #category #wrapper {
    padding-top: 0;
  }

  #category #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  /* El contenedor de la miga tiene 9px de relleno: 9 más hasta los 18 del diseño */
  #category nav.breadcrumb {
    width: auto;
    margin: 5px 9px 12px;
    padding: 0;
  }

  #category nav.breadcrumb ol {
    margin: 0;
    padding: 0;
  }

  #category nav.breadcrumb li,
  #category nav.breadcrumb li a,
  #category nav.breadcrumb li span {
    color: var(--mes-muted);
    font-size: 12px;
    line-height: 20px;
  }

  #category nav.breadcrumb li:last-child span {
    color: var(--mes-ink-strong);
    font-weight: 400;
  }

  #category #main {
    align-items: center;
  }

  #category #js-product-list-header .page-title,
  #category .page-title {
    font-size: 32px;
    line-height: 34px;
  }

  /* "Filtrar" de la misma altura que el título (34px) y centrado con él */
  #category #js-product-list-top {
    margin-top: 0;
  }

  /* La columna del orden (oculto) ocupaba 12px y separaba "Filtrar" del borde de la parrilla */
  #category #js-product-list-top .row > .col-auto:has(.products-sort-nb-dropdown) {
    display: none;
  }

  #category #search_filter_toggler {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding-top: 0;
    padding-bottom: 0;
  }

  #category #js-product-list {
    margin-top: 17px;
  }

  /* Parrilla: 2 columnas de 171px con 15px de hueco; 29px entre filas */
  #category #js-product-list .products.row {
    gap: 29px 15px;
  }

  #category .product-miniature-grid .thumbnail-container {
    aspect-ratio: 171 / 223.5;
    border-radius: 15px;
  }

  #category .product-miniature-grid .thumbnail-container .product-thumbnail {
    padding: 16px;
  }

  #category .product-miniature-grid .thumbnail-container .product-thumbnail-second {
    inset: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
  }

  #category .product-miniature-grid .product-flags {
    top: 8px;
    left: 7px;
  }

  #category .product-miniature-grid .product-flags .product-flag {
    padding: 1px 8px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
  }

  #category .product-miniature-grid .product-description {
    padding: 14px 0 0 6px;
  }

  #wrapper #category .product-miniature-grid .product-title,
  #category #wrapper .product-miniature-grid .product-title,
  #category #wrapper .product-miniature-grid .product-title a {
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
  }

  #category .product-miniature-grid .products-variants {
    margin-top: 4px;
  }

  #category .product-miniature-grid .products-variants::before {
    font-size: 12px;
    line-height: 16px;
  }

  /* El árbol de categorías no está en el diseño móvil (los filtros siguen en "Filtrar") */
  #category #left-column .block-categories {
    display: none;
  }

  /* Bloque SEO: foto de 357x220 (márgenes y tipografía 22/26 y 12/18 en Elementor) */
  #category .mes-cat-seo .elementor-text-editor p {
    margin: 0;
  }

  #category .mes-cat-seo .elementor-image img {
    aspect-ratio: 357 / 220;
  }

  /* Trabajamos con las mejores calidades: tarjetas de 100px en 2 columnas, 16px de hueco */
  #category .mes-cat-logos .mes-logo-grid > .elementor-container {
    margin: 0;
  }

  #category .mes-cat-logos .mes-logo-grid + .mes-logo-grid {
    margin-top: 16px;
  }

  #category .mes-cat-logos .mes-logo-grid > .elementor-container > .elementor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #category .mes-cat-logos .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column {
    width: auto;
  }

  #category .mes-cat-logos .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 0;
  }

  #category .mes-cat-logos .mes-logo-grid .elementor-column:not(.mes-logo-card) {
    display: none;
  }

  #category .mes-cat-logos .mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap {
    height: 100px;
    padding: 8px;
    border: 2px solid var(--mes-border);
    border-radius: 10px;
  }
}

/* Carruseles de productos (relacionados, etc.): separación entre tarjetas, el carrusel no deja hueco */
.swiper-slide > .product-carousel > .product-miniature-grid {
  margin: 0 7.5px;
}

/* ==========================================================================
   Ficha de producto: galería de ambientes (módulo mesinorgallery, sobre las pestañas).
   Diseño Figma: fotos de 575px de alto, radio 20, separadas 15px; cada diapositiva toma la
   proporción real de su foto (--mes-ratio, calculada por el módulo), así no se recorta ni se
   deforma. Cabecera y flechas iguales que "Productos relacionados".
   ========================================================================== */
.mes-gallery {
  margin: 96px 0 72px;
}

/* El carrusel se corta en el borde del contenedor, como en el diseño (el tema lo deja desbordar) */
#wrapper .mes-gallery__carousel {
  overflow: hidden;
}

.mes-gallery__slide {
  overflow: hidden;
  width: auto;
  height: 575px;
  aspect-ratio: var(--mes-ratio, 4 / 3);
  border-radius: 20px;
  background: var(--mes-surface);
}

.mes-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .mes-gallery__slide {
    height: 420px;
  }
}

/* Escritorio: espacios verticales del Figma desde la caja de distribuidores hasta el pie
   (142px hasta el título de la galería, 30 hasta las fotos, 73 hasta las pestañas, 124 del texto
   al banner, 87 hasta "Productos relacionados" y 130 de las tarjetas al pie) */
@media (min-width: 768px) {
  .mes-gallery {
    margin: 125px 0 54px;
  }

  .mes-gallery .mes-related__head {
    margin-bottom: 30px;
  }

  .mes-where-banner {
    margin-top: 108px;
  }

  #product .mes-related {
    margin-top: 87px;
    padding-bottom: 73px;
  }
}

@media (max-width: 767px) {
  .mes-gallery {
    margin: 56px 0 48px;
  }

  /* En móvil, mismo alto y su proporción, pero nunca más del 85% de la pantalla para que asome
     la siguiente (solo las muy apaisadas se recortan un poco por los lados) */
  .mes-gallery__slide {
    max-width: 85vw;
    height: 300px;
    border-radius: 16px;
  }

  .mes-gallery .mes-related__head {
    margin-bottom: 24px;
  }

  #wrapper .mes-gallery .mes-related__head .mes-related__title {
    font-size: 24px;
    line-height: 30px;
  }
}

/* ==========================================================================
   Ficha de producto: "Productos relacionados" (ps_categoryproducts, plantilla en
   themes/mesinor/modules). Diseño Figma: título 30px con flechas redondas a la derecha,
   tarjetas de 320x400 (radio 16) separadas 24px, nombre 18px y categoría 14px gris.
   ========================================================================== */
.mes-related {
  margin-top: 96px;
}

.mes-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

#wrapper .mes-related .mes-related__title,
#wrapper .mes-gallery .mes-related__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.mes-related__title::after,
.mes-related__title span::after {
  display: none;
}

.mes-related__nav {
  display: flex;
  flex: none;
  gap: 8px;
}

.mes-related__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--mes-border);
  border-radius: 50%;
  background: #fff;
  color: var(--mes-ink-strong);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}

.mes-related__arrow:hover {
  border-color: var(--mes-ink-strong);
}

.mes-related__arrow:focus-visible {
  outline: 2px solid var(--mes-ink);
  outline-offset: 2px;
}

.mes-related__arrow.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.mes-related__arrow.swiper-button-disabled:hover {
  border-color: var(--mes-border);
}

/* Si caben todas las tarjetas, Swiper bloquea el carrusel y las flechas sobran */
.mes-related__arrow.swiper-button-lock {
  display: none;
}

.mes-related .swiper-slide {
  width: 320px;
}

.mes-related .swiper-slide > .product-carousel > .product-miniature-grid {
  margin: 0;
}

.mes-related .product-miniature-grid .thumbnail-container {
  border-radius: 16px;
}

.mes-related .product-miniature-grid .product-description {
  display: flex;
  flex-direction: column;
  padding: 12px 2px 0;
}

.mes-related .product-miniature-grid .product-description > * {
  order: 3;
}

.mes-related .product-miniature-grid .product-description > .product-title {
  order: 1;
}

#wrapper .mes-related .product-miniature-grid .product-title,
#wrapper .mes-related .product-miniature-grid .product-title a {
  font-size: 18px;
  line-height: 22px;
}

/* Bajo el nombre, la categoría del producto en lugar de "+ colores" */
.mes-related .product-miniature-grid .product-category-name {
  display: block !important;
  order: 2;
  margin: 2px 0 0;
  color: var(--mes-muted) !important;
  font-size: 14px;
  line-height: 20px;
}

.mes-related .product-miniature-grid .products-variants {
  display: none;
}

@media (max-width: 767px) {
  .mes-related {
    margin-top: 56px;
  }

  .mes-related__head {
    margin-bottom: 24px;
  }

  #wrapper .mes-related .mes-related__title {
    font-size: 24px;
    line-height: 30px;
  }

  .mes-related .swiper-slide {
    width: 240px;
  }
}

/* ==========================================================================
   Inspírate (CMS 7, diseño Figma "Inspírate"): mosaico de fotos con enlaces
   a productos que aparecen centrados al pasar el ratón (widget banner de
   iqitelementor con la clase "mes-hover-banner").
   ========================================================================== */
#cms.cms-id-6 nav.breadcrumb,
#cms.cms-id-7 nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#cms.cms-id-6 nav.breadcrumb li:last-child span,
#cms.cms-id-7 nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

/* 15px entre fotos */
.mes-mosaic > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
  padding: 7.5px;
}

.mes-hover-banner .elementor-iqit-banner {
  border-radius: 16px;
}

.mes-hover-banner .elementor-iqit-banner-img img {
  height: 575px;
  object-fit: cover;
}

.mes-hover-banner .elementor-iqit-banner-overlay,
.mes-hover-banner .elementor-iqit-banner-content {
  opacity: 0;
  transition: opacity .3s ease;
}

.mes-hover-banner .elementor-iqit-banner:hover .elementor-iqit-banner-overlay,
.mes-hover-banner .elementor-iqit-banner:hover .elementor-iqit-banner-content,
.mes-hover-banner .elementor-iqit-banner:focus-within .elementor-iqit-banner-overlay,
.mes-hover-banner .elementor-iqit-banner:focus-within .elementor-iqit-banner-content {
  opacity: 1;
}

.mes-hover-banner__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#wrapper .mes-hover-banner__links a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#wrapper .mes-hover-banner__links a:hover,
#wrapper .mes-hover-banner__links a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Táctil (sin hover): un toque oscurece la foto y muestra los enlaces (custom.js pone .is-active);
   mientras está cerrada, los enlaces no reciben el toque para que el primero solo abra la foto */
@media (hover: none) {
  .mes-hover-banner .elementor-iqit-banner {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mes-hover-banner .elementor-iqit-banner:not(.is-active) .elementor-iqit-banner-overlay,
  .mes-hover-banner .elementor-iqit-banner:not(.is-active) .elementor-iqit-banner-content {
    opacity: 0;
  }

  .mes-hover-banner .elementor-iqit-banner:not(.is-active) .elementor-iqit-banner-content {
    pointer-events: none;
  }

  .mes-hover-banner .elementor-iqit-banner.is-active .elementor-iqit-banner-overlay,
  .mes-hover-banner .elementor-iqit-banner.is-active .elementor-iqit-banner-content {
    opacity: 1;
  }
}

/* Móvil (Figma "Inspírate Mobile"): migas centradas, título 32/34, una columna de fotos de 357px
   con su proporción, radio 10 y 10px entre ellas */
@media (max-width: 767px) {
  #cms.cms-id-7 #wrapper {
    padding-top: 0;
  }

  #cms.cms-id-7 #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  #cms.cms-id-7 nav.breadcrumb {
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  #cms.cms-id-7 #content > .elementor > .elementor-top-section:first-child {
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #cms.cms-id-7 #content > .elementor > .elementor-top-section:first-child .elementor-column-wrap {
    padding: 0;
  }

  #cms.cms-id-7 #content > .elementor > .elementor-top-section:first-child h1.elementor-heading-title,
  #cms.cms-id-7 #content > .elementor > .elementor-top-section:first-child .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: 32px !important;
    line-height: 34px !important;
  }

  .mes-mosaic > .elementor-container {
    margin: 0 -5px;
  }

  .mes-mosaic > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 5px;
  }

  .mes-hover-banner .elementor-iqit-banner {
    border-radius: 10px;
  }

  .mes-hover-banner .elementor-iqit-banner-img img {
    height: auto;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   Quiénes somos (CMS 6, rediseño Figma "Quiénes somos")
   ========================================================================== */
.mes-narrow {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
}

/* Fotos: recorte a un alto fijo y radio del diseño */
.mes-photo img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 24px;
}

/* Quiénes somos: proporción de cada foto según el Figma (Elementor no tiene alto de imagen).
   Márgenes, columnas, tipografías y el orden en móvil están en los ajustes de Elementor. */
.mes-photo.mes-qs-team-1 img {
  height: auto;
  aspect-ratio: 738 / 831;
}

.mes-photo.mes-qs-team-2 img {
  height: auto;
  aspect-ratio: 737 / 741;
}

.mes-photo.mes-qs-design-1 img {
  height: auto;
  aspect-ratio: 342 / 427.5;
}

.mes-photo.mes-qs-design-2 img {
  height: auto;
  aspect-ratio: 342 / 447;
}

.mes-photo.mes-qs-team-wide img {
  height: auto;
  aspect-ratio: 1488 / 510;
}

@media (max-width: 767px) {
  .mes-photo.mes-qs-team-1 img,
  .mes-photo.mes-qs-team-2 img {
    aspect-ratio: 357 / 400;
    border-radius: 10px;
  }

  .mes-photo.mes-qs-design-1 img {
    aspect-ratio: 171 / 213.75;
    border-radius: 10px;
  }

  .mes-photo.mes-qs-design-2 img {
    aspect-ratio: 171 / 223.5;
    border-radius: 10px;
  }

  .mes-photo.mes-qs-team-wide img {
    aspect-ratio: 357 / 191;
    border-radius: 10px;
  }
}

/* Logos de calidades: tarjetas blancas con borde fino, 16px de separación */
.mes-logo-grid > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
  padding: 8px;
}

/* El hueco de 8px entre tarjetas no desplaza la rejilla: alineada con el título */
.mes-logo-grid > .elementor-container {
  margin: 0 -8px;
}

.mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 122px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--mes-border);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s;
}

.mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap:hover {
  border-color: #b5b5b5;
}

/* Los PNG (200x110) ya traen su margen blanco: ocupan toda la tarjeta */
.mes-logo-card .elementor-widget,
.mes-logo-card .elementor-widget-container,
.mes-logo-card .elementor-image {
  width: 100%;
  height: 100%;
}

.mes-logo-card img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

/* El enlace del logo cubre la tarjeta entera */
.mes-logo-card .elementor-image a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Banner "¿Tienes alguna duda?": foto con degradado oscuro desde la izquierda */
.mes-cta-banner > .elementor-column-wrap {
  position: relative;
  min-height: 388px;
  overflow: hidden;
  border-radius: 24px;
}

.mes-cta-banner > .elementor-column-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(32, 33, 34, .85) 35%, rgba(32, 33, 34, 0) 75%);
}

.mes-cta-banner > .elementor-column-wrap > .elementor-widget-wrap {
  position: relative;
  z-index: 1;
}

.mes-btn-row > .elementor-container > .elementor-row {
  flex-wrap: wrap;
  gap: 12px;
}

.mes-btn-row .mes-auto-col {
  width: auto !important;
}

@media (max-width: 767px) {
  .mes-qs-hero {
    min-height: 320px !important;
  }

  .mes-photo img,
  .mes-photo--tall img,
  .mes-photo--wide img {
    height: 300px;
  }

  .mes-photo--offset {
    margin-top: 0;
  }

  .mes-cta-banner > .elementor-column-wrap {
    min-height: 0;
  }
}

/* Foto principal: Elementor pone el primer color del degradado también como fondo y oscurecía toda la foto */
.mes-qs-hero > .elementor-background-overlay {
  background-color: transparent !important;
}

.mes-cta-title {
  max-width: 360px;
}

@media (max-width: 767px) {
  .mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap {
    height: 80px;
    border-radius: 12px;
  }

  .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 5px;
  }

  .mes-logo-grid > .elementor-container {
    margin: 0 -5px;
  }
}

/* Móvil (Figma "Quiénes somos Mobile", 393px). Rellenos, márgenes, tipografías, orden de columnas y
   ancho de las columnas están en los ajustes de móvil de Elementor; aquí solo lo que no tiene: el
   margen lateral de 18px de la página, la miga, la rejilla de logos en 2 columnas y los radios. */
@media (max-width: 767px) {
  #cms.cms-id-6 #wrapper {
    padding-top: 0;
  }

  #cms.cms-id-6 #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  #cms.cms-id-6 nav.breadcrumb {
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  /* Trabajamos con las mejores calidades: tarjetas de 100px en 2 columnas, 16px de hueco */
  #cms.cms-id-6 .mes-logo-grid > .elementor-container {
    margin: 0;
  }

  #cms.cms-id-6 .mes-logo-grid + .mes-logo-grid {
    margin-top: 16px;
  }

  #cms.cms-id-6 .mes-logo-grid > .elementor-container > .elementor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #cms.cms-id-6 .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column {
    width: auto;
  }

  #cms.cms-id-6 .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 0;
  }

  #cms.cms-id-6 .mes-logo-grid .elementor-column:not(.mes-logo-card) {
    display: none;
  }

  #cms.cms-id-6 .mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap {
    height: 100px;
    padding: 8px;
    border: 2px solid var(--mes-border);
    border-radius: 10px;
  }

  /* ¿Tienes alguna duda?: radio 10 y botones de 40px en una fila (el relleno del botón no es responsive) */
  #cms.cms-id-6 .mes-cta-banner > .elementor-column-wrap {
    border-radius: 10px;
  }

  #cms.cms-id-6 .mes-cta-banner .mes-btn-row > .elementor-container > .elementor-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  #cms.cms-id-6 .mes-cta-banner .elementor-button {
    padding: 9.5px 18px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Catálogos (CMS 21) y Multimedia (CMS 22), contenido de mesinor.com con el diseño de Quiénes somos:
   cabecera centrada, foto ancha, rejilla de catálogos PDF, colaboradores y banner de contacto.
   Las tarjetas son HTML en un widget de texto (scratchpad build-catalogos.php).
   ========================================================================== */
:is(#cms.cms-id-21, #cms.cms-id-22) nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

:is(#cms.cms-id-21, #cms.cms-id-22) nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

.mes-catalogs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

#wrapper .mes-catalog-card {
  display: flex;
  flex-direction: column;
  color: var(--mes-ink);
  text-decoration: none;
}

.mes-catalog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 7;
  border-radius: 16px;
  background: var(--mes-surface);
}

.mes-catalog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.mes-catalog-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--mes-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.mes-catalog-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 4px 0;
}

.mes-catalog-card__title {
  color: var(--mes-ink-strong);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.mes-catalog-card__desc {
  color: var(--mes-muted);
  font-size: 16px;
  line-height: 22px;
}

.mes-catalog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mes-catalog-card__link small {
  color: var(--mes-muted);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.mes-catalog-card__link::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3v10M5.5 8.5 10 13l4.5-4.5M4 16.5h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3v10M5.5 8.5 10 13l4.5-4.5M4 16.5h12'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (hover: hover) {
  .mes-catalog-card:hover .mes-catalog-card__media img {
    transform: scale(1.04);
  }

  #wrapper .mes-catalog-card:hover .mes-catalog-card__link {
    text-decoration-thickness: 2px;
  }
}

#wrapper .mes-catalog-card:focus-visible {
  outline: 2px solid var(--mes-ink);
  outline-offset: 4px;
  border-radius: 16px;
}

/* La foto de cabecera: el overlay oscuro de Quiénes somos no hace falta aquí */
:is(#cms.cms-id-21, #cms.cms-id-22) .mes-qs-hero > .elementor-background-overlay {
  opacity: .25 !important;
}

@media (max-width: 991px) {
  .mes-catalogs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: mismo sistema que Quiénes somos (Figma "Quiénes somos Mobile") */
@media (max-width: 767px) {
  :is(#cms.cms-id-21, #cms.cms-id-22) #wrapper {
    padding-top: 0;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) nav.breadcrumb {
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) #content .elementor-top-section {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) #content .elementor-top-section > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 0;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head {
    padding-top: 0 !important;
    padding-bottom: 36px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head .elementor-widget {
    margin-bottom: 0;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head h1.elementor-heading-title {
    font-size: 32px !important;
    line-height: 34px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head p.elementor-heading-title {
    margin-top: 15px;
    margin-bottom: 6px;
    font-size: 16px !important;
    line-height: 24px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head .elementor-widget-heading:nth-child(2) {
    margin: 0 !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head .elementor-text-editor,
  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head .elementor-text-editor p {
    margin: 0;
    font-size: 16px !important;
    line-height: 22px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-head .elementor-widget-button {
    margin-top: 24px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-qs-hero,
  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-qs-hero > .elementor-container {
    height: 320px;
    min-height: 320px !important;
  }

  .mes-catalogs {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .mes-catalog-card__media {
    border-radius: 10px;
  }

  .mes-catalog-card__badge {
    top: 8px;
    right: 8px;
    padding: 1px 8px;
    border-radius: 22px;
  }

  .mes-catalog-card__body {
    padding: 14px 0 0;
  }

  .mes-catalog-card__title {
    font-size: 22px;
    line-height: 28px;
  }

  .mes-catalog-card__desc {
    font-size: 15px;
  }

  /* Colaboradores: tarjetas de 100px en 2 columnas */
  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-logos {
    padding-top: 0 !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-pg-logos .elementor-widget-heading {
    margin-bottom: 16px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-grid > .elementor-container {
    margin: 0;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-grid + .mes-logo-grid {
    margin-top: 16px;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-grid > .elementor-container > .elementor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column {
    width: auto;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-grid > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
    padding: 0;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-grid .elementor-column:not(.mes-logo-card) {
    display: none;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-logo-card > .elementor-column-wrap > .elementor-widget-wrap {
    height: 100px;
    padding: 8px;
    border: 2px solid var(--mes-border);
    border-radius: 10px;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-cta-banner > .elementor-column-wrap {
    border-radius: 10px;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-cta-banner > .elementor-column-wrap > .elementor-widget-wrap {
    padding: 32px 15px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-cta-title .elementor-heading-title {
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 36px !important;
  }

  :is(#cms.cms-id-21, #cms.cms-id-22) .mes-cta-banner .mes-btn-row > .elementor-container > .elementor-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
}

/* Multimedia: tarjetas de vídeo (miniatura 3:2 con botón de reproducir; custom.js pone el
   reproductor de YouTube en su lugar al pulsar) */
.mes-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

.mes-video-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background: var(--mes-surface);
}

.mes-video-card__media img,
.mes-video-card__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mes-video-card__media img {
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

/* Botón: círculo blanco translúcido con triángulo en tinta */
.mes-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  transition: transform .2s ease, background-color .2s ease;
}

.mes-video-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -6px;
  border-width: 9px 0 9px 15px;
  border-style: solid;
  border-color: transparent transparent transparent var(--mes-ink-strong);
}

@media (hover: hover) {
  .mes-video-card__media:hover img {
    transform: scale(1.04);
  }

  .mes-video-card__media:hover .mes-video-card__play {
    transform: scale(1.08);
    background: #fff;
  }
}

.mes-video-card__media:focus-visible {
  outline: 2px solid var(--mes-ink);
  outline-offset: 4px;
}

.mes-video-card__body {
  padding: 20px 4px 0;
}

#wrapper .mes-video-card__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

#wrapper .mes-video-card__desc {
  margin: 0;
  color: var(--mes-muted);
  font-size: 16px;
  line-height: 22px;
}

@media (max-width: 991px) {
  .mes-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mes-videos {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .mes-video-card__media {
    border-radius: 10px;
  }

  .mes-video-card__play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }

  .mes-video-card__body {
    padding: 14px 0 0;
  }

  #wrapper .mes-video-card__title {
    font-size: 22px;
    line-height: 28px;
  }

  #wrapper .mes-video-card__desc {
    font-size: 15px;
  }
}

/* ==========================================================================
   Textos legales (Aviso legal CMS 2, Privacidad CMS 18, Cookies CMS 19; scratchpad build-legal.php):
   título centrado como el resto de páginas; debajo, índice fijo a la izquierda y texto de 720px
   con secciones separadas por líneas finas. En móvil el índice pasa arriba como tarjeta gris.
   ========================================================================== */
:is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

:is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

:is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) .page-header {
  margin-bottom: 8px;
  border: 0;
  text-align: center;
}

:is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) .page-header .page-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 48px;
  line-height: 1.1;
}

:is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) .page-title span::after {
  display: none;
}

.mes-legal {
  max-width: 720px;
  margin: 0 auto 112px;
  color: var(--mes-muted);
  font-size: 16px;
  line-height: 26px;
}

.mes-legal__updated {
  margin: 0 0 56px;
  color: var(--mes-muted);
  font-size: 14px;
  letter-spacing: .5px;
  text-align: center;
}

.mes-legal__intro {
  margin-bottom: 16px;
  color: var(--mes-ink);
  font-size: 18px;
  line-height: 28px;
}

.mes-legal__intro p {
  margin: 0 0 16px;
}

.mes-legal__section {
  padding: 32px 0;
  border-top: 1px solid var(--mes-border);
  scroll-margin-top: 110px;
}

#wrapper .mes-legal__section h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  text-transform: none;
}

.mes-legal__section p {
  margin: 0 0 14px;
}

.mes-legal__section p:last-child {
  margin-bottom: 0;
}

.mes-legal__section ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.mes-legal__section li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
}

.mes-legal__section li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mes-accent);
}

.mes-legal strong {
  color: var(--mes-ink);
  font-weight: 500;
}

#wrapper .mes-legal__body a:not(.mes-legal__btn) {
  color: var(--mes-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ficha del titular: etiqueta / valor en filas */
.mes-legal__data {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 0;
  border-radius: 16px;
  background: var(--mes-surface);
  padding: 8px 24px;
}

.mes-legal__data dt,
.mes-legal__data dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--mes-border);
}

.mes-legal__data dt:last-of-type,
.mes-legal__data dd:last-of-type {
  border-bottom: 0;
}

.mes-legal__data dt {
  color: var(--mes-muted);
  font-weight: 400;
}

.mes-legal__data dd {
  color: var(--mes-ink);
  font-weight: 500;
}

#wrapper .mes-legal__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--mes-ink-strong);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background-color .2s;
}

#wrapper .mes-legal__btn:hover {
  background: #000;
}

/* Tabla de cookies de Cookies Plus con el estilo de la ficha técnica */
.mes-legal .cookies-detail-list-cms {
  width: 100%;
  margin: 16px 0 24px;
  border: 0;
  font-size: 14px;
  line-height: 20px;
}

.mes-legal .cookies-detail-list-cms th,
.mes-legal .cookies-detail-list-cms td {
  padding: 12px 12px 12px 0;
  border: 0;
  border-bottom: 1px solid var(--mes-border);
  background: none !important;
  box-shadow: none !important; /* rayado de Bootstrap 5 (--bs-table-accent-bg) */
  vertical-align: top;
}

.mes-legal .cookies-detail-list-cms th {
  color: var(--mes-ink);
  font-weight: 500;
}

.mes-legal .cookies-detail-list-cms tbody tr {
  background: none !important;
}

.mes-legal .cookies-detail-list-cms th:first-child,
.mes-legal .cookies-detail-list-cms td:first-child {
  width: 22%;
  color: var(--mes-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.mes-legal .cookies-detail-list-cms th:nth-child(2),
.mes-legal .cookies-detail-list-cms td:nth-child(2) {
  width: 22%;
  overflow-wrap: anywhere;
}

.mes-legal .cookies-detail-list-cms th:last-child,
.mes-legal .cookies-detail-list-cms td:last-child {
  width: 14%;
  padding-right: 0;
}

.mes-legal h3,
.mes-legal h4 {
  margin: 24px 0 4px;
  color: var(--mes-ink);
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 767px) {
  :is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) #wrapper {
    padding-top: 0;
  }

  :is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  :is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) nav.breadcrumb {
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  :is(#cms.cms-id-2, #cms.cms-id-18, #cms.cms-id-19) .page-header .page-title {
    font-size: 32px;
    line-height: 34px;
  }

  .mes-legal {
    margin-bottom: 56px;
    font-size: 15px;
    line-height: 23px;
  }

  .mes-legal__updated {
    margin-bottom: 32px;
  }

  .mes-legal__intro {
    font-size: 16px;
    line-height: 24px;
  }

  .mes-legal__section {
    padding: 24px 0;
  }

  #wrapper .mes-legal__section h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .mes-legal__data {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 20px;
  }

  .mes-legal__data dt {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 13px;
  }

  .mes-legal__data dd {
    padding-top: 2px;
  }

  /* La tabla de cookies, como fichas: una cookie por bloque */
  .mes-legal .cookies-detail-list-cms thead {
    display: none;
  }

  .mes-legal .cookies-detail-list-cms tr,
  .mes-legal .cookies-detail-list-cms td {
    display: block;
  }

  .mes-legal .cookies-detail-list-cms tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--mes-border);
  }

  .mes-legal .cookies-detail-list-cms td,
  .mes-legal .cookies-detail-list-cms td:first-child,
  .mes-legal .cookies-detail-list-cms td:nth-child(2),
  .mes-legal .cookies-detail-list-cms td:last-child {
    width: auto;
    padding: 2px 0;
    border: 0;
  }
}

/* Títulos de cada grupo de cookies (Cookies Plus usa h5 con strong) */
#wrapper .mes-legal .cookiesplus-finality-title-cms {
  margin: 24px 0 6px;
  color: var(--mes-ink);
  font-size: 18px;
  line-height: 24px;
}

.mes-legal .cookiesplus-finality-body-cms > p {
  margin: 0 0 8px;
}

/* ==========================================================================
   Home (landing de iqitelementor) según el diseño Figma "Home Mesinor".
   Contenedor 1536px (1488 de contenido), títulos 30/36 500.
   ========================================================================== */

/* Cabecera transparente sobre el banner inicial (solo escritorio y mientras no está fija) */
@media (min-width: 992px) {
  #index #wrapper {
    padding-top: 0;
  }

  #index .sticky-desktop-wrapper {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 30;
  }

  #index #desktop-header:not(.stuck-header) {
    background: transparent;
  }

  #index #desktop-header:not(.stuck-header) #iqitmegamenu-horizontal,
  #index #desktop-header:not(.stuck-header) .header-top {
    background: transparent;
  }

  #index #desktop-header:not(.stuck-header) #desktop_logo img {
    filter: brightness(0) invert(1);
  }

  #index #desktop-header:not(.stuck-header) #cbp-hrmenu > ul > li > a,
  #index #desktop-header:not(.stuck-header) #cbp-hrmenu > ul > li > span,
  #index #desktop-header:not(.stuck-header) .col-header-right a,
  #index #desktop-header:not(.stuck-header) .col-header-right button,
  #index #desktop-header:not(.stuck-header) .col-header-right i {
    color: #fff;
  }

  #index #desktop-header:not(.stuck-header) #cbp-hrmenu > ul > li > a {
    font-weight: 500;
  }
  #index #desktop-header.stuck-header{
    box-shadow: none;
    backdrop-filter: blur(59px);
    background: transparent;
  }
   #index #desktop-header.stuck-header #iqitmegamenu-horizontal{
    background-color: transparent;
  }
}

/* Banner inicial: tipografías, márgenes, botones y degradado izquierdo están en los ajustes de Elementor.
   Aquí solo lo que el editor no permite: el segundo degradado (arriba, para el menú) y el desenfoque del botón cristal. */
.mes-home-hero > .elementor-container {
  position: relative;
  z-index: 1;
}

.mes-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%);
  pointer-events: none;
}

.mes-home-hero .mes-glass .elementor-button {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Título en dos líneas en escritorio (en móvil corta solo) y botones a 16px (la clase general usa 20px) */
.mes-home-hero h1.elementor-heading-title {
  max-width: 829px;
}

@media (min-width: 768px) {
  .mes-home-hero .mes-buttons-home-line .elementor-widget-wrap {
    gap: 16px;
  }
}

/* Botones redondeados del diseño (16px 600, 16/32 de relleno) */
#wrapper .mes-pill .elementor-button {
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  transition: background-color .2s, color .2s, border-color .2s;
}

#wrapper .mes-pill--dark .elementor-button {
  background: #121212;
  color: #fff;
}

#wrapper .mes-pill--dark .elementor-button:hover {
  background: #fff;
  color: #121212;
}

#wrapper .mes-pill--glass .elementor-button {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#wrapper .mes-pill--glass .elementor-button:hover {
  background: rgba(255, 255, 255, .25);
}

#wrapper .mes-pill--light .elementor-button {
  padding: 16px 40px;
  background: #fff;
  color: #272424;
  line-height: 24px;
}

#wrapper .mes-pill--light .elementor-button:hover {
  background: #7de4ff;
}

/* Filas de título con elemento a la derecha */
.mes-title-row > .elementor-container > .elementor-row > .elementor-column:last-child .elementor-widget-wrap {
  justify-content: flex-end;
}

.mes-title-row .elementor-widget {
  width: 100%;
}

.mes-title-row .elementor-column:last-child .elementor-widget {
  text-align: right;
}

.mes-quality__lead {
  max-width: 384px;
  margin-left: auto;
}

.mes-quality__lead p,
.mes-gallery-link p {
  margin: 0;
}

/* Nuestros imprescindibles: flechas redondas arriba a la derecha y 4,4 tarjetas visibles */

.mes-home-products .swiper-button-disabled {
  opacity: 1;
}

/* Tarjetas de foto (La Colección y Calidad): foto recortada, degradado y textos abajo */
.mes-photo-card .elementor-iqit-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.mes-photo-card .elementor-iqit-banner-img {
  height: 100%;
  margin: 0;
}

.mes-photo-card .elementor-iqit-banner-img img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .6s ease;
}

.mes-photo-card:hover .elementor-iqit-banner-img img {
  transform: scale(1.04);
}

.mes-photo-card .elementor-iqit-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
  opacity: 1;
}

.mes-photo-card .elementor-iqit-banner-content {
  z-index: 2;
}

/* Rellenos y títulos de las tarjetas: las marcadas con mes-native (La Colección) los llevan en Elementor */
.mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-content {
  padding: 32px;
}

#wrapper .mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

/* La Colección: 736x616 a la izquierda; 736x300 y 2 de 360x300 a la derecha (hueco 16) */
.mes-collection > .elementor-container > .elementor-row {
  gap: 16px;
  flex-wrap: nowrap;
}

.mes-collection > .elementor-container > .elementor-row > .elementor-column {
  width: calc(50% - 8px);
}

.mes-collection .mes-photo-card--tall .elementor-iqit-banner-img img {
  height: 616px;
}

.mes-collection-side .elementor-widget-wrap {
  gap: 16px;
}

.mes-collection-pair > .elementor-container > .elementor-row {
  gap: 16px;
  flex-wrap: nowrap;
}

.mes-collection-pair > .elementor-container > .elementor-row > .elementor-column {
  width: calc(50% - 8px);
}

/* Configurador: caja oscura de 756px con las sillas a la izquierda */
.mes-config {
  overflow: hidden;
  border-radius: 24px;
  background: #202122;
}

.mes-config__grid .elementor-widget-wrap,
.mes-config-grid .elementor-widget-wrap,
.mes-config-grid .elementor-column-wrap {
  padding: 0 !important;
}

.mes-config-grid .elementor-image,
.mes-config-grid .elementor-widget-container {
  margin: 0;
}

.mes-config-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

/* Mosaico de sillas como una sola imagen */
#wrapper .mes-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

#wrapper .mes-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #f3f3f3;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

#wrapper .mes-steps small {
  display: block;
  color: #a1a5ae;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

#wrapper .mes-steps__icon {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(243, 243, 243, .3);
  border-radius: 50%;
  font-size: 18px;
}

/* Calidad en cada milímetro: tarjetas 480x640 y la central 48px más abajo */
.mes-quality > .elementor-container > .elementor-row {
  gap: 24px;
  flex-wrap: nowrap;
}

.mes-quality > .elementor-container > .elementor-row > .elementor-column {
  width: calc((100% - 48px) / 3);
}

.mes-quality .elementor-column-wrap,
.mes-collection .elementor-column-wrap,
.mes-collection-pair .elementor-column-wrap {
  padding: 0 !important;
}

.mes-photo-card--quality .elementor-iqit-banner-img img {
  height: auto;
  aspect-ratio: 3 / 4;
}

.mes-photo-card--quality .elementor-iqit-banner-content {
  padding: 24px;
}


#wrapper .mes-photo-card--quality .elementor-iqit-banner-title {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 28px;
}

#wrapper .mes-photo-card--quality .elementor-iqit-banner-description {
  max-width: 349px;
  color: #fff;
  font-size: 16px;
  line-height: 18px;
}
#wrapper .mes-photo-card--quality .elementor-iqit-banner-subtitle {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
@media(min-width:992px){
  .m-width-384{
    max-width: 384px;
    margin-right: 0;
    margin-left: auto;
  }
}

.mes-photo-card--quality .elementor-iqit-banner-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 50%);
}


/* Inspírate: carrusel de 767x575 que empieza a 24px del borde y se sale por la derecha */
.mes-inspire-carousel .swiper {
  overflow: visible;
}

.mes-inspire-carousel .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

@media (min-width: 1200px) {
  .mes-inspire-carousel {
    margin-left: calc(35px - (100vw - var(--mes-sbw, 0px) - min(1488px, 100vw - var(--mes-sbw, 0px) - 48px)) / 2) !important;
  }

  .mes-inspire-carousel .elementor-image-carousel-wrapper,
  .mes-inspire-carousel .swiper {
    width: calc((100vw - var(--mes-sbw, 0px) - 48px) * .83);
  }
}

@media (max-width: 991px) {
  .mes-collection > .elementor-container > .elementor-row,
  .mes-quality > .elementor-container > .elementor-row {
    flex-wrap: wrap;
  }

  .mes-collection > .elementor-container > .elementor-row > .elementor-column,
  .mes-quality > .elementor-container > .elementor-row > .elementor-column {
    width: 100%;
  }

  .mes-collection .mes-photo-card--tall .elementor-iqit-banner-img img {
    height: 360px;
  }

  .mes-photo-card .elementor-iqit-banner-img img {
    height: 220px;
  }

  #wrapper .mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-title {
    font-size: 26px;
  }

  .mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-content {
    padding: 20px;
  }

  .mes-photo-card--quality .elementor-iqit-banner-img img {
    height: 420px;
    aspect-ratio: auto;
  }

  .mes-inspire-carousel .elementor-image-carousel-wrapper {
    width: 88%;
    margin-left: 0 !important;
  }

  .mes-inspire-carousel .swiper {
    margin-left: 0 !important;
  }
}

.mes-collection-side .mes-photo-card,
.mes-collection-pair .mes-photo-card {
  width: 100%;
}

.mes-collection-side > .elementor-column-wrap > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
}

.mes-collection-side .elementor-widget,
.mes-collection-side .elementor-inner-section {
  margin-bottom: 0 !important;
}

/* Flechas del carrusel de productos: chevron fino dibujado con bordes */
.mes-home-products .elementor-swiper-button.swiper-button-prev {
  width: fit-content;
  height: fit-content;
  top: 0;
  right: 50px;
  left: auto;
  background-color: transparent;
}
.mes-home-products .elementor-swiper-button.swiper-button-next {
  width: fit-content;
  height: fit-content;
  top: 0;
  right: 0;
  left: auto;
  background-color: transparent;
}

.mes-home-products .elementor-swiper-button::after,
.mes-home-products .elementor-swiper-button i {
  display: none;
}

.mes-home-products .elementor-swiper-button.swiper-button-prev::before {
  content: '\f053';
  font-size: 14px;
  font-weight: 300;
  font-family: 'Font Awesome 7 PRO';
  width: 40px;
  height: 40px;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  padding-top: 2px;
  background-color: transparent;
}

.mes-home-products .elementor-swiper-button.swiper-button-next::before {
  content: "\f054";
  font-size: 14px;
  font-weight: 300;
  font-family: 'Font Awesome 7 PRO';
  width: 40px;
  height: 40px;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  padding-top: 2px;
  background-color: transparent;
}

@media (max-width: 992px) {
  .mes-home-products .elementor-swiper-button.swiper-button-prev {
    width: 50%;
    left: 0;
    right: auto;
    top: auto !important;
    bottom: -50px;
    display: flex;
    justify-content: flex-end;
    padding-right: 5px;
  }
  .mes-home-products .elementor-swiper-button.swiper-button-next {
    width: 50%;
    left: auto;
    right: 0;
    top: auto !important;
    bottom: -50px;
    display: flex;
    justify-content: flex-start;
    padding-left: 5px;
  }
}
@media (max-width: 767px) {
  .mes-home-products .elementor-swiper-button {
    display: none !important;
  }

  .mes-title-row .elementor-column:last-child .elementor-widget {
    text-align: left;
  }

  .mes-quality__lead {
    margin: 12px 0 0;
  }


  .mes-quality > .elementor-container > .elementor-row {
    gap: 16px;
  }

  .mes-collection-pair > .elementor-container > .elementor-row {
    gap: 12px;
  }

  .mes-collection-pair > .elementor-container > .elementor-row > .elementor-column {
    width: calc(50% - 6px);
  }

  .mes-inspire-carousel .elementor-image-carousel-wrapper {
    width: 88%;
    margin-left: 0 !important;
  }

  .mes-inspire-carousel .swiper {
    margin-left: 0 !important;
  }
}

#wrapper .mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-content {
  text-align: left !important;
}

/* ==========================================================================
   Home en móvil (diseño Figma "Home Mobile", 393px): márgenes laterales de 18px,
   títulos 28/34 500 y tarjetas apiladas.
   ========================================================================== */
@media (max-width: 767px) {
  #index #inner-wrapper {
    padding-right: 0;
    padding-left: 0;
  }

  /* Las secciones con la clase mes-native (banner, La Colección) llevan su relleno y sus títulos en Elementor */
  #index #content .elementor-top-section:not(.mes-native) {
    padding: 0 18px;
  }

  #index #content .elementor-top-section:not(.mes-native) .elementor-heading-title {
    font-size: 28px;
    line-height: 34px;
  }

  /* Banner: Elementor no deja cambiar por dispositivo la altura en modo "Ajustar a pantalla",
     el encuadre de la foto ni el ángulo del degradado */
  .mes-home-hero > .elementor-container {
    min-height: 582px !important;
  }

  #index #content .mes-home-hero {
    background-position: 58% 78%;
    background-size: auto 150%;
  }

  #index .mes-home-hero > .elementor-background-overlay {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, 0) 100%);
  }

  .mes-home-hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%);
  }

  /* Nuestros imprescindibles: título centrado en dos líneas, 2 tarjetas de 171px y flechas debajo */
  #index #content .mes-home-featured {
    padding-top: 38px;
  }

  .mes-home-featured .elementor-widget-heading {
    margin-bottom: 28px !important;
  }

  .mes-home-featured .elementor-heading-title {
    max-width: 263px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    line-height: 30px !important;
  }


  .mes-home-products .elementor-swiper-button {
    display: flex !important;
  }

  .mes-home-products .elementor-swiper-button::before {
    width: 9px;
    height: 9px;
  }

  .mes-home-products .product-miniature-grid .thumbnail-container {
    border-radius: 15px;
  }

  .mes-home-products .product-miniature-grid .product-description {
    padding: 14px 0 0 6px;
  }

  #wrapper .mes-home-products .product-miniature-grid .product-title,
  #wrapper .mes-home-products .product-miniature-grid .product-title a {
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
  }

  .mes-home-products .product-miniature-grid .products-variants {
    margin-top: 4px;
  }

  .mes-home-products .product-miniature-grid .products-variants::before {
    font-size: 12px;
    line-height: 16px;
  }

  /* La Colección: cuatro tarjetas a todo el ancho (320 y 240px), 12px entre ellas.
     Rellenos de la sección y textos de las tarjetas: en Elementor */
  .mes-collection > .elementor-container > .elementor-row,
  .mes-collection-pair > .elementor-container > .elementor-row {
    flex-direction: column;
    gap: 12px;
  }

  .mes-collection > .elementor-container > .elementor-row > .elementor-column,
  .mes-collection-pair > .elementor-container > .elementor-row > .elementor-column {
    width: 100% !important;
  }

  .mes-collection-side .elementor-widget-wrap {
    gap: 12px;
  }

  .mes-photo-card .elementor-iqit-banner-img img,
  .mes-collection .mes-photo-card .elementor-iqit-banner-img img {
    height: 240px;
  }

  .mes-collection .mes-photo-card--tall .elementor-iqit-banner-img img {
    height: 320px;
  }

  .mes-photo-card .elementor-iqit-banner-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 60%);
  }

  .mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-content {
    padding: 20px;
  }

  #wrapper .mes-photo-card:where(:not(.mes-native)) .elementor-iqit-banner-title {
    font-size: 22px;
    line-height: 26px;
  }

  /* Configurador: caja de radio 24, mosaico de 357x350 y botones claros a todo el ancho */
  #index #content .elementor-top-section:has(.mes-config) {
    padding-top: 0;
    padding-bottom: 38px;
  }

  .mes-config {
    border-radius: 24px;
  }

  .mes-config__image img {
    aspect-ratio: 357 / 350;
  }

  .mes-config > .elementor-container > .elementor-row > .elementor-column:last-child > .elementor-column-wrap {
    padding: 32px 24px !important;
  }

  .mes-config > .elementor-container > .elementor-row > .elementor-column:last-child .elementor-widget-wrap {
    padding: 0 !important;
  }

  .mes-config .elementor-widget-heading {
    margin-bottom: 24px !important;
  }

  #index #content .mes-config .elementor-heading-title {
    color: #f3f3f3;
    font-size: 36px;
    line-height: 37px;
  }

  .mes-config__lead,
  .mes-config__lead p {
    max-width: none;
    color: #a1a5ae;
    font-size: 17px;
    line-height: 24px;
  }

  #wrapper .mes-steps {
    gap: 20px;
    margin-top: 24px;
  }

  #wrapper .mes-steps li {
    color: #f3f3f3;
    font-size: 17px;
    line-height: 21px;
  }

  #wrapper .mes-steps small {
    margin-bottom: 1px;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0;
  }

  #wrapper .mes-steps__icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-color: #e5e7eb;
  }

  .mes-config .mes-btn-row {
    margin-top: 32px;
  }

  .mes-config .mes-btn-row > .elementor-container > .elementor-row {
    flex-direction: column;
    gap: 12px;
  }

  .mes-config .mes-btn-row .mes-auto-col {
    width: 100% !important;
  }

  #wrapper .mes-config .mes-pill--light .elementor-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 24px;
    background: #f3f3f3;
    color: #121212;
    line-height: 20px;
  }

  /* Calidad en cada milímetro: 48px arriba y abajo, 24px entre bloques, tarjetas de 466px */
  #index #content .elementor-top-section:has(.mes-quality) {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .mes-title-row > .elementor-container > .elementor-row {
    flex-direction: column;
  }

  .mes-title-row > .elementor-container > .elementor-row > .elementor-column {
    width: 100% !important;
  }

  .mes-quality__lead {
    max-width: none;
    margin: 24px 0 0;
  }

  .mes-quality__lead p {
    color: var(--mes-muted);
    font-size: 16px;
    line-height: 23px;
  }

  .elementor-top-section:has(.mes-quality) .mes-title-row {
    margin-bottom: 24px;
  }

  .mes-quality > .elementor-container > .elementor-row {
    gap: 24px;
  }

  .mes-photo-card--quality .elementor-iqit-banner-img img {
    height: 466px;
  }

  #wrapper .mes-photo-card--quality .elementor-iqit-banner-subtitle {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0;
  }

  #wrapper .mes-photo-card--quality .elementor-iqit-banner-title {
    margin-bottom: 8px;
  }

  #wrapper .mes-photo-card--quality .elementor-iqit-banner-description {
    font-size: 15px;
    line-height: 20px;
  }

  /* Inspírate: título, carrusel de 307x263 (10px de hueco) y el enlace debajo */
  #index .mes-inspire-carousel > .elementor-widget-container {
    margin-top: 0;
  }

  /* Diapositiva de 317px: la foto de 307 y 10px de hueco hasta la siguiente, que asoma */
  #index .mes-inspire-carousel .elementor-image-carousel-wrapper {
    width: 317px !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
  }

  #index .mes-inspire-carousel .swiper-slide-inner {
    padding: 0 10px 0 0;
  }

  .mes-inspire-carousel .swiper-slide img {
    height: 263px;
    aspect-ratio: auto;
  }
}

/* Iconos de los pasos del configurador (Figma): silla, capas y paleta de trazo fino */
#wrapper .mes-steps__icon i {
  width: 20px;
  height: 20px;
  font-size: 0;
}

#wrapper .mes-steps__icon i::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: var(--mes-icon) center / contain no-repeat;
  mask: var(--mes-icon) center / contain no-repeat;
}

#wrapper .mes-steps li:nth-child(1) .mes-steps__icon i {
  --mes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M5.5 1.5h9v8h-9zM5.5 4.5h9M5.5 7h9M3.5 9.5h13v3h-13zM4.5 12.5v6M15.5 12.5v6M4.5 15.5h11'/%3E%3C/svg%3E");
}

#wrapper .mes-steps li:nth-child(2) .mes-steps__icon i {
  --mes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M10 2l8 4.2-8 4.2-8-4.2z'/%3E%3Cpath d='M2 10l8 4.2 8-4.2M2 13.8L10 18l8-4.2'/%3E%3C/svg%3E");
}

#wrapper .mes-steps li:nth-child(3) .mes-steps__icon i {
  --mes-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M10 1.8c-4.6 0-8.2 3.6-8.2 8.1 0 4.5 3.6 8.3 8 8.3 1.2 0 1.9-.8 1.9-1.8 0-.5-.2-.9-.5-1.3-.3-.3-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8h2.1c2.1 0 3.6-1.6 3.6-3.6 0-3.7-3.6-6.6-8.2-6.6z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Contacto (templates/contact.tpl): título centrado con entradilla; tarjeta oscura con foto y
   datos (como el configurador de la home) junto al formulario en tarjeta gris.
   ========================================================================== */
#contact nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#contact nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

#contact .mes-contact-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

#contact .mes-contact-head .page-title {
  margin-bottom: 16px;
  padding-bottom: 0;
}

.mes-contact-head__lead {
  margin: 0;
  color: var(--mes-muted);
  font-size: 18px;
  line-height: 28px;
}

.mes-contact-page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 96px;
}

/* Tarjeta de datos */
.mes-contact-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #202122;
  color: #f3f3f3;
}

.mes-contact-card__body {
  padding: 40px;
}

#wrapper .mes-contact-card__title {
  margin: 0 0 32px;
  color: #f3f3f3;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.mes-contact-card__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-contact-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mes-contact-card__icon {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 243, 243, .3);
  border-radius: 50%;
}

.mes-contact-card__icon svg {
  width: 20px;
  height: 20px;
}

.mes-contact-card__data {
  padding-top: 2px;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

.mes-contact-card__data small {
  display: block;
  margin-bottom: 2px;
  color: #a1a5ae;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

#wrapper .mes-contact-card__data a {
  color: #f3f3f3;
  transition: opacity .2s;
}

#wrapper .mes-contact-card__data a:hover {
  opacity: .7;
}

#wrapper .mes-contact-card__data .mes-contact-card__map {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: #a1a5ae;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Formulario */
.mes-contact-form {
  padding: 48px;
  border-radius: 24px;
  background: var(--mes-surface);
}

#wrapper .mes-contact-form__title {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.mes-contact-form .alert {
  margin-bottom: 24px;
  border: 0;
  border-radius: 12px;
}

.mes-contact-form .alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.mes-field--full {
  grid-column: 1 / -1;
}

.mes-field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--mes-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mes-field__label span {
  color: var(--mes-muted);
  font-weight: 400;
}

.mes-contact-form .form-control,
.mes-contact-form select.form-control:not([size]):not([multiple]) {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--mes-border);
  border-radius: 12px;
  background-color: #fff;
  color: var(--mes-ink);
  font-size: 16px;
  line-height: 24px;
  box-shadow: none;
  transition: border-color .2s;
}

.mes-contact-form textarea.form-control {
  height: auto;
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
}

.mes-contact-form .form-control::placeholder {
  color: #9ca3af;
}

.mes-contact-form .form-control:focus {
  border-color: var(--mes-ink);
  outline: 0;
}

.mes-contact-form .form-control-select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23202122' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  -webkit-appearance: none;
  appearance: none;
}

/* Adjunto: caja discontinua con botón en píldora y el nombre del archivo */
.mes-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 10px;
  border: 1px dashed #c4c8cf;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s;
}

.mes-file:hover,
.mes-file:focus-within {
  border-color: var(--mes-ink);
}

.mes-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mes-file__btn {
  flex: none;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--mes-ink-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.mes-file__name {
  overflow: hidden;
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mes-file.has-file .mes-file__name {
  color: var(--mes-ink);
}

.mes-contact-form__gdpr,
.mes-contact-form__gdpr label {
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 20px;
}

.mes-contact-form__footer {
  margin-top: 32px;
  text-align: left;
}

#wrapper .mes-contact-form__submit {
  padding: 16px 40px;
  border: 1px solid var(--mes-ink-strong);
  border-radius: 999px;
  background: var(--mes-ink-strong);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-transform: none;
  transition: background-color .2s, color .2s;
}

#wrapper .mes-contact-form__submit:hover,
#wrapper .mes-contact-form__submit:focus-visible {
  background: #fff;
  color: var(--mes-ink-strong);
}

@media (max-width: 991px) {
  .mes-contact-page {
    grid-template-columns: minmax(0, 1fr);
  }

  /* En pantallas estrechas primero el formulario, que es a lo que se viene */
  .mes-contact-card {
    order: 2;
  }
}

@media (max-width: 767px) {
  #contact .mes-contact-head {
    margin-bottom: 32px;
  }

  .mes-contact-head__lead {
    font-size: 16px;
    line-height: 24px;
  }

  .mes-contact-page {
    gap: 16px;
    margin-bottom: 56px;
  }

  .mes-contact-form,
  .mes-contact-card__body {
    padding: 32px 20px;
  }

  #wrapper .mes-contact-form__title,
  #wrapper .mes-contact-card__title {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 30px;
  }

  .mes-contact-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #wrapper .mes-contact-form__submit {
    width: 100%;
  }
}

/* ==========================================================================
   Registro profesional (módulo sdiregistrovalidado, plantillas en themes/mesinor/modules):
   misma composición que Contacto (cabecera, tarjeta oscura + formulario gris) con el formulario
   en bloques (Tus datos, Tu empresa, Dirección). Los colores del módulo (dynamic_colors) se anulan aquí.
   ========================================================================== */
#module-sdiregistrovalidado-registroprofesional nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#module-sdiregistrovalidado-registroprofesional .mes-contact-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

#module-sdiregistrovalidado-registroprofesional .mes-contact-head .page-title {
  margin-bottom: 16px;
  padding-bottom: 0;
}

.mes-pro-page {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 96px;
}

/* Tarjeta lateral: fija mientras se rellena el formulario */
.mes-pro-card {
  position: sticky;
  top: 120px;
}

.mes-pro-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-pro-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mes-pro-steps .mes-contact-card__icon {
  font-size: 16px;
  font-weight: 500;
}

.mes-pro-card__help {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 243, 243, .15);
  color: #a1a5ae;
  font-size: 15px;
  line-height: 22px;
}

#wrapper .mes-pro-card__help a {
  color: #f3f3f3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Formulario */
.mes-pro-form__required {
  margin: 0 0 8px;
  color: var(--mes-muted);
  font-size: 13px;
  text-align: right;
}

#wrapper .sdi-form .field-required {
  color: var(--mes-muted);
}

.mes-pro-block {
  margin: 0;
  padding: 0;
  border: 0;
}

.mes-pro-block + .mes-pro-block {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--mes-border);
}

/* La leyenda flota para no partir el borde del fieldset */
#wrapper .mes-pro-block__title {
  float: left;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: var(--mes-ink-strong);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
}

.mes-pro-block > .mes-contact-form__grid {
  clear: both;
}

.mes-field__hint {
  display: block;
  margin-top: 6px;
  color: var(--mes-muted);
  font-size: 13px;
  line-height: 18px;
}

/* Errores y validación (clases de form-validation.js) */
#wrapper .sdi-form .form-error-message {
  display: none;
  margin: 6px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 18px;
}

#wrapper .sdi-form .is-invalid + .form-error-message,
#wrapper .sdi-form .mes-check:has(input.is-invalid) + .form-error-message {
  display: block;
}

.mes-contact-form .form-control.is-invalid {
  border-color: #b42318;
  background-image: none;
}

.mes-contact-form .form-control.is-valid {
  border-color: var(--mes-border);
  background-image: none;
}

.mes-contact-form .form-control.is-valid:focus,
.mes-contact-form .form-control.is-invalid:focus {
  box-shadow: none;
}

.mes-contact-form select.form-control.is-valid,
.mes-contact-form select.form-control.is-invalid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23202122' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}

.sdi-form .alert-danger,
.sdi-form .registration-errors {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  background: #fdecea;
  color: #8a1c13;
  font-size: 14px;
  line-height: 20px;
}

.sdi-form .alert-danger ul,
.sdi-form .registration-errors ul {
  margin: 0;
  padding-left: 18px;
}

/* Casillas: cuadradas redondeadas, marcadas en negro (como los filtros) */
.mes-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--mes-ink);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.mes-check input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mes-check__box {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid #c4c8cf;
  border-radius: 6px;
  background: #fff;
  transition: background-color .15s, border-color .15s;
}

.mes-check input:checked + .mes-check__box {
  border-color: var(--mes-ink-strong);
  background: var(--mes-ink-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.mes-check input:focus-visible + .mes-check__box {
  outline: 2px solid var(--mes-ink);
  outline-offset: 2px;
}

.mes-check input.is-invalid + .mes-check__box {
  border-color: #b42318;
}

#wrapper .mes-check a {
  color: var(--mes-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mes-pro-terms {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--mes-border);
}

.mes-pro-terms .form-error-message {
  margin-left: 32px;
}

.mes-pro-form .mes-contact-form__footer {
  margin-top: 28px;
}

/* El botón cambia a "Enviando…" con un spinner de Bootstrap */
#wrapper .mes-pro-form .mes-contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#wrapper .mes-pro-form .mes-contact-form__submit.disabled {
  opacity: .6;
}

.mes-pro-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mes-border);
  color: var(--mes-muted);
  font-size: 15px;
  line-height: 22px;
}

.mes-pro-links p {
  margin: 0 0 6px;
}

#wrapper .mes-pro-links a {
  color: var(--mes-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Capa de "Procesando…" y avisos del módulo, con la paleta de la web */
.form-overlay {
  background: rgba(255, 255, 255, .92);
  color: var(--mes-ink);
  font-size: 16px;
}

.form-overlay .spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--mes-border);
  border-top-color: var(--mes-ink-strong);
}

.notification {
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.notification-success {
  background-color: var(--mes-ink-strong);
}

.notification-error {
  background-color: #b42318;
}

/* Solicitud enviada: form-validation.js mete registration_success.tpl en un .alert-success */
.mes-pro-form .alert-success {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.mes-pro-success {
  padding: 24px 0;
  color: var(--mes-muted);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.mes-pro-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--mes-ink-strong);
  color: #fff;
}

.mes-pro-success__icon svg {
  width: 30px;
  height: 30px;
}

#wrapper .mes-pro-success__title {
  margin: 0 0 12px;
  color: var(--mes-ink-strong);
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
}

.mes-pro-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 991px) {
  .mes-pro-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .mes-pro-card {
    position: static;
    order: 2;
  }
}

@media (max-width: 767px) {
  #module-sdiregistrovalidado-registroprofesional #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  #module-sdiregistrovalidado-registroprofesional .mes-contact-head {
    margin-bottom: 32px;
  }

  .mes-pro-page {
    gap: 16px;
    margin-bottom: 56px;
  }

  .mes-pro-form__required {
    text-align: left;
  }

  #wrapper .mes-pro-block__title {
    font-size: 20px;
    line-height: 26px;
  }

  .mes-pro-success__actions .mes-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Aviso de cookies (módulo Cookies Plus) con el sistema de diseño de la web:
   tarjeta blanca flotante, Outfit, botones en píldora y conmutadores en negro.
   Colores de fondo, texto y botones: configuración del módulo (Cookies Plus > Aspecto).
   ========================================================================== */
#cookiesplus-overlay {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

#cookiesplus-modal-container #cookiesplus-modal {
  width: min(960px, calc(100% - 32px)) !important;
  max-height: calc(100% - 48px);
  padding: 32px 36px 28px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18, 18, 18, .18);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
}

#cookiesplus-modal-container #cookiesplus-modal.cookiesplus-bottom {
  bottom: 24px;
}

#cookiesplus-modal #cookiesplus-content {
  padding: 0;
}

#cookiesplus-modal .cookiesplus-text,
#cookiesplus-modal .cookiesplus-text p {
  font-size: 16px;
  line-height: 24px;
}

#cookiesplus-modal .cookiesplus-close,
#cookiesplus-modal .cookiesplus-close-and-reject {
  top: 14px;
  right: 18px;
  color: #121212;
  font-size: 28px;
  font-weight: 300;
}

/* Botones: fila con huecos de 12px y píldoras de 52px de alto */
#cookiesplus-modal .cookiesplus-actions {
  margin-top: 24px;
}

#cookiesplus-modal .cookiesplus-actions .first-layer > .row,
#cookiesplus-modal .cookiesplus-actions .second-layer > .row:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

#cookiesplus-modal .cookiesplus-actions .row > [class*="col-"] {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  padding: 0;
}

#cookiesplus-modal .cookiesplus-actions .row > [class*="col-"]:empty {
  display: none;
}

#cookiesplus-modal .cookiesplus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  line-height: 22px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#cookiesplus-modal .cookiesplus-btn span {
  font-weight: 600;
}

#cookiesplus-modal .cookiesplus-btn:hover {
  border-color: #121212 !important;
  background-color: #121212 !important;
  color: #fff !important;
}

#cookiesplus-modal .cookiesplus-accept:hover {
  border-color: #202122 !important;
  background-color: #202122 !important;
}

#cookiesplus-modal .cookiesplus-btn:focus-visible {
  outline: 2px solid #7de4ff;
  outline-offset: 2px;
}

/* "← Atrás" a la izquierda y la política a la derecha (el módulo los flota pegados) */
#cookiesplus-modal .cookiesplus-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin-top: 16px;
  padding: 0;
}

/* Su fila no es flex (display: block): la regla de columnas de arriba lo dejaba a 259px */
#cookiesplus-modal .cookiesplus-actions .row > .cookiesplus-footer-actions {
  flex: none;
  width: 100%;
}

#cookiesplus-modal .cookiesplus-footer-actions > div {
  float: none !important;
}

#cookiesplus-modal .cookiesplus-footer-actions > .float-xs-right:only-child {
  margin-left: auto;
}

/* Título del aviso (primer párrafo del texto configurado en el módulo) */
#cookiesplus-modal .cookiesplus-text p.cookiesplus-title {
  margin: 0 0 8px;
  color: #121212 !important; /* el módulo pone el color del texto en línea */
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
}

#cookiesplus-modal #cookiesplus-back,
#cookiesplus-modal .cookiesplus-policy {
  color: #121212;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Segunda capa: finalidades con separadores finos y conmutador negro */
#cookiesplus-modal #cookiesplus-finalities-container {
  margin: 20px 0 0;
}

#cookiesplus-modal .cookieplus-finality-container {
  padding: 16px 0;
  border-color: #e5e7eb;
}

#cookiesplus-modal .cookiesplus-finality-title {
  color: #121212;
  font-size: 16px;
}

#cookiesplus-modal .cookiesplus-finality-title strong {
  font-weight: 500;
}

#cookiesplus-modal .cookiesplus-finality-chevron::before {
  width: 7px;
  height: 7px;
  border-width: 1.5px 1.5px 0 0;
}

#cookiesplus-modal .cookiesplus-finality-switch-container label,
#cookiesplus-modal .cookiesplus-finality-switch-container label.technical {
  color: #6b7280;
  font-size: 14px;
}

#cookiesplus-modal .cookiesplus-finality-switch {
  width: 44px;
  height: 24px;
  background: #d1d5db !important;
}

#cookiesplus-modal .cookiesplus-finality-switch::before {
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  content: "" !important;
  transition: left .2s ease;
}

#cookiesplus-modal .cookiesplus-finality-checkbox[value="on"]:checked ~ .cookiesplus-finality-switch {
  background: #121212 !important;
}

#cookiesplus-modal .cookiesplus-finality-checkbox[value="on"]:checked ~ .cookiesplus-finality-switch::before {
  left: 23px !important;
}

#cookiesplus-modal .cookiesplus-finality-content {
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

#cookiesplus-modal td,
#cookiesplus-modal th {
  border-color: #e5e7eb;
}

#cookiesplus-modal th {
  background: #f3f4f6;
  color: #121212;
  font-weight: 500;
}

@media (max-width: 767px) {
  #cookiesplus-modal-container #cookiesplus-modal {
    width: calc(100% - 24px) !important;
    padding: 24px 20px 20px;
    border-radius: 20px;
  }

  #cookiesplus-modal-container #cookiesplus-modal.cookiesplus-bottom {
    bottom: 12px;
  }

  #cookiesplus-modal .cookiesplus-text,
  #cookiesplus-modal .cookiesplus-text p {
    font-size: 14px;
    line-height: 20px;
  }

  /* Configurar a todo el ancho; Rechazar y Aceptar, con el mismo peso, en una fila */
  #cookiesplus-modal .cookiesplus-actions .row > [class*="col-"] {
    flex-basis: 100%;
  }

  #cookiesplus-modal .cookiesplus-actions .first-layer > .row:first-child > [class*="col-"]:nth-child(n+2) {
    flex-basis: calc(50% - 6px);
  }

  #cookiesplus-modal .cookiesplus-text p.cookiesplus-title {
    font-size: 20px;
    line-height: 26px;
  }

  #cookiesplus-modal .cookiesplus-btn {
    min-height: 46px;
    padding: 11px 20px;
  }
}

/* ==========================================================================
   Noticias (ph_simpleblog). Plantillas en modules/ph_simpleblog del tema hijo.
   Cada noticia es contenido de Elementor con la misma estructura (plantilla
   "Noticia" de iqitelementor), maquetada solo con estas clases:
     sección "mes-post-section mes-post-head" → imagen "mes-post-hero"
       (+ "mes-post-hero--contain" para carteles, logos o fotos verticales)
     sección "mes-post-section mes-post-body" → texto "mes-post-text" e
       imagen "mes-post-img", alternados
     sección "mes-post-section mes-post-cta"  → banner "¿Tienes alguna duda?"
   ========================================================================== */
#module-ph_simpleblog-list nav.breadcrumb,
#module-ph_simpleblog-category nav.breadcrumb,
#module-ph_simpleblog-single nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#module-ph_simpleblog-list nav.breadcrumb li:last-child span,
#module-ph_simpleblog-category nav.breadcrumb li:last-child span,
#module-ph_simpleblog-single nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

/* Cabeceras centradas, como Quiénes somos */
.mes-blog-header,
.mes-post-header {
  margin-bottom: 0;
  text-align: center;
}

.mes-blog-header .page-title,
.mes-post-header .page-title {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 0;
  line-height: 1.15;
}

.mes-blog-intro {
  max-width: 640px;
  margin: 16px auto 56px;
  color: var(--mes-muted);
  font-size: 20px;
  line-height: 1.5;
}

.mes-post-date,
.mes-news-card__date {
  margin: 0 0 12px;
  color: var(--mes-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Listado: tres tarjetas por fila (dos en tableta, una en móvil) */
.mes-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin-bottom: 96px;
}

.mes-news-card {
  position: relative;
}

.mes-news-card__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  background: var(--mes-surface);
}

.mes-news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.mes-news-card:hover .mes-news-card__media img {
  transform: scale(1.03);
}

.mes-news-card__body {
  padding-top: 20px;
}

.mes-news-card__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.mes-news-card__title a,
.mes-news-card__title a:hover {
  color: var(--mes-ink-strong);
}

/* El enlace del título cubre la tarjeta entera */
.mes-news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mes-news-card__more {
  color: var(--mes-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mes-news-card:hover .mes-news-card__more {
  text-decoration-thickness: 2px;
}

.mes-news-empty {
  margin-bottom: 96px;
  color: var(--mes-muted);
  font-size: 18px;
  text-align: center;
}

/* Noticia: foto de cabecera a 960px y texto a una columna de lectura de 760px */
.elementor-section.mes-post-head > .elementor-container {
  max-width: 980px;
  margin-top: 48px;
}

.elementor-section.mes-post-body > .elementor-container {
  max-width: 780px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.mes-post-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
}

.mes-post-hero--contain img {
  padding: 32px;
  background: var(--mes-surface);
  object-fit: contain;
}

.mes-post-body .elementor-widget:not(:last-child) {
  margin-bottom: 40px;
}

.mes-post-text,
.mes-post-text p {
  color: var(--mes-muted);
  font-size: 18px;
  line-height: 1.75;
}

.mes-post-text p:last-child {
  margin-bottom: 0;
}

.mes-post-text p + p {
  margin-top: 1em;
}

.mes-post-text strong,
.mes-post-text b {
  color: var(--mes-ink);
  font-weight: 500;
}

.mes-post-text a {
  color: var(--mes-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fotos del cuerpo a su tamaño natural (hay originales pequeños), sin pasar de 640px de alto */
.mes-post-img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  margin: 0 auto;
  border-radius: 24px;
}

@media (max-width: 991px) {
  .mes-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mes-blog-intro {
    margin-bottom: 36px;
    font-size: 17px;
  }

  .mes-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-bottom: 56px;
  }

  .mes-news-card__media {
    border-radius: 16px;
  }

  .mes-news-card__title {
    font-size: 20px;
  }

  .elementor-section.mes-post-head > .elementor-container {
    margin-top: 28px;
  }

  .elementor-section.mes-post-body > .elementor-container {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .mes-post-hero img {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .mes-post-hero--contain img {
    padding: 20px;
  }

  .mes-post-body .elementor-widget:not(:last-child) {
    margin-bottom: 28px;
  }

  .mes-post-text,
  .mes-post-text p {
    font-size: 16px;
  }

  .mes-post-img img {
    max-height: 480px;
    border-radius: 16px;
  }
}

/*GENERALES*/
.mes-buttons-home-line .elementor-widget-wrap{
  display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
@media (max-width: 767px) {
  .mes-buttons-home-line .elementor-widget-wrap{
    gap: 8px 8px;
  }
  .mes-buttons-home-line .elementor-widget-wrap .elementor-widget{
    width: 100%;
    gap: 8px 8px;
  }
  .mes-buttons-home-line .elementor-widget-wrap .elementor-widget a{
    width: 100%;
  }
}
.mes-same-line .elementor-image-box-wrapper{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
}
.mes-same-line .elementor-image-box-wrapper .elementor-image-box-img{
  width: fit-content !important;
}

.mes-home-config .elementor-container{
  overflow: hidden;
  border-radius: 20px;
}
/* ==========================================================================
   Página 404 (templates/errors/404.tpl): mensaje centrado con la tipografía de las páginas de
   contenido (antetítulo 20/22, título 76/76, texto gris 18/28), botones redondeados y accesos a
   las categorías con las fotos de "La Colección" (radio 16, degradado y nombre abajo).
   ========================================================================== */
.mes-404 {
  padding: 96px 0 130px;
}

.mes-404__head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

#wrapper .mes-404__kicker {
  margin: 0 0 16px;
  color: var(--mes-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#wrapper .mes-404__title {
  margin: 0;
  color: var(--mes-ink-strong);
  font-size: 76px;
  font-weight: 500;
  line-height: 76px;
}

#wrapper .mes-404__text {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--mes-muted);
  font-size: 18px;
  line-height: 32px;
}

.mes-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.mes-404__links {
  margin-top: 112px;
}

#wrapper .mes-404__links-title {
  margin: 0 0 40px;
  color: var(--mes-ink-strong);
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.mes-404__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mes-404__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.mes-404__card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .6s ease;
}

.mes-404__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%);
}

.mes-404__card:hover img {
  transform: scale(1.04);
}

#wrapper .mes-404__card-name {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
}

@media (max-width: 991px) {
  .mes-404__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: mismas medidas que las demás páginas móviles (18px de margen, título 40/44, texto 16/22) */
@media (max-width: 767px) {
  #pagenotfound #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  .mes-404 {
    padding: 48px 0 56px;
  }

  #wrapper .mes-404__kicker {
    font-size: 16px;
    line-height: 20px;
  }

  #wrapper .mes-404__title {
    font-size: 40px;
    line-height: 44px;
  }

  #wrapper .mes-404__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 22px;
  }

  .mes-404__actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
  }

  #wrapper .mes-404__actions .mes-btn {
    width: 100%;
    min-height: 50px;
  }

  .mes-404__links {
    margin-top: 56px;
  }

  #wrapper .mes-404__links-title {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 30px;
  }

  .mes-404__grid {
    gap: 12px;
  }

  .mes-404__card {
    border-radius: 10px;
  }

  .mes-404__card img {
    height: 200px;
  }

  #wrapper .mes-404__card-name {
    right: 14px;
    bottom: 14px;
    left: 14px;
    font-size: 18px;
    line-height: 22px;
  }
}

/* ==========================================================================
   Dónde comprar (/tiendas, templates/cms/stores.tpl). Sin diseño en el Figma: cabecera centrada como
   Quiénes somos (antetítulo 20/22, título 48, entradilla gris 20/28) y tarjetas con borde (como las
   del configurador) en rejilla de 3 columnas (2 en tableta, 1 en móvil).
   ========================================================================== */
#stores nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#stores nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

.mes-stores {
  padding-bottom: 139px;
}

.mes-stores__head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

#wrapper .mes-stores__kicker {
  margin: 0 0 16px;
  color: var(--mes-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#wrapper .mes-stores__title {
  margin: 0;
  color: var(--mes-ink-strong);
  font-size: 48px;
  font-weight: 500;
  line-height: 52px;
}

#wrapper .mes-stores__intro {
  margin: 24px 0 0;
  color: var(--mes-muted);
  font-size: 20px;
  line-height: 28px;
}

.mes-stores__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mes-store {
  padding: 24px;
  border: 2px solid var(--mes-border);
  border-radius: 20px;
  background: #fff;
  transition: border-color .2s;
}

.mes-store:hover {
  border-color: #cbd0d6;
}

.mes-store__name {
  display: block;
  margin-bottom: 8px;
  color: var(--mes-ink-strong);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.mes-store__address {
  margin: 0;
  color: var(--mes-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 22px;
}

.mes-store__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 12px;
}

#wrapper .mes-store__link {
  color: var(--mes-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

#wrapper .mes-store__link:hover {
  text-decoration: underline;
}

.mes-store__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 12px 0 0;
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 20px;
}

.mes-store__hours dt {
  font-weight: 500;
}

.mes-store__hours dd {
  margin: 0;
}

#wrapper .mes-store__note {
  margin: 12px 0 0;
  color: var(--mes-muted);
  font-size: 14px;
  line-height: 20px;
}

#wrapper .mes-store__route {
  display: inline-block;
  margin-top: 16px;
}

.mes-stores__cta {
  margin: 64px 0 0;
}

@media (max-width: 991px) {
  .mes-stores__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: mismas medidas que las demás páginas móviles (18px de margen, título 32/34, texto 16/22) */
@media (max-width: 767px) {
  #stores #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  #stores nav.breadcrumb {
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  .mes-stores {
    padding-bottom: 56px;
  }

  .mes-stores__head {
    margin-bottom: 32px;
  }

  #wrapper .mes-stores__kicker {
    font-size: 16px;
    line-height: 20px;
  }

  #wrapper .mes-stores__title {
    font-size: 32px;
    line-height: 34px;
  }

  #wrapper .mes-stores__intro {
    margin-top: 15px;
    font-size: 16px;
    line-height: 22px;
  }

  .mes-stores__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mes-store {
    padding: 20px;
    border-radius: 16px;
  }

  .mes-stores__cta {
    margin-top: 40px;
  }
}

/* ==========================================================================
   Menú lateral móvil (iqitmegamenu, panel que se desliza): a todo el ancho, fondo blanco, enlaces
   grandes de 24px separados por una línea fina, flecha fina y submenús con el estilo de los
   antetítulos de la web. Sin selector de idioma ni de moneda (la tienda es solo en español y euros).
   Sin diseño en el Figma: usa los tokens y tamaños de las demás páginas móviles.
   ========================================================================== */
@media (max-width: 991px) {
  .col-mobile-menu-push #_mobile_iqitmegamenu-mobile {
    width: 100%;
    max-width: none;
  }

  .col-mobile-menu-push #iqitmegamenu-mobile {
    background: #fff;
    color: var(--mes-ink);
  }

  /* Cabecera del panel: blanca, con la cruz a la derecha y la flecha de volver a la izquierda */
  #iqitmegamenu-mobile .mobile-menu__header-wrapper {
    min-height: 72px;
    padding: 0 18px !important;
    border-bottom: 1px solid var(--mes-border);
    background: #fff;
    align-items: center;
  }

  #iqitmegamenu-mobile .mobile-menu__back-btn {
    padding: 0;
    color: var(--mes-ink-strong);
    font-size: 24px;
  }

  #iqitmegamenu-mobile .mobile-menu__title {
    color: var(--mes-ink-strong);
    font-family: var(--mes-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
  }

  #iqitmegamenu-mobile .mobile-menu__close {
    margin-right: -8px;
    padding: 8px;
    color: var(--mes-ink-strong);
    font-size: 24px;
  }

  /* Lista principal */
  #iqitmegamenu-mobile .mobile-menu__content {
    margin: 0 !important;
  }

  #iqitmegamenu-mobile .mobile-menu__scroller {
    padding: 8px 18px 40px !important;
  }

  #iqitmegamenu-mobile .mobile-menu__tab {
    min-height: 64px;
    border-bottom: 1px solid var(--mes-border);
  }

  #iqitmegamenu-mobile .mobile-menu__tab:last-of-type {
    border-bottom: 0;
  }

  #iqitmegamenu-mobile .mobile-menu__link {
    width: auto;
    padding: 18px 0;
    color: var(--mes-ink-strong) !important;
    font-family: var(--mes-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
  }

  #iqitmegamenu-mobile .mobile-menu__arrow {
    padding: 18px 0 18px 20px;
    color: var(--mes-ink);
    font-size: 20px;
  }

  /* Submenús (Productos, Acabados): antetítulo gris en mayúsculas y enlaces de 20px */
  #iqitmegamenu-mobile .mobile-menu__submenu {
    padding: 8px 18px 40px !important;
    background: #fff;
  }

  #iqitmegamenu-mobile .mobile-menu__column {
    margin-bottom: 32px;
  }

  #iqitmegamenu-mobile .mobile-menu__column-categories:not(:last-child) {
    margin-bottom: 24px;
  }

  #iqitmegamenu-mobile .mobile-menu__column-title {
    margin-bottom: 8px;
    color: var(--mes-muted) !important;
    font-family: var(--mes-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  /* Las categorías de Productos son enlaces: se ven como los demás */
  #iqitmegamenu-mobile a.mobile-menu__column-title {
    color: var(--mes-ink-strong) !important;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 26px;
    text-transform: none;
  }

  #iqitmegamenu-mobile .mobile-menu__links-list-li {
    padding: 8px 0;
  }

  #iqitmegamenu-mobile .mobile-menu__links-list-li a {
    color: var(--mes-ink) !important;
    font-size: 18px;
    line-height: 24px;
  }

  #iqitmegamenu-mobile .mobile-menu__links-list-li a:hover {
    color: var(--mes-ink-strong) !important;
  }

  /* Pie con idioma, moneda y acceso a la cuenta: fuera (catálogo, solo español y euros) */
  #iqitmegamenu-mobile .mobile-menu__footer {
    display: none;
  }
}

/* ==========================================================================
   Búsqueda (/module/iqitsearch/searchiqit): mismo aire y parrilla que el listado de categoría
   ========================================================================== */
#module-iqitsearch-searchiqit #js-product-list-header .page-title,
#module-iqitsearch-searchiqit .page-title {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  line-height: 1.05;
}

#module-iqitsearch-searchiqit #js-product-list-top {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

#module-iqitsearch-searchiqit #js-product-list-top .view-switcher {
  display: none !important;
}

#module-iqitsearch-searchiqit #js-product-list-top .showing {
  color: var(--mes-ink);
  font-size: 14px;
}

#module-iqitsearch-searchiqit #js-product-list {
  margin-top: 32px;
}

#module-iqitsearch-searchiqit #js-product-list .products.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 41px 15px;
  margin: 0;
}

#module-iqitsearch-searchiqit #js-product-list .products.row > .js-product-miniature-wrapper {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
}

@media (min-width: 992px) {
  #module-iqitsearch-searchiqit #js-product-list .products.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #module-iqitsearch-searchiqit .page-title {
    font-size: 34px;
  }

  #module-iqitsearch-searchiqit #js-product-list .products.row {
    gap: 28px 12px;
  }
}

/* Sin resultados */
.mes-search-empty {
  max-width: 640px;
  margin: 48px auto 80px;
  text-align: center;
}

.mes-search-empty__title {
  margin: 0 0 12px;
  color: var(--mes-ink-strong);
  font-family: var(--mes-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
}

.mes-search-empty__text {
  margin: 0 0 28px;
  color: var(--mes-ink);
  font-size: 17px;
  line-height: 28px;
}

.mes-search-empty__actions {
  display: flex;
  justify-content: center;
}

/* Búsqueda: como en el listado de categoría, sin contador, orden ni productos por página */
#module-iqitsearch-searchiqit #js-product-list-top {
  display: none !important;
}

#module-iqitsearch-searchiqit #js-product-list {
  margin-top: 40px;
}

/* Búsqueda: migas como en el listado de categoría (centradas en escritorio, a la izquierda en móvil) */
#module-iqitsearch-searchiqit nav.breadcrumb {
  width: fit-content;
  margin: 0 auto 1px;
}

#module-iqitsearch-searchiqit nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

@media (max-width: 767px) {
  #module-iqitsearch-searchiqit nav.breadcrumb {
    width: auto;
    margin: 5px 9px 12px;
    padding: 0;
  }

  #module-iqitsearch-searchiqit nav.breadcrumb ol {
    margin: 0;
    padding: 0;
  }

  #module-iqitsearch-searchiqit nav.breadcrumb li,
  #module-iqitsearch-searchiqit nav.breadcrumb li a,
  #module-iqitsearch-searchiqit nav.breadcrumb li span {
    color: var(--mes-muted);
    font-size: 12px;
    line-height: 20px;
  }

  #module-iqitsearch-searchiqit nav.breadcrumb li:last-child span {
    color: var(--mes-ink-strong);
    font-weight: 400;
  }
}

/* ==========================================================================
   Personaliza tu producto (CMS 23, Figma "Personaliza tu producto"): el contenido es Elementor
   nativo (cabecera, pasos con icono, carruseles de productos, acabados y banner de contacto);
   aquí solo la miga centrada y el margen lateral móvil.
   ========================================================================== */
#cms.cms-id-23 nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#cms.cms-id-23 nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

@media (max-width: 767px) {
  #cms.cms-id-23 #wrapper {
    padding-top: 0;
  }

  #cms.cms-id-23 #inner-wrapper {
    padding-right: 18px;
    padding-left: 18px;
  }

  #cms.cms-id-23 nav.breadcrumb {
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
  }

  #cms.cms-id-23 .mes-cta-banner > .elementor-column-wrap {
    border-radius: 10px;
  }

  #cms.cms-id-23 .mes-cta-banner .mes-btn-row > .elementor-container > .elementor-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  #cms.cms-id-23 .mes-cta-banner .elementor-button {
    padding: 9.5px 18px;
    white-space: nowrap;
  }
}

/* Personaliza tu producto: nombre de producto de las tarjetas a 18/22 como en el Figma (el widget de productos no tiene control de tipografía) */
@media (min-width: 768px) {
  #cms.cms-id-23 .mes-home-products .product-miniature-grid .product-title,
  #cms.cms-id-23 .mes-home-products .product-miniature-grid .product-title a {
    font-size: 18px;
    line-height: 22px;
  }
}

/* Inspírate (módulo sdimesinorlookbook): migas centradas sobre el título, como en el diseño */
#module-sdimesinorlookbook-inspirate nav.breadcrumb {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#module-sdimesinorlookbook-inspirate nav.breadcrumb li:last-child span {
  color: var(--mes-ink);
  font-weight: 500;
}

/* Widget "Inspírate (Lookbook)": carrusel de imágenes del Lookbook con los enlaces al pasar el ratón.
   Lleva la clase mes-inspire-carousel (medidas del carrusel de la home); aquí, el hueco y el hover. */
.mes-lookbook-carousel {
  margin-right: -16px;
  margin-left: -16px;
  padding-right: 16px;
}

.mes-lookbook-carousel .swiper-slide-inner {
  padding: 16px;
}

.mes-lb-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.mes-lb-item img {
  display: block;
}

.mes-lb-links {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .25s ease;
  text-align: center;
}

.mes-lookbook-carousel .mes-lb-links a,
.mes-lookbook-carousel .mes-lb-links a:hover,
.mes-lookbook-carousel .mes-lb-links a:focus,
.mes-lookbook-carousel .mes-lb-links a:visited {
  color: #fff !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mes-lb-item:hover .mes-lb-links,
.mes-lb-item:focus-within .mes-lb-links,
.mes-lb-item.is-open .mes-lb-links {
  opacity: 1;
}

@media (max-width: 991px) {
  .mes-lookbook-carousel {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
  }
}
