/*
Theme Name: Mavinsa Botas Foca
Theme URI: https://mavinsa.es/
Author: La Barba del SEO
Author URI: https://labarbadelseo.com/
Description: Tema WordPress para Mavinsa — Botas Foca®. Incluye Custom Post Types para Productos y Categorías con color de acento por categoría.
Version: 1.0.0
Text Domain: mavinsa
*/

/* =============================================
   VARIABLES GLOBALES
   ============================================= */
:root {
  --green:        #009861;
  --green-dark:   #2d6e32;
  --green-light:  #5aaa4a;
  --text:         #333333;
  --muted:        #5E6D65;
  --border:       #e0e0e0;
  --bg-light:     #f4f4f2;
  --footer-bg:    #3a8c3f;
  --font:         'Open Sans', sans-serif;

  /* Color de acento por categoría — se sobreescribe con inline style en body */
  --cat-color:    #4a90c4;
  --cat-dark:     #3a7ab0;
}

/* Colores por categoría (clase en body) */
body.cat-alimentaria  { --cat-color: #4a90c4; --cat-dark: #3a7ab0; }
body.cat-agricultura  { --cat-color: #8fc43a; --cat-dark: #6e9e2a; }
body.cat-industria    { --cat-color: #c87c2a; --cat-dark: #a06020; }
body.cat-poliuretano  { --cat-color: #c8a000; --cat-dark: #a07d00; }
body.cat-vadeadores   { --cat-color: #c43a3a; --cat-dark: #9c2a2a; }
body.cat-complementos { --cat-color: #9c2a2a; --cat-dark: #7a1e1e; }
/*Navbar*/
.site-nav{align-items: center !important;}
.mavinsa-search-wrap{padding-top: 0 !important; height: fit-content !important;}
.site-nav .mavinsa-search-wrap svg{position: absolute; top: 0 !important; right: 15px !important; bottom: 0 !important; margin: auto !important;}
/*Navbar/
/* =============================================
   HOME HERO (imagen o vídeo)
   ============================================= */
.hero-img-wrap {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* Vídeo de fondo */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
/* Overlay oscuro inferior */
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  pointer-events: none;
}
/* Texto sobre el hero */
.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 48px 28px;
  z-index: 2;
  padding-inline: var(--foca-page-gutter) 8px;
}
.hero-text h1 {
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-text .subtitle {
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
}
@media (max-width: 768px) {
  .hero-img-wrap { height: 300px; }
  .hero-text { padding: 0 20px 20px; }
  .hero-text h1 { font-size: 1.9rem; }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {  }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color .2s; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin-bottom: 1rem; }
button{font-family: var(--font);}

/* =============================================
   NAVBAR
   ============================================= */
.site-nav {
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 92px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  z-index: 500;
  gap: 0;
  width:100%;
  overflow: visible; /* necesario para que el megamenú se expanda fuera del nav */
}
.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo img,
.nav-logo .nav-logo-img,
.nav-logo .custom-logo {
  /* Tamaño fijo — la imagen se adapta siempre, sea cual sea su tamaño original */
  width: 160px;
  height: 65px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.nav-logo .nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: .5px;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible; /* no cortar el megamenú */
}
.nav-item {
  position: static;
}
.nav-item--mega {
  position: static; /* el mega usa position:absolute relativo al nav padre (.site-nav) */
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  font-size: .80rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .4px;
  transition: color .2s;
  height: 92px; /* misma altura que el nav para área de hover completa */
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--green); }
.nav-arrow {
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-item--mega:hover .nav-arrow,
.nav-item--mega.is-open .nav-arrow {
  transform: rotate(180deg);
}

/* =============================================
   MEGAMENÚ
   ============================================= */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%; /* justo debajo del nav */
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 490;
  flex-direction: row;
  animation: megaFadeIn .18s ease;
}
@keyframes megaFadeIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.nav-item--mega:hover .mega-menu,
.nav-item--mega.is-open .mega-menu {
  display: flex;
}
.mega-inner {
  flex: 1;
  padding: 36px 48px 40px;
  min-width: 0;
}
.mega-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 24px;
  letter-spacing: -.01em;
}
.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 40px;
}
.mega-col-head {
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Link estilo categoría — texto plano */
.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.mega-link:hover {
  background: var(--bg-light);
  color: var(--green);
}
.mega-link--cat {
  font-weight: 600;
}
/* Link con icono — normativa y características */
.mega-link--icon {
  gap: 8px;
}
/* Icono imagen real */
.mega-icon--img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-light);
  padding: 0;
  pointer-events: none; /* evita que el enlace de la imagen en medios intercepte el click */
  border: none !important;
}
/* Badge con iniciales (fallback sin imagen) */
.mega-icon--badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .70rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .02em;
}
/* Placeholder sin imagen */
.mega-icon--placeholder {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.mega-empty {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  padding: 6px 8px;
}
/* Foto decorativa lateral derecha */
.mega-photo {
  width: 240px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.mega-photo--empty {
  background: var(--bg-light);
}

.nav-search {
  margin-left: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 4px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 92px;
  left: 0;
  width: 100%;
  z-index: 499;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

/* Links simples */
.mob-link {
  display: block;
  padding: 15px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mob-link:hover { background: var(--bg-light); }

/* Item con submenú acordeón */
.mob-item {
  border-bottom: 1px solid var(--border);
}
.mob-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.mob-trigger:hover { background: var(--bg-light); }
.mob-arrow { transition: transform .2s; flex-shrink: 0; }
.mob-trigger[aria-expanded="true"] .mob-arrow { transform: rotate(180deg); }

/* Submenú acordeón */
.mob-sub {
  background: var(--bg-light);
  padding: 8px 0 12px;
}
.mob-sub-head {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 24px 4px;
  margin: 0;
}
.mob-sub-link {
  display: block;
  padding: 9px 24px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.mob-sub-link:hover { color: var(--green); }

/* =============================================
   BOTONES
   ============================================= */
.btn-green {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-green:hover { background: var(--green-dark); color: #fff; }

.btn-cat {
  display: inline-block;
  background: var(--cat-color);
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-cat:hover { background: var(--cat-dark); color: #fff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: .80rem;
  font-weight: 700;
  border: 2px solid var(--green);
  transition: all .2s;
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #1a1a1a;
}
.hero.hero--photo {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 30%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.58) 0%, rgba(0,0,0,.12) 48%, transparent 100%);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 48px 28px;
  z-index: 2;
  color: #fff;
}
.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 4px;
}
.hero-text .hero-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 48px;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--green); font-weight: 600; }
.prod-br{    padding-top: 95px;}

/* =============================================
   HOME — SECCIONES
   ============================================= */

/* Hero intro */
.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 20px 48px 36px;

}
.hero-intro p {
  font-size: .88rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Category card grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1vw;;
  width: 95vw;
  margin: auto;
}
.cat-card {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.cat-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 16px 20px;
  z-index: 2;
  color: #fff;
}
.cat-card-text h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}
.cat-card-text p {
  font-size: .75rem;
  font-weight: 600;
  opacity: .85;
  margin: 0;
}
/* Color accent line per category */
.cat-card .cat-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 3;
}

/* Otras categorías */
.other-cats {
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.other-cats strong { color: var(--text); font-weight: 700; }
.other-cat-pill {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.other-cat-pill:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* About wrap */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.about-left {
  padding: 48px;
}
.about-left h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;

      font-weight: 700;
    font-size: 35px;
    line-height: 1.1;
    letter-spacing: 0%;
    color: #333333;

}
.about-left p { font-size: .88rem; color: var(--muted); line-height: 1.75; }
.about-right {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}

/* Sector banner */
.sector-banner {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.sector-banner-bg {
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  background-size: cover;
  background-position: center;
}
.sector-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.sector-banner-text {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.sector-banner-text h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}
.sector-banner-text h2 span { display: block; }

/* Sector grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 30px;
  border-bottom: 1px solid var(--border);
}
.sector-card {
  padding: 32px 28px;
  box-shadow: 0 0 10px 0px #eaeaea;
}
.sector-card:nth-child(3n) { border-right: none; }
.sector-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.sc-blue   .sector-card-icon { background: #e8f2fa; color: #4a90c4; }
.sc-orange .sector-card-icon { background: #faf0e8; color: #c87c2a; }
.sc-lime   .sector-card-icon { background: #f0f7e8; color: #8fc43a; }
.sc-yellow .sector-card-icon { background: #faf8e0; color: #c8a000; }
.sc-red    .sector-card-icon { background: #fae8e8; color: #c43a3a; }
.sc-red2   .sector-card-icon { background: #f5e4e4; color: #9c2a2a; }

.sector-card h3 {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.sc-blue   h3 { color: #4a90c4; }
.sc-orange h3 { color: #c87c2a; }
.sc-lime   h3 { color: #6e9e2a; }
.sc-yellow h3 { color: #c8a000; }
.sc-red    h3 { color: #c43a3a; }
.sc-red2   h3 { color: #9c2a2a; }

.sector-card p { font-size: .82rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* =============================================
   CATEGORÍA — SECCIONES
   ============================================= */
.cat-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.cat-intro-text {
  padding: 48px;
}
.cat-intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cat-color);
    margin-bottom: 20px;
}
.cat-intro-text .cat-tag {
  font-size: .80rem;
  font-weight: 700;
  color: var(--cat-color);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 20px;
  display: block;
}
.cat-intro-text p { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.cat-intro-text ul {
  margin: 16px 0 24px 0;
  list-style: none;
}
.cat-intro-text ul li {
    font-size: 1rem;
    color: var(--muted);
    padding: 6px 0 6px 20px;
    position: relative;
    /* border-bottom: 1px solid var(--border); */
    line-height: 1.5;
}
.cat-intro-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cat-color);
}
.cat-intro-img {
  background-size: cover;
  background-position: center;
  min-height: 340px;
  position: relative;
}
.cat-intro-img img{    transform: scale(1.35) translateX(-0%);
    position: absolute;
    bottom: 10%;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
    z-index: 2;
}

