/* ===== Burlap section (texture + torn edges) ===== */
.section-burlap {
  /* vars */
  --texture: url("/wp-content/uploads/2025/08/ra-central.jpg");
  --edge-top: url("/wp-content/uploads/2025/08/bl_superior.png");
  --edge-bottom: url("/wp-content/uploads/2025/08/bl_inferior.png");
  --edge-top-h: 84px;
  --edge-bottom-h: 84px;
  --edge-top-overlap: 0px;
  /* cuanto se sale por arriba (0 por defecto) */

  background: #d8c9a7 var(--texture) repeat center;
  position: relative;
  overflow: hidden;
  /* por defecto recorta */
}

.section-burlap.white {
  background: #fff var(--texture) no-repeat right;
}

.section-burlap.edge-top-alt3 {
  --edge-top: url("/wp-content/uploads/2025/09/ra_inferior.png");
  --edge-top-h: 121px;
  overflow: visible;
  /* permite que el ::before se salga */
  z-index: 3;
  /* por encima del bloque anterior */
}

/* http://localhost:8088/wp-content/uploads/2025/09/bl_inferior.png */
/* torn edges */
.section-burlap::before,
.section-burlap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background-repeat: repeat-x;
  pointer-events: none;
}

/* top edge: puede salirse hacia arriba usando overlap */
.section-burlap::before {
  top: calc(-1 * var(--edge-top-overlap));
  height: var(--edge-top-h);
  background-image: var(--edge-top);
  background-position: 0 0;
  background-size: auto var(--edge-top-h);
  z-index: 2;
  /* sobre el contenido del propio bloque */
}

/* bottom edge */
.section-burlap::after {
  bottom: 0;
  height: var(--edge-bottom-h);
  background-image: var(--edge-bottom);
  background-position: 0 100%;
  background-size: auto var(--edge-bottom-h);
  z-index: 1;
}

/* modifiers */
.section-burlap.no-top::before {
  content: none;
}

.section-burlap.no-end::after {
  content: none;
}

/* ===== Variante: edge-top-alt2 superpuesta sobre el bloque anterior ===== */
.section-burlap.edge-top-alt2 {
  --edge-top: url("/wp-content/uploads/2025/08/ra_superior.png");
  --edge-top-h: 371px;
  --edge-top-overlap: 120px;
  /* ajústalo al “salto” que quieres ver */
  overflow: visible;
  /* permite que el ::before se salga */
  z-index: 300;
  /* por encima del bloque anterior */
}

/* === PAMPA HEADER === */

/* anchor for absolute logo + spacing for it */
#menu_principal .et_pb_menu_inner_container {
  position: relative;
  padding-left: 260px;
}

/* floating logo */
#menu_principal .et_pb_menu__logo-wrap {
  position: absolute;
  top: 100%;
  left: 0px;
  transform: translateY(-50%);
  z-index: 10;
}

/* logo img basics */
#menu_principal .et_pb_menu__logo img {
  display: block;
}

/* ===== Icon font ===== */
@font-face {
  font-family: "pampafont";
  src: url("../fonts/pampafont.eot?tze5nb");
  src: url("../fonts/pampafont.eot?tze5nb#iefix") format("embedded-opentype"),
    url("../fonts/pampafont.ttf?tze5nb") format("truetype"),
    url("../fonts/pampafont.woff?tze5nb") format("woff"),
    url("../fonts/pampafont.svg?tze5nb#pampafont") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* main menu layout */
#menu_principal ul.et-menu {
  display: flex;
  gap: 20px;
  margin: 0;
}

#menu_principal ul.et-menu>li>a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  padding: 7px 0;
  text-decoration: none;
}

#menu_principal ul.et-menu>li.current-menu-item>a {
  color: #c40000 !important;
}

/* icons baseline */
#menu_principal ul.et-menu>li>a:before {
  font-family: "pampafont" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  font-size: 65px;
}

#menu_principal .et_pb_menu__menu>nav>ul>li {
  padding-left: 1px;
}

/* per-item icons */
#menu_principal .menu-item-37>a:before {
  content: "\e904";
}

/* heart-rate */
#menu_principal .menu-item-36>a:before {
  content: "\e902";
}

/* wheat */
#menu_principal .menu-item-35>a:before {
  content: "\e900";
}

/* industry */
#menu_principal .menu-item-34>a:before {
  content: "\e903";
}

/* hand-heart */
#menu_principal .menu-item-38>a:before {
  content: "\e901";
}

/* book-open */

