/* Zoom suave y uniforme para todas las portadas de producto. */
html body .woocommerce ul.products.products li.product.product .post_featured > a,
html body.woocommerce ul.products.products li.product.product .post_featured > a,
html body.woocommerce-page ul.products.products li.product.product .post_featured > a {
  overflow: hidden;
}

html body .woocommerce ul.products.products li.product.product .post_featured img,
html body.woocommerce ul.products.products li.product.product .post_featured img,
html body.woocommerce-page ul.products.products li.product.product .post_featured img {
  transform: scale(1) !important;
  transition: transform .5s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  html body .woocommerce ul.products.products li.product.product .post_featured:hover > a > img,
  html body .woocommerce ul.products.products li.product.product .post_featured > a:hover > img,
  html body.woocommerce ul.products.products li.product.product .post_featured:hover > a > img,
  html body.woocommerce ul.products.products li.product.product .post_featured > a:hover > img,
  html body.woocommerce-page ul.products.products li.product.product .post_featured:hover > a > img,
  html body.woocommerce-page ul.products.products li.product.product .post_featured > a:hover > img {
    transform: scale(1.055) !important;
  }
}

html body .woocommerce ul.products.products li.product.product .post_featured > a:focus-visible > img,
html body.woocommerce ul.products.products li.product.product .post_featured > a:focus-visible > img,
html body.woocommerce-page ul.products.products li.product.product .post_featured > a:focus-visible > img {
  transform: scale(1.055) !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .woocommerce ul.products.products li.product.product .post_featured img,
  html body.woocommerce ul.products.products li.product.product .post_featured img,
  html body.woocommerce-page ul.products.products li.product.product .post_featured img {
    transition: none !important;
  }

  html body .woocommerce ul.products.products li.product.product .post_featured:hover img,
  html body .woocommerce ul.products.products li.product.product .post_featured > a:focus-visible img,
  html body.woocommerce ul.products.products li.product.product .post_featured:hover img,
  html body.woocommerce ul.products.products li.product.product .post_featured > a:focus-visible img,
  html body.woocommerce-page ul.products.products li.product.product .post_featured:hover img,
  html body.woocommerce-page ul.products.products li.product.product .post_featured > a:focus-visible img {
    transform: none !important;
  }
}

/* Interacción editorial para las seis categorías del Home. */
body.home .nc-categories-section .nc-category-card {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  transform: translateY(0) scale(1);
  filter: saturate(1) contrast(1);
  transition:
    transform .45s cubic-bezier(.2, .75, .25, 1),
    box-shadow .45s ease,
    filter .45s ease !important;
}

body.home .nc-categories-section .nc-category-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 12%), transparent 42%, rgb(230 64 43 / 18%));
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

body.home .nc-categories-section .nc-category-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 15px;
  width: 0;
  height: 3px;
  background: #e6402b;
  pointer-events: none;
  transition: width .4s cubic-bezier(.2, .75, .25, 1);
}

body.home .nc-categories-section .nc-category-card .elementor-widget-heading {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: transform .4s cubic-bezier(.2, .75, .25, 1);
}

@media (hover: hover) and (pointer: fine) {
  body.home .nc-categories-section .nc-category-card:hover {
    transform: translateY(-5px) scale(1.012);
    filter: saturate(1.08) contrast(1.025);
    box-shadow: 0 18px 34px rgb(21 19 18 / 25%) !important;
  }

  body.home .nc-categories-section .nc-category-card:hover::before {
    opacity: 1;
  }

  body.home .nc-categories-section .nc-category-card:hover::after {
    width: 54px;
  }

  body.home .nc-categories-section .nc-category-card:hover .elementor-widget-heading {
    transform: translateY(-4px);
  }
}

body.home .nc-categories-section .nc-category-card:focus-visible {
  outline: 3px solid #e6402b !important;
  outline-offset: 4px !important;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 34px rgb(21 19 18 / 25%) !important;
}

body.home .nc-categories-section .nc-category-card:focus-visible::before {
  opacity: 1;
}

body.home .nc-categories-section .nc-category-card:focus-visible::after {
  width: 54px;
}

@media (prefers-reduced-motion: reduce) {
  body.home .nc-categories-section .nc-category-card,
  body.home .nc-categories-section .nc-category-card::before,
  body.home .nc-categories-section .nc-category-card::after,
  body.home .nc-categories-section .nc-category-card .elementor-widget-heading {
    transition: none !important;
  }

  body.home .nc-categories-section .nc-category-card:hover,
  body.home .nc-categories-section .nc-category-card:focus-visible,
  body.home .nc-categories-section .nc-category-card:hover .elementor-widget-heading {
    transform: none;
  }
}

/* Fondo global homologado con la página del blog (#FFFFFF). */
html,
body,
.body_wrap,
.page_wrap,
.page_content_wrap {
  background-color: #ffffff !important;
}

/* Sustituye únicamente las grandes superficies pastel por blanco. */
body.home .elementor-5002 > .elementor-element-5c760752,
body.home .elementor-5002 > .elementor-element-4ad4df9d,
body.home .elementor-5002 > .elementor-element-466e4fb,
body.home .elementor-5002 > .elementor-element-3b06807,
body.page-id-24576 .elementor-element-2c2f80ac,
body.page-id-24576 .elementor-element-70aef9a5,
body.page-id-24576 .elementor-element-801c86b,
body.single-product .related.products,
body.single-product .related.products > ul.products,
body .nauta-author-publications,
body .nauta-author-publications > ul.products {
  background-color: #ffffff !important;
}

/* Cobertura reforzada para plantillas con reglas de fondo más específicas. */
html body.post-type-archive-product .page_content_wrap,
html body.post-type-archive-product ul.products.products,
html body .nauta-profile-v2,
html body section.nauta-author-publications.woocommerce.related.products,
html body section.nauta-author-publications.woocommerce.related.products > ul.products.products,
html body.home .elementor-element-a40fd46,
html body.home .elementor-element-a40fd46 .elementor-widget-container,
html body.home .elementor-element-a40fd46 .sc_extended_products,
html body.home .elementor-element-a40fd46 ul.products.products,
html body.home .elementor-element-11b7377 {
  background-color: #ffffff !important;
}

/* El catálogo aplica su fondo con una regla de plantilla especialmente específica. */
html body.archive.post-type-archive.post-type-archive-product.woocommerce-shop.woocommerce.woocommerce-page .page_content_wrap.page_content_wrap {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Elimina los últimos fondos claros visibles en Blog y Nosotros. */
html body.page-id-24517 article.post_item.post_item_container,
html body.page-id-24517 .sidebar_inner,
html body.page-id-24576 .elementor-element-70f77ef8 {
  background: #ffffff !important;
  background-color: #ffffff !important;
}
