/*GLOBAL STYLES*/
body p,
body h6,
body .menu-item .menu-link,
dt {
  font-family: 'SF Pro Display' !important;
}
.destacado {
  font-weight: 500;
}

/*TOP BAR*/
body .ast-icon-shopping-cart {
  background-image: url(https://stack.gmedia.es/wp-content/uploads/2026/07/cart.svg);
  background-size: contain;
  background-repeat: no-repeat;
  font-size: 0 !important;
  height: 22px;
  display: block;
}
.icon-search.icon-search-thin .ahfb-svg-iconset svg {
  display: none;
}

.icon-search.icon-search-thin .ahfb-svg-iconset {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://stack.gmedia.es/wp-content/uploads/2026/07/search.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.ast-header-account-link .ahfb-svg-iconset svg {
  display: none;
}

.ast-header-account-link .ahfb-svg-iconset {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('https://stack.gmedia.es/wp-content/uploads/2026/07/profile-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.ast-theme-transparent-header
  .ast-site-header-cart
  .ast-addon-cart-wrap
  i.astra-icon:after {
  background-color: #e05840;
  border-color: none !important;
  box-shadow: none !important;
}

.site-header-above-section-left .header-widget-area {
  padding-left: 0px !important;
}

.main-header-menu > li:nth-last-child(1) > a {
  padding-right: 0px !important;
}

header .custom-logo-link img {
  max-width: 208px !important;
  width: 208px !important;
}

/*Sticky Header*/
.ast-header-sticked.ast-primary-header {
  background-color: #fff !important;
  box-shadow: none !important;
}

.tax-product_cat .custom-logo {
  filter: invert(0) !important;
}
.ast-above-header-bar .ast-builder-html-element a {
  color: #000;
}
.home .ast-header-sticked .custom-logo {
  filter: invert(1) !important;
}
.ast-primary-header:has(.astra-megamenu-li:hover) {
  background-color: #fff !important;
  box-shadow: none !important;
}
.home .ast-primary-header:has(.astra-megamenu-li:hover) .custom-logo {
  filter: invert(1) !important;
}
.ast-primary-header:has(.astra-megamenu-li:hover)
  .main-header-menu
  > .menu-item
  > a {
  color: #191919 !important;
}
/* Sin admin bar (usuario no logeado) */
.menu-item .astra-full-megamenu-wrapper .astra-megamenu {
  top: 107px !important;
}
.ast-primary-sticky-header-active
  .menu-item
  .astra-full-megamenu-wrapper
  .astra-megamenu {
  top: 94px !important;
}
@media (max-width: 1440px) {
  .menu-item .astra-full-megamenu-wrapper .astra-megamenu {
    top: 2px !important;
  }
}

/* Con admin bar */
body.admin-bar .menu-item .astra-full-megamenu-wrapper .astra-megamenu {
  top: 139px !important;
}
body.admin-bar.ast-primary-sticky-header-active
  .menu-item
  .astra-full-megamenu-wrapper
  .astra-megamenu {
  top: 140px !important;
}
@media (max-width: 1440px) {
  body.admin-bar .menu-item .astra-full-megamenu-wrapper .astra-megamenu {
    top: 34px !important;
  }
}

/* ============================================================
   Buscador SearchWP — layout 2 zonas (sidebar + productos)
   ============================================================ */

.searchwp-popup {
  display: flex;
  background: #fff;
  max-width: 100%;
  overflow-x: auto;
}

.searchwp-live-search-results {
  position: fixed !important;
  top: 84px !important;
}

form.searchwp-form input.swp-input--search {
  background-image: url('https://stack.gmedia.es/wp-content/uploads/2026/07/search.svg') !important;
  background-color: #ffffff;
  border: none !important;
  background-position: left 0px top 50% !important;
  padding-left: 30px !important;
}

form.searchwp-form input.swp-input--search:focus {
  outline: none;
}

/* Texto base */
.searchwp-live-search-results h4 {
  margin-bottom: 20px;
  font-size: 16px;
}
.searchwp-live-search-results p {
  font-size: 16px;
}
.searchwp-live-search-results p,
.searchwp-live-search-results h4,
.searchwp-live-search-results a {
  color: #000;
}

/* ---------- Sidebar izquierdo: Relacionados + Blog ---------- */
.searchwp-sidebar {
  width: 20%;
  min-width: 240px;
  border-right: 2px solid #f4f4f4;
  padding: 50px 2rem 2rem;
  box-sizing: border-box;
}

.searchwp-sidebar .searchwp-group {
  margin-bottom: 40px;
}
.searchwp-sidebar h4 {
  font-family: 'SF Pro Display' !important;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Relacionados: lista de categorías */
.searchwp-related ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.searchwp-related li {
  margin-bottom: 14px;
}
.searchwp-related a {
  font-size: 16px;
  text-decoration: none;
  color: #000;
}
.searchwp-related a:hover {
  text-decoration: underline;
}

/* Artículos del blog */
.searchwp-blog .searchwp-feature {
  padding: 16px 0;
}
.searchwp-blog .searchwp-feature:last-child {
  border-bottom: 0;
}
.searchwp-blog .searchwp-feature a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  align-items: flex-start;
  flex-direction: column;
}
.searchwp-blog .searchwp-feature img {
  width: stretch;
  height: 150px;
  object-fit: cover;
}
.searchwp-feature-texts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.searchwp-feature-texts .post-title {
  font-size: 16px;
  /* font-family: 'SFProDisplay-Semibold'; */
  margin: 0px;
  line-height: 18px;
}
.searchwp-feature-texts .post-date {
  font-size: 16px;
  font-family: 'SF Pro Display' !important;
  /* font-family: 'SFProDisplay-regular'; */
  color: #000000;
}

/* ---------- Área principal: productos ---------- */
.searchwp-main {
  flex: 1;
  padding: 50px 2rem 2rem;
  box-sizing: border-box;
}

.searchwp-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.searchwp-product a {
  display: block;
  text-decoration: none;
}

.searchwp-product img {
  object-fit: cover;
  width: 100%;
  height: 350px;
  display: block;
  margin-bottom: 10px;
}

.searchwp-product .product-brand {
  /* font-family: 'SFProDisplay-Semibold'; */
  color: #000;
  font-size: 13px;
  margin: 0;
  line-height: 16px;
}
.searchwp-product .product-title {
  font-size: 16px;
  /* font-family: 'SFProDisplay-Semibold'; */
  line-height: 18px;
  margin: 0 0 4px;
  color: #000;
}
.searchwp-product .product-price,
.searchwp-product .product-price bdi {
  font-size: 16px;
  /* font-family: 'SFProDisplay-regular'; */
  color: #000000;
  line-height: 18px;
  margin: 0;
  margin-bottom: 35px;
}
.searchwp-product .product-price del,
.searchwp-product .product-price del bdi {
  color: #000000;
}
.searchwp-product .product-price ins {
  text-decoration: none;
  margin-right: 6px;
}
.searchwp-product .product-price ins bdi {
  /* font-family: 'SFProDisplay-Semibold'; */
}

/* ---------- Contenedor del live search ---------- */
.searchwp-live-search-results {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  background: #fff;
  -webkit-box-shadow: 0 0 2px 0 rgba(30, 30, 30, 0.4);
  box-shadow: 0 0 2px 0 rgba(30, 30, 30, 0.4);
  border-radius: 3px;
  width: 100% !important;
  left: 0px !important;
  max-height: 800px !important;
  min-height: none !important;
}

@media (max-width: 1024px) {
  .searchwp-live-search-results {
    top: -5px !important;
    padding-top: 55px;
  }
}

/* ---------- Visibilidad desktop / mobile ---------- */
.desktop-only {
  display: flex;
}
.mobile-only {
  display: none;
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* ============================================================
   Versión móvil
   ============================================================ */

.searchwp-popup-mobile {
  background: #fff;
  max-height: 74vh;
  overflow-y: auto;
}

#custom-search-results-mobile {
  padding-top: 15px;
}

.searchwp-mobile-section {
  margin-bottom: 50px;
}

.searchwp-mobile-section h4 {
  padding: 0px 15px;
}

.searchwp-mobile-list a {
  padding: 0px 15px 20px;
  border-bottom: 1px solid #0000001f;
}

.searchwp-mobile-categories a {
  padding: 0px 15px;
}

.searchwp-mobile-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 12px;
}

.searchwp-mobile-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.searchwp-mobile-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.searchwp-mobile-texts p {
  margin-bottom: 0px;
  font-size: 16px;
  line-height: 16px;
  /* font-family: 'SFProDisplay-medium'; */
}

.searchwp-mobile-texts .product-price del bdi {
  /* font-family: 'SFProDisplay-Medium'; */
}
.searchwp-mobile-texts .product-price ins bdi {
  float: left;
  /* font-family: 'SFProDisplay-Bold'; */
  margin-right: 5px;
}

.searchwp-mobile-texts .product-brand,
.searchwp-mobile-texts .product-price {
  /* font-family: 'SFProDisplay-Bold'; */
}

.searchwp-mobile-categories {
  list-style: none;
  padding-left: 0;
}
.searchwp-mobile-categories li {
  margin-bottom: 10px;
}

.product-title,
.post-title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

/* ============================================================
   Barra / input de búsqueda y botón de cierre
   ============================================================ */

.header-elements-search > div > a,
.header-elements-search > div > img {
  position: relative;
  z-index: 999999999;
  filter: invert(1);
}

.close-searchwp-popup {
  position: absolute;
  right: 0px;
  padding: 20px;
}
.close-searchwp-popup img {
  width: 20px;
}
.close-searchwp-popup .wd-cross-icon > a:before {
  content: none !important;
}

.searchwp-live-search {
  display: flex;
  align-items: center;
}

.searchwp-live-search .search-field {
  padding: 0 10px !important;
}

#custom-live-search,
.mobile-search {
  display: flex;
  justify-content: flex-end;
}

#custom-search-input {
  padding: 0px 10px !important;
  color: #ffffff;
  font-size: 16px;
  height: 36px;
}

@media (max-width: 1024px) {
  #custom-search-input {
    color: #000000;
    border: 0px;
    border-bottom: 1px solid;
    margin: 0px 70px 0px 20px;
  }

  #custom-live-search img,
  .mobile-search img {
    width: 24px;
  }

  #custom-search-results-none {
    display: none;
  }
  #custom-search-results-block {
    display: block;
  }

  .close-searchwp-popup {
    top: 50px;
  }
}

