.titulo-home {
  margin: 0 0 20px;
  color: #003f84 !important;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* categorias de inicio */
.acf-categorias-woo {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 26px;
  grid-row-gap: 26px;
}

.acf-categorias-woo > .acf-categoria-item {
  display: flex;
  flex-direction: column;
  color: #003f84;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: normal;
  align-items: center;
  gap: 0;
  border-radius: 4px;
  padding: 0;
  transition: box-shadow 0.3s ease-in-out;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;

  & img {
    height: auto;
    width: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
  }

  & span {
    border-radius: 0 8px 0 0;
    background: var(--Neutral-0, #fff);
    height: 49px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
  }
}

.acf-categorias-woo > .acf-categoria-item:hover img {
  scale: 1.1;
}

@media (max-width: 767px) {
  .acf-categorias-woo {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 6px;
    grid-row-gap: 6px;
  }

  .acf-categorias-woo > .acf-categoria-item {
    padding: 5px;
  }

  .acf-categorias-woo > .acf-categoria-item img {
    height: 131px;
  }

  .acf-categorias-woo > .acf-categoria-item span {
    border-radius: 0 8px 0 0;
    background: var(--Neutral-0, #fff);
    min-height: 44px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0 4px;
    text-align: left;
    font-size: 14px;
  }

  .product_slider .card-producto .marca-hero,
  .sin-marca {
    margin: 6px 0;
    max-height: 16px;
    width: auto;
  }
}

/* fin categorias */

/* productos destacados */
.oferta-inicio-main .titulo-home {
  margin: 0;
}

.woocommerce .oferta-inicio-main .oferta-inicio-productos ul li.product {
  width: 314px !important;
  margin-right: 20px !important;
}

/* OFERTAS */
/* Imagen escritorio: oculta en mobile, visible desde md */
.oferta-inicio-main .oferta-inicio-texto .imagen-escritorio {
  display: none !important;
}

@media (min-width: 768px) {
  .oferta-inicio-main .oferta-inicio-texto .imagen-escritorio {
    display: block !important;
  }
  .woocommerce .oferta-inicio-main .oferta-inicio-productos ul li.product {
    min-height: 563px;
  }
}

/* Imagen mobile: visible en mobile, oculta desde md */
.oferta-inicio-main .oferta-inicio-texto .imagen-movil {
  display: block !important;
  aspect-ratio: 359 / 122;
}

@media (min-width: 768px) {
  .oferta-inicio-main .oferta-inicio-texto .imagen-movil {
    display: none !important;
  }
}

.oferta-inicio-main {
  border-radius: var(--size-2, 4px);
  /* background: var(--neutral-0, #fff); */
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

.elementor-shortcode > .oferta-inicio-main:not(:first-child) {
  margin-top: 54px;
  padding-top: 54px;
}

.elementor-shortcode > .oferta-inicio-main:not(:first-child):before {
  content: "";
  border-top: solid 0.5px #747474;
  position: absolute;
  top: 0;
  width: 100%;
}

.oferta-inicio-main .flexoferta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
}

.oferta-inicio-main .oferta-inicio-texto {
  width: calc(25% - 15px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 0;
  max-height: 563px;
  position: relative;
}

.oferta-inicio-main .oferta-inicio-texto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.oferta-inicio-main .oferta-inicio-productos {
  width: calc(75% - 5px);
}

@media (max-width: 767px) {
  .oferta-inicio-main .flexoferta {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .oferta-inicio-main .oferta-inicio-texto,
  .oferta-inicio-main .oferta-inicio-productos {
    width: 100%;
  }

  .oferta-inicio-main .oferta-inicio-productos .splide__track {
    padding: 0 16px !important;
    margin: 0 -16px !important;
  }

  .woocommerce .oferta-inicio-main .oferta-inicio-productos ul li.product {
    margin-right: 0 !important;
    width: 100% !important;
  }
}

.oferta-inicio-main .icono-categoria {
  width: 46px;
  height: 46px;
  object-fit: cover;
  margin-bottom: 15px;
}

.oferta-inicio-main .titulo-oferta {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

.titulo-oferta__vermas {
  color: #003f84;
  font-family: Lato;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 2.03;
  letter-spacing: -0.5px;
  display: flex;
  padding: 3px 20px 6px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 60px;
  background: #fff;
  position: absolute;
  bottom: 30px;
  left: 30px;
}

.titulo-oferta__vermas .btn-movil {
  display: none;
}

.titulo-oferta__vermas .btn-escritorio {
  display: flex;
}

@media (max-width: 767px) {
  .titulo-oferta__vermas {
    left: auto;
    right: 30px;
    bottom: 50%;
    transform: translateY(50%);
  }

  .titulo-oferta__vermas .btn-movil {
    display: flex;
  }

  .titulo-oferta__vermas .btn-escritorio {
    display: none;
  }

  .oferta-inicio-main .titulo-oferta,
  .ofertas-mes__head h3 {
    font-size: 24px;
  }

  .oferta-inicio-main::before,
  .ofertas-mes__head::before {
    top: 15px;
  }

  .oferta-inicio-main .titulo-oferta .titulo-oferta__vermas {
    font-size: 16px;
  }

  .oferta-inicio-main .titulo-oferta .titulo-oferta__vermas::before {
    height: 25px;
    top: 0px;
  }
}

.oferta-inicio-main .texto-oferta {
  color: var(--neutral-800, #38393a);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  margin: 0;
}

/* productos en oferta */
.productos-relacionados-oferta .card-main-producto,
.productos-relacionados-oferta .card-product-body,
.productos-relacionados-oferta .card-producto {
  margin: 0 !important;
}

.productos-relacionados-oferta .crecima-add-to-cart {
  /* padding: 0 !important; */
  margin-left: 10px;
}

.productos-relacionados-oferta .splide__pagination {
  position: relative;
}

.flexoferta.sin-imagen .oferta-inicio-texto {
  display: none;
}

.oferta-inicio-productos.fullwidth {
  width: 100%;
}

/* ===== GRID (opcional, para que queden 3 columnas) ===== */
.ofertas-mes {
  margin: 35px 0;
}

.ofertas-mes__head {
  margin-bottom: 20px;
  position: relative;
}

.ofertas-mes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.oferta-inicio-main .splide__arrow svg {
  fill: transparent;
  display: block;
  background: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D%2214%22%20viewBox%3D%220%200%208%2014%22%20fill%3D%22none%22%3E%0A%20%20%3Cpath%20d%3D%22M5.04479%206.73646L0.332292%202.02396C0.110764%201.80243%200%201.52049%200%201.17813C0%200.835764%200.110764%200.553819%200.332292%200.332292C0.553819%200.110764%200.835764%200%201.17813%200C1.52049%200%201.80243%200.110764%202.02396%200.332292L7.58229%205.89063C7.70313%206.01146%207.78872%206.14236%207.83906%206.28333C7.88941%206.42431%207.91458%206.57535%207.91458%206.73646C7.91458%206.89757%207.88941%207.04861%207.83906%207.18958C7.78872%207.33056%207.70313%207.46146%207.58229%207.58229L2.02396%2013.1406C1.80243%2013.3622%201.52049%2013.4729%201.17813%2013.4729C0.835764%2013.4729%200.553819%2013.3622%200.332292%2013.1406C0.110764%2012.9191%200%2012.6372%200%2012.2948C0%2011.9524%200.110764%2011.6705%200.332292%2011.449L5.04479%206.73646Z%22%20fill%3D%22%23003F84%22%2F%3E%0A%3C%2Fsvg%3E)
    center / contain no-repeat;
  width: 7.915px;
  height: 13.473px;
}

.oferta-inicio-main .splide__arrow {
  background-color: #e3c4a1;
  width: 32.463px;
  height: 32.463px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 240px;
  transform: translate(0);
}

.oferta-inicio-main .splide__arrow:hover,
.oferta-inicio-main .splide__arrow:focus {
  background-color: #e3c4a1;
}

.oferta-inicio-main .splide__arrow--prev {
  left: -13px;
}

.oferta-inicio-main .splide__arrow--next {
  right: -13px;
}

.splide__arrow:disabled {
  display: none;
}

@media (max-width: 767px) {
  .oferta-inicio-main .splide__arrow {
    top: 100px;
  }
}

/* fin productos destacados */

/* card pre footer */
.cre-card-info-prefooter *,
.cre-card-info-prefooter *::before,
.cre-card-info-prefooter *::after {
  box-sizing: border-box;
}

.cre-card-info-prefooter__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.cre-card-info-prefooter__link {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.cre-card-info-prefooter__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 222px;
  padding: 38px 22px;
  border-radius: 10px;
  background-color: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cre-card-info-prefooter__link .cre-card-info-prefooter__card {
  width: 100%;
}

.cre-card-info-prefooter__card.has-image {
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cre-card-info-prefooter__card.has-image:not(.is-image-only)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.cre-card-info-prefooter__card.is-image-only {
  padding: 0;
}

.cre-card-info-prefooter__tag {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-height: 38px;
  padding: 9px 24px;
  margin-bottom: 19px;
  border-radius: 999px;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.cre-card-info-prefooter__title {
  position: relative;
  z-index: 2;
  max-width: 285px;
  margin: 0;
  color: var(--title-color) !important;
  font-size: 32px;
  font-weight: 500;
  line-height: 32.5px;
}

.cre-card-info-prefooter__card.has-image .cre-card-info-prefooter__title {
  color: var(--title-color) !important;
}

/* Hover opcional */
.cre-card-info-prefooter__link .cre-card-info-prefooter__card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cre-card-info-prefooter__link:hover .cre-card-info-prefooter__card {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Tablet */
@media (max-width: 1024px) {
  .cre-card-info-prefooter__inner {
    gap: 16px;
  }

  .cre-card-info-prefooter__card {
    padding: 40px 32px;
  }

  .cre-card-info-prefooter__title {
    font-size: 28px;
    line-height: 30px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .cre-card-info-prefooter__inner {
    flex-direction: column;
    gap: 16px;
  }

  .cre-card-info-prefooter__link,
  .cre-card-info-prefooter__card {
    width: 100%;
    flex: initial;
  }

  .cre-card-info-prefooter__card {
    min-height: 210px;
    padding: 40px 32px;
  }

  .cre-card-info-prefooter__title {
    max-width: 100%;
    font-size: 30px;
    line-height: 32px;
  }
}