/* Product banner */
.prod-banner {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.prod-banner-bg {
  position: absolute;
  inset: 0;
  background: var(--cat-color);
  background-size: cover;
  background-position: center;
}
.prod-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
}
.prod-banner-text {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.prod-banner-text h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.prod-banner-text span { font-size: 1rem; font-weight: 600; opacity: .85; }

.caract-prod-banner{background-color:var(--green)}

/* Product grid */
.prod-grid-wrap {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}
.prod-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); */
  grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr));
  gap: 20px;
}
.prod-card {
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .25s, transform .25s;
  background: #ffffffb5;
}
.prod-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.prod-card-img {
  height: auto;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding:10%;
}
.prod-card-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 12px;
  max-height: 17vw;
}
.prod-card-body {
  padding: 12px 14px 14px;
  border-top: 3px solid var(--cat-color);
}
.prod-card-body h3 {color:#333333; font-weight: 700; margin-bottom: 8px; }
.prod-card-body .btn-ver {
  font-size: .75rem;
  font-weight: 700;
  color: var(--cat-color);
}

/* FAQ Section */
.faq-section {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.faq-inner {
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
  margin-left: 0;
}
.faq-inner h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}
.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--cat-color);
  margin-bottom: 10px;
}
.faq-item p { font-size: .85rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* =============================================
   PRODUCTO — SECCIONES
   ============================================= */
.product-layout {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 0;
  min-height: 480px;
}
.thumb-col {
  padding: 60px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thumb-item {
  width: 60px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}
.thumb-item:hover,
.thumb-item.active { border-color: var(--cat-color); }
.thumb-item img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.main-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: white;
}
.main-img-wrap img {height: 70vh; object-fit: contain; }

.prod-info-col {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  margin: auto;
}
.prod-cat-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--cat-color);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
  display: block;
}
.prod-info-col h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.prod-tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight:200;
}
.prod-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
}
.prod-meta-row { display: flex; flex-direction: column; gap: 7px; align-items: baseline; }
.prod-meta-label { font-size: 1rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border);height: 30px;}
.prod-meta-val { font-size: .88rem; font-weight: 700; color: var(--text); }
.prod-actions { display: flex; flex-direction: column; gap: 12px; }
.prod-actions .btn-cat { text-align: center; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 11px 18px;
  font-size: .80rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.btn-download:hover { border-color: var(--cat-color); color: var(--cat-color); }

.prod-icons{border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px;padding: 10px 0px;}
.prod-icons div {display: flex; gap: 10px;}
.prod-icons img{height: 51.7px;}

/* Tabs */
.prod-tabs-bar {
  display: flex;
  overflow-x: auto;
  justify-content: center;
}
.prod-tab {
  padding: 14px 28px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.prod-tab:hover { color: var(--cat-color); }
.prod-tab.active { color: var(--cat-color); border-bottom-color: var(--cat-color); }

/* Features panel */
.features-panel {
  padding: 40px 48px;
  background-color: var(--bg-light);
}
.features-panel h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 14px;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.feat-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--cat-color);
}
.feat-item p { font-size: .80rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.4; font-size: 1rem;
    font-weight: 500;    line-height: 1.3;}

