/* ==========================================================================
   SISTEMA DE DISEÑO: MODERNO, LIMPIO, CLARO Y AMARILLO DORADO
   Inspirado en estética institucional limpia y catálogos de alta claridad.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700;800;900&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta Amarillo Cálido (Extraída de la referencia) */
  --primary: #ffb452;          /* Amarillo ámbar dorado */
  --primary-hover: #ffb452;    /* Ámbar más intenso para hover */
  --primary-light: #fffbeb;    /* Fondo suave marfil/amarillo claro */
  --primary-border: #ffb452;   /* Borde dorado suave */
  
  /* Escala de grises moderna y limpia */
  --dark: #0f172a;             /* Texto principal (Grafito profundo) */
  --dark-soft: #334155;        /* Texto secundario y títulos de apoyo */
  --text-muted: #64748b;       /* Descripciones legibles */
  --border-color: #e2e8f0;     /* Líneas finas divisorias */
  --bg-body: #ffffff;          /* Fondo blanco puro */
  --bg-subtle: #f8fafc;        /* Fondo gris sutil para tarjetas o cajas */
  
  /* Redes Oficiales */
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebc59;

  /* Tipografía y Sombras Tenues */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif; /* Títulos pesados */
  --font-mono: 'Space Mono', monospace;                                           /* Etiquetas técnicas */
  --font-body: 'Inter', system-ui, sans-serif;                                    /* Párrafos nítidos */
  --font-base: var(--font-body);
  --max-width: 1180px;
  --transition: all 0.2s ease-in-out;
  --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Reseteo básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
  color: var(--dark);
  line-height: 1.6;
}

/* Aplica la tipografía de forma universal a todos los textos, títulos y botones */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, span, label {
  font-family: var(--font-base) !important;
}
body {
  background-color: #f1f5f9;
  color: var(--dark);
  min-height: 100vh;
  /* Capa 1: Difuminado óptico AMPLIO (cubre gran parte del centro con luz suave) */
  /* Capa 2: Halftones cuadrados más grandes (3.2px) y con mayor contraste */
  background-image: 
    linear-gradient(to right, 
      rgba(241, 245, 249, 0) 0%,
      rgba(255, 255, 255, 0.12) 8%,
      rgb(255, 255, 255) 18%,
      rgb(255, 255, 255) 28%,
      #ffffff 36%,
      #ffffff 64%,
      rgb(255, 255, 255) 72%,
      rgb(255, 255, 255) 82%,
      rgba(255, 255, 255, 0.12) 92%,
      rgba(241, 245, 249, 0) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='0' y='0' width='3.2' height='3.2' fill='%2364748b' opacity='0.55' shape-rendering='crispEdges'/%3E%3C/svg%3E");
  background-size: 100% 100%, 15px 15px;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, scroll;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   ESTRUCTURA Y CENTRADO
   ========================================================================== */

.container {
  width: 92%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 5rem 0;
  background-color: transparent;
}

.section-alt {
  /* Tinte gris translúcido: diferencia la sección SIN tapar la luz del difuminado vertical */
  background-color: rgba(250, 250, 251, 0.55);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

/* Badge / Etiqueta superior */
.badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: #b45309;
  border: 1px solid var(--primary-border);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.section-title span {
  color: var(--primary);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

/* Botón Amarillo Cálido Principal */
.btn-primary {
  background-color: var(--primary);
  color: #0f172a; /* Texto oscuro para legibilidad impecable */
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  border-color: var(--border-color);
  background-color: #ffffff;
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #b45309;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER EN 2 NIVELES (ESTILO LUXE: TELÉFONO | LOGO CENTRADO | INSTAGRAM)
   ========================================================================== */

/* Cabecera completamente blanca y opaca (bloquea los halftones del fondo) */
.header,
.header-top,
.header-nav-bar {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

.header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  z-index: 1000;
}

/* 1. FILA SUPERIOR: LOGO IZQUIERDA Y CONTACTO DERECHA */
.header-top {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
}

.header-top-flex {
  display: flex;
  justify-content: space-between; /* Logo a la izquierda, contacto a la derecha */
  align-items: center;
}

/* Logotipo grande y nítido */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Logotipo Ultra Nítido (Optimizado para 1080p, 2K, 4K, Retina y Ultra-Wide) */
.logo-header-img {
  height: 80px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  image-rendering: auto !important; /* Activa el suavizado bicúbico natural */
  display: block;
  transition: transform 0.2s ease-in-out;
}

.logo-header-img:hover {
  transform: scale(1.02) translateZ(0);
}


/* Grupo de la derecha: Teléfono e Instagram */
.header-contact-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.header-phone-link:hover {
  color: var(--primary);
}

.header-contact-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

.header-ig-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-soft);
  transition: var(--transition);
  padding: 0.2rem;
}

.header-ig-link:hover {
  color: #e1306c;
  transform: scale(1.15);
}

/* 2. FILA INFERIOR (MENÚ CENTRADO CON SEPARADORES |) */
.header-nav-bar {
  background-color: #ffffff;
  padding: 0.45rem 0;
}

.nav-menu-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-item {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dark-soft);
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
  transition: var(--transition);
}

.nav-link-item:hover {
  color: var(--primary);
}

.nav-separator {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 0.85rem;
  user-select: none;
}

/* Botón amarillo "Cotizar ahora" en el menú */
.nav-btn-quote {
  background-color: var(--primary) !important;
  color: #0f172a !important;
  padding: 0.5rem 1.3rem !important;
  font-weight: 800 !important;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--transition);
  margin-left: 0.5rem;
}

.nav-btn-quote:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

/* Adaptación móvil (Previene desbordamiento y ajusta la barra) */
@media (max-width: 768px) {
  
  /* ==========================================================================
     SECTORES EN MÓVIL: CÍRCULOS PEQUEÑOS (3 ARRIBA Y 2 ABAJO CENTRADOS)
     ========================================================================== */

  .sector-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.1rem 0.6rem !important; /* Espacio horizontal y vertical exacto */
    max-width: 310px !important;   /* Ancho que obliga a que quepan 3 arriba y 2 abajo */
    margin: 0 auto 2.5rem auto !important;
  }

  /* Ancho de cada botón para que entren 3 por fila */
  .sector-tab-btn {
    width: 85px !important;
    gap: 0.4rem !important;
  }

  /* Círculo más pequeño y elegante (65px) */
  .sector-circle {
    width: 65px !important;
    height: 65px !important;
    border-width: 2px !important;
  }

  /* Icono adaptado al nuevo tamaño del círculo */
  .sector-icon-img {
    width: 40px !important;
    height: 40px !important;
  }

  /* Texto del sector pequeño y en 2 líneas limpias */
  .sector-label {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }

  /* Efecto al seleccionar en móvil */
  .sector-tab-btn.is-active .sector-circle {
    border-width: 2.5px !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), 0 6px 15px rgba(245, 158, 11, 0.25) !important;
  }

  /* 1. Fila superior más compacta y centrada */
  .header-top {
    padding: 0.6rem 0 !important;
  }

  .logo-header-img {
    height: 42px !important;
  }

  .header-phone-link span {
    display: none !important; /* Solo muestra el icono del teléfono en móvil */
  }

  /* 2. Barra inferior deslizable y protegida */
  .header-nav-bar {
    padding: 0.4rem 0 !important;
    overflow-x: auto !important;           /* Permite deslizamiento táctil si la pantalla es chica */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                /* Oculta la barra de scroll en Firefox */
  }

  .header-nav-bar::-webkit-scrollbar {
    display: none;                        /* Oculta la barra de scroll en Chrome/Safari */
  }

  .nav-menu-centered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    width: max-content !important;        /* Agrupa los elementos sin apretarlos */
    margin: 0 auto !important;
    padding: 0 0.8rem !important;
  }

  /* Enlaces en una sola línea */
  .nav-link-item {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.4rem !important;
    white-space: nowrap !important;       /* Nunca divide las palabras */
    letter-spacing: 0.04em !important;
  }

  /* Ocultamos las barras | en celular para que todo quepa perfectamente */
  .nav-separator {
    display: none !important;
  }

  /* Botón Cotizar Ahora compacto en una sola línea */
  .nav-btn-quote {
    font-size: 0.72rem !important;
    padding: 0.4rem 0.75rem !important;
    white-space: nowrap !important;       /* Evita que "COTIZAR AHORA" se parta en 2 renglones */
    margin-left: 0.2rem !important;
  }
}