/*SLIDER CUSTOM 1*/
.wp-block-gmedia-hcarousel {
  margin-bottom: 150px;
}
.wp-block-gmedia-hcarousel .gm-hc__title {
  font-family: 'DM SANS';
  font-weight: 400;
  font-size: 48px;
}
.wp-block-gmedia-hcarousel .gm-hc__caption {
  font-size: 16px;
  max-width: 80%;
  font-family: 'SF Pro Display';
}
.wp-block-gmedia-scroll-horizontal .wp-block-uagb-container {
  align-items: start;
}
.wp-block-gmedia-scroll-horizontal .wp-block-image img,
.wp-block-gmedia-scroll-horizontal .wp-block-paragraph {
  max-width: 40%;
}
.gm-hc--ready .gm-hc__track {
  padding-top: 80px;
  padding-bottom: 20px;
}
.uagb-block-8b7657f2
  .wp-block-cb-carousel-v2
  .cb-pagination.swiper-pagination-horizontal {
  bottom: 40px;
}
.uagb-block-8b7657f2
  .wp-block-cb-carousel-v2
  .cb-pagination
  .cb-pagination-bullet {
  height: 6px;
  background: #fff;
  border-radius: 0;
  width: 60px;
}
.uagb-block-8b7657f2
  .wp-block-cb-carousel-v2
  .cb-pagination
  .cb-pagination-bullet.swiper-pagination-bullet-active {
  background: #fff;
}
body .wp-block-uagb-container.uagb-block-8b7657f2 {
  padding: 0;
}
body .wp-block-uagb-container.uagb-block-8b7657f2 .uagb-block-1268083a {
  padding-top: 0;
}
body .wp-block-uagb-container.uagb-block-8b7657f2 .swiper {
  margin-bottom: 0;
}
.home-first-home {
  padding-bottom: 150px;
}
.gm-hc__sticky .gm-hc__intro {
  font-family: Newsreader;
  font-size: 36px;
  max-width: 40%;
}
.gm-hc__sticky .gm-hc__intro strong {
  font-weight: 300;
  color: #983238;
}

