/* ========================================================
   SOLINEX - SISTEMA DE DISEÑO GLOBAL
   Paleta corporativa: Azul marino + Verde (acento del logo)
   Compartido por las 3 divisiones (Laboratorio, Minería, Legal)
   ======================================================== */

:root {
  /* === PALETA CORPORATIVA SOLINEX === */
  /* Azules (color principal de marca) */
  --sx-azul-900: #0B1E3F;      /* Azul marino profundo - fondos hero */
  --sx-azul-800: #14315E;      /* Navy intenso - secciones oscuras */
  --sx-azul-700: #1B3D6E;      /* Navy medio */
  --sx-azul-600: #1F4F8B;      /* Azul corporativo - botones primarios */
  --sx-azul-500: #2C6BB3;      /* Azul activo */
  --sx-azul-400: #3A7BC8;      /* Azul claro - hover */
  --sx-azul-300: #85B7EB;      /* Acento luminoso */
  --sx-azul-200: #C4D8EE;      /* Azul claro - bordes */
  --sx-azul-100: #E8EEF7;      /* Azul muy claro - fondos suaves */
  --sx-azul-50:  #F7F9FC;      /* Fondo neutro */

  /* Verde del logo (acento secundario, uso medido) */
  --sx-verde-700: #1E7A5F;     /* Verde oscuro - hover de elementos verdes */
  --sx-verde-600: #2A9D7B;     /* Verde acento principal */
  --sx-verde-500: #3DB89A;     /* Verde claro */
  --sx-verde-100: #E0F2EC;     /* Verde muy claro - badges */

  /* Neutros */
  --sx-blanco:   #FFFFFF;
  --sx-gris-50:  #FAFBFC;
  --sx-gris-100: #F1F3F6;
  --sx-gris-200: #E4E8ED;
  --sx-gris-300: #CDD3DC;
  --sx-gris-400: #95A1B2;
  --sx-gris-500: #6B7689;
  --sx-gris-600: #4A5468;
  --sx-gris-700: #2F3847;
  --sx-gris-900: #131820;

  /* Semánticos */
  --sx-exito:    #16A571;
  --sx-error:    #DC2A2A;
  --sx-warn:     #F0A000;

  /* === TIPOGRAFÍA === */
  --sx-font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --sx-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* === SOMBRAS === */
  --sx-shadow-sm: 0 1px 2px rgba(11, 30, 63, 0.06);
  --sx-shadow-md: 0 4px 12px rgba(11, 30, 63, 0.08);
  --sx-shadow-lg: 0 10px 30px rgba(11, 30, 63, 0.12);
  --sx-shadow-xl: 0 20px 50px rgba(11, 30, 63, 0.18);

  /* === LAYOUT === */
  --sx-radius-sm: 4px;
  --sx-radius-md: 8px;
  --sx-radius-lg: 12px;
  --sx-radius-xl: 20px;
  --sx-container: 1280px;
  --sx-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================
   RESET Y BASE
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

body {
  font-family: var(--sx-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sx-gris-700);
  background: var(--sx-blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* 'clip' evita scroll horizontal SIN romper position:sticky (a diferencia de 'hidden') */
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sx-font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sx-azul-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.sx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--sx-azul-600); text-decoration: none; transition: var(--sx-transition); }
a:hover { color: var(--sx-azul-400); }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========================================================
   CONTENEDOR
   ======================================================== */
.sx-container {
  width: 100%;
  max-width: var(--sx-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================================
   TOPBAR (barra superior)
   ======================================================== */
.sx-topbar {
  background: var(--sx-azul-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sx-topbar .sx-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sx-topbar-links { display: flex; gap: 20px; }
.sx-topbar-links a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sx-topbar-links a:hover { color: var(--sx-azul-300); }
.sx-topbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ========================================================
   NAVBAR
   ======================================================== */
.sx-navbar {
  background: var(--sx-blanco);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sx-shadow-sm);
  border-bottom: 1px solid var(--sx-gris-200);
}

.sx-navbar .sx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.sx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sx-logo-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sx-azul-700) 0%, var(--sx-verde-600) 100%);
  color: white;
  font-family: var(--sx-font-display);
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--sx-radius-md);
  letter-spacing: -1px;
}

.sx-logo-text {
  font-family: var(--sx-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--sx-azul-900);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sx-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--sx-gris-500);
  letter-spacing: 2px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Nav menu */
.sx-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.sx-nav-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--sx-gris-700);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--sx-radius-md);
  transition: var(--sx-transition);
}