/* Related */
.related-banner {
  position: relative;
  height: 120px;
  overflow: hidden;
}
.related-banner-bg {
  position: absolute;
  inset: 0;
  background: var(--cat-color);
  background-size: cover;
  background-position: center;
}
.related-banner-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.related-banner-text {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.related-banner-text h2 { font-size: 1.5rem; font-weight: 800; }

.related-grid-wrap {
  padding: 36px 48px;
}
.related-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); */
  grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr));
  gap: 20px;
}

/* =============================================
   SECCIÓN CERTIFICADOS (COMPARTIDA)
   ============================================= */

.certs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.certs-block {
  padding: 100px 48px;
}
.certs-block h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;

font-weight: 700;
font-size: 35px;
line-height: 1.1;
letter-spacing: 0%;
color: #333333;

}
.certs-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--green);
}
.cert-tab {
  padding: 10px 20px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s; border-top-left-radius: 10px; border-top-right-radius: 10px;
}
.cert-tab.active { color: white; background-color: var(--green);  }
.cert-content { font-size: .84rem; color: var(--muted); line-height: 1.7; }
.cert-badges {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: flex-start;
  justify-content: start;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  text-align: center;
  line-height: 1.4;
  min-width: 80px;
  flex: 0 !important;
}
.cert-badge img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.cert-badge-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--green);
  font-size: .85rem;
  font-weight: 800;
  color: var(--green);
}
/* Badge como enlace */
.cert-badge--link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cert-badge--link:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  color: var(--green);
}
.certs-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  z-index:-1;
}
.tax-caracteristica_bota .certs-boot img{transform: none;height: 85%;}
.certs-boot:has(.full){position: relative;}
.certs-boot .full{width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; max-height: unset !important; transform: scale(1) !important;}
.certs-boot img { max-height: 100vh; height: 100%; max-width: 100%; object-fit: cover; transform: scale(1.3)  translateY(-12%);
    position: absolute;}

/* =============================================
   SECCIÓN CONTACTO (COMPARTIDA)
   ============================================= */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  /*border-bottom: 1px solid var(--border);*/
}
.contact-img {
  background-size: cover;
  background-position: center;
  min-height: 380px;
}
.contact-form-wrap {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #F5F6F6;
}
.contact-form-wrap h2 {
  font-size: 1.2rem;
  font-weight: 800;

font-weight: 700;
font-size: 30px;
line-height: 1;
letter-spacing: 0;
color: #009861;
padding-bottom: 40px;
}
.contact-form-wrap .wpcf7-form,
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form-wrap input,
.contact-form-wrap textarea,
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea {
margin-bottom: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;

  border: 1px solid #009861;
font-weight: 400;
font-size: 16px;
line-height: 1.4;
letter-spacing: .01em; 
border-radius: 0;
background-color: transparent;

}
.wpcf7-form input[type=checkbox]{width: fit-content;margin-left: 0 !important; margin-right: 5px;}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form-wrap textarea,
.wpcf7-form textarea { resize: vertical; min-height: 110px; }
.wpcf7-form input[type=submit],
.btn-submit {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 57px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  align-self: flex-start;

  width: fit-content;
  display: block;
  color: white;
  font-size: 16px;
}
.wpcf7-form input[type=submit]:hover,
.btn-submit:hover { background: var(--green-dark); }
.privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
}
.privacy-check input { width: auto; }
.wpcf7-form p{margin: 0;}