/*SLIDER CUSTOM 2*/
body .gm-ss--ready .gm-ss__overlay {
  background: none;
}

.gm-sv__cta {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 72px);
  z-index: 3;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate(-50%, 40px); /* parte desde abajo */
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.gm-sv__cta::after {
  /* la línea blanca debajo */
  content: '';
  display: block;
  height: 1px;
  margin-top: 6px;
  background: #fff;
}
.gm-sv--cta-on .gm-sv__cta {
  /* estado visible */
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.gm-sv--cta-on .gm-sv__cta:hover {
  color: #fff;
}

#block-18 .wp-block-uagb-container .uagb-container-inner-blocks-wrap {
  align-items: start;
}

/*Manos Expertas*/
.foto-efecto-hover {
  position: relative;
  overflow: hidden;
  background-image: url(https://stack.gmedia.es/wp-content/uploads/2026/07/judit-ricart-color.webp);
  background-size: cover;
  background-position: center;
}

.foto-efecto-hover img {
  position: relative;
  z-index: 1;
  transition: opacity 1s ease;
}

.foto-efecto-hover:hover img {
  transition: opacity 1s ease;
  opacity: 0;
}

.info-tarjetas .uagb-infobox-cta-link {
  min-width: 322px;
  text-align: center;
  justify-content: center;
}
.info-box-prefooter .wp-block-paragraph {
  min-height: 55px;
}
.slider-prefooter .wp-block-uagb-container {
  min-height: 416px;
}
.slider-prefooter .first-slider {
  background-image: url(https://stack.gmedia.es/wp-content/uploads/2026/07/beautiful-landscape-with-tree-1-scaled.jpg) !important;
}
.slider-prefooter .logo-emad img {
  max-width: 120px;
  margin-bottom: 30px;
}
/*Text video*/
.listnight-title {
  font-size: 40px;
  margin-bottom: 5px;
}

/*GOOGLE REVIEW*/
.ti-reviews-container-wrapper {
  padding: 50px 0 !important;
}
.ti-widget.ti-goog .star-lg .ti-star,
.ti-widget.ti-goog img.ti-star,
body .ti-widget.ti-goog .ti-fade-container .ti-large-logo img {
  filter: brightness(0);
}
.ti-widget .ti-review-item {
  filter: blur(4px);
  opacity: 0.5;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease;
}
body .ti-widget.ti-goog .ti-review-item > .ti-inner {
  padding: 30px !important;
}
body .ti-widget.ti-goog .ti-widget-container,
body .ti-widget.ti-goog .ti-widget-container * {
  font-family: 'SF Pro Display';
}
.ti-widget .ti-review-item.ti-center {
  filter: none;
  opacity: 1;
  transform: scale(1.3);
  z-index: 1;
}
body .ti-widget.ti-goog .ti-review-item.ti-center:hover {
  transform: scale(1.3);
}
body
  .ti-widget.ti-goog
  .ti-fade-container
  .ti-rating-text:has(.ti-rating-large) {
  display: none !important;
}
body .ti-widget.ti-goog .ti-fade-container {
  display: flex !important;
  justify-content: center;
  gap: 25px !important;
  align-items: center;
  margin-top: -250px;
}
body .ti-widget.ti-goog .ti-fade-container .ti-stars {
  order: 2;
}
body .ti-widget.ti-goog .ti-fade-container .ti-rating-text {
  order: 3;
}
body .ti-widget.ti-goog .ti-fade-container .ti-large-logo {
  order: 1;
}
body .ti-widget.ti-goog .ti-col-3 .ti-review-item {
  /*flex: 0 0 30%;
  max-width: 30%;*/
}
body .ti-widget.ti-goog .ti-col-3 .ti-review-item.ti-center {
  /*flex: 0 0 40%;
  max-width: 40%;*/
}

/*FOOTER*/
.social-icons {
  display: flex;
  justify-content: end;
  gap: 0;
}
.social-icons a img {
  width: 28px;
  height: 28px;
}
.site-below-footer-wrap {
  padding-bottom: 0;
}
.site-below-footer-wrap .widget img {
  max-width: 250px;
}
.footer-widget-area #block-13 figure img {
  max-width: 480px;
}
.site-footer-primary-section-2 .footer-widget-area {
  display: flex;
  justify-content: end;
  gap: 40px;
}
.site-footer-primary-section-2 .footer-widget-area h2 {
  font-size: 18px;
  font-family: 'SF Pro Display' !important;
}
.site-footer-primary-section-2 .footer-widget-area ul li a {
  color: #000;
  line-height: 34px;
  color: #000;
  font-size: 18px;
}
#block-7 {
  margin-bottom: 10px !important;
}
.footer-widget-area #block-29,
.footer-widget-area #block-12,
.footer-widget-area #block-12 p {
  margin-bottom: 5px !important;
}
.form-newsletter input {
  border: 1px solid #555555 !important;
  min-width: 70%;
  border-radius: 10px !important;
}
.form-newsletter button {
  min-width: 26%;
  min-height: 54px !important;
  margin: 0 !important;
  margin-left: 5px !important;
  margin-top: -5px !important;
  border-radius: 10px !important;
  background-color: #983238 !important;
}
.pas-optin {
  margin-top: 5px;
  display: flex;
  align-items: center;
}
.pas-optin .pas-optin-text {
  margin-bottom: 0;
  margin-left: 10px;
}
#block-18 .wp-block-gallery {
  flex-wrap: nowrap;
  margin-top: 60px;
  max-width: 61%;
  justify-content: end;
  margin-left: 40%;
}
#block-18 .wp-block-gallery figure {
  width: auto !important;
}
#block-18 .wp-block-gallery figure img {
  max-width: unset !important;
}

