/* ================================================================
   PETROFARM BLOG & SINGLE POST STYLESHEET (V3 - UI POLISH)
   Tipografía oficial: Barlow Condensed & Barlow
   Paleta: #1E1F1C, #028D5C (Verde de Marca), #FFFFFF, #E2E8F0
   REGLA DE MARCA: Titulares en bloques de fondo negro en #028D5C
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700;1,900&family=Barlow:wght@400;500;600;700&display=swap');

/* Reglas de Fuente */
.pf-font-condensed,
.font-condensed {
  font-family: 'Barlow Condensed', sans-serif !important;
}

.pf-font-sans,
.font-sans {
  font-family: 'Barlow', sans-serif !important;
}

/* Green Highlight Box Oficial PetroFarm */
.green-box {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
  padding: 3px 12px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  font-weight: 800 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

/* Hero Banner & Overlay Horizontal Asimétrico */
.petrofarm-hero-section {
  background-position: center right !important;
  background-size: cover !important;
  position: relative !important;
}

.hero-banner-overlay {
  background: linear-gradient(90deg, rgba(18, 19, 16, 0.94) 0%, rgba(18, 19, 16, 0.88) 45%, rgba(18, 19, 16, 0.40) 75%, rgba(18, 19, 16, 0.15) 100%) !important;
}

@media (max-width: 768px) {
  .hero-banner-overlay {
    background: linear-gradient(180deg, rgba(18, 19, 16, 0.94) 0%, rgba(18, 19, 16, 0.82) 100%) !important;
  }
}

/* Titular del Hero en Blanco Puro de Alto Impacto */
.petrofarm-blog-wrapper h1,
.petrofarm-blog-wrapper .hero-headline,
.hero-headline {
  color: #FFFFFF !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.02em !important;
}

.petrofarm-blog-wrapper h1 span,
.hero-headline span {
  color: #FFFFFF !important;
}

/* ================================================================
   PATRÓN DE IMAGEN CONTENIDA CON FONDO DESENFOCADO (BLUR BACKDROP)
   Evita zooms forzados o recortes en imágenes de dimensiones variables
   ================================================================ */
.pf-media-container {
  position: relative !important;
  overflow: hidden !important;
  background-color: #090A09 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pf-media-backdrop {
  position: absolute !important;
  inset: -25px !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(24px) brightness(0.35) saturate(0.55) !important;
  transform: scale(1.2) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.pf-media-foreground {
  position: relative !important;
  z-index: 2 !important;
  object-fit: contain !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  transition: transform 0.4s ease !important;
}

/* Tarjetas de Artículos (Clean Industrial Look) */
.clean-article-card {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

.clean-article-card:hover {
  border-color: #028D5C !important;
  box-shadow: 0 16px 32px -4px rgba(2, 141, 92, 0.15) !important;
  transform: translateY(-3px) !important;
}

.clean-article-card:hover .pf-media-foreground {
  transform: scale(1.04) !important;
}

/* Tipografía y Jerarquía de Tarjetas (Anti-Microtextos) */
.clean-article-card .green-box {
  font-size: 0.78rem !important; /* 12.5px */
  padding: 4px 10px !important;
  letter-spacing: 0.04em !important;
}

.clean-article-card h2,
.clean-article-card h3 {
  color: #1E1F1C !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important; /* 24px */
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
}

.clean-article-card h2 a,
.clean-article-card h3 a,
.clean-article-card a {
  color: #1E1F1C !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}

.clean-article-card h2 a:hover,
.clean-article-card h3 a:hover,
.clean-article-card a:hover {
  color: #028D5C !important;
  text-decoration: underline !important;
}

.clean-article-card p {
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.95rem !important; /* 15.2px legible */
  line-height: 1.6 !important;
  color: #334155 !important; /* Slate-700 alto contraste */
}

/* CORRECCIÓN GLOBAL DEL HOVER DE ELEMENTOR EN CONTENIDOS SOBRE FONDO BLANCO */
.petrofarm-blog-wrapper main a:hover,
.petrofarm-single-post article a:hover,
.prose-petrofarm a:hover {
  color: #028D5C !important;
  text-decoration: underline !important;
}

/* Utilidad No Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Filtros por Categoría */
.filter-btn,
button.filter-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  border: 1px solid #CBD5E1 !important;
  background-color: #FFFFFF !important;
  color: #334155 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: 0.88rem !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.filter-btn:hover,
button.filter-btn:hover {
  border-color: #028D5C !important;
  color: #028D5C !important;
  background-color: #F8FAF9 !important;
}

.filter-btn.active,
button.filter-btn.active {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
  border-color: #028D5C !important;
  box-shadow: 0 3px 10px rgba(2, 141, 92, 0.35) !important;
}

/* Estilos de Tipografía Editorial para Single Post (.prose-petrofarm) */
.prose-petrofarm {
  font-family: 'Barlow', sans-serif !important;
  color: #334155 !important;
  font-size: 1.08rem !important;
  line-height: 1.85 !important;
}

.prose-petrofarm h2 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  font-size: 2.1rem !important;
  color: #1E1F1C !important;
  margin-top: 2.75rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid #E2E8F0 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}

.prose-petrofarm h3 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 1.45rem !important;
  color: #028D5C !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.2 !important;
}

.prose-petrofarm p {
  margin-bottom: 1.35rem !important;
  color: #334155 !important;
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
}

.prose-petrofarm strong {
  color: #1E1F1C !important;
  font-weight: 700 !important;
}

.prose-petrofarm ul {
  margin-bottom: 1.75rem !important;
  list-style: none !important;
  padding-left: 0 !important;
}

.prose-petrofarm li {
  position: relative !important;
  padding-left: 1.75rem !important;
  margin-bottom: 0.75rem !important;
  font-size: 1.03rem !important;
  color: #1E293B !important;
  line-height: 1.7 !important;
}

.prose-petrofarm li::before {
  content: "▪" !important;
  position: absolute !important;
  left: 0 !important;
  color: #028D5C !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  top: -2px !important;
}

.prose-petrofarm blockquote {
  border-left: 4px solid #028D5C !important;
  background-color: #F8FAF9 !important;
  padding: 1.25rem 1.75rem !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 2rem 0 !important;
  font-style: italic !important;
  color: #0F172A !important;
  font-size: 1.1rem !important;
}

/* ================================================================
   TITULARES EN BLOQUES OSCUROS: SIEMPRE VERDE DE MARCA (#028D5C)
   ================================================================ */

/* Callout Técnico / Caja de Especificaciones */
.technical-spec-box {
  background: #1E1F1C !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  padding: 1.75rem !important;
  border-left: 6px solid #028D5C !important;
  margin: 2.5rem 0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
}

.technical-spec-box h4 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  color: #028D5C !important;
  font-size: 1.4rem !important;
  text-transform: uppercase !important;
  margin-bottom: 0.75rem !important;
}

.technical-spec-box p,
.technical-spec-box li {
  color: #CBD5E1 !important;
  font-size: 0.95rem !important;
}

/* Barra de Contacto Oficial */
.petrofarm-cta-card {
  background: linear-gradient(135deg, #1E1F1C 0%, #2A2B27 100%) !important;
  border: 1px solid rgba(2, 141, 92, 0.3) !important;
  border-radius: 16px !important;
  padding: 2.25rem !important;
  color: #FFFFFF !important;
  margin-top: 3.5rem !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.petrofarm-cta-card h3 {
  color: #028D5C !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
  font-size: 1.85rem !important;
  line-height: 1.15 !important;
}

.petrofarm-cta-card p {
  color: #CBD5E1 !important;
}

/* ================================================================
   BOTONES DE CONVERSIÓN CON CONTRASTE BLINDADO EN HOVER
   ================================================================ */

/* Botón WhatsApp Directo */
.petrofarm-cta-card a.btn-whatsapp-cta,
a.btn-whatsapp-cta {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
  border: 2px solid #028D5C !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.petrofarm-cta-card a.btn-whatsapp-cta:hover,
a.btn-whatsapp-cta:hover {
  background-color: #007A4A !important;
  color: #FFFFFF !important;
  border-color: #007A4A !important;
  text-decoration: none !important;
}

/* Botón Solicitar Cotización: Normal blanco con letra verde, Hover verde con letra blanca */
.petrofarm-cta-card a.btn-solicitar-cotizacion,
a.btn-solicitar-cotizacion {
  background-color: #FFFFFF !important;
  color: #028D5C !important;
  border: 2px solid #028D5C !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}

.petrofarm-cta-card a.btn-solicitar-cotizacion:hover,
a.btn-solicitar-cotizacion:hover {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
  border-color: #028D5C !important;
  text-decoration: none !important;
}

/* Estilización para el Buscador de Equipos FiboSearch */
.petrofarm-fibosearch-container .dgwt-wcas-search-wrapp {
  max-width: 100% !important;
  margin: 0 !important;
}

.petrofarm-fibosearch-container .dgwt-wcas-sf-wrapp {
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 2px solid #028D5C !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.petrofarm-fibosearch-container .dgwt-wcas-search-input {
  font-family: 'Barlow', sans-serif !important;
  font-size: 0.95rem !important;
  padding: 14px 16px !important;
  color: #1E1F1C !important;
}

.petrofarm-fibosearch-container .dgwt-wcas-search-submit {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
}

/* ================================================================
   SECCIÓN DE EQUIPOS DESTACADOS EN BLOG POSTS (INVENTARIO EN PATIO)
   ================================================================ */
.pf-featured-equipment-section {
  background-color: #F8FAF9 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 1.75rem !important;
  margin: 3rem 0 !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04) !important;
}

.pf-featured-equipment-section br {
  display: none !important;
}

.pf-featured-equipment-section .pf-section-header {
  border-bottom: 1px solid #E2E8F0 !important;
  padding-bottom: 1rem !important;
  margin-bottom: 1.5rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.pf-featured-equipment-section .pf-section-badge {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  display: inline-block !important;
  margin-bottom: 4px !important;
}

.pf-featured-equipment-section .pf-section-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #1E1F1C !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}

.pf-featured-equipment-section .pf-section-subtitle {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 12px !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

/* Grid dentro del Blog */
.pf-featured-equipment-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  margin-top: 1rem !important;
}

.pf-featured-equipment-grid > p {
  display: none !important;
}

@media (max-width: 992px) {
  .pf-featured-equipment-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tarjeta Oficial de Producto PetroFarm en Blog */
.pf-featured-equipment-section .pf-equipment-card {
  background-color: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.pf-featured-equipment-section .pf-equipment-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(2, 141, 92, 0.14) !important;
  border-color: #028D5C !important;
}

/* Imagen 16:9 con zoom suave */
.pf-featured-equipment-section .pf-card-image-wrap {
  width: 100% !important;
  aspect-ratio: 1225 / 745 !important;
  overflow: hidden !important;
  display: block !important;
  background-color: #0B0C0A !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pf-featured-equipment-section .pf-card-image-wrap br {
  display: none !important;
}

.pf-featured-equipment-section .pf-card-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.pf-featured-equipment-section .pf-equipment-card:hover .pf-card-image-wrap img {
  transform: scale(1.04) !important;
}

/* Separador verde distintivo */
.pf-featured-equipment-section .pf-card-divider-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pf-featured-equipment-section .pf-card-divider {
  border: 0 !important;
  border-top: 2px solid #028D5C !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Contenido de la Tarjeta */
.pf-featured-equipment-section .pf-card-content {
  padding: 16px 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* Estrellas de Calidad (5 estrellas verdes) */
.pf-featured-equipment-section .pf-card-rating {
  display: flex !important;
  gap: 3px !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.pf-featured-equipment-section .pf-card-rating svg {
  width: 13px !important;
  height: 13px !important;
  fill: #028D5C !important;
  display: inline-block !important;
}

/* Título */
.pf-featured-equipment-section .pf-card-title {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
}

.pf-featured-equipment-section .pf-card-title a {
  color: #1E1F1C !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 46px !important;
  transition: color 0.2s ease !important;
}

.pf-featured-equipment-section .pf-card-title a:hover {
  color: #028D5C !important;
}

/* Extracto / Descripción corta */
.pf-featured-equipment-section .pf-card-excerpt {
  color: #555555 !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 58px !important;
  margin-bottom: 14px !important;
}

/* Botones de Acción */
.pf-featured-equipment-section .pf-card-btn-wrap {
  margin-top: auto !important;
  width: 100% !important;
  padding: 0 18px 18px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.pf-featured-equipment-section .pf-card-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 10px 16px !important;
  background-color: #1E1F1C !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.pf-featured-equipment-section .pf-card-btn:hover {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
}

.pf-featured-equipment-section .pf-card-btn-wa {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 8px 12px !important;
  background-color: transparent !important;
  color: #028D5C !important;
  border: 1px solid #028D5C !important;
  text-decoration: none !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.pf-featured-equipment-section .pf-card-btn-wa:hover {
  background-color: #028D5C !important;
  color: #FFFFFF !important;
}

.pf-featured-equipment-section .pf-card-btn-wa svg {
  width: 13px !important;
  height: 13px !important;
  fill: currentColor !important;
  margin-right: 5px !important;
}