.wpcf7-list-item{margin-left: 0; margin-top: 10px;margin-bottom: 12px;}

/*Listado Blog*/
.blog-hero{position:relative;background:var(--green-dark);min-height:220px;display:flex;align-items:flex-end;overflow:hidden;padding-top:92px;}
.blog-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 80% at 80% 50%,rgba(90,170,74,.25) 0%,transparent 70%),linear-gradient(135deg,rgba(0,152,97,.15) 0%,transparent 60%);pointer-events:none;}
.blog-hero::after{content:'';position:absolute;right:0;top:0;bottom:0;width:40%;background-image:radial-gradient(circle,rgba(255,255,255,.07) 1px,transparent 1px);background-size:22px 22px;pointer-events:none;}
.blog-hero__inner{position:relative;z-index:2;padding:48px 48px 36px;}
.blog-hero__eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.65);margin-bottom:12px;}
.blog-hero__title{font-size:2.6rem;font-weight:800;line-height:1.1;color:#fff;margin:0 0 12px;}
.blog-hero__desc{font-size:.92rem;color:rgba(255,255,255,.75);max-width:520px;line-height:1.65;margin:0;}
.blog-hero__accent{position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--green) 0%,var(--green-light) 60%,transparent 100%);}
.blog-breadcrumb{padding:10px 48px;background:var(--bg-light);border-bottom:1px solid var(--border);}
.blog-cats-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:20px 48px;border-bottom:1px solid var(--border);background:#fff;}
.blog-cat-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 16px;border-radius:20px;font-size:.76rem;font-weight:600;color:var(--text);background:var(--bg-light);border:1px solid var(--border);text-decoration:none;transition:all .2s;white-space:nowrap;}
.blog-cat-pill:hover{background:var(--green);color:#fff;border-color:var(--green);}
.blog-cat-pill.active{background:var(--green);color:#fff;border-color:var(--green);}
.blog-cat-pill__count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:rgba(255,255,255,.25);font-size:.68rem;font-weight:700;}
.blog-cat-pill:not(.active) .blog-cat-pill__count{background:rgba(0,0,0,.08);}
.blog-section{padding:48px 48px 64px;border-bottom:1px solid var(--border);}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:48px;}
.blog-card{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .28s,transform .28s;animation:cardFadeUp .45s ease both;}
.blog-card:hover{box-shadow:0 8px 32px rgba(0,0,0,.10);transform:translateY(-4px);}
@keyframes cardFadeUp{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:translateY(0);}}
.blog-card:nth-child(1){animation-delay:.04s;}
.blog-card:nth-child(2){animation-delay:.08s;}
.blog-card:nth-child(3){animation-delay:.12s;}
.blog-card:nth-child(4){animation-delay:.16s;}
.blog-card:nth-child(5){animation-delay:.20s;}
.blog-card:nth-child(6){animation-delay:.24s;}
.blog-card:nth-child(7){animation-delay:.28s;}
.blog-card:nth-child(8){animation-delay:.32s;}
.blog-card:nth-child(9){animation-delay:.36s;}
.blog-card__img-wrap{position:relative;display:block;overflow:hidden;aspect-ratio:16/10;background:var(--bg-light);flex-shrink:0;}
.blog-card__img{width:100%;height:100%;object-fit:cover;transition:transform .42s ease;display:block;}
.blog-card:hover .blog-card__img{transform:scale(1.05);}
.blog-card__img-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--bg-light);color:var(--muted);}
.blog-card__cat-badge{position:absolute;top:12px;left:12px;z-index:3;background:var(--green);color:#fff;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:3px;pointer-events:none;}
.blog-card__body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1;border-top:3px solid var(--green);}
.blog-card__meta{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap;}
.blog-card__date,.blog-card__read{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:600;color:var(--muted);}
.blog-card__sep{color:var(--border);font-size:.85rem;}
.blog-card__title{font-size:.98rem;font-weight:800;line-height:1.3;color:var(--text);margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.blog-card__title a{color:inherit;text-decoration:none;transition:color .2s;}
.blog-card__title a:hover{color:var(--green);}
.blog-card__excerpt{font-size:.82rem;color:var(--muted);line-height:1.65;margin:0 0 20px;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.blog-card__footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:16px;border-top:1px solid var(--border);margin-top:auto;}
.blog-card__readmore{display:inline-flex;align-items:center;gap:6px;font-size:.76rem;font-weight:700;color:var(--green);text-decoration:none;transition:gap .2s,color .2s;text-transform:uppercase;letter-spacing:.05em;}
.blog-card__readmore:hover{color:var(--green-dark);gap:10px;}
.blog-card__author{display:inline-flex;align-items:center;gap:7px;font-size:.72rem;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;}
.blog-card__avatar{width:24px!important;height:24px!important;border-radius:50%;object-fit:cover;flex-shrink:0;}
.blog-empty{grid-column:1/-1;text-align:center;padding:80px 20px;color:var(--muted);font-size:.92rem;display:flex;flex-direction:column;align-items:center;}
.blog-loadmore-wrap{display:flex;flex-direction:column;align-items:center;gap:16px;padding-top:8px;}
.blog-loadmore-info{font-size:.80rem;color:var(--muted);font-weight:600;letter-spacing:.02em;}
.blog-loadmore-info span:first-child{color:var(--green);font-weight:700;}
.blog-progress-bar{width:min(400px,100%);height:4px;background:var(--border);border-radius:4px;overflow:hidden;}
.blog-progress-fill{height:100%;background:linear-gradient(90deg,var(--green),var(--green-light));border-radius:4px;transition:width .5s ease;}
.blog-loadmore-btn{position:relative;display:inline-flex;align-items:center;gap:10px;padding:14px 36px;background:#fff;color:var(--text);border:2px solid var(--border);border-radius:4px;font-family:var(--font);font-size:.82rem;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:all .25s;margin-top:4px;overflow:hidden;}
.blog-loadmore-btn::before{content:'';position:absolute;inset:0;background:var(--green);transform:translateY(100%);transition:transform .3s ease;z-index:0;}
.blog-loadmore-btn:hover::before{transform:translateY(0);}
.blog-loadmore-btn:hover{color:#fff;border-color:var(--green);}
.blog-loadmore-btn__text,.blog-loadmore-btn__icon,.blog-loadmore-btn__spinner{position:relative;z-index:1;}
.blog-loadmore-btn__spinner{display:none;}
.blog-loadmore-btn__spinner svg{animation:spin .8s linear infinite;}
@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
.blog-loadmore-btn.is-loading .blog-loadmore-btn__icon{display:none;}
.blog-loadmore-btn.is-loading .blog-loadmore-btn__spinner{display:flex;}
.blog-loadmore-btn:disabled{opacity:.55;cursor:not-allowed;pointer-events:none;}
/*Listado Blog*/
/*Post*/
.single-post-hero{position:relative;min-height:420px;display:flex;align-items:flex-end;overflow:hidden;padding-top:92px;background:var(--green-dark);}
.single-post-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;}
.single-post-hero__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.28) 50%,rgba(0,0,0,.18) 100%);}
.single-post-hero__content{position:relative;z-index:2;width:1300px;color:#fff;margin-left: auto; margin-right: auto;padding-bottom: 20px;}
.single-post-hero__breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px;font-size:.78rem;font-weight:600;}
.single-post-hero__breadcrumb a{color:rgba(255,255,255,.82);}
.single-post-hero__breadcrumb a:hover{color:#fff;}
.single-post-hero__breadcrumb .sep{color:rgba(255,255,255,.4);}
.single-post-hero__cat{display:inline-flex;align-items:center;padding:6px 12px;border-radius:20px;background:rgba(255,255,255,.14);backdrop-filter:blur(4px);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin-bottom:14px;}
.single-post-hero h1{font-size:3rem;font-weight:800;line-height:1.08;color:#fff;margin:0 0 14px;max-width:900px;}
.single-post-hero__meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.84rem;font-weight:600;color:rgba(255,255,255,.85);}
.single-post-hero__meta .sep{color:rgba(255,255,255,.45);}

.single-post-wrap{max-width:1300px;margin:0 auto;border-bottom:1px solid var(--border);}
.single-post-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;align-items:start; padding-top: 20px;}
.single-post-main{min-width:0;}
.single-post-author{display:flex;align-items:center;gap:14px;padding-bottom:22px;margin-bottom:28px;border-bottom:1px solid var(--border);}
.single-post-author__avatar img{width:58px;height:58px;border-radius:50%;object-fit:cover;}
.single-post-author__name{display:block;font-size:.95rem;font-weight:700;color:var(--text);}
.single-post-author__name:hover{color:var(--green);}
.single-post-author__date{font-size:.78rem;color:var(--muted);}
.single-post-content{font-size:1rem;line-height:1.5;color:var(--text);}
.single-post-content h2,.single-post-content h3,.single-post-content h4{color:var(--text);line-height:1.2;margin:32px 0 16px;font-weight:700;}
.single-post-content h2{font-size:2rem;}
.single-post-content h3{font-size:1.45rem;}
.single-post-content p{margin-bottom:1.2rem;color:var(--muted);}
.single-post-content ul,.single-post-content ol{margin:0 0 1.4rem 1.2rem;}
.single-post-content li{margin-bottom:.6rem;color:var(--muted);}
.single-post-content a{color:var(--green);text-decoration:none;font-weight:600;}
.single-post-content a:hover{color:var(--green-dark);}
.single-post-content img{border-radius:8px;height:auto;}
.single-post-content blockquote{margin:24px 0;padding:20px 24px;border-left:4px solid var(--green);background:var(--bg-light);font-size:1.05rem;color:var(--text);}
.single-post-content .wp-block-image,.single-post-content .wp-block-gallery{margin:28px 0;}