/*MEGAMENU*/
.menu-item .astra-megamenu {
  left: 0 !important;
  right: 0px !important;
  width: 100vw !important;
  border: none;
  padding: 0px !important;
  position: fixed !important;
  top: 65px !important;
}

@media (max-width: 1440px) {
  .menu-item .astra-megamenu {
    top: 35px !important;
  }
}

.menu-item .astra-megamenu .ast-mm-template-content {
  padding: 0px !important;
  margin: 0px !important;
}

.menu-item .astra-megamenu .megamenu-img #megamenu-img-text {
  position: absolute;
  color: #fff;
  bottom: 0;
  padding: 30px;
}
.menu-item .astra-megamenu .megamenu-img img {
  height: 728px;
}
.menu-item .astra-megamenu .megamenu-img #megamenu-img-text h3 {
  color: #fff;
  font-family: 'Newsreader', serif;
  font-size: 50px !important;
}
.menu-item .astra-megamenu .megamenu-img #megamenu-img-text a {
  color: #fff !important;
  font-weight: 500;
  font-family: 'SF Pro Display' !important;
}

.menu-item .astra-megamenu .wp-block-navigation__container > li > a {
  font-weight: 600 !important;
}

.menu-item .astra-megamenu .wp-block-navigation__container li a:hover {
  text-decoration: underline !important;
}