/* ==========================================================================
   PORTADA PRINCIPAL (HERO)
   ========================================================================== */

.hero {
  min-height: 86vh !important;          /* Altura más amplia: la gasolinera se aprecia completa */
  display: flex !important;
  align-items: center !important;
  padding: 6.5rem 0 !important;
  background-size: cover !important;
  background-position: center center !important; /* Encuadre centrado natural */
  background-repeat: no-repeat !important;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box !important;
}

.hero-content-left {
  max-width: 780px;
  text-align: left;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.3rem;
  text-align: left;
}

.hero-title span {
  color: var(--primary);
}

/* ==========================================================================
   SELECTOR DE SECTORES (CIRCULARES GRANDES)
   ========================================================================== */

.sector-tabs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3.2rem;
  margin-bottom: 3.2rem;
}

.sector-tab-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 180px;
  text-align: center;
  padding: 0;
  outline: none;
}

.sector-tab-btn * {
  pointer-events: none;
}

.sector-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sector-icon-img {
  width: 115px;
  height: 115px;
  object-fit: contain;
}

.sector-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-soft);
  line-height: 1.25;
  transition: var(--transition);
}

.sector-tab-btn:hover .sector-circle {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.sector-tab-btn:hover .sector-label {
  color: #b45309;
}

/* Estado activo: Borde amarillo ámbar */
.sector-tab-btn.is-active .sector-circle {
  background-color: #ffffff;
  border: 3.5px solid var(--primary);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 10px 25px rgba(245, 158, 11, 0.25);
}

.sector-tab-btn.is-active .sector-label {
  color: #b45309;
  font-weight: 800;
}

/* Cartilla de sector limpia y cuadrada */
.sector-card-single {
  display: none;                      /* Oculta las demás cartillas */
  align-items: center;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;               /* Proporción panorámica 16:9 */
  margin: 0 auto;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 0;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#card-petroleo {
  display: flex;
}

/* Foto 1080p ocupando el fondo derecho en su proporción natural */
.sector-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;                         /* Mayor apertura para mostrar la toma 16:9 */
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto !important;
  z-index: 1;
  pointer-events: none;
}