.sx-nav-menu a:hover,
.sx-nav-menu a.active {
  background: var(--sx-azul-100);
  color: var(--sx-azul-700);
}

.sx-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   BOTONES
   ======================================================== */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--sx-radius-md);
  font-family: var(--sx-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--sx-transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.sx-btn-primary {
  background: var(--sx-azul-600);
  color: white;
  box-shadow: 0 4px 14px rgba(31, 79, 139, 0.3);
}
.sx-btn-primary:hover {
  background: var(--sx-azul-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 79, 139, 0.4);
  color: white;
}

.sx-btn-accent {
  background: var(--sx-verde-600);
  color: white;
  box-shadow: 0 4px 14px rgba(42, 157, 123, 0.3);
}
.sx-btn-accent:hover {
  background: var(--sx-verde-700);
  transform: translateY(-1px);
  color: white;
}

.sx-btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.sx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

.sx-btn-outline {
  background: transparent;
  color: var(--sx-azul-700);
  border-color: var(--sx-azul-300);
}
.sx-btn-outline:hover {
  background: var(--sx-azul-100);
  border-color: var(--sx-azul-600);
}

.sx-btn-sm { padding: 8px 16px; font-size: 13px; }
.sx-btn-lg { padding: 16px 32px; font-size: 16px; }
.sx-btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--sx-radius-md);
  background: var(--sx-gris-100);
  color: var(--sx-gris-700);
  position: relative;
}
.sx-btn-icon:hover { background: var(--sx-azul-100); color: var(--sx-azul-700); }

.sx-btn-icon .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--sx-verde-600);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ========================================================
   SECCIONES
   ======================================================== */
.sx-section { padding: 80px 0; position: relative; }
.sx-section-sm { padding: 48px 0; }
.sx-section-dark { background: var(--sx-azul-900); color: rgba(255, 255, 255, 0.9); }
.sx-section-dark h1, .sx-section-dark h2, .sx-section-dark h3 { color: white; }
.sx-section-gray { background: var(--sx-azul-50); }

.sx-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.sx-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--sx-azul-600);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sx-section-dark .sx-eyebrow { color: var(--sx-azul-300); }

.sx-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.sx-section-subtitle {
  font-size: 17px;
  color: var(--sx-gris-500);
  line-height: 1.7;
}

.sx-section-dark .sx-section-subtitle { color: rgba(255, 255, 255, 0.7); }

/* ========================================================
   FOOTER
   ======================================================== */
.sx-footer {
  background: var(--sx-azul-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
  font-size: 14px;
}

.sx-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.sx-footer h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.sx-footer ul { list-style: none; }
.sx-footer li { margin-bottom: 10px; }
.sx-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.sx-footer a:hover { color: var(--sx-azul-300); }

.sx-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================================
   REVEAL ANIMATIONS (scroll)
   ======================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* ========================================================
   NAVBAR — Cambio al hacer scroll
   ======================================================== */
.sx-navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sx-shadow-md);
}

/* ========================================================
   MENÚ MÓVIL
   ======================================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--sx-radius-md);
  background: var(--sx-gris-100);
  cursor: pointer;
  transition: var(--sx-transition);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sx-azul-900);
  border-radius: 2px;
  transition: var(--sx-transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open { overflow: hidden; }

/* ========================================================
   UTILIDADES
   ======================================================== */
.sx-text-center { text-align: center; }
.sx-mb-8 { margin-bottom: 8px; }
.sx-mb-16 { margin-bottom: 16px; }
.sx-mb-24 { margin-bottom: 24px; }
.sx-mb-48 { margin-bottom: 48px; }

/* ========================================================
   RESPONSIVE
   ======================================================== */
.sx-hide-mobile { display: inline-flex; }

/* Backdrop — toque fuera cierra el menú */
.sx-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9000;
}
.sx-menu-backdrop.open { display: block; }

/* Cuando el menú móvil está abierto, el navbar (que CONTIENE el menú desplegable)
   debe estar POR ENCIMA del backdrop para que sus opciones sean clicables.
   Sin esto, el backdrop intercepta los toques y el menú no deja seleccionar nada. */
body.menu-open .sx-navbar,
body.menu-open .lab-navbar,
body.menu-open .min-navbar,
body.menu-open .leg-navbar {
  z-index: 9500;
}

/* ========================================================
   MEGAMENÚ DESKTOP (hover) — soporta .hover y .open
   ======================================================== */