.menu-item .astra-megamenu .three-columns li,
.menu-item .astra-megamenu .three-columns ul {
  gap: 15px !important;
}

.menu-item
  .astra-megamenu
  .wp-block-navigation__container
  .wp-block-navigation__submenu-container {
  padding: 0px !important;
}

.menu-item .astra-megamenu .three-columns {
  padding: 50px;
  margin: 0px;
}
.menu-item .astra-megamenu #nosotros-columns {
  padding: 50px;
  margin: 0px;
}
.menu-item .astra-megamenu #nosotros-columns .frase-ins {
  color: #000000 !important;
  font-family: 'SF Pro Display' !important;
}

.menu-item
  .astra-megamenu
  .three-columns
  .wp-block-navigation__container
  .wp-block-navigation__submenu-container
  li:nth-last-child(1) {
  margin-bottom: 25px !important;
}

.close-megamenu {
  position: absolute;
  right: 50px;
  top: 50px;
  margin-right: 30px;
  width: 25px;
  height: 25px;
  z-index: 999;
}
.close-megamenu:hover {
  cursor: pointer;
}
.close-megamenu img {
  width: 15px;
  height: 15px;
}

body .wp-block-uagb-container.uagb-block-979b98a6 {
  min-height: calc(100vh - 125px);
}