/* Difuminado cinematográfico blanco desde la izquierda */
.sector-white-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    #ffffff 0%, 
    #ffffff 36%,                      /* Base blanca sólida para el texto */
    rgba(255, 255, 255, 0.9) 48%, 
    rgba(255, 255, 255, 0.25) 75%, 
    transparent 100%                  /* Desvanecimiento total hacia la foto */
  );
  z-index: 2;
  pointer-events: none;
}


/* ==========================================================================
   CARTILLA DE SECTORES: TIPOGRAFÍA COMPACTA Y ELEGANTE (SIN ROTURAS)
   ========================================================================== */

.sector-card-single {
  display: none;                      /* Oculta las inactivas */
  position: relative;
  width: 100%;
  max-width: 1040px !important;
  /* Proporción exacta 16:9: La foto 1080p encaja perfecta al 100% sin zoom ni recorte */
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto;
  border: 1.5px solid var(--border-color);
  border-radius: 0;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  box-sizing: border-box;
  /* CENTRADO VERTICAL A LA IZQUIERDA */
  align-items: center !important;
  justify-content: flex-start !important;
  background-color: #070a13;
}

/* Solo la primera cartilla arranca visible */
#card-petroleo {
  display: flex;
}

/* 1. FOTO 1080p SIN ZOOM FORZADO (Escala 1:1 natural con la cartilla) */
.sector-bg-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;                  /* Coincide con el 16:9 de la cartilla */
  object-position: center;
  image-rendering: auto !important;
  transform: none !important;         /* Cero zoom o escala */
  z-index: 1;
  pointer-events: none;
}

/* 2. Cero difuminados anteriores */
.sector-white-overlay {
  display: none !important;
}

/* 3. CUADRO OSCURO Y TRANSPARENTE (SIN DIFUMINADOS/BLUR) */
.sector-card-content {
  position: relative;
  z-index: 3;
  width: auto;
  max-width: 470px !important;        /* Cuadro compacto para texto directo */
  margin-left: 3rem;                  /* Ubicado a la izquierda */
  padding: 2.2rem 2.4rem !important;
  /* Transparencia pura en tono grafito oscuro (sin efecto blur) */
  background: rgba(11, 15, 23, 0.35) !important;
  backdrop-filter: none !important;   /* Cero difuminado: la foto se ve nítida a través */
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-left: 4px solid var(--primary) !important; /* Detalle amarillo de acento */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  text-align: left;
}

/* Insignia técnica con estilo oscuro y amarillo */
.sector-card-content .badge {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  margin-bottom: 0.6rem;
}

/* TÍTULO BLANCO NÍTIDO (SIN BRILLOS NI SOMBRAS) */
.sector-card-content h3 {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;          /* Blanco sólido de alto impacto */
  margin-top: 0.4rem !important;
  margin-bottom: 0.8rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-shadow: none !important;       /* Cero brillos */
}

/* TEXTO DIRECTO Y LEGIBLE */
.sector-card-single p,
.sector-card-single .sector-card-content p {
  color: #ffffff !important;   /* Fuerza el blanco puro en el párrafo */
  opacity: 1 !important;         /* Blanco puro brillante */
  line-height: 1.65 !important;
  margin: 0 !important;
  text-align: left !important;
  text-justify: inter-word;
  hyphens: none !important;
  text-shadow: none !important;
}

/* Adaptación para pantallas de celular */
@media (max-width: 768px) {
  .sector-card-single {
    aspect-ratio: auto !important;   /* En celular la altura se adapta libremente */
    min-height: 380px !important;
  }
  .sector-card-content {
    margin: 1.2rem !important;
    max-width: calc(100% - 2.4rem) !important;
    padding: 1.8rem 1.4rem !important;
    background: rgba(11, 15, 23, 0.88) !important;
  }
}


/* ==========================================================================
   CATÁLOGO DE PRODUCTOS (ESTILO INDUSTRIAL CLARO)
   ========================================================================== */

.catalog-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.catalog-breadcrumb {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.catalog-breadcrumb a {
  color: var(--dark);
  text-decoration: none;
}

.catalog-breadcrumb a:hover {
  color: var(--primary);
}

.catalog-search-inline {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  overflow: hidden;
}

.catalog-search-inline input {
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  outline: none;
  width: 250px;
  font-family: inherit;
}

.catalog-search-inline button {
  background-color: var(--primary);
  border: none;
  color: #0f172a;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  font-weight: bold;
}

.catalog-header-bar {
  background-color: var(--primary);
  color: #0f172a;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}

.catalog-header-bar h1 {
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.catalog-main-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 3rem;
  align-items: start;
}

.sidebar-cat-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 0.5rem;
}

.sidebar-cat-menu {
  list-style: none;
}

.sidebar-cat-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.6rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-soft);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-cat-btn .arrow-indicator {
  color: var(--primary);
  font-size: 1.1rem;
}

.sidebar-cat-btn:hover {
  background-color: var(--bg-subtle);
  color: #b45309;
  padding-left: 0.9rem;
}