.single-post-sidebar{position:sticky;top:115px;display:flex;flex-direction:column;gap:20px;}
.single-post-cta{padding:28px;background:var(--bg-light);border:1px solid var(--border);border-radius:8px; }
.single-post-cta a{width: 100%;text-align: center;}
.single-post-cta__eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--green);margin:0 0 10px;}
.single-post-cta h3{font-size:1.35rem;font-weight:800;line-height:1.15;color:var(--text);margin:0 0 12px;}
.single-post-cta p{font-size:.88rem;line-height:1.7;color:var(--muted);margin:0 0 18px;}
.single-post-author-card{padding:24px;background:#fff;border:1px solid var(--border);border-radius:8px;}
.single-post-author-card h4{font-size:1rem;font-weight:800;color:var(--text);margin:0 0 10px;}
.single-post-author-card p{font-size:.84rem;line-height:1.7;color:var(--muted);margin:0 0 14px;}
.single-post-author-card a{font-size:.8rem;font-weight:700;color:var(--green);}
.single-post-author-card a:hover{color:var(--green-dark);}

.single-related{padding:48px;border-bottom:1px solid var(--border);}
.single-related__top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px;max-width:1300px;margin-left:auto;margin-right:auto;}
.single-related__eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--green);margin:0 0 8px;}
.single-related h2{font-size:2rem;font-weight:800;line-height:1.1;color:var(--text);margin:0;}
.single-related .blog-grid{max-width:1300px;margin:0 auto;}

