/* =================================================
   PRODUCTO - LAYOUT PRINCIPAL
================================================= */

.producto-page {
  padding-bottom: 80px;
}

.producto-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* =================================================
   GALERIA
================================================= */

.producto-galeria {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.producto-swiper {
  width: 100%;
  height: 700px;
}

.producto-swiper .swiper-slide {
  overflow: hidden;
  border-radius: 12px;
}

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

.producto-galeria img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =================================================
   INFO DEL PRODUCTO
================================================= */

.producto-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.producto-titulo {
  font-family: 'VasttagBrush', cursive;
  font-size: 56px;
  line-height: 1;
  color: #2f6b2f;
  margin: 0;
}

.producto-descripcion {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  line-height: 24px;
  color: #498037;
  margin-top: 25px;
}

.producto-usos {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 22px;
  color: #498037;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.producto-usos > div > div:first-child {
  display: none;
}

.producto-usos > div > div:last-child p {
  display: inline;
  margin: 0;
}

.producto-meta-label {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #498037;
}

.producto-contenido-neto,
.producto-ingredientes {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #498037;
  flex-wrap: wrap;
}

.producto-contenido-neto > div,
.producto-ingredientes > div {
  display: inline;
}

.producto-contenido-neto > div > div,
.producto-ingredientes > div > div {
  display: inline;
}

.producto-meta {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.producto-beneficios {
  font-size: 24px;
  color: #498037;
}

.prodinf  {  font-size: 20px;} 
.prodinf2  {  font-size: 20px;   color: #498037;} 

/* =================================================
   COMPRA AQUÍ
================================================= */

.producto-compra {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid #eee;
}

.section-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
  font-size: 34px;
  letter-spacing: 0em;
  color: #2f6b2f;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.tiendas-wrapper,
.tiendas-wrapper > div,
.tiendas-wrapper > div > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tienda-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tienda-logo {
  max-height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.tienda-logo:hover {
  transform: scale(1.1);
}

/* =================================================
   TABLA NUTRIMENTAL
================================================= */

.producto-tabla {
  padding: 40px 0;
}

.producto-tabla img {
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* Ocultar etiquetas de campos */
.producto-galeria .field__label,
.producto-info .field__label,
.producto-compra .field__label,
.producto-tabla .field__label {
  display: none;
}

/* =================================================
   OCULTAR ETIQUETAS
================================================= */

.producto-descripcion .field__label,
.producto-usos .field__label,
.producto-meta .field__label,
.producto-contenido-neto .field__label,
.producto-ingredientes .field__label,
.producto-compra .field__label,
.producto-tabla .field__label {
  display: none;
}

.producto-compra > h2.section-title ~ .field__label,
.producto-compra .field--name-field-compra-en-tienda > .field__label,
.producto-tabla .field--name-field-tabla-nutrimental > .field__label {
  display: none;
}

/* Ocultar cualquier etiqueta residual */
.producto-page .field__label {
  display: none;
}

/* Ocultar etiquetas sin clase */
.producto-descripcion > div > div:first-child,
.producto-usos > div > div:first-child,
.producto-meta > div > div:first-child,
.producto-contenido-neto > div > div:first-child,
.producto-ingredientes > div > div:first-child {
  display: none;
}

/* =================================================
   SLOGAN PRODUCTO
================================================= */

.producto-slogan {
  padding: 30px 0 0px;
  text-align: left;
}

.slogan-texto {
  margin: 0;
  line-height: 1.1;
}

.slogan-texto {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.slogan-brush {
  font-family: 'VasttagBrush', cursive;
  font-size: 110px;
  color: #1a3f16;
  line-height: 1;
}

.slogan-bold {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 55px;
  color: #498037;
  text-transform: uppercase;
  line-height: 1;
}

/* =================================================
   TÍTULO DOS TIPOGRAFÍAS
================================================= */

.producto-titulo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.producto-titulo .titulo-brush {
  font-family: 'VasttagBrush', cursive;
  font-size: 100px;
  line-height: 1;
  color: #1a3f16;
  text-align: left;
  display: block;
  font-weight: normal;
}

.producto-titulo .titulo-bold {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 60px;
  line-height: 10px;
  color: #498037;
  text-transform: uppercase;
  text-align: right;
  width: 100%;
  display: block;
}

/* =================================================
   SWIPER NAVEGACIÓN - GALERÍA PRODUCTO
================================================= */
.producto-swiper {
  position: relative;
}

.producto-swiper .swiper-button-prev,
.producto-swiper .swiper-button-next {
  color: #005c3b;
  background: rgba(255,255,255,0);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #005c3b;
}

.producto-swiper .swiper-button-prev::after,
.producto-swiper .swiper-button-next::after {
  display: none;
}

.producto-swiper-btn svg {
  width: 20px;
  height: 20px;
  stroke: #005c3b;
}

.producto-swiper-btn:hover {
  background: #005c3b;
}

.producto-swiper-btn:hover svg {
  stroke: #fff;
}

.producto-swiper .swiper-pagination-bullet-active {
  background: #005c3b;
}

/* =================================================
   BOTONES DE CATEGORÍAS
================================================= */

.producto-categorias {
  padding: 20px 0;
}

.categorias-lista {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.categoria-btn {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #498037;
  color: #498037;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 0.2;
  text-align: center;
}

.categoria-btn:hover {
  background: #498037;
  color: #ffffff;
}

.categoria-btn.activa {
  background: #498037;
  color: #ffffff;
}

/* =================================================
   BOTÓN CARGAR MÁS PRODUCTOS
================================================= */

.btn-cargar-mas-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-cargar-mas {
  display: inline-block;
  text-decoration: none;
  position: relative;
}

.btn-cargar-mas__wrap {
  display: inline-block;
  position: relative;
  width: 400px;
  height: auto;
}

.btn-cargar-mas__svg,
.btn-cargar-mas__svg-hover {
  width: 400px;
  height: auto;
  display: block;
}

.btn-cargar-mas__svg-hover {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s ease;
}

.btn-cargar-mas:hover .btn-cargar-mas__svg-hover {
  clip-path: inset(0 0% 0 0);
}

.btn-cargar-mas span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* =================================================
   PAGINADOR LISTADO PRODUCTOS
================================================= */

.listado-productos-wrap .js-pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.listado-productos-wrap .js-pager__items li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #498037;
  color: #498037;
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.listado-productos-wrap .js-pager__items li a:hover {
  background: #498037;
  color: #fff;
}

.listado-productos-wrap .js-pager__items li:not(:has(a)) {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  color: #498037;
  font-size: 0.9rem;
}

/* =================================================
   PRODUCTOS RELACIONADOS
================================================= */

.productos-relacionados {
  padding: 60px 0;
  border-top: 1px solid #eee;
}

.productos-relacionados .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.productos-relacionados .view-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.productos-relacionados .views-row {
  text-align: center;
}

.productos-relacionados .views-row img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 12px;
}

.productos-relacionados .views-row .field--name-title a {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #2f6b2f;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.productos-relacionados .views-row .field--name-title a:hover {
  text-decoration: underline;
}

.field-content a {
  color: #498037;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

/* =================================================
   TABLA NUTRIMENTAL - BOTÓN Y MODAL
================================================= */

.producto-tabla-btn {
  text-align: center;
  padding: 20px 0 40px;
}

.btn-tabla-nutrimental {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border-radius: 50px;
  border: 2px solid #498037;
  color: #498037;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-tabla-nutrimental:hover {
  background: #498037;
  color: #ffffff;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay:target {
  display: flex;
}

.modal-contenido {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-contenido img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #333;
  text-decoration: none;
  line-height: 1;
  font-weight: 300;
}

.modal-cerrar:hover {
  color: #498037;
}
/* =================================================
   CERTIFICACIONES
================================================= */

.producto-certificaciones {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.producto-certificaciones img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* =================================================
   SLIDER RECETAS EN PRODUCTO
================================================= */

.producto-recetas-swiper {
  position: relative;
  padding: 0 60px;
}

.producto-recetas-swiper .receta-hero-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: 2px solid #498037;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #498037;
  transition: all 0.3s ease;
}

.producto-recetas-swiper .receta-hero-btn:hover {
  background: #498037;
  color: #fff;
}

.producto-recetas-swiper .swiper-button-prev {
  left: 0;
}

.producto-recetas-swiper .swiper-button-next {
  right: 0;
}

.producto-recetas-swiper .swiper-button-prev::after,
.producto-recetas-swiper .swiper-button-next::after {
  display: none;
}

.producto-recetas .section-title {
  text-align: center;
  font-family: 'Figtree', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #2f6b2f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.listado-recetas-section.container h2.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.producto-recetas-swiper .swiper-slide {
  width: 500px;
}

/* =================================================
   PRODUCTOS RELACIONADOS SLIDER
================================================= */
.productos-relacionados-swiper {
  overflow: hidden;
  padding: 0 60px;
}

.productos-relacionados-swiper .swiper-button-prev,
.productos-relacionados-swiper .swiper-button-next {
  color: #498037;
}

.producto-relacionado-card {
  text-align: center;
}

.producto-relacionado-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.producto-relacionado-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.producto-relacionado-nombre {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2f6b2f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* =================================================
   LISTADO DE PRODUCTOS
================================================= */

.listado-productos-page {
  padding-bottom: 80px;
}

.listado-productos-wrap {
  position: relative;
  padding-top: 40px;
  padding-bottom: 60px;
}

.listado-bg-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  z-index: 0;
  pointer-events: none;
}

.listado-productos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}

.producto-card {
  text-align: center;
}

.producto-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.producto-card__imagen {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.producto-card__imagen img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.producto-card__imagen--vacia {
  background: #f5f5f5;
  border-radius: 8px;
  height: 220px;
}

.producto-card__nombre {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #26742c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.listado-recetas-section {
  padding: 60px 0;
  border-top: 1px solid #fff;
  text-align: center;
}

/* =================================================
   SVG FONDO GALERÍA PRODUCTO
================================================= */

.producto-galeria {
  position: relative;
}

.producto-galeria-bg {
  position: absolute;
  width: 80% !important;
  z-index: 0;
  pointer-events: none;
  margin-left: 10% ;
}

.producto-galeria .producto-swiper,
.producto-galeria .producto-tabla-btn {
  position: relative;
  z-index: 1;
}

/* ===========================
       OTROS AJUSTES
============================= */

.tiendas-favoritas {
    padding: 0px 0px 60px 0px !important;
}

.producto-page {
  padding-bottom: 20px !important;
}

/* =================================================
   PRODUCTOS — MÓVIL
================================================= */
@media screen and (max-width: 764px) {
  .listado-productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .producto-card__imagen img {
    height: 200px;
  }

  .producto-card__nombre {
    font-size: 0.85rem;
    color: #498037;
    font-weight: 500;
  }

  .slogan-texto-movil {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-top: 30px;
  }

  .slogan-texto-movil .slogan-brush {
    font-size: 75px;
    line-height: 50px;
    margin-top: 12px;
  }

  .slogan-texto-movil .slogan-bold {
    font-size: 38px;
    margin-bottom: 32px;
    margin-top: 5px;
  }

  .producto-slogan {
    overflow: hidden;
    padding: 0 20px;
  }

  .receta-card__info,
  .receta-card__titulo {
    max-width: 100%;
    overflow: hidden;
  }

  .receta-card__titulo a {
    white-space: normal;
    word-break: break-word;
  }

  .receta-categorias-movil,
  .producto-categorias-movil {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .categoria-select {
    width: 90%;
    box-sizing: border-box;
  }

  .listado-bg-svg {
    width: 90%;
    top: 70px;
  }

  .producto-recetas-swiper {
    padding: 0 44px;
    overflow: hidden;
    height: 255px;
  }

  .producto-recetas-swiper .swiper-slide {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  .producto-recetas .section-title {
    font-size: 1.5rem;
  }

  .section-title {
    margin-bottom: 0px;
  }

  .receta-card__foto.receta-card__foto--1 {
    margin: 9px 8px;
  }
  .receta-card__foto.receta-card__foto--2 {
    margin: 9px 15px;
  }
  .receta-card__foto.receta-card__foto--3 {
    margin: 8px -10px;
 }

 .breadcrumb-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 20px;
    font-size: 12px;
  }

  .producto-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .producto-swiper {
    height: 350px;
  }

  .producto-titulo {
    font-size: 36px;
  }

  .producto-info {
    padding: 0 16px;
  }

  .producto-titulo .titulo-brush {
    font-size: 80px;
    text-align: center;
    line-height: .8;
  }

  .producto-titulo .titulo-bold {
    font-size: 50px;
    text-align: center;
    margin-top: 10px;
  }

  .producto-certificaciones {
    margin: auto;
  }

  .producto-usos {
    font-weight: 900;
 }

 .views-view-grid .views-col {
    width: 50% !important;
  }

  .views-view-grid.cols-4 {
    display: flex;
    flex-wrap: wrap;
  }


}