.sidebar-cat-btn.active {
  color: #b45309;
  font-weight: 800;
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding-left: 0.8rem;
}

.catalog-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-color);
}

.products-grid-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* Contenedor de la foto del producto */
.product-image-box {
  width: 100%;
  height: 230px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
}

/* FOTO ULTRA NÍTIDA (Escala proporcional sin perder resolución) */
.product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto !important; /* Suavizado para fotos de productos */
  transition: transform 0.25s ease-in-out;
  display: block;
}

.product-card:hover .product-img {
  transform: scale(1.05) translateZ(0);       /* Zoom suave al pasar el cursor */
}

.product-card:hover .product-img {
  transform: scale(1.05); /* Efecto de acercamiento sutil al pasar el cursor */
}

.product-body {
  padding: 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

/* Espaciado limpio para que la descripción empuje el botón al fondo */
/* .product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1; /* Mantiene todos los botones alineados a la misma altura */

.product-desc {
  display: none !important; /* Oculta todas las descripciones de inmediato */
}


/* Eliminamos el cuadro de especificaciones en todo el catálogo */
.product-specs {
  display: none !important;
}


.product-specs li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-specs span:first-child {
  font-weight: 600;
  color: var(--dark-soft);
}


/* ==========================================================================
   BOTÓN ELEGANTE DE WHATSAPP (LIMPIO Y SIN ERRORES)
   ========================================================================== */

.btn-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  /* Verde bosque mate elegante y sobrio */
  background-color: #1b7a43 !important;
  border: 1px solid #146135 !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 0.85rem 1.4rem !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(27, 122, 67, 0.18) !important;
  transition: all 0.22s ease-in-out !important;
  text-decoration: none !important;
}

.btn-whatsapp:hover {
  background-color: #145e33 !important;
  border-color: #0e4425 !important;
  box-shadow: 0 4px 14px rgba(20, 94, 51, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Ocupar el ancho completo en tarjetas */
.product-card .btn-whatsapp,
.reman-card .btn-whatsapp {
  margin-top: auto;
  width: 100% !important;
}

/* ==========================================================================
   CONTACTO (CARTILLAS GRANDES CUADRADAS CON DIFUMINADO SUAVE)
   ========================================================================== */

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  max-width: 1050px;
  margin: 0 auto 4.5rem auto;
}

.contact-channel-card {
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 0;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.contact-channel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Cartillas de contacto con degradado gris tenue y limpio */
.contact-card-whatsapp,
.contact-card-instagram {
  border: 1.5px solid var(--border-color) !important;
  /* Degradado gris muy sutil: nace en gris perla claro arriba y se desvanece a blanco puro */
  background: linear-gradient(180deg, #f1f5f9 0%, rgba(248, 250, 252, 0.4) 40%, #ffffff 100%) !important;
  box-shadow: var(--shadow-subtle) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

/* Efecto hover refinado con el amarillo de la marca */
.contact-card-whatsapp:hover,
.contact-card-instagram:hover {
  transform: translateY(-4px) !important;
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-hover) !important;
}

.channel-icon-svg {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.channel-detail {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0.5rem 0 0.8rem 0;
}

/* ==========================================================================
   EMPRESA (HISTORIA, PILARES Y PROPUESTA DE VALOR)
   ========================================================================== */

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* Proporción ideal entre texto y rombos */
  gap: 3.5rem;
  align-items: center;                /* Centra los rombos verticalmente con el texto */
  margin-bottom: 4.5rem;
}

.about-box-highlight {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 0;
  padding: 1.8rem 2rem;
  margin-top: 2rem;                   /* Separación limpia debajo del texto de historia */
  text-align: left;
}

.diamonds-column-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: #b45309;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 2.2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.3rem auto;
  background-color: var(--primary-light);
  color: #b45309;
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   FOOTER (NEGRO PROFUNDO Y ELEGANTE)
   ========================================================================== */

.footer {
  background-color: #0b0f17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2rem 0;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.logo-footer-img {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-top: 0.8rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  grid-column: 1 / -1 !important; /* Si quedó atrapado en las columnas, lo obliga a abarcar todo el ancho abajo */
  width: 100% !important;
  text-align: center !important;
  padding-top: 2.5rem !important;
  margin-top: 1.5rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #64748b !important;
  font-size: 0.85rem !important;
}

.footer-bottom p {
  text-align: center !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (CIRCULAR EN ESQUINA INFERIOR DERECHA)
   ========================================================================== */

.whatsapp-float {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  background-color: #25d366 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important; /* Círculo perfecto */
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45) !important;
  z-index: 9999 !important;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease !important;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  transform: scale(1.1) !important;
  background-color: #1ebc59 !important;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6) !important;
}

/* En celulares un poco más compacto */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    width: 52px !important;
    height: 52px !important;
  }
}

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */

@media (max-width: 860px) {
  .catalog-main-layout {
    grid-template-columns: 1fr;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 5.5rem;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }

  .nav-menu.is-active {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col p {
    margin: 0.8rem auto 0 auto;
  }
}

/* ==========================================================================
   GUÍA RÁPIDA DE CONSULTA (PASOS 1, 2 Y 3 EN CONTACTO)
   ========================================================================== */

.steps-container {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 1050px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.step-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* Círculo del número con el nuevo amarillo cálido */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #0f172a; /* Texto oscuro de alto contraste */
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   WIDGET INTERACTIVO DE WHATSAPP (ESTILO BURBUJA DE CHAT MODERNA)
   ========================================================================== */

/* Contenedor fijo en la esquina inferior derecha */
.wa-widget-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-base);
}

/* 1. LA BURBUJA BLANCA CON SOMBRA VERDE OFFSET */
.wa-bubble {
  position: relative;
  width: 290px;
  background-color: #ffffff;
  border: 2.5px solid #0f172a;        /* Borde oscuro definido */
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1.2rem;
  /* Sombra verde exactamente como la referencia */
  box-shadow: 5px 5px 0px #25d366, 0 12px 30px rgba(0, 0, 0, 0.12);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

/* Estado oculto al cerrar */
.wa-widget-wrapper.is-closed .wa-bubble {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7) translateY(20px);
  pointer-events: none;
}

/* Icono circular verde superior dentro de la tarjeta */
.wa-bubble-icon {
  width: 44px;
  height: 44px;
  background-color: #25d366;
  border-radius: 50%;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0px #0f172a;
}

/* Textos de la tarjeta */
.wa-bubble-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.wa-bubble-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

/* Botón oscuro interior "Chatear con nosotros" */
.wa-bubble-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0f172a;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 2px solid #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 4px 4px 0px #25d366; /* Sombra verde detrás del botón */
  transition: all 0.2s ease-in-out;
}