@media (max-width:1024px){
  .single-post-layout{grid-template-columns:1fr;}
  .single-post-sidebar{position:relative;top:auto;}
}

@media (max-width:768px){
  .single-post-hero{min-height:320px;}
  .single-post-hero__content{padding:0 20px 24px;}
  .single-post-hero h1{font-size:2rem;}
  .single-post-wrap{padding:28px 20px;}
  .single-related{padding:28px 20px 40px;}
  .single-related__top{flex-direction:column;align-items:flex-start;}
  .single-related h2{font-size:1.5rem;}
}
/*Post*/

/* =============================================
   NOTICIAS (COMPARTIDA)
   ============================================= */
.news-section {
  padding: 48px;
  border-bottom: 1px solid var(--border);
}
.news-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);

font-weight: 700;
font-size: 40px;
line-height: 1;
color:#009861;
text-align: center;
max-width: 600px;
margin-left: auto;
margin-right: auto;

}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .25s;
}
.news-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }
.news-card-img {
  height: 150px;
  background: var(--bg-light);
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body {
  padding: 14px 16px;
}
.news-card-body h3 { font-size: .85rem; font-weight: 700; line-height: 1.35; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--footer-bg); color: #fff; background-color: #009861; }
.site-footer .dcha{}
.site-footer .dcha strong{font-weight: 600;font-size: 15px;line-height: 1.3;letter-spacing: 0; display: block;}
.site-footer .dcha .galer{display: flex; flex-wrap: wrap; gap: 10px;}
.site-footer .dcha .galer img{height: 50px; border-radius: 25px; object-fit: contain; object-position: center; }
.footer-main {
  display: flex;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 36px 3%;
  border-bottom: 1px solid rgba(255,255,255,.2);
  box-sizing: border-box;
}
.footer-main > *{flex: 0 1 auto;}
.footer-feder {
  display: flex;
 flex-direction: column;
  gap: 14px;
}
.footer-feder .logo-cont{display: flex; justify-content: space-between;}
.footer-feder img { height: 59px;}
.footer-feder p { font-size: .72rem; color: rgba(255,255,255,.75); max-width: 340px; line-height: 1.5; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.footer-contact a {
  color: rgba(255,255,255,.85);
  font-size: .84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  width: fit-content;
  margin-left: auto;
    margin-left: 0;
}
.footer-contact strong {
  text-align: right;
font-weight: 600;
font-size: 15px;
line-height: 1.5;
letter-spacing: 0;
color: #FFFFFF;
}

.footer-contact a:hover { }

.footer-contact .tx{border: 1px solid #fff;padding:8px 20px; box-sizing: border-box;display: block;}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; }

/* =============================================
   PÁGINAS ESTÁTICAS (Quiénes Somos, Calidad)
   ============================================= */
.page-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-text {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: var(--bg-light);
}
.page-hero-text .page-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: 0;
}
.page-hero-photo {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.page-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.page-text-col {
  padding: 48px;
}
.page-text-col p {
  font-size: .90rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.page-text-col .highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  font-style: italic;
  line-height: 1.4;
  margin: 24px 0;
  display: block;
}
.page-img-col {
  background-size: cover;
  background-position: center;
}
.page-full-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Calidad logos partners */
.partners-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}
.partner-logo {
  height: 50px;
  width: auto;
  opacity: .65;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}

.page-content .page-img-col{}
.page-content .page-img-col h2{font-weight: 700;font-size: 35px;line-height: 1.1;letter-spacing: 0; color:#333333; padding-bottom: 25px; margin-bottom: 31px; border-bottom: 4px solid #C6C9CB; max-width: 450px;}
.page-content .page-img-col .wysiwyg img{margin-bottom: 28px; max-width: 230px; max-height: 78px; object-fit: contain;}
.page-content .page-img-col .wysiwyg :last-child{margin-bottom: 0;}
.partner-logo:hover { opacity: 1; filter: none; }

/* =============================================
   GUTENBERG / EDITOR STYLES
   ============================================= */
.wp-block-group.mavinsa-certs { /* el bloque de certificados reutilizable */ }
.wp-block-separator { border-color: var(--border); }
.wp-block-columns { gap: 0; }


/*Front page*/
.home .certs-section{padding-bottom: 150px; }
.home .certs-boot{position: relative;}
.home .certs-boot img{object-fit: contain; max-height: unset; /*transform: scale(1) translatey(calc(-50% + 20px));*/ width: 100%;bottom: 0; top: -50%; margin: auto 0; max-height: 100vh;transform: scale(2) translateX(-5%); max-width:  50%;
transform: scale(1.2) translateX(-5%) translateY(-10%);
}
/*Front page*/

/*Posts*/
.single-post{}
.single-post .page-hero-text{  display: block;     position: absolute !important;    bottom: 0; background-color: transparent; padding-bottom: 30px;}
.single-post .entry-content a{color: var(--green);}
.single-post a{}
.single-post .entry-content .wp-block-button__link{color: white;}
.single-post{}
/*Posts*/
/*Author*/
.author-hero{position:relative;background:linear-gradient(135deg,var(--green-dark) 0%,#1f4e24 100%);padding:140px 48px 56px;overflow:hidden;}
.author-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 55% 75% at 85% 30%,rgba(90,170,74,.22) 0%,transparent 70%);pointer-events:none;}
.author-hero__inner{position:relative;z-index:2;display:grid;grid-template-columns:180px 1fr;gap:32px;align-items:center;max-width:1200px;}
.author-hero__avatar-wrap{display:flex;align-items:center;justify-content:center;}
.author-hero__avatar{width:160px;height:160px;border-radius:50%;object-fit:cover;border:4px solid rgba(255,255,255,.18);box-shadow:0 12px 30px rgba(0,0,0,.18); background-color: white;}
.author-hero__content{color:#fff;}
.author-hero__eyebrow{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.68);margin:0 0 10px;}
.author-hero__title{font-size:2.6rem;font-weight:800;line-height:1.05;color:#fff;margin:0 0 14px;}
.author-hero__meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:18px;}
.author-hero__meta-item{font-size:.82rem;font-weight:700;color:rgba(255,255,255,.88);}
.author-hero__meta-link{font-size:.82rem;font-weight:700;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.3);transition:border-color .2s,opacity .2s;}
.author-hero__meta-link:hover{opacity:.85;border-color:#fff;}
.author-hero__desc{max-width:760px;font-size:.95rem;line-height:1.8;color:rgba(255,255,255,.82);}
.author-hero__desc p:last-child{margin-bottom:0;}
.author-hero__accent{position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--green) 0%,var(--green-light) 65%,transparent 100%);}
.author-posts-section{padding:48px 48px 72px;}
.author-posts-section__head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px;}
.author-posts-section__eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--green);margin:0 0 8px;}
.author-posts-section__title{font-size:2rem;font-weight:800;line-height:1.1;color:var(--text);margin:0;}
.author-posts-grid{grid-template-columns:repeat(3,1fr);}
@media (max-width:1024px){.author-hero__inner{grid-template-columns:140px 1fr;gap:24px;}.author-hero__avatar{width:130px;height:130px;}.author-posts-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:768px){.author-hero{padding:118px 20px 36px;}.author-hero__inner{grid-template-columns:1fr;gap:18px;}.author-hero__avatar-wrap{justify-content:flex-start;}.author-hero__avatar{width:110px;height:110px;}.author-hero__title{font-size:2rem;}.author-posts-section{padding:28px 15px 48px;}.author-posts-section__title{font-size:1.5rem;}.author-posts-grid{grid-template-columns:1fr;}}
/*Author*/

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .about-wrap,
  .cat-intro,
  .contact-section,
  .page-hero,
  .page-content,
  .certs-layout { grid-template-columns: 1fr; }
  .about-right,
  .cat-intro-img,
  .contact-img,
  .page-hero-photo { min-height: 260px; }
  .product-layout { grid-template-columns: 60px 1fr; }
  .thumb-col { display: inline-flex; position:absolute;padding: 0 10px;}
  .footer-main { grid-template-columns: 1fr; }
  .blog-grid {        grid-template-columns: repeat(2, 1fr);        gap: 20px;    }
}