@media (min-width: 969px) {
  .lab-nav-items > li.hover .lab-megamenu,
  .lab-nav-items > li.open .lab-megamenu,
  .min-nav-items > li.hover .min-megamenu,
  .min-nav-items > li.open .min-megamenu,
  .leg-nav-items > li.hover .leg-megamenu,
  .leg-nav-items > li.open .leg-megamenu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  .lab-nav-items > li.hover > button .chevron,
  .lab-nav-items > li.open > button .chevron {
    transform: rotate(180deg);
  }
}

@media (max-width: 968px) {
  .sx-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* ===== Menú móvil unificado: mismo look en TODAS las páginas =====
     Sobrescribe forzosamente los estilos desktop de cada nav.    */
  .sx-nav-menu,
  .lab-nav-items,
  .min-nav-items,
  .leg-nav-items {
    position: fixed !important;
    top: 72px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 240px !important;
    height: auto !important;
    max-height: calc(100vh - 88px) !important;
    overflow-y: auto !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #0B1E3F !important;
    padding: 6px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    transform: scale(0.94) translateY(-8px);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
    z-index: 9999 !important;
    list-style: none !important;
  }
  .sx-nav-menu.open,
  .lab-nav-items.open,
  .min-nav-items.open,
  .leg-nav-items.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }

  /* Ítems del menú */
  .sx-nav-menu li,
  .lab-nav-items > li,
  .min-nav-items > li,
  .leg-nav-items > li {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    list-style: none !important;
    position: relative !important;
    align-items: stretch !important;
  }

  .sx-nav-menu a,
  .lab-nav-items > li > a,
  .lab-nav-items > li > button,
  .min-nav-items > li > a,
  .min-nav-items > li > button,
  .leg-nav-items > li > a {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    color: rgba(255,255,255,0.86) !important;
    border-radius: 7px !important;
    border: none !important;
    background: transparent !important;
    height: auto !important;
    text-align: left !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
  }
  .sx-nav-menu a:hover,
  .sx-nav-menu a.active,
  .lab-nav-items > li > a:hover,
  .lab-nav-items > li > button:hover,
  .min-nav-items > li > a:hover,
  .min-nav-items > li > button:hover,
  .leg-nav-items > li > a:hover,
  .lab-nav-items > li.active > a,
  .min-nav-items > li.active > a,
  .leg-nav-items > li.active > a {
    background: rgba(255,255,255,0.10) !important;
    color: white !important;
  }

  .mobile-menu-toggle { display: flex; }
  .sx-topbar-links { font-size: 12px; gap: 12px; }

  /* ===== Megamenú lab y min en móvil ===== */
  .lab-nav-items > li > button,
  .min-nav-items > li > button {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .lab-nav-items > li > button .chevron,
  .min-nav-items > li > button .chevron {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.2s ease !important;
    transform: rotate(0deg);
  }
  .lab-nav-items > li.open > button .chevron,
  .min-nav-items > li.open > button .chevron {
    transform: rotate(180deg) !important;
  }

  .lab-megamenu,
  .min-megamenu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 0 4px 10px !important;
    margin: 0 !important;
    min-width: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .lab-nav-items > li.open .lab-megamenu,
  .min-nav-items > li.open .min-megamenu {
    display: flex !important;
  }
  .lab-megamenu-title { display: none !important; }
  .lab-megamenu-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .lab-megamenu-item,
  .min-megamenu a {
    color: rgba(255,255,255,0.72) !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }
  .lab-megamenu-item:hover,
  .min-megamenu a:hover { background: rgba(255,255,255,0.08) !important; }
  .lab-megamenu-icon { display: none !important; }
}