.wa-bubble-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px #25d366;
  background-color: #1e293b;
}

.wa-btn-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Colita / Pico de la burbuja que apunta al botón circular */
.wa-bubble-tail {
  position: absolute;
  bottom: -15px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 2px solid transparent;
  border-top: 15px solid #0f172a; /* Borde oscuro */
}

.wa-bubble-tail::after {
  content: "";
  position: absolute;
  bottom: 3.5px;
  right: -1px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 2px solid transparent;
  border-top: 12px solid #ffffff; /* Relleno blanco */
}

/* 2. BOTÓN CIRCULAR CONMUTADOR INFERIOR */
.wa-toggle-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25d366;
  border: 2.5px solid #0f172a;
  box-shadow: 3px 3px 0px #0f172a, 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  outline: none;
  padding: 0;
}

.wa-toggle-circle:hover {
  transform: scale(1.08);
  box-shadow: 4px 4px 0px #0f172a;
}

/* Conmutación de iconos (flechita / whatsapp) */
.wa-widget-wrapper.is-closed .wa-bubble {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

/* Control de iconos en el botón inferior */
.wa-icon-close {
  display: flex !important;
}
.wa-icon-chat {
  display: none !important;
}

/* Al estar cerrado, muestra el logo oficial de WhatsApp */
.wa-widget-wrapper.is-closed .wa-icon-close {
  display: none !important;
}
.wa-widget-wrapper.is-closed .wa-icon-chat {
  display: flex !important;
}

/* En teléfonos móviles */
@media (max-width: 768px) {
  .wa-widget-wrapper {
    bottom: 1.2rem;
    right: 1.2rem;
  }
  .wa-bubble {
    width: 275px;
    padding: 1.4rem 1.2rem;
  }
}


/* ==========================================================================
   SLIDER DE MARCAS: HALFTONES VISIBLES + DIFUMINADO LATERAL + BUCLE INFINITO
   ========================================================================== */

.section-brands {
  padding: 4.5rem 0;
  /* Fondo transparente para que los halftones y la luz del fondo se vean continuos */
  background: transparent !important;
  background-color: transparent !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.brands-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.brands-slider-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  touch-action: pan-y; /* Permite scroll vertical fluido y respuesta inmediata al deslizar el dedo */
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Riel dinámico acelerado por GPU */
.brands-scroll-track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  will-change: transform;
  padding: 0.8rem 0;
}

/* Logo flotante sin marco de carta */
.brand-card-item {
  flex: 0 0 160px;                     /* Ancho equilibrado para logos 1000x1000 */
  height: 110px;                      /* Altura uniforme y elegante */
  background: transparent !important; /* Eliminamos el fondo de tarjeta */
  border: none !important;            /* Eliminamos el borde de carta */
  box-shadow: none !important;        /* Sin sombras de recuadro */
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  user-select: none;
  transition: transform 0.25s ease;
}

/* Contenedor de la marca: MUCHO MÁS GRANDE */
.brand-card-item {
  flex: 0 0 220px;                     /* Aumentamos de 160px a 220px */
  height: 140px;                      /* Aumentamos de 110px a 140px para fotos 1000x1000 */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  user-select: none;
  transition: transform 0.25s ease;
}

.brand-card-item:hover {
  transform: scale(1.08);
}

/* IMAGEN DE LA MARCA: CERO PIXELADO */
.brand-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto !important;   /* Elimina los bordes pixelados y activa anti-aliasing */
  display: block;
  /* PROTECCIÓN TÁCTIL OBLIGATORIA PARA CELULARES */
  pointer-events: none !important;     /* Evita que el navegador atrape la imagen */
  -webkit-user-drag: none !important;  /* Desactiva el arrastre nativo de archivos */
  user-select: none !important;        /* Evita que se seleccione el logo */
}

/* Riel con mayor separación entre marcas grandes */
.brands-scroll-track {
  gap: 2.5rem !important;
}

/* En celulares */
@media (max-width: 768px) {
  .brand-card-item {
    flex: 0 0 140px !important;
    height: 95px !important;
  }
}

/* Flechas minimalistas */
.brands-arrow-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease-in-out;
  outline: none;
  z-index: 2;
}

.brands-arrow-btn:hover {
  border-color: var(--primary);
  color: #b45309;
  background-color: var(--primary-light);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

@media (max-width: 768px) {
  .brands-arrow-btn {
    display: none;
  }
  .brand-card-item {
    flex: 0 0 170px;
    height: 90px;
  }
}


/* 1. Quitar el desvanecimiento de los bordes izquierdo y derecho */
#clientsViewport {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* 2. Quitar cualquier sombra o filtro que haga ver difuminado el logo */
#clientsTrack .brand-img {
  filter: none !important;
}



/* ==========================================================================
   ACTIVAR FLECHAS EN CELULARES (MARCAS Y CLIENTES)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Hace que las flechas aparezcan en celular */
  .brands-arrow-btn {
    display: flex !important;           /* ¡Visibles en celular! */
    width: 36px !important;             /* Tamaño compacto y cómodo para el dedo */
    height: 36px !important;
    border-width: 1px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  .brands-arrow-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* 2. Ajusta el espaciado para que las flechas y logos quepan perfectamente */
  .brands-slider-container {
    gap: 0.5rem !important;
    padding: 0 0.3rem !important;
  }

  /* 3. Tamaño proporcionado de las imágenes en móvil */
  .brand-card-item {
    flex: 0 0 135px !important;
    height: 90px !important;
  }

  .brands-scroll-track {
    gap: 1.5rem !important;
  }
}



/* ==========================================================================
   BANNERS DESTACADOS DOBLES (ESTRUCTURA CORREGIDA)
   ========================================================================== */

/* Espaciado compacto y equilibrado para los banners dobles */
.promo-banners-section {
  padding: 1.5rem 0 2.5rem 0 !important; /* Reduce notablemente el espacio arriba */
}

.promo-banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 !important;                  /* Quita márgenes externos innecesarios */
}
/* Tarjeta base */
.promo-card {
  position: relative;
  min-height: 350px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Contenido de texto: Estrictamente alineado a la izquierda */
.promo-card-content {
  position: relative;
  z-index: 3;
  padding: 2.8rem 2.2rem;
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important; /* Alinea botón y textos a la izquierda */
  text-align: left !important;
  justify-content: center;
}

.promo-card-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  text-align: left !important;
}

.promo-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  text-align: left !important;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   1. TARJETA IZQUIERDA: COLOR PLANO + IMAGEN CENTRADA
   ========================================================================== */
.promo-card-flat {
  background-color: var(--primary); /* Amarillo ámbar plano de la web */
  color: #0f172a;
  justify-content: space-between;
}

.promo-card-flat .promo-card-title { color: #0f172a; }
.promo-card-flat .promo-card-desc { color: #334155; }
.promo-card-flat .promo-btn {
  background-color: #0f172a;
  color: #ffffff;
}
.promo-card-flat .promo-btn:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
}

/* Área derecha de la tarjeta donde la imagen queda 100% centrada */
.promo-img-container {
  position: relative;
  width: 42%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 1.5rem 0;
  z-index: 2;
}

.promo-flat-img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   2. TARJETA DERECHA: FOTO + DIFUMINADO QUE INICIA A LA IZQUIERDA
   ========================================================================== */
.promo-card-dark {
  background-color: #070d1e;
  color: #ffffff;
}

.promo-card-dark .promo-card-title { color: #ffffff; }
.promo-card-dark .promo-card-desc { color: #cbd5e1; }
.promo-card-dark .promo-btn {
  background-color: var(--primary);
  color: #0f172a;
}
.promo-card-dark .promo-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Foto de fondo en la tarjeta derecha */
.promo-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Difuminado suave: Sólido a la izquierda y transparente a la derecha */
.promo-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, 
    #070d1e 0%, 
    #070d1e 38%, 
    rgba(7, 13, 30, 0.85) 58%, 
    rgba(7, 13, 30, 0.1) 100%
  );
}

/* Adaptación móvil */
@media (max-width: 860px) {
  .promo-banners-grid {
    grid-template-columns: 1fr;
  }
  .promo-card-content {
    width: 65%;
    padding: 2rem 1.5rem;
  }
  .promo-card-title {
    font-size: 1.6rem;
  }
}



/* ==========================================================================
   SECCIÓN: PRODUCTOS REMANUFACTURADOS Y REPARACIÓN
   ========================================================================== */

.reman-section {
  padding: 5.5rem 0;
  /* Tinte cálido translúcido en el tono de la web que permite ver los halftones a través de él */
  background-color: rgba(245, 158, 11, 0.07) !important;
  border-top: 1px solid rgba(245, 158, 11, 0.2) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
  position: relative;
}

/* Grilla de 3 columnas para productos remanufacturados */
.reman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3.5rem;
}