@media (max-width: 768px) {
    .blog-hero__inner { padding: 40px 20px 28px; }
    .blog-hero__title { font-size: 1.9rem; }
    .blog-cats-bar    { padding: 16px 20px; }
    .blog-section     { padding: 28px 15px 48px; }
    .blog-grid {        grid-template-columns: 1fr;        gap: 18px;    }
    .blog-breadcrumb  { padding: 10px 20px; }
    .blog-card__title { -webkit-line-clamp: 2; }
    .footer-contact{text-align: left;}
    .footer-contact a{margin-left: 0; }
  .site-nav{ padding: 0 3%; align-items: center !important; gap: 20px; }
  .mavinsa-search-icon{top: 0 !important; right: 15px !important; bottom: 0 !important; margin: auto !important;}
  .mavinsa-search-wrap, .mavinsa-search-icon{position: relative;}
  .mavinsa-search-wrap{display: flex !important; height: fit-content !important; padding: 0 !important;}
  .nav-links { display: none; }
  #mavinsa-search-input{width: 50px; border-color: transparent;}
  .mega-menu { display: none !important; } /* nunca en móvil */
  .nav-hamburger { display: flex; padding: 0 !important; height: fit-content !important; }
  .hero-intro { flex-direction: column; padding: 20px 20px 28px; gap:10px; align-items: start;}
  .hero-text { padding: 0 20px 20px; }
  .hero-text h1 { font-size: 2.5rem; }
  .cat-card{height:40vh}
  .cat-grid { grid-template-columns: 1fr; }
  .cat-intro-text h2 br{display: none;}
  .sector-grid { grid-template-columns: 1fr; }
  .prod-info-col{padding: 36px 20px;}
  .prod-grid,.related-grid { grid-template-columns: repeat(2, 1fr); gap:10px;}
  .prod-card-img img {max-height: 35vw;}
  .prod-banner-text, .related-banner-text {padding: 0 20px 0;}
  .product-layout { grid-template-columns: 1fr; }
  .breadcrumb { padding: 10px 20px; }
  .prod-grid-wrap,
  .related-grid-wrap,
  .news-section { padding: 20px 15px; }
  .about-left,
  .cat-intro-text,
  .contact-form-wrap,
  .page-hero-text,
  .page-text-col,
  .certs-block,
  .faq-inner { padding: 28px 20px; }
  .cert-badge {min-width: 100px!important;}
  .footer-main { padding: 28px 20px; gap: 24px;        flex-direction: column;        align-items: start; }
  .footer-bottom { padding: 14px 20px; }
  .footer-contact { text-align: left; width: 100%; }
  .other-cats { padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .partners-grid { padding: 28px 20px; }
  .certs-boot img { max-height: 40vh;position: relative;}
  .news-grid {  grid-template-columns: repeat(2,1fr); max-width:94%;}
  .contact-section{padding: 60px 0;}
  .home .certs-boot img{position: static; transform: none;}
  .home .certs-section{padding-bottom: 50px;padding-top: 45px;}
  .home .about-right{display: none;}
}

/* =============================================
   ADMIN BAR
   ============================================= */
#wpadminbar #wp-admin-bar-wp-logo>.ab-item .ab-icon:before {
  content: ''; width: 19px; height: 24px; top: 0; display: block;
}

