/* ==========================================================================
   ESTILOS UNIFICADOS GLOBALES - BEST INFRARED SOLUTIONS (BIS)
   Archivo maestro para catálogos, fichas de productos y servicios
   ========================================================================== */

:root {
  --bis-primary: #0f172a;
  --bis-secondary: #00477d;
  --bis-accent: #0284c7;
  --bis-success: #10b981;
  --bis-warning: #f59e0b;
  --bis-danger: #ef4444;
  --bis-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bis-glow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* ==========================================================================
   6. BANNERS DE PÁGINAS (BACKGROUNDS DINÁMICOS)
   ========================================================================== */
.page-header,
.page-service,
.page-thermal,
.page-equipos,
.page-ups,
.page-gas,
.page-contact,
.page-blog {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    min-height: 360px !important;
    display: flex !important;
    align-items: center !important;
}

/* Imagen específica para about */
.page-about {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_quienes_somos_Termografia_en_mexico.png") !important;
}
/* Imagen específica para Termografía */
.page-thermal {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_equipo_termografia_flir.png") !important;
}
/* Imagen específica para Equipos y Servicios */
.page-equipos {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_equipos_servicios_productos_flir_méxico.png") !important;
}
/* Imagen específica para Servicios */
.page-service {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_equipos_servicios_productos_flir_méxico.png");
}
/* Imagen específica para Equipos y Medición */
.page-equipos {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_linea__e76_flir.png");
}
/* Imagen específica para Sistemas UPS */
.page-ups {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_respaldo_de_energia_ups_prolyt.png");
}
/* Imagen específica para Gases (Más clara y con mayor visibilidad de la foto) */
.page-gas {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_equipos_ogi_deteccion-de-gas.png")
}
/* Imagen específica para Contacto */
.page-contact {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_contacto_e_informacion_flir.png");
}
/* Imagen específica para Blog */
.page-blog {
    background-image: linear-gradient(135deg, rgba(3, 17, 32, 0.75) 0%, rgba(6, 34, 49, 0.5) 100%), url("../img/bis_blog_informacion_articulos_termografia_gas_acustico_ups_flir.png");
}

/* Clases de utilidad para el diseño del Banner (independientes) */
.badge-tech {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    background-color: #0284c7 !important;
}

.text-shadow-custom {
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.text-shadow-custom-sm {
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    max-width: 650px;
    font-weight: 400;
}

.breadcrumb-custom-opacity {
    opacity: 0.95;
}

/* Hero Banners Complementarios */
.bis-hero-banner {
    position: relative;
    width: 100%;
    min-height: 150px;
    max-height: 200px;
    overflow: hidden;
    background-color: var(--primary);
}

.bis-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left bottom;
    z-index: 1;
}

.bis-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 71, 125, 0.95) 0%, rgba(2, 132, 199, 0.85) 100%);
}
/* ==========================================================================
   SISTEMAS DE GRID Y TARJETAS DE PRODUCTO (UNIFICADAS)
   ========================================================================== */
.product-grid-pro, .galeria-pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
  padding: 20px 0;
}

.product-card-pro-item, .galeria-card-unified {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.07);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

.product-card-pro-item:hover, .galeria-card-unified:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px -12px rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.4);
}

.product-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.card-badge-container {
  min-height: 35px;
  margin-bottom: 15px;
}

.card-badge-custom {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card-img-container, .card-img-wrapper {
  background: #f1f5f9;
  border-radius: 12px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
}

.product-card-img-container img, .card-img-wrapper img {
  max-height: 180px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-pro-item:hover .product-card-img-container img,
.galeria-card-unified:hover .card-img-wrapper img {
  transform: scale(1.08) rotate(1deg);
}

.product-card-content, .card-body-content {
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title, .card-title-unified {
  font-family: 'Rubik', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bis-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card-desc-unified {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.product-card-specs {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-specs li {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
}

.product-card-specs li i {
  color: var(--bis-accent);
  margin-right: 8px;
  font-size: 0.8rem;
}

.product-card-footer, .card-footer-unified {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
  margin-top: auto;
}

.brand-tag-pro, .card-category-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bis-secondary);
  background: rgba(0, 71, 125, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-quote-pro, .card-link-btn {
  background: var(--bis-secondary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 71, 125, 0.2);
  display: inline-flex;
  align-items: center;
}

.btn-quote-pro:hover, .card-link-btn:hover {
  background: #00335a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 71, 125, 0.3);
}


/* ==========================================================================
   FILTROS DE CATEGORÍA (PILLS)
   ========================================================================== */
.filter-pills-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--bis-primary);
  color: #ffffff;
  border-color: var(--bis-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.15);
}


/* ==========================================================================
   TABLAS DE ESPECIFICACIONES MODERNAS
   ========================================================================== */
.spec-table-modern {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  width: 100%;
  margin-bottom: 2rem;
}

.spec-table-modern th, 
.spec-table-modern td {
  padding: 18px 24px;
  vertical-align: middle;
}

.spec-table-modern tr:nth-child(even) {
  background-color: #f8fafc;
}

.spec-table-modern tr:hover {
  background-color: #f1f5f9;
  transition: background 0.2s ease;
}


/* ==========================================================================
   GALERÍA INTERACTIVA DE IMÁGENES
   ========================================================================== */
.galeria-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.galeria-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.galeria-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(2, 132, 199, 0.15);
  border-color: var(--bis-accent);
}

.galeria-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-item .caption {
  padding: 16px;
  font-weight: 600;
  color: var(--bis-primary);
  text-align: center;
  background: #ffffff;
}


/* ==========================================================================
   TARJETAS DE BENEFICIOS
   ========================================================================== */
.feature-card-pro {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card-pro:hover {
  border-color: var(--bis-accent);
  box-shadow: var(--bis-glow);
}


/* ==========================================================================
   BOTONES DE ACCIÓN Y CONVERSIÓN
   ========================================================================== */
.btn-pro-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-pro-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

.btn-pro-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-pro-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}