/* Tarjeta remanufacturada limpia y cuadrada */
.reman-card {
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.reman-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* Contenedor de la foto con fondo blanco */
.reman-img-box {
  width: 100%;
  height: 230px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  overflow: hidden;
}

.reman-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto !important;
  transition: transform 0.25s ease;
  display: block;
}

.reman-card:hover .reman-img {
  transform: scale(1.06);
}

/* Cuerpo de la tarjeta */
.reman-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

/* Etiqueta verde de garantía y laboratorio */
.reman-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.reman-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

/* Mini lista de ventajas técnicas del equipo */
.reman-perks {
  list-style: none;
  margin: 0.8rem 0 1.8rem 0;
  flex-grow: 1;
}

.reman-perks li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.reman-perks li::before {
  content: "✔";
  color: var(--primary);
  font-weight: 900;
  font-size: 0.8rem;
}

.reman-card .btn-whatsapp {
  margin-top: auto;
  border-radius: 0;
  width: 100%;
}

/* BANNER INFORMATIVO INFERIOR: SERVICIO DE RECAMBIO (CORE EXCHANGE) */
.reman-exchange-box {
  background-color: #0f172a;
  color: #ffffff;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.reman-exchange-text {
  max-width: 680px;
  text-align: left;
}

.reman-exchange-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.reman-exchange-text p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