/* =============================================
   CAMBIOS RAUL
   ============================================= */
#calificaciones{}
#calificaciones .feat-grid{}
#calificaciones .feat-grid .feat-item{}
#calificaciones .feat-grid .feat-item img{    max-width: 50px;}
#calificaciones .feat-grid .feat-item p{}

/* =============================================
   HERO CARACTERÍSTICA
   ============================================= */
.caract-hero {
  background: var(--green-dark);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  height: 40vh!important;
}
.caract-hero .hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.caract-hero-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 4px;
}
.caract-hero-grupo {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.caract-hero h1 {
  color: #fff;
  margin: 0;
  font-size:2.5rem;
}

/* =============================================
   PESTAÑAS PRODUCTO — reestructuradas
   ============================================= */
.prod-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 48px;
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.prod-tabs-bar::-webkit-scrollbar { display: none; }

.prod-tab {
  padding: 14px 24px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.prod-tab:hover { color: var(--text); }
.prod-tab.active {
  color: var(--cat-color, var(--green));
  border-bottom-color: var(--cat-color, var(--green));
}

/* Panel genérico de pestaña */
.prod-panel {
  padding: 40px 48px;
  background: var(--bg-light);
}
.prod-panel-content {
  max-width: 760px;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--text);
  margin:auto;
}
.prod-panel-empty {
  color: var(--muted);
  font-size: .88rem;
}


.prod-panel-content{}
.prod-panel-content ul{list-style: disc;}
.prod-panel-content ul a{color: var(--cat-color)}
.prod-panel-content{}

/* =============================================
   PESTAÑA CARACTERÍSTICAS — grid 2 col con icono
   ============================================= */
.caract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width:60%;
  margin: auto;
}
.caract-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color .15s;
}
.caract-row:hover { color: var(--green); }
/* Cada fila de la col izquierda tiene padding-right */
.caract-row:nth-child(odd) {
  margin-right: 32px;
}
.caract-row:nth-child(even) {
  padding-left: 32px;
}
/* Quitar borde bottom en las 2 últimas filas */
.caract-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.caract-row-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  overflow: hidden;
}
.caract-row-icon img {
  width: 65px;
  object-fit: contain;
}
.caract-row-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
}
.caract-row-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

/* =============================================
   PESTAÑA DESCARGAS
   ============================================= */
.descargas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: auto;
}
.descarga-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.descarga-item:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(0,152,97,.08);
}
.descarga-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.descarga-info {
  flex: 1;
  min-width: 0;
}
.descarga-nombre {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.descarga-tipo {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}
.descarga-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

/* =============================================
   BADGES CARACTERÍSTICAS — con enlace
   ============================================= */
.cert-badge--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: color .2s, transform .2s;
  cursor: pointer;
}
.cert-badge--link:hover {
  color: var(--green);
  transform: translateY(-2px);
}
.cert-badge--link img {
  transition: filter .2s;
}
.cert-badge--link:hover img {
  /*filter: drop-shadow(0px 3px 5px #AAACAE);*/
}
.cert-badge--link span {
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
}

/* =============================================
   PILL de característica (sección "Otros")
   ============================================= */
.caract-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.caract-pill:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* =============================================
   RESPONSIVE — Pestañas y grid características
   ============================================= */
@media (max-width: 768px) {
  .prod-tabs-bar { padding: 0 0 0 56%; }
  .prod-panel { padding: 10px 20px; }
  .caract-grid { grid-template-columns: 1fr; width:100%}
  .caract-row{padding:7px 0px; width: 100%;}
  .caract-row:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .caract-row:nth-child(even) { padding-left: 0; }
  .caract-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .caract-row:last-child { border-bottom: none; }
}

/* =============================================
   ICONOS DE CARACTERÍSTICAS — fila sobre botón
   ============================================= */
.prod-iconos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.prod-icono-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.prod-icono-item:hover {
  border-color: var(--cat-color, var(--green));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
.prod-icono-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}
.prod-icono-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border);
}

/* NOT FOUND */
.not-found-page {display: flex; flex-direction: column; align-items: center; padding-top: 140px; padding-bottom: 48px;}
.not-found-page h1 {font-size: 392px; line-height: 1; text-align: center; margin-bottom: 25px;}
.not-found-page h2 {font-weight: 400; font-size: 40px; line-height: 1; text-align: center; margin-bottom: 25px;}
.not-found-page > a{background: var(--green); color: #fff; border: none; border-radius: 4px; padding: 12px 57px; font-family: var(--font); font-weight: 700; cursor: pointer; transition: background .2s; width: fit-content; display: inline-block; font-size: 16px;}
.not-found-page > a:hover{background: var(--green-dark);}

@media (max-width: 768px) {
  .not-found-page h1 {font-size: 150px;}
  .not-found-page h2 {font-size: 30px;}
}