/* utility icon classes */
[class^="pp-"],
[class*=" pp-"] {
  font-family: "pampafont" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pp-receta:before {
  content: "\e905";
}

.pp-empresa:before {
  content: "\e900";
}

.pp-producto:before {
  content: "\e901";
}

.pp-productos:before {
  content: "\e902";
}

.pp-social:before {
  content: "\e903";
}

.pp-vida:before {
  content: "\e904";
}

/* misc */
.pse {
  position: relative;
  float: right;
}

/* hide in desktop menu, show in mobile list */
li.no-view {
  display: none !important;
}

i.title {
  font-size: 1.5em;
}

span.title {
  padding-top: 16px;
  position: relative;
  display: block;
}

.unweb-catmenu {
  background: #ffd100;
  border-radius: 8px 8px 0 0;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.unweb-catmenu__title {
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  font-size: 2.5em !important;
}

.unweb-catmenu__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.unweb-catmenu__item {
  margin: 8px 0;
  list-style: none;
}

.unweb-catmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s ease, transform 0.05s ease;
}

.unweb-catmenu__link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.unweb-catmenu__chev {
  font-size: 32px;
  line-height: 0.3;
  opacity: 0.9;
}

.unweb-catmenu__item.is-active .unweb-catmenu__link {
  background: #c8791f;
}

.prod-title h3 {
  font-size: 1.44em;
  color: #362602 !important;
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
}

/* ===== Torn bottom inset (covers itself only) ===== */
.title-torn-inset {
  --torn-img: url("/wp-content/uploads/2025/08/bl_inferior-1.png");
  --torn-h: 84px;
  /* alto del PNG */
  --torn-padding: 120px;
  /* espacio para que el texto no quede bajo el rasgado */

  position: relative;
  overflow: hidden;
  /* recorta dentro de la sección */
  padding-bottom: var(--torn-padding);
}

.title-torn-inset::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--torn-h);
  background-image: var(--torn-img);
  background-repeat: repeat-x;
  background-position: 50% 100%;
  background-size: auto var(--torn-h);
  pointer-events: none;
  z-index: 2;
  /* solo sobre su propio contenido */
}

/* ===== Mobile ===== */
@media (max-width: 980px) {

  /* reset spacing for stacked menu */
  #menu_principal .et_pb_menu_inner_container {
    padding-left: 0;
  }

  /* logo inline */
  #menu_principal .et_pb_menu__logo-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 10px auto 0;
  }

  #menu_principal .et_pb_menu__logo img {
    width: 140px;
  }

  /* show the special items inside mobile dropdown */
  .et_mobile_menu li.no-view {
    display: block !important;
  }

  /* ensure icons render in mobile */
  #menu_principal .menu-item-37>a:before,
  #menu_principal .menu-item-36>a:before,
  #menu_principal .menu-item-35>a:before,
  #menu_principal .menu-item-34>a:before,
  #menu_principal .menu-item-38>a:before {
    font-family: "pampafont" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    font-size: 40px;
    padding-right: 9px;
  }

  .title-torn-inset {
    --torn-h: 140px;
    --torn-padding: 84px;
  }
}

@media (max-width: 768px) {
  .unweb-catmenu {
    padding: 18px;
  }

  .unweb-catmenu__link {
    padding: 10px 14px;
  }
}

.mi-texto {
  position: relative;
  transition: all 0.4s ease-in-out;
}

.mi-texto.et_pb_text_0:hover {
  color: #ffffff;
  text-align: center;
}

/* capa oscura con transición */
.mi-texto.et_pb_text_0::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  /* empieza transparente */
  z-index: 1;
  transition: background 0.4s ease-in-out;
}

.mi-texto.et_pb_text_0:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

/* mantener texto visible encima */
.mi-texto.et_pb_text_0>* {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease-in-out;
}

.mi-texto h2,
.mi-texto h3,
.mi-texto h4,
.mi-texto .pp-receta:before,
.mi-texto .pp-empresa:before,
.mi-texto .pp-producto:before,
.mi-texto .pp-productos:before,
.mi-texto .pp-social:before {
  transition: all 0.4s ease-in-out;
}

.mi-texto:hover h2,
.mi-texto:hover h3,
.mi-texto:hover h4,
.mi-texto:hover .pp-receta:before,
.mi-texto:hover .pp-empresa:before,
.mi-texto:hover .pp-producto:before,
.mi-texto:hover .pp-productos:before,
.mi-texto:hover .pp-social:before {
  color: #ffffff !important;
  text-align: center;
  font-size: 37px;
  font-weight: 700;
}

/* ícono pp-vida */
.mi-texto .pp-vida,
.mi-texto .pp-producto {
  color: #77d1ee !important;
  font-size: 63px;
  position: absolute;
  top: -36px;
  right: -17px;
  transition: all 0.4s ease-in-out;
}

.mi-texto .pp-producto {
  color: #fff !important;
}

.mi-texto:hover .pp-vida,
.mi-texto:hover .pp-producto {
  color: #ffffff !important;
  text-align: center;
  font-size: 70px;
  position: relative;
}