.reman-exchange-btn {
  background-color: var(--primary);
  color: #0f172a;
  padding: 0.9rem 1.8rem;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.reman-exchange-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

/* En teléfonos móviles */
@media (max-width: 768px) {
  .reman-exchange-box {
    flex-direction: column;
    text-align: center;
    padding: 2.2rem 1.5rem;
  }
  .reman-exchange-text {
    text-align: center;
  }
  .reman-exchange-btn {
    width: 100%;
  }
}



/* ==========================================================================
   COMPOSICIÓN DE 3 ROMBOS AMPLIADOS (MÁS VISIBILIDAD DE IMÁGENES)
   ========================================================================== */

/* Proporción de columnas equilibrada para albergar los rombos grandes */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.diamonds-column-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Contenedor más amplio */
.diamonds-cluster {
  position: relative;
  width: 440px;                       /* Ancho ampliado para rombos de 210px */
  height: 540px;                      /* Altura adaptada */
  margin: 0 auto;
}

/* Rombo individual MÁS GRANDE (210px x 210px) */
.diamond-card {
  position: absolute;
  width: 210px;                       /* Aumentamos de 175px a 210px */
  height: 210px;
  transform: rotate(45deg);
  overflow: hidden;
  border: none !important;            /* Sin contorno negro */
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.diamond-card:hover {
  transform: rotate(45deg) scale(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

/* Ajuste interno para que la foto cubra todo el rombo con máxima nitidez */
.diamond-inner {
  width: 100%;
  height: 100%;
  transform: rotate(-45deg) scale(1.44); /* Escala necesaria para cubrir las 4 puntas */
  display: flex;
  align-items: center;
  justify-content: center;
}

.diamond-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto !important;
  display: block;
}

/* POSICIONAMIENTO MATEMÁTICO DE LOS ROMBOS GRANDES */
/* 1. Rombo Superior (Derecha) */
.diamond-pos-top {
  top: 10px;
  left: 160px;
}

/* 2. Rombo Central (Izquierda) */
.diamond-pos-left {
  top: 160px;
  left: 10px;
  z-index: 2;
}

/* 3. Rombo Inferior (Derecha) */
.diamond-pos-bottom {
  top: 310px;
  left: 160px;
}

/* Adaptación fluida para teléfonos celulares */
@media (max-width: 860px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .diamonds-cluster {
    width: 310px;
    height: 390px;
  }
  .diamond-card {
    width: 145px;
    height: 145px;
  }
  .diamond-pos-top {
    top: 10px;
    left: 110px;
  }
  .diamond-pos-left {
    top: 113px;
    left: 8px;
  }
  .diamond-pos-bottom {
    top: 216px;
    left: 110px;
  }
}



/* ==========================================================================
   PULIDO ESTÉTICO & MICRO-ANIMACIONES
   ========================================================================== */

/* 1. SELECCIÓN DE TEXTO EN EL AMARILLO DORADO CORPORATIVO */
::selection {
  background-color: var(--primary);
  color: #0f172a;
}

::-moz-selection {
  background-color: var(--primary);
  color: #0f172a;
}

/* 2. BARRA DE SCROLL MODERNA Y DELGADA */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 3. ELEVACIÓN DE LA CABECERA AL HACER SCROLL */
.header {
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.header.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  border-bottom-color: rgba(226, 232, 240, 0.8) !important;
}

.header.header-scrolled .header-top {
  padding: 0.65rem 0 !important; /* Se vuelve ligeramente más compacta al bajar */
}

/* 4. ANIMACIÓN DE ENTRADA SUAVE AL HACER SCROLL (SCROLL REVEAL) */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Retardo progresivo para que las tarjetas entren en cascada */
.grid-3 .reveal-item:nth-child(2),
.reman-grid .reveal-item:nth-child(2),
.products-grid-catalog .reveal-item:nth-child(2) {
  transition-delay: 0.08s;
}

.grid-3 .reveal-item:nth-child(3),
.reman-grid .reveal-item:nth-child(3),
.products-grid-catalog .reveal-item:nth-child(3) {
  transition-delay: 0.16s;
}

/* 5. TACTO Y FÍSICA EN BOTONES Y TARJETAS */
.btn-primary,
.promo-btn,
.nav-btn-quote,
.reman-exchange-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-primary:active,
.promo-btn:active,
.nav-btn-quote:active {
  transform: scale(0.96) !important; /* Sensación de botón físico al hacer clic */
}

/* Desactivar animaciones si el usuario tiene activado "reducir movimiento" en Windows/Mac */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   PULIDO TIPOGRÁFICO FINAL (ESTÉTICA CLEAN & ALTO IMPACTO)
   ========================================================================== */

/* 1. BALANCE AUTOMÁTICO DE LÍNEAS (Evita palabras huérfanas en toda la web) */
h1, h2, h3, h4, 
.section-title, 
.hero-title, 
.promo-card-title,
.reman-title {
  text-wrap: balance; /* El navegador equilibra automáticamente las líneas de los títulos */
  letter-spacing: -0.025em; /* Interletrado moderno, compacto y prémium */
}

p, .section-description, .promo-card-desc {
  text-wrap: pretty;  /* Evita que quede una sola palabra suelta al final de los párrafos */
}

/* 2. JERARQUÍA REFINADA EN TEXTOS DE PORTADA (HERO) */
.hero-title {
  font-weight: 900;
  letter-spacing: -0.035em !important;
}

.hero-content-left p {
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 68ch; /* Medida de lectura óptima recomendada en diseño editorial */
}

/* 3. ETIQUETAS TÉCNICAS (BADGES) MÁS ELEGANTES Y SUTILES */
.badge,
.product-tag,
.reman-badge-tag,
.stat-label {
  letter-spacing: 0.08em !important; /* Espaciado entre letras técnico y formal */
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

/* 4. JUSTIFICACIÓN PERFECTA EN SECTORES Y EMPRESA (Sin ríos blancos) */
.sector-card-single p,
.about-intro-grid p {
  line-height: 1.85 !important;
  color: #475569 !important;
  hyphens: auto;           /* Separa con guion si una palabra es muy larga para evitar huecos */
  text-justify: inter-word;
}

/* 5. SIMETRÍA MILIMÉTRICA EN LAS 32 TARJETAS DEL CATÁLOGO */
.product-title {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: var(--dark) !important;
  /* Fija exactamente 2 líneas para que todas las tarjetas tengan la misma altura */
  min-height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.4rem !important;
}

/* 6. NÚMEROS Y MÉTRICAS DE IMPACTO EN PÁGINA EMPRESA */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em !important;
}

/* 7. DESCRIPCIONES DE SECCIÓN CENTRADAS Y AIREADAS */
.section-description {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
  color: #64748b;
  font-size: 1rem;
}

/* 8. ESPACIADO DE BOTONES Y LLAMADAS A LA ACCIÓN */
.btn, .promo-btn, .reman-exchange-btn {
  letter-spacing: 0.03em;
}



/* ==========================================================================
   ANIMACIÓN INTERACTIVA AL CAMBIAR DE SECTOR
   ========================================================================== */

/* 1. Animación fluida de la cartilla cada vez que se selecciona */
.sector-card-single.card-animate {
  animation: sectorEntrance 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes sectorEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985); /* Entra subiendo con un ligero zoom */
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estado activo del círculo: sobrio, limpio y sin rebote */
.sector-tab-btn.is-active .sector-circle {
  animation: none !important;
  border-color: var(--primary) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 10px 25px rgba(245, 158, 11, 0.25) !important;
}


/* ==========================================================================
   ESTÉTICA & TIPOGRAFÍA / HARDWARE TECH
   ========================================================================== */

/* 1. TÍTULOS Y ENCABEZADOS DE ALTO IMPACTO */
h1, h2, h3, h4, 
.hero-title, 
.section-title, 
.promo-card-title, 
.reman-title, 
.brand-logo, 
.catalog-header-bar h1 {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  text-transform: uppercase; /* Fuerza estética contundente tipo Arduino */
}

/* 2. ETIQUETAS TÉCNICAS MONOESPACIADAS (CON LA BARRITA DE ACENTO |) */
.badge,
.product-tag,
.reman-badge-tag,
.stat-label,
.sidebar-cat-title,
.catalog-breadcrumb {
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* La barrita vertical de acento que aparece antes de cada etiqueta (como | BUILD CONTEST) */
.badge::before,
.reman-badge-tag::before {
  content: "| " !important;
  color: var(--primary) !important;
  font-weight: 900;
  margin-right: 2px;
}

/* 3. PÁRRAFOS Y CUERPO DE LECTURA (INTER) */
p, 
.section-description, 
.promo-card-desc, 
.reman-desc, 
.about-text-lead,
.sector-card-content p {
  font-family: var(--font-body) !important;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* 4. BOTONES FIRMES Y TÉCNICOS */
.btn, 
.promo-btn, 
.nav-btn-quote, 
.reman-exchange-btn,
.nav-link-item,
.sidebar-cat-btn {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}

/* 5. NÚMEROS Y MÉTRICAS (EMPRESA) */
.stat-number {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
}