/*Prefooter*/
.logo-bottom-prefooter {
  text-align: right;
  filter: invert(1);
  position: absolute !important;
  bottom: -55px;
  right: 0px;
}

/*FOOTER*/
.site-footer .site-above-footer-wrap {
  padding: 0;
}
.site-footer .site-above-footer-wrap .site-footer-above-section-1 img {
  padding: 5px 0;
}
.site-footer
  .site-above-footer-wrap
  .site-footer-above-section-2
  .social-icons
  a {
  height: 39px;
  width: 39px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-footer
  .site-above-footer-wrap
  .site-footer-above-section-2
  .social-icons
  a:hover {
  background: #000;
}
.site-footer
  .site-above-footer-wrap
  .site-footer-above-section-2
  .social-icons
  a:hover
  img {
  filter: invert(1);
}
.footer-widget-area #block-28,
.footer-widget-area .remove-margin {
  margin-bottom: 0 !important;
}
.footer-widget-area #block-18 {
  width: 90%;
}
.footer-widget-area #block-18 .wp-block-image img {
  object-fit: unset !important;
}

.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-43067d29
  > .uagb-container-inner-blocks-wrap {
  column-gap: 10px !important;
}

/* ============================================================
   HOME MOBILE FIXES — 
   Breakpoints Astra: 921px (tablet/mobile menu) y 544px (mobile)
   ============================================================ */

@media (max-width: 921px) {
  /* ------------------------------------------------------------
     0. MEGAMENÚ — anular las reglas desktop dentro del drawer móvil.
     Las reglas position:fixed/width:100vw/top:65px rompen el menú
     hamburguesa de Astra. Mismo selector + !important: al ir después
     en el archivo, estas ganan.
  ------------------------------------------------------------ */
  .menu-item .astra-megamenu,
  .menu-item .astra-full-megamenu-wrapper .astra-megamenu,
  body.admin-bar .menu-item .astra-full-megamenu-wrapper .astra-megamenu,
  .ast-primary-sticky-header-active
    .menu-item
    .astra-full-megamenu-wrapper
    .astra-megamenu {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
  .menu-item .astra-megamenu .megamenu-img,
  .close-megamenu {
    display: none !important;
  }
  .menu-item .astra-megamenu .three-columns,
  .menu-item .astra-megamenu #nosotros-columns {
    padding: 15px 20px;
  }
  /* wp-block-columns solo se apila <782px por defecto;
     forzamos columna en todo el rango del drawer (≤921px) */
  .menu-item .astra-megamenu .three-columns,
  .menu-item .astra-megamenu #nosotros-columns {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px;
  }
  .menu-item .astra-megamenu .three-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }

  /* Header: logo más contenido */
  header .custom-logo-link img {
    max-width: 160px !important;
    width: 160px !important;
  }

  /* ------------------------------------------------------------
     1. TIPOGRAFÍA GLOBAL HOME — pisa los font-size inline del editor
  ------------------------------------------------------------ */
  .home .entry-content h1.wp-block-heading {
    font-size: 42px !important;
    letter-spacing: -1px !important;
  }
  .home .entry-content h2.wp-block-heading,
  .home .entry-content .uagb-ifb-title {
    font-size: clamp(28px, 6vw, 36px) !important;
  }
  /* Los h5 "eyebrow" (Nueva colección, Casos reales, Voces del sector…) */
  .home .entry-content h5.wp-block-heading {
    font-size: 20px !important;
  }

  /* Spacers de 200px inline entre secciones */
  .home .entry-content .wp-block-spacer {
    height: 60px !important;
  }

  /* ------------------------------------------------------------
     2. HERO (.home-first-home / uagb-block-80f8b66e)
  ------------------------------------------------------------ */
  .home-first-home {
    min-height: 70vh;
    padding-bottom: 60px;
  }
  .home-first-home .uagb-container__video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-first-home h2.wp-block-heading {
    font-size: clamp(30px, 8vw, 40px) !important;
  }

  /* ------------------------------------------------------------
     3. HCAROUSEL "Colección muebles" — de scroll-jacking a
        swipe horizontal nativo. Anulamos altura y transform que
        el JS pone inline (author !important > inline style).
  ------------------------------------------------------------ */
  .wp-block-gmedia-hcarousel {
    height: auto !important;
    margin-bottom: 60px;
  }
  .gm-hc__sticky {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }
  .gm-hc__intro {
    max-width: 100% !important;
    padding: 0 20px;
    margin-bottom: 10px;
  }
  .gm-hc__track,
  .gm-hc--ready .gm-hc__track {
    transform: none !important;
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 30px 20px 10px !important;
    width: auto !important;
    scrollbar-width: none;
  }
  .gm-hc__track::-webkit-scrollbar {
    display: none;
  }
  .gm-hc__item {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    max-width: 78vw !important;
    scroll-snap-align: start;
    padding: 0px 15px;
  }
  .gm-hc__img {
    width: 100% !important;
    height: auto !important;
  }
  .wp-block-gmedia-hcarousel .gm-hc__title {
    font-size: 26px !important;
  }
  .wp-block-gmedia-hcarousel .gm-hc__caption {
    max-width: 100% !important;
  }

  /* ------------------------------------------------------------
     4. SCROLL SLIDER "40 años…" — se mantiene el efecto,
        se arregla la tipografía y el hint
  ------------------------------------------------------------ */
  .gm-ss__title {
    font-size: clamp(26px, 7vw, 34px) !important;
    padding: 0 20px;
  }
  .gm-ss__btn {
    font-size: 16px;
  }
  .gm-ss__hint span {
    font-size: 14px;
  }

  /* ------------------------------------------------------------
     5. MANOS EXPERTAS (uagb-block-68114d61) — apilar columnas
  ------------------------------------------------------------ */
  .uagb-block-68114d61,
  .uagb-block-68114d61 > .uagb-container-inner-blocks-wrap {
    flex-direction: column !important;
  }
  .uagb-block-68114d61 .uagb-block-3f1399b9,
  .uagb-block-68114d61 .uagb-block-774d6300 {
    width: 100% !important;
    max-width: 100% !important;
  }
  .uagb-block-68114d61 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .uagb-block-774d6300 img {
    width: 100%;
    height: auto;
  }

  /* Grupos "is-nowrap" del editor (casos reales, tarjetas regalo) */
  .home .entry-content .wp-block-group.is-nowrap {
    flex-wrap: wrap !important;
  }

  /* ------------------------------------------------------------
     6. CASOS REALES (uagb-block-8b7657f2) — apilar carrusel + texto
  ------------------------------------------------------------ */
  .uagb-block-8b7657f2,
  .uagb-block-8b7657f2 > .uagb-container-inner-blocks-wrap {
    flex-direction: column !important;
  }
  .uagb-block-8b7657f2 .uagb-block-1268083a,
  .uagb-block-8b7657f2 .uagb-block-1bf651df {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 0px;
  }
  .uagb-block-1bf651df {
    padding: 30px 20px 0;
  }

  /* ------------------------------------------------------------
     7. VÍDEO LISTNIGHT (gm-sv) — tipografía overlay
  ------------------------------------------------------------ */
  .listnight-title {
    font-size: 22px !important;
  }
  .gm-sv__overlay .title-video {
    font-size: clamp(26px, 7.5vw, 34px) !important;
    padding: 0 16px;
  }

  /* ------------------------------------------------------------
     8. TARJETAS REGALO (uagb-block-b2f92881) — apilar + botones
  ------------------------------------------------------------ */
  .uagb-block-b2f92881 > .uagb-container-inner-blocks-wrap {
    flex-direction: column !important;
  }
  .uagb-block-b2f92881 .uagb-block-698e951d,
  .uagb-block-b2f92881 .uagb-block-f10261aa {
    width: 100% !important;
    max-width: 100% !important;
  }
  .uagb-block-b2f92881 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .uagb-block-950cc8e2 .uagb-buttons__wrap {
    flex-wrap: wrap;
    gap: 10px;
  }
  .info-tarjetas .uagb-infobox-cta-link {
    min-width: 0 !important;
    width: 100%;
  }
  .uagb-block-f10261aa video {
    width: 100%;
    height: auto;
  }

  /* ------------------------------------------------------------
     9. REVIEWS TRUSTINDEX — anular scale/margin negativos desktop
  ------------------------------------------------------------ */
  .ti-widget .ti-review-item,
  .ti-widget .ti-review-item.ti-center,
  body .ti-widget.ti-goog .ti-review-item.ti-center:hover {
    transform: scale(1) !important;
    filter: none !important;
    opacity: 1 !important;
  }
  body .ti-widget.ti-goog .ti-fade-container {
    margin-top: 0 !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }
  .ti-reviews-container-wrapper {
    padding: 20px 0 !important;
  }

  /* ------------------------------------------------------------
     10. MEDIOS (uagb-block-e905a68f) — centrar logos en carrusel
  ------------------------------------------------------------ */
  .uagb-block-e905a68f .cb-slide {
    display: flex;
    justify-content: center;
  }
  .uagb-block-e905a68f h2.wp-block-heading {
    margin-bottom: 30px !important;
  }

  /* ------------------------------------------------------------
     11. MATERIALES / MUESTRAS (uagb-block-979b98a6)
  ------------------------------------------------------------ */
  body .wp-block-uagb-container.uagb-block-979b98a6 {
    min-height: 0 !important;
    padding: 60px 20px;
  }

  /* ------------------------------------------------------------
     12. PREFOOTER — sliders Reforesta / EMAD
  ------------------------------------------------------------ */
  .slider-prefooter .wp-block-uagb-container {
    min-height: 340px;
    padding: 40px 20px 80px;
  }
  .logo-bottom-prefooter {
    position: static !important;
    text-align: center;
    margin-top: 20px;
  }
  .slider-prefooter h5.wp-block-heading {
    font-size: 20px !important;
  }

  /* ------------------------------------------------------------
     13. FOOTER
  ------------------------------------------------------------ */
  .site-footer-primary-section-2 .footer-widget-area {
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
  }
  .footer-widget-area #block-13 figure img {
    max-width: 100%;
  }
  #block-18 .wp-block-gallery {
    max-width: 100%;
    margin-left: 0;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
  }
  #block-18 .wp-block-gallery figure img {
    max-width: 100% !important;
    height: auto;
  }
  .footer-widget-area #block-18 {
    width: 100%;
  }
  .social-icons {
    justify-content: flex-start;
    gap: 8px;
  }
  .form-newsletter input {
    min-width: 100%;
  }
  .form-newsletter button {
    min-width: 100%;
    margin-left: 0 !important;
    margin-top: 10px !important;
  }

  .uagb-ifb-content {
    text-align: left;
    padding: 0px 15px;
  }
}

/* ============================================================
   MOBILE PEQUEÑO (≤544px) — ajuste fino
   ============================================================ */
@media (max-width: 544px) {
  .home .entry-content .wp-block-spacer {
    height: 40px !important;
  }
  .home-first-home {
    min-height: 60vh;
  }
  .home-first-home h2.wp-block-heading {
    font-size: 28px !important;
  }
  .gm-hc__item {
    flex-basis: 85vw !important;
    width: 85vw !important;
    max-width: 85vw !important;
  }
  /* Visor 3D del hero */
  .tdvb3DViewerBlock model-viewer {
    height: 300px !important;
  }
}