@media (max-width: 640px) {
  .sx-section { padding: 56px 0; }
  .sx-container { padding: 0 16px; }
  .sx-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sx-footer-bottom { flex-direction: column; text-align: center; }
  .sx-topbar { font-size: 11px; padding: 6px 0; }
  .sx-topbar .sx-container { justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
  .sx-hide-mobile { display: none !important; }
  .sx-topbar-links { gap: 10px; font-size: 11px; }
  .sx-topbar-links a { gap: 4px; }
}

/* ========================================================
   MÓVIL: tipografía y layout del topbar de las secciones
   Teléfono a la izquierda, "Volver" a la derecha
   ======================================================== */
.lab-topbar-left,
.min-topbar-left,
.leg-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lab-topbar-meta,
.min-topbar-meta,
.leg-topbar-meta {
  color: rgba(255,255,255,0.62);
  font-size: 12.5px;
}

@media (max-width: 768px) {
  .lab-topbar .sx-container,
  .min-topbar .sx-container,
  .leg-topbar .sx-container {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between !important;
  }
  .lab-topbar-left,
  .min-topbar-left,
  .leg-topbar-left {
    flex-shrink: 0;
  }
  .lab-topbar-links,
  .min-topbar-links,
  .leg-topbar-links {
    margin-left: auto;
    gap: 10px;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }
  .lab-topbar,
  .min-topbar,
  .leg-topbar {
    font-size: 12px;
    padding: 6px 0;
  }
  .lab-topbar-links a,
  .min-topbar-links a,
  .leg-topbar-links a {
    white-space: nowrap;
  }
}

/* ============================================================
   CALL TO ACTION FLOTANTE (persistente al hacer scroll)
   Más grande, 2 líneas, con badge de carrito integrado.
   Compartido por las 3 secciones. Baja siempre con la página.
   ============================================================ */
.sx-cta-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  max-width: 340px;
  padding: 16px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b3d6e 0%, #2BA88E 100%);
  color: #fff;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(27,61,110,0.45);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, opacity .3s ease;
  animation: sxCtaIn .5s cubic-bezier(.22,1,.36,1) both;
}
.sx-cta-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(27,61,110,0.55);
}
/* Ícono dentro de un círculo translúcido */
.sx-cta-float .sx-cta-icon {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sx-cta-float .sx-cta-icon svg { width: 22px; height: 22px; }
/* Badge contador del carrito (esquina del ícono) */
.sx-cta-float .sx-cta-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: #ff5a3c;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: none;        /* oculto si no hay items */
}
.sx-cta-float .sx-cta-badge.show { display: block; animation: sxBadgePop .3s ease; }
@keyframes sxBadgePop { from { transform: scale(0); } to { transform: scale(1); } }
/* Texto en 2 líneas */
.sx-cta-float .sx-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}
.sx-cta-float .sx-cta-text b {
  font-size: 14.5px;
  font-weight: 700;
}
/* Halo pulsante alrededor de todo el botón */
.sx-cta-float .sx-cta-pulse {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 0 rgba(43,168,142,0.5);
  animation: sxCtaPulse 2.6s infinite;
  pointer-events: none;
}
@keyframes sxCtaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,168,142,0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(43,168,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,168,142,0); }
}
@keyframes sxCtaIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Variante minería (tonos industriales) */
.sx-cta-float.cta-min { background: linear-gradient(135deg, #b8500f 0%, #1b3d6e 100%); }
.sx-cta-float.cta-min .sx-cta-pulse { animation: sxCtaPulseMin 2.6s infinite; }
@keyframes sxCtaPulseMin {
  0%   { box-shadow: 0 0 0 0 rgba(184,80,15,0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(184,80,15,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,80,15,0); }
}
/* Variante legal (dorado sobrio) */
.sx-cta-float.cta-leg { background: linear-gradient(135deg, #1b3d6e 0%, #c9a84c 100%); }
.sx-cta-float.cta-leg .sx-cta-pulse { animation: sxCtaPulseLeg 2.6s infinite; }
@keyframes sxCtaPulseLeg {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
/* En móvil: compacto */
@media (max-width: 560px) {
  .sx-cta-float {
    right: 14px; bottom: 14px;
    max-width: calc(100vw - 28px);
    padding: 13px 18px; gap: 11px;
  }
  .sx-cta-float .sx-cta-icon { width: 38px; height: 38px; }
  .sx-cta-float .sx-cta-text b { font-size: 13px; }
}
/* Ocultar el CTA cuando hay menú, modal de producto o carrito/favoritos abierto */
body.menu-open .sx-cta-float,
body.lab-modal-open .sx-cta-float,
body.lab-cart-open .sx-cta-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ====== BOTÓN WHATSAPP FLOTANTE ====== */
.slx-wa-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 50px;
  background: #25D366;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform .25s ease, box-shadow .2s ease, opacity .25s ease;
  white-space: nowrap;
  opacity: 1;
}
.slx-wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  color: #fff !important;
}
.slx-wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 768px) {
  .slx-wa-float { padding: 11px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .slx-wa-float {
    left: 12px;
    bottom: 12px;
    padding: 12px;
    border-radius: 50%;
    gap: 0;
  }
  .slx-wa-float .slx-wa-label { display: none; }
  .slx-wa-float svg { width: 24px; height: 24px; }
}
body.menu-open .slx-wa-float,
body.lab-modal-open .slx-wa-float,
body.lab-cart-open .slx-wa-float {
  opacity: 0;
  pointer-events: none;
}
