/* =============================================================================
   Sage Global Services — Paleta industrial premium (v2)
   ============================================================================= */

:root {
  /* === PALETA NUEVA BRAND === */
  --sg-white:         #FFFFFF;  /* Full White */
  --sg-azure:         #0071cd;  /* Intense Azure (principal) */
  --sg-aztec:         #002D71;  /* Aztec Blue (oscuro / fondo premium) */
  --sg-silver:        #d0d0ce;  /* American Silver (claro / metálico) */
  --sg-flint:         #605f63;  /* Flint (oscuro acento / texto muted) */

  /* === MAPEOS LEGACY (para no romper uso existente) === */
  --sg-navy:          var(--sg-aztec);
  --sg-blue:          var(--sg-azure);
  --sg-sky:           #4fb2e8;
  --sg-black:         #0a152a;
  --sg-link-blue:     var(--sg-azure);
  --sg-gray:          var(--sg-flint);
  --sg-violet:        #5a576c;
  --sg-light-gray:    var(--sg-silver);
  --sg-ghost:         #f5f7fb;

  --sg-primary:       var(--sg-azure);
  --sg-primary-dk:    var(--sg-aztec);
  --sg-accent:        var(--sg-silver);
  --sg-dark:          var(--sg-aztec);
  --sg-light:         var(--sg-ghost);
  --sg-muted:         var(--sg-flint);

  /* === TIPOGRAFÍA NUEVA BRAND === */
  /* Principal (texto): Gotham Bold ≈ Montserrat 600/700 */
  --sg-font-body:   "Gotham", "Gotham Bold", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Secundaria (títulos / protagonistas): Serpentine Bold Oblique ≈ Bebas Neue + italic transform */
  --sg-font-display:"Serpentine", "Serpentine Bold Oblique", "Bebas Neue", "Archivo Black", "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  --sg-font-mono:   ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sg-radius-sm: 4px;
  --sg-radius:    8px;
  --sg-radius-lg: 14px;
  --sg-radius-xl: 22px;

  --sg-shadow-sm: 0 2px 6px rgba(10,21,42,.06);
  --sg-shadow:    0 8px 24px rgba(10,21,42,.10);
  --sg-shadow-lg: 0 16px 50px rgba(10,21,42,.14);
  --sg-shadow-hl: 0 0 0 1px rgba(0,113,205,.14), 0 12px 30px rgba(0,45,113,.22);

  --sg-ease:     cubic-bezier(.22,.61,.36,1);
  --sg-ease-out: cubic-bezier(.16,1,.3,1);
  /*WhatsApp*/
  --whatsapp-green: #25D366;
    --whatsapp-dark: #002D71;
    --whatsapp-light: #DCF8C6;
    --whatsapp-chat-bg: #E5DDD5;
}

/* -----------------------------------------------------------------------------
   Reset / base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; width: 100%; }
body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--sg-font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
main#main {
  margin: 0;
  padding: 0;
  display: block;
}
main#main > *:first-child {
  margin-top: 0 !important;
}
main#main > .container.mt-4 {
  margin-top: 0 !important;
}
.font-body {
  font-family: var(--sg-font-body);
  font-weight: 600;
  letter-spacing: 0;
  font-style: normal;
  text-transform: none;
}
.font-display {
  font-family: var(--sg-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-style: italic;
  transform: skewX(-4deg);
  display: inline-block;
  line-height: 1.05;
  text-transform: uppercase;
}
.font-display > * { transform: skewX(4deg); display: inline-block; }
.font-display-plain {
  font-family: var(--sg-font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.08;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--sg-font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--sg-dark);
  line-height: 1.1;
  letter-spacing: 0.015em;
  margin: 0 0 .6em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 4.3rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: #374151; font-weight: 500; }
a { color: var(--sg-link-blue); text-decoration: none; transition: color .2s var(--sg-ease); }
a:hover { color: var(--sg-aztec); }
img, svg, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sg-azure); color: #fff; }
.container, .container-lg, .container-xl, .container-xxl { position: relative; }

/* -----------------------------------------------------------------------------
   Utilities
   ----------------------------------------------------------------------------- */
.sg-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sg-primary);
  padding: 6px 14px;
  border: 1px solid rgba(0,113,205,.28);
  border-radius: 999px;
  background: rgba(208,208,206,.08);
  margin-bottom: 18px;
  font-family: var(--sg-font-body);
}
.sg-hero .sg-eyebrow {
  color: var(--sg-silver);
  border-color: rgba(208,208,206,.28);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(208,208,206,.06) inset;
}
.sg-section { padding: clamp(60px, 9vw, 120px) 0; }
.sg-section-sm { padding: clamp(40px, 6vw, 80px) 0; }
.sg-muted { color: var(--sg-muted); }
.sg-subtle { color: #6b7280; }
.sg-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,45,113,.18), transparent); border: 0; margin: 0; }

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn-sg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sg-font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .25s var(--sg-ease), box-shadow .25s var(--sg-ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
  line-height: 1.2;
  text-transform: uppercase;
}
.btn-sg:hover { transform: translateY(-2px); }
.btn-sg:active { transform: translateY(0); }
.btn-sg-primary {
  background: linear-gradient(180deg, var(--sg-azure), var(--sg-aztec));
  color: #fff;
  border-color: rgba(0,0,0,.20);
  box-shadow:
    0 10px 24px rgba(0,113,205,.32),
    inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-sg-primary:hover {
  color: #fff;
  box-shadow:
    0 14px 34px rgba(0,113,205,.42),
    inset 0 1px 0 rgba(255,255,255,.18);
  filter: brightness(1.05);
}
.sg-hero .btn-sg-primary {
  background: linear-gradient(180deg, #ffffff 0%, #d0d0ce 65%, #b5b5b3 100%);
  color: var(--sg-aztec);
  border-color: rgba(255,255,255,.45);
  box-shadow:
    0 14px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.18),
    inset 0 1px 0 rgba(255,255,255,.65);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.sg-hero .btn-sg-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.btn-sg-outline {
  background: transparent;
  color: var(--sg-dark);
  border-color: rgba(0,45,113,.22);
}
.btn-sg-outline:hover {
  border-color: var(--sg-primary);
  color: var(--sg-primary);
  background: rgba(0,113,205,.05);
}
.sg-hero .btn-sg-outline {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.sg-hero .btn-sg-outline:hover {
  color: var(--sg-silver);
  border-color: rgba(208,208,206,.70);
  background: rgba(255,255,255,.08);
}
.btn-sg-light {
  background: #fff;
  color: var(--sg-primary-dk);
  border-color: rgba(255,255,255,.7);
  box-shadow: var(--sg-shadow-sm);
}
.btn-sg-light:hover { color: var(--sg-primary); }
.btn-sg-dark {
  background: var(--sg-dark);
  color: #fff;
  border-color: var(--sg-dark);
}
.btn-sg-dark:hover { color: var(--sg-accent); }
.btn-sg-block { display: flex; width: 100%; }
.btn-sg-sm { padding: 10px 18px; font-size: .87rem; }
.btn-sg-lg { padding: 18px 36px; font-size: 1.02rem; }

/* Icon arrow */
.btn-sg .arrow { display:inline-block; transition: transform .25s var(--sg-ease); }
.btn-sg:hover .arrow { transform: translateX(4px); }

/* -----------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------------- */
.sg-card {
  background: #fff;
  border: 1px solid rgba(10,21,42,.08);
  border-radius: var(--sg-radius);
  overflow: hidden;
  transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .25s;
}
.sg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sg-shadow);
  border-color: rgba(13,86,227,.18);
}
.sg-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a152a, #03237d);
  overflow: hidden;
  position: relative;
  border-radius: 14px 14px 0 0;
  max-height: 210px;
}
.sg-card-img img {
  width: 100%; height: 400px; object-fit: cover; object-position: center;
  background: transparent;
  transition: transform .7s var(--sg-ease);
  display: block;
}
.sg-card:hover .sg-card-img img { transform: scale(1.04); }
.sg-card-body { padding: 8px 11px 10px; }
.sg-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10,21,42,.06);
  border: 1px solid rgba(10,21,42,.06);
}
.sg-card-body p[style*="min-height:48px"] { min-height: 0 !important; margin-bottom: 6px !important; font-size: .82rem !important; line-height: 1.35 !important; display: -webkit-box; display: box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; box-orient: vertical; overflow: hidden; }
.sg-card-body .h5 { font-size: .95rem !important; line-height: 1.22 !important; margin-bottom: 2px !important; }
.sg-product-meta { font-size: .72rem !important; margin-bottom: 4px !important; }
.sg-product-price { font-size: 1.02rem !important; margin-top: 0 !important; }
.btn-sg-sm { padding: 5px 11px !important; font-size: .76rem !important; }
/* =============================================================
   Badges Catálogo (iconos SVG compactos — SIN TEXTO LARGO)
   ============================================================= */
.sg-card-img > div[style*="position:absolute"] {
  gap: 6px !important;
  flex-wrap: wrap !important;
  row-gap: 6px !important;
  align-items: flex-start;
}
.sg-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  border-radius: 999px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s var(--sg-ease), box-shadow .2s var(--sg-ease);
  box-shadow: 0 2px 6px rgba(10,21,42,.18), 0 0 0 1px rgba(255,255,255,.5) inset;
  cursor: help;
  flex: 0 0 auto;
  border: none !important;
}
.sg-badge svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ---------- Badge color clases ---------- */
/* Verde DISPONIBLE */
.sg-badge-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
}
/* Azul DESTACADO */
.sg-badge-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(59,130,246,.4), 0 0 0 1px rgba(255,255,255,.5) inset !important;
}
/* Ámbar VENDIDO / RESERVADO */
.sg-badge-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
}
/* Sky (AGOTADO / NO DISP) */
.sg-badge-sky {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
}
/* Slate (NUEVO USADO PERSONALIZADO - slate + azul Sage) */
.sg-badge-slate {
  background: linear-gradient(135deg, #475569 0%, #0f766e 50%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(3,105,161,.28), 0 0 0 1px rgba(255,255,255,.55) inset !important;
}

.sg-badge:hover { transform: translateY(-1px) scale(1.05); }

/* Icono estrella DESTACADO fill */
.sg-badge.sg-badge-blue svg { fill: currentColor; stroke: none; }
/* Icono check verde fill */
.sg-badge.sg-badge-green svg { stroke: currentColor; }
/* Icono rayo nuevo fill slate */
.sg-badge.sg-badge-slate svg.bolt,
.sg-badge.sg-badge-slate svg.star { fill: currentColor; stroke: none; }

/* -----------------------------------------------------------------------------
   Nav / Header (sticky + backdrop-blur)
   ----------------------------------------------------------------------------- */
.sg-topbar {
  background: var(--sg-black);
  color: rgba(255,255,255,.78);
  font-size: .75rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sg-topbar a { color: rgba(255,255,255,.78); }
.sg-topbar a:hover { color: var(--sg-accent); }
.sg-topbar .sep { opacity: .25; margin: 0 12px; }
@media (max-width: 767.98px) {
  .sg-topbar .hide-sm { display: none; }
}

.sg-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #001a42 ;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(10,21,42,.06);
  padding-top: 0;
  padding-bottom: 0;
  transition: box-shadow .25s var(--sg-ease), background .25s;
}
.sg-navbar.scrolled {
  background: #001a42;
  box-shadow: 0 4px 20px rgba(10,21,42,.08);
}
.sg-navbar > .container { padding-top: 6px; padding-bottom: 6px; }
.sg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none !important;
}
.sg-brand img { height: 40px; width: auto; }
@media (max-width: 575.98px) {
  .sg-brand img { height: 34px; }
  .sg-navbar > .container { padding-top: 7px; padding-bottom: 7px; }
}
.sg-nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.sg-nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  color: #fff;
  font-weight: 500;
  font-size: .92rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.sg-nav-links > li > a:hover,
.sg-nav-links > li.active > a {
  color: var(--sg-azure);
  background: rgba(13,86,227,.06);
}
.sg-nav-cta {
  display: flex; align-items: center; gap: 10px;
}

/* Mobile offcanvas — Compacto */
.sg-offcanvas .offcanvas-header { padding: 10px 14px !important; }
.sg-offcanvas .offcanvas-header .btn-close { width: 0.7em; height: 0.7em; padding: 6px; }
.sg-offcanvas .offcanvas-body { padding: 14px; }
.sg-offcanvas .nav-item a {
  display: block;
  padding: 8px 3px;
  border-bottom: 1px solid rgba(10,21,42,.06);
  color: var(--sg-dark);
  font-weight: 500;
  font-size: .9rem;
  line-height: 1.25;
}
.sg-offcanvas .nav-item a:hover { color: var(--sg-azure); }
.sg-offcanvas .nav-title {
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  color: var(--sg-muted); text-transform: uppercase;
  padding: 12px 3px 5px;
  margin-bottom: 0;
}
.sg-offcanvas .btn-sg-block {
  padding: 8px 12px !important;
  font-size: .82rem !important;
  line-height: 1.25 !important;
}

/* -----------------------------------------------------------------------------
   Hero — Dark Premium (Aztec Blue) + Particles + Video Gears
   ----------------------------------------------------------------------------- */
.sg-hero {
  position: relative;
  overflow: hidden !important;
  clip-path: inset(0);
  contain: layout paint;
  isolation: isolate;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 700px at 100% -10%, rgba(0,113,205,.55), transparent 55%),
    radial-gradient(900px 550px at -10% 110%, rgba(208,208,206,.18), transparent 55%),
    linear-gradient(135deg, #001a42 0%, #002D71 50%, #001e52 100%);
  padding: clamp(72px, 9vw, 130px) 0;
  border-bottom: 1px solid rgba(208,208,206,.12);
  min-height: clamp(640px, 92vh, 920px);
  max-height: none;
  color: var(--sg-white);
  width: 100%;
}
.sg-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}
.sg-hero::after {
  content: "";
  position: absolute;
  right: -180px; top: -180px;
  width: 700px; height: 700px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(0,113,205,.30), rgba(208,208,206,.08), rgba(0,113,205,.15), rgba(208,208,206,.18), rgba(0,113,205,.28));
  filter: blur(48px);
  opacity: .8;
  animation: sg-hero-orbit 22s linear infinite;
  pointer-events: none;
}
@keyframes sg-hero-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sg-hero-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  z-index: 0;
  pointer-events: auto;
  contain: strict;
}
@media (max-width: 767.98px) {
  .sg-hero-canvas { pointer-events: none; }
}
.sg-hero-sprites {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden !important;
  clip-path: inset(0);
  contain: strict;
}
.sg-hero-sprites .sg-mini-gear {
  position: absolute;
  display: block;
  opacity: .78;
  filter: drop-shadow(0 0 8px rgba(208,208,206,.35)) drop-shadow(0 0 20px rgba(0,113,205,.15));
  will-change: transform, opacity;
  contain: layout paint style;
}
.sg-hero-sprites .sg-mini-gear svg,
.sg-hero-sprites .sg-mini-gear img {
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.sg-hero-row {
  position: relative; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  min-height: 100%;
}
.sg-hero-row > .col-lg-6 { align-self: center; }
.sg-hero-media { align-self: center; margin: 0 auto; }
.sg-hero-canvas {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important;
  min-width: 0 !important; min-height: 0 !important;
  display: block !important;
  z-index: 1;
  pointer-events: auto;
  contain: strict;
}
@media (max-width: 767.98px) {
  .sg-hero-canvas { pointer-events: none; }
}
.sg-hero h1 {
  color: var(--sg-white);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: .35em;
}
.sg-hero h1 .accent {
  background: linear-gradient(90deg, var(--sg-silver) 0%, #ffffff 45%, var(--sg-silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 4px 40px rgba(208,208,206,.20);
}
.sg-hero p.lead {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: rgba(255,255,255,.82);
  max-width: 60ch;
  font-weight: 500;
}
.sg-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sg-hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px; margin-top: 38px;
}
.sg-hero-facts .fact {
  border-left: 3px solid var(--sg-silver);
  padding-left: 14px;
}
.sg-hero-facts .fact .num {
  font-family: var(--sg-font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--sg-white);
  font-size: 1.7rem;
  letter-spacing: .01em;
  text-shadow: 0 2px 20px rgba(208,208,206,.12);
}
.sg-hero-facts .fact .lbl {
  font-size: .82rem;
  color: rgba(255,255,255,.72);
}

.sg-hero-media {
  position: relative;
  border-radius: var(--sg-radius-xl);
  overflow: visible;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 560px;
  max-height: 560px;
  margin: 0 auto !important;
  display: block;
}
.sg-hero-media .hero-video-wrap,
.sg-hero-media img.fallback-photo {
  position: absolute;
  inset: 0;
}
.sg-hero-media::before,
.sg-hero-media::after {
  position: absolute;
  inset: 0;
  display: block;
}
.sg-hero-media::before {
  inset: -6%;
}
.sg-hero-media::after {
  inset: 2%;
}
.sg-hero-media::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(208,208,206,.15), transparent 60%),
    conic-gradient(from 0deg, rgba(0,113,205,.0), rgba(208,208,206,.30), rgba(0,113,205,.0), rgba(208,208,206,.30), rgba(0,113,205,.0));
  filter: blur(6px);
  animation: sg-media-ring 14s linear infinite;
  z-index: 0;
}
@keyframes sg-media-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sg-hero-media::after {
  content: "";
  position: absolute; inset: 2%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(0,45,113,.35) 55%, rgba(0,26,66,.8) 100%);
  border: 1px solid rgba(208,208,206,.22);
  box-shadow:
    inset 0 0 60px rgba(0,113,205,.25),
    0 30px 90px rgba(0,0,0,.45),
    0 0 0 1px rgba(0,113,205,.35);
  z-index: 0;
  pointer-events: none;
}
.sg-hero-media .hero-video-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  aspect-ratio: 1 / 1;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: radial-gradient(circle at 50% 50%, #001e52 0%, #002D71 60%, #001a42 100%);
  box-shadow:
    inset 0 0 40px rgba(208,208,206,.10),
    0 0 0 4px rgba(208,208,206,.20),
    0 20px 60px rgba(0,0,0,.55);
}
.sg-hero-media .hero-video-wrap svg.gear-fallback {
  position: absolute;
  width: 88%; height: 88%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  z-index: 1;
  opacity: .94;
  filter: drop-shadow(0 0 22px rgba(208,208,206,.38));
}
.sg-hero-media .hero-video-wrap video.hero-video {
  position: absolute;
  width: 100%; height: 200%;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  object-fit: contain;
  object-position: 50% 50% !important;
  display: block !important;
  z-index: 2;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 50%;
}
.sg-hero > .container { position: relative; }
@keyframes sg-gears-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.sg-hero-media img.fallback-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .18;
  z-index: 1;
  mix-blend-mode: luminosity;
}
.sg-hero-chip {
  position: absolute !important;
  left: 4% !important;
  right: auto !important;
  bottom: 4% !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  z-index: 4;
  background: rgba(0,20,52,.52);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  color: var(--sg-white);
  border-radius: 40px;
  padding: 7px 10px 7px 8px;
  max-width: 58%;
  display: flex; gap: 9px; align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.sg-hero-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7df284;
  box-shadow: 0 0 0 3px rgba(125,242,132,.22), 0 0 10px rgba(125,242,132,.35);
  flex-shrink: 0;
}
.sg-hero-chip .t { font-weight: 700; font-size: .78rem; line-height: 1.1; color: var(--sg-white); letter-spacing: .01em; }
.sg-hero-chip .s { font-size: .66rem; line-height: 1.25; color: rgba(255,255,255,.70); font-weight: 500; }

@keyframes sg-gears-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes sg-big-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sg-med-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sg-sml-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#sg-hero-gears-fb.gear-fallback .gear-big { animation: sg-big-spin 24s linear infinite; transform-origin: 0 0; }
#sg-hero-gears-fb.gear-fallback .gear-med { animation: sg-med-spin 16s linear infinite reverse; transform-origin: 0 0; }
#sg-hero-gears-fb.gear-fallback .gear-sml { animation: sg-sml-spin 10s linear infinite; transform-origin: 0 0; }

@media (max-width: 991.98px) {
  .sg-hero {
    min-height: auto;
    padding: 56px 0 52px !important;
    overflow: hidden;
  }
  .sg-hero > .container {
    overflow: hidden;
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
  }
  .sg-hero-row {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .sg-hero-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
    display: block;
  }
  .sg-hero h1 {
    text-align: left;
  }
  .sg-hero p.lead {
    text-align: left;
    max-width: 100%;
  }
  .sg-hero-media {
    margin: 28px auto 0 !important;
    width: 100% !important;
    max-width: min(100%, 460px) !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 88vh !important;
    overflow: hidden !important;
    position: relative;
    display: block !important;
    float: none !important;
    left: 0 !important;
    right: 0 !important;
  }
  .sg-hero-media::before { inset: -4% !important; }
  .sg-hero-media::after { inset: 3% !important; }
  .sg-hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .sg-hero-ctas .btn-sg {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .sg-hero-facts {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 575.98px) {
  .sg-hero {
    padding: 48px 0 44px !important;
  }
  .sg-hero > .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .sg-hero-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .sg-hero-eyebrow {
    font-size: .78rem;
    letter-spacing: .08em;
  }
  .sg-hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.6rem);
    line-height: 1.08;
    text-align: left;
  }
  .sg-hero p.lead {
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
  }
  .sg-hero-ctas {
    gap: 12px;
    margin-top: 24px;
  }
  .sg-hero-ctas .btn-sg-lg {
    padding: 16px 22px !important;
    font-size: .98rem;
    border-radius: 12px;
  }
  .sg-hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 30px;
  }
  .sg-hero-facts .fact:last-child { grid-column: 1 / -1; }
  .sg-hero-facts .fact {
    padding-left: 12px;
    border-left-width: 3px;
  }
  .sg-hero-facts .fact .num {
    font-size: 1.4rem;
  }
  .sg-hero-facts .fact .lbl {
    font-size: .76rem;
    line-height: 1.35;
  }
  .sg-hero-media {
    width: 100% !important;
    max-width: min(100%, 390px) !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 86vh !important;
    margin-top: 22px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
    display: block !important;
    float: none !important;
    position: relative;
    left: 0 !important;
    right: 0 !important;
  }
  .sg-hero-media::before { inset: -3% !important; }
  .sg-hero-media::after { inset: 4% !important; }
  .sg-hero-chip { padding: 6px 9px 6px 7px; gap: 7px; max-width: 84% !important; left: 3% !important; bottom: 3% !important; border-radius: 34px; }
  .sg-hero-chip .dot { width: 7px; height: 7px; box-shadow: 0 0 0 2.5px rgba(125,242,132,.22), 0 0 8px rgba(125,242,132,.30); }
  .sg-hero-chip .t { font-size: .72rem; }
  .sg-hero-chip .s { font-size: .62rem; }
}

/* -----------------------------------------------------------------------------
   Sección "What we build"
   ----------------------------------------------------------------------------- */
.sg-section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}
.sg-section-head h2 { margin-bottom: 16px; }
.sg-section-head p { color: #4b5563; }

.sg-cat-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 991.98px) { .sg-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .sg-cat-grid { grid-template-columns: 1fr; } }

.sg-cat-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10,21,42,.08);
  border-radius: var(--sg-radius);
  overflow: hidden;
  transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .25s;
  position: relative;
}
.sg-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow);
  border-color: rgba(13,86,227,.22);
}
.sg-cat-card .media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sg-black), var(--sg-blue));
}
.sg-cat-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--sg-ease);
}
.sg-cat-card:hover .media img { transform: scale(1.08); }
.sg-cat-card .body { padding: 22px 22px 24px; }
.sg-cat-card .body h3 { font-size: 1.18rem; margin: 0 0 8px; }
.sg-cat-card .body p { font-size: .92rem; color: #6b7280; margin: 0 0 18px; }
.sg-cat-card .body a.cta {
  font-weight: 600; color: var(--sg-primary);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem;
}
.sg-cat-card .body a.cta:hover { gap: 10px; }

/* -----------------------------------------------------------------------------
   All in One (timeline horizontal)
   ----------------------------------------------------------------------------- */
.sg-aio {
  background: linear-gradient(180deg, #ffffff, var(--sg-light) 60%);
  border-top: 1px solid rgba(10,21,42,.06);
  border-bottom: 1px solid rgba(10,21,42,.06);
}
.sg-aio-steps {
  display: grid; gap: 0;
  grid-template-columns: repeat(4, minmax(0,1fr));
  counter-reset: step;
  position: relative;
}
@media (max-width: 1199.98px) { .sg-aio-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .sg-aio-steps { grid-template-columns: 1fr; } }

.sg-aio-step {
  position: relative;
  padding: 30px 26px 30px 76px;
  border: 1px solid rgba(10,21,42,.07);
  border-right: 0;
  background: #fff;
}
.sg-aio-step:first-child { border-radius: 12px 0 0 12px; }
.sg-aio-step:nth-child(4) { border-radius: 0 12px 12px 0; border-right: 1px solid rgba(10,21,42,.07); }
@media (max-width: 1199.98px) {
  .sg-aio-step { border-right: 1px solid rgba(10,21,42,.07); }
  .sg-aio-step:nth-child(odd)  { border-right: 0; border-radius: 12px 0 0 12px; }
  .sg-aio-step:nth-child(even) { border-radius: 0 12px 12px 0; }
  .sg-aio-step:nth-child(n+3)  { border-top: 0; }
}
@media (max-width: 575.98px) {
  .sg-aio-step { border-radius: 12px !important; border-right: 1px solid rgba(10,21,42,.07) !important; border-bottom: 0; }
  .sg-aio-step:last-child { border-bottom: 1px solid rgba(10,21,42,.07); }
}
.sg-aio-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px; top: 26px;
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--sg-primary);
  opacity: .2;
  line-height: 1;
}
.sg-aio-step .ico {
  position: absolute;
  left: 26px; top: 60px;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(13,86,227,.12), rgba(108,214,246,.22));
  color: var(--sg-primary);
  display: grid; place-items: center;
}
.sg-aio-step h4 { font-size: 1rem; margin: 0 0 6px; color: var(--sg-dark); }
.sg-aio-step p { font-size: .88rem; color: #6b7280; margin: 0; }

/* -----------------------------------------------------------------------------
   Process (6 pasos)
   ----------------------------------------------------------------------------- */
.sg-process {
  background: var(--sg-black);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sg-process::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.sg-process * { position: relative; }
.sg-process h2, .sg-process h3, .sg-process h4 { color: #fff; }
.sg-process .sg-section-head p { color: rgba(255,255,255,.65); }
.sg-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
@media (max-width: 991.98px) { .sg-process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .sg-process-grid { grid-template-columns: 1fr; } }

.sg-process-card {
  border-radius: var(--sg-radius);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, var(--sg-link-blue) 0%, var(--sg-blue) 55%, var(--sg-navy) 100%);
  padding: 26px 24px;
  transition: transform .3s var(--sg-ease), border-color .25s, background .3s;
}
.sg-process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,214,246,.35);
  background: linear-gradient(135deg, var(--sg-navy) 0%, var(--sg-blue) 55%, var(--sg-link-blue) 100%);
}
.sg-process-card .num {
  font-family: var(--sg-font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--sg-accent);
  margin-bottom: 12px;
}
.sg-process-card h4 { margin: 0 0 8px; font-size: 1.1rem; }
.sg-process-card p { color: rgba(255,255,255,.62); font-size: .93rem; margin: 0; }

/* -----------------------------------------------------------------------------
   Built to Last (Quality)
   ----------------------------------------------------------------------------- */
.sg-quality-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 991.98px) { .sg-quality-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .sg-quality-grid { grid-template-columns: 1fr; } }

.sg-quality-item {
  padding: 26px 24px;
  border-radius: var(--sg-radius);
  border: 1px solid rgba(10,21,42,.08);
  background: #fff;
  transition: transform .3s var(--sg-ease), box-shadow .3s, border-color .25s;
}
.sg-quality-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow-sm);
  border-color: rgba(13,86,227,.18);
}
.sg-quality-item .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-sky));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.sg-quality-item h4 { font-size: 1.05rem; margin: 0 0 8px; }
.sg-quality-item p { font-size: .9rem; color: #6b7280; margin: 0; }

/* -----------------------------------------------------------------------------
   Testimonials
   ----------------------------------------------------------------------------- */
.sg-testimonials {
  background: linear-gradient(180deg, var(--sg-light), #fff);
  border-top: 1px solid rgba(10,21,42,.06);
}
.sg-testimonial {
  background: #fff;
  border-radius: var(--sg-radius);
  padding: 28px 26px;
  border: 1px solid rgba(10,21,42,.08);
  height: 100%;
  position: relative;
}
.sg-testimonial::before {
  content: "\201C";
  position: absolute;
  top: 10px; right: 20px;
  font-family: Georgia, serif;
  font-size: 5rem; color: var(--sg-primary);
  opacity: .08; line-height: 1;
}
.sg-testimonial .stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.sg-testimonial p.quote { color: #374151; font-size: .98rem; margin: 0 0 20px; }
.sg-testimonial .person {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(10,21,42,.07);
}
.sg-testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-sky));
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
}
.sg-testimonial .name { font-weight: 700; color: var(--sg-dark); font-size: .96rem; }
.sg-testimonial .role { font-size: .82rem; color: var(--sg-muted); }

/* -----------------------------------------------------------------------------
   CTA
   ----------------------------------------------------------------------------- */
.sg-cta {
  background: linear-gradient(135deg, var(--sg-navy) 0%, var(--sg-blue) 55%, var(--sg-link-blue) 100%);
  color: #fff;
  border-radius: var(--sg-radius-xl);
  overflow: hidden;
  position: relative;
  padding: clamp(44px, 7vw, 78px);
}
.sg-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 60%);
}
.sg-cta * { position: relative; }
.sg-cta h2 { color: #fff; max-width: 22ch; }
.sg-cta p { color: rgba(255,255,255,.78); max-width: 60ch; }

/* -----------------------------------------------------------------------------
   Gallery masonry
   ----------------------------------------------------------------------------- */
.sg-gallery-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 30px;
}
.sg-gallery-filter {
  border: 1px solid rgba(10,21,42,.14);
  background: #fff;
  color: #111827;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
}
.sg-gallery-filter:hover { border-color: var(--sg-primary); color: var(--sg-primary); }
.sg-gallery-filter.active {
  background: var(--sg-primary);
  color: #fff;
  border-color: var(--sg-primary);
}
.sg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  justify-items: stretch;
  align-items: stretch;
}
@media (max-width: 1399.98px) { .sg-gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 991.98px) { .sg-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575.98px) { .sg-gallery-grid { grid-template-columns: 1fr; } }
.sg-gallery-grid.isotope { display: block; }
.sg-gallery-grid.isotope::after {
  content: "";
  display: block;
  clear: both;
}
.sg-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sg-black), var(--sg-blue));
  box-shadow: 0 2px 10px rgba(10,21,42,.08);
  border: 1px solid rgba(10,21,42,.06);
  width: calc(25% - 20px);
  max-width: 400px;
  float: left;
  margin: 0 10px 26px 10px;
  box-sizing: border-box;
}
@media (max-width: 1399.98px) { .sg-gallery-item { width: calc(33.3333% - 20px); } }
@media (max-width: 991.98px) { .sg-gallery-item { width: calc(50% - 20px); } }
@media (max-width: 575.98px) { .sg-gallery-item { width: 100%; max-width: 440px; float: none; margin: 0 auto 24px auto; } }
.sg-gallery-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s var(--sg-ease);
  display: block;
}
.sg-gallery-item:hover img { transform: scale(1.06); }
.sg-gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,21,42,.78));
  opacity: 0;
  transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 12px 14px;
  border-radius: 13px;
}
.sg-gallery-item:hover .overlay { opacity: 1; }
.sg-gallery-item .overlay span {
  color: #fff; font-weight: 600; font-size: .88rem;
}

/* -----------------------------------------------------------------------------
   Catalog grid
   ----------------------------------------------------------------------------- */
.sg-catalog-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); position: relative; }
@media (max-width: 991.98px) { .sg-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } }
@media (max-width: 575.98px) { .sg-catalog-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ===== Spinner de carga (AJAX filtros catálogo) ===== */
.sg-grid-loading {
  pointer-events: none;
  position: relative;
  min-height: 260px;
}
.sg-grid-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(13, 86, 227, .18);
  border-top-color: #0071cd;
  border-right-color: #0071cd;
  border-radius: 50%;
  z-index: 10;
  animation: sgSpin 0.9s linear infinite;
  box-shadow: 0 0 0 6px rgba(255,255,255,.6);
}
.sg-grid-loading::after {
  content: "Filtrando productos...";
  position: absolute;
  top: calc(50% + 36px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: #0071cd;
  z-index: 10;
}
@keyframes sgSpin {
  to { transform: rotate(360deg); }
}
.sg-product-price {
  font-family: var(--sg-font-display);
  font-weight: 800;
  color: var(--sg-primary);
  font-size: 1.25rem;
}
.sg-product-price .from { font-size: .78rem; color: var(--sg-muted); font-weight: 500; margin-right: 4px; }
.sg-product-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px;
}
.sg-product-meta .tag {
  font-size: .75rem; color: #6b7280;
  display: inline-flex; align-items: center; gap: 4px;
}

/* Pagination */
.sg-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.sg-pagination a, .sg-pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(10,21,42,.10);
  background: #fff;
  color: var(--sg-dark);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.sg-pagination a:hover { border-color: var(--sg-primary); color: var(--sg-primary); }
.sg-pagination .active {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
  color: #fff;
}
.sg-pagination .disabled { opacity: .4; pointer-events: none; }

/* -----------------------------------------------------------------------------
   Contacto
   ----------------------------------------------------------------------------- */
.sg-contact-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1.2fr; }
@media (max-width: 991.98px) { .sg-contact-grid { grid-template-columns: 1fr; } }
.sg-contact-info {
  background: linear-gradient(135deg, var(--sg-dark) 0%, #111a35 100%);
  color: #fff;
  padding: 40px;
  border-radius: var(--sg-radius-lg);
  position: relative;
  overflow: hidden;
}
.sg-contact-info::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 60%);
}
.sg-contact-info * { position: relative; }
.sg-contact-info h4 { color: #fff; margin: 0 0 18px; }
.sg-contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.sg-contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: flex-start; gap: 12px;
}
.sg-contact-list li:last-child { border-bottom: 0; }
.sg-contact-list .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(13,86,227,.22);
  color: var(--sg-accent);
  display: grid; place-items: center; flex-shrink: 0;
  margin-top: 2px;
}
.sg-contact-list .t { font-weight: 600; color: #fff; font-size: .9rem; }
.sg-contact-list .d { font-size: .86rem; color: rgba(255,255,255,.62); margin: 2px 0 0; }

.sg-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--sg-radius-lg);
  border: 1px solid rgba(10,21,42,.08);
}
@media (max-width: 575.98px) {
  .sg-form { padding: 24px 20px; }
  .sg-contact-info { padding: 28px 22px; }
}
.form-label { font-weight: 600; font-size: .9rem; color: #111827; margin-bottom: 6px; }
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(10,21,42,.15);
  background: #fff;
  color: #111827;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: none;
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 4px rgba(13,86,227,.12);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

.alert {
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
}
.alert-success { background: rgba(22,163,74,.08); color: #15803d; border: 1px solid rgba(22,163,74,.18); }
.alert-danger  { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.18); }
.alert-warning { background: rgba(217,119,6,.08);  color: #a16207; border: 1px solid rgba(217,119,6,.18); }
.alert-info    { background: rgba(14,165,233,.08); color: #0369a1; border: 1px solid rgba(14,165,233,.18); }
.text-danger { color: #dc2626; }

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.sg-footer {
  background: #050914;
  color: rgba(255,255,255,.75);
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.sg-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% -10%, rgba(13,86,227,.25), transparent 60%);
  pointer-events: none;
}
.sg-footer * { position: relative; }
.sg-footer h5 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 18px;
}
.sg-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.sg-footer a:hover { color: var(--sg-accent); }
.sg-footer ul { list-style: none; padding: 0; margin: 0; }
.sg-footer ul li { padding: 5px 0; font-size: .92rem; }
.sg-footer-brand img { height: 48px; margin-bottom: 16px; }
.sg-footer-brand p { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 40ch; }

.sg-footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sg-footer-socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  display: grid; place-items: center;
  transition: all .25s;
}
.sg-footer-socials a:hover {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
  transform: translateY(-2px);
}

.sg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 56px;
  padding: 22px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.sg-footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Contact float (WhatsApp/Call) */
.sg-floating {
  position: fixed;
  right: 20px; bottom: 20px; z-index: 1020;
  display: flex; flex-direction: column; gap: 10px;
}
.sg-floating a {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1.3rem;
  box-shadow: var(--sg-shadow);
  transition: transform .25s var(--sg-ease);
}
.sg-floating a:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.sg-float-call { background: linear-gradient(135deg, var(--sg-primary), var(--sg-link-blue)); }
.sg-float-mail { background: linear-gradient(135deg, var(--sg-violet), var(--sg-primary)); }

/* -----------------------------------------------------------------------------
   AOS Reveal (sin librería AOS - simple JS Scroll Reveal)
   ----------------------------------------------------------------------------- */
.sg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--sg-ease-out), transform .7s var(--sg-ease-out);
  will-change: opacity, transform;
}
.sg-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.sg-reveal[data-delay="1"] { transition-delay: .08s; }
.sg-reveal[data-delay="2"] { transition-delay: .16s; }
.sg-reveal[data-delay="3"] { transition-delay: .24s; }
.sg-reveal[data-delay="4"] { transition-delay: .32s; }
.sg-reveal[data-delay="5"] { transition-delay: .40s; }

/* Inputs inválidos */
.form-control.is-invalid, .was-validated .form-control:invalid {
  border-color: #dc2626;
  background-color: #fff5f5;
}
.invalid-feedback { color: #dc2626; font-size: .82rem; margin-top: 4px; }

/* Responsive tweaks globales */
@media (max-width: 767.98px) {
  .sg-hero-facts { grid-template-columns: 1fr 1fr; }
  .sg-cta { padding: 32px 22px; }
  .sg-section { padding: 64px 0; }
  .sg-section-head { margin-bottom: 36px; }    
  .sg-floating a { width: 48px; height: 48px; }
}

/* =====================================================
   WCAG 2.1 - Accesibilidad · TARGETS ≥ 44px · Focus visible
   ===================================================== */
@media (pointer: coarse) {
  .sg-btn,
  button.sg-btn,
  .nav-link,
  .sg-catalog-filters button,
  .sg-filters-wrap label,
  .sg-quote-cta,
  .sg-footer a,
  .sg-topbar-contact a,
  .dropdown-item,
  .btn,
  .sg-gallery-filter,
  .sg-btn-outline,
  a[role="button"] {
    min-height: 44px;
    min-width: 44px;
    line-height: 44px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sg-gallery-item .overlay a,
  .sg-gallery-item .overlay button {
    min-height: 44px;
    min-width: 44px;
  }
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
  }
}

*:focus-visible {
  outline: 3px solid #0d56e3;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contraste mejorado para textos secundarios */
.sg-muted, .text-muted, .sg-card-tag, .sg-card .meta {
  color: #4b5563 !important; /* AA 4.5:1 sobre blanco */
}

/* Screen reader utility */
.sg-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* WhatsApp Button */
#whatsappButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#whatsappButton i {
    font-size: 2rem;
    color: white;
}

#whatsappButton:hover {
    transform: scale(1.1);
}
#whatsappWidget p, #whatsappWidget h3{
    color:#fff;

}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-widget.active {
    border-radius: 41px 41px 31px 31px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.whatsapp-header {
    border-radius: 30px 30px 0px 0px;
    background: var(--whatsapp-dark);
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.whatsapp-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.whatsapp-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-header-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.whatsapp-messages {
    max-height: 300px;
    overflow-y: auto;
    background-image: url(../img/fondowapp.jpg);
    background-size: cover;
    background-position: center;
    padding: 10px;

}

/* Correcciones específicas para scroll en móviles */
@media (max-width: 768px) {
    /* Widget de WhatsApp optimizado para móviles */
    .whatsapp-widget {
        width: 300px;
        max-width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
    }
    
    .whatsapp-messages {
        max-height: 120px;
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Prevenir que el scroll del widget interfiera con el scroll de la página */
        overscroll-behavior: contain;
    }
    
    /* Asegurar que el scroll de la página principal funcione correctamente */
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevenir scroll horizontal en todos los contenedores */
    .container, .container-fluid, .row, [class*="col-"] {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Optimizar elementos con scroll interno */
    .carousel-inner {
        overflow: hidden;
    }
    
    /* Mejorar el comportamiento del scroll en elementos específicos */
    .navbar-collapse {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* -----------------------------------------------------------------------------
   Página Producto · Galería Swiper + Flechas + Layout
   ----------------------------------------------------------------------------- */
.sg-prod-gallery {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(10,21,42,.08);
  box-shadow: var(--sg-shadow-sm);
  display: block;
  overflow: visible;
}

/* ===== MAIN SWIPER ===== */
.sg-swiper-main {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8fb, #eaeaf1);
  aspect-ratio: 16 / 10;
}
.sg-swiper-main .swiper-wrapper {
  align-items: stretch;
}
.sg-swiper-main .swiper-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f2f3f7;
  height: auto;
}
.sg-swiper-main .swiper-slide > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
/* ✅ Imagen ocupa 100% ancho + 100% alto y queda centrada */
.sg-swiper-main .swiper-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  transition: transform .5s var(--sg-ease);
}
.sg-swiper-main .swiper-slide:hover img {
  transform: scale(1.03);
}

/* ===== THUMBS ===== */
.sg-swiper-thumbs {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(10,21,42,.08);
  padding-left: 4px;
  padding-right: 4px;
}
.sg-swiper-thumbs .sg-thumb {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #eef0f5;
  aspect-ratio: 1 / 1;
  transition: border-color .25s, transform .25s, opacity .25s;
  opacity: .7;
}
.sg-swiper-thumbs .sg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 1 / 1;
}
.sg-swiper-thumbs .sg-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.sg-swiper-thumbs .swiper-slide-thumb-active.sg-thumb {
  border-color: var(--sg-primary, #0071cd);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(0,113,205,.18);
}

/* ===== ✨ FLECHAS NAVEGACIÓN ESTILIZADAS (Sage Blue) ===== */
.sg-swiper-prev,
.sg-swiper-next {
  --size: 46px;
  top: 50%;
  width: var(--size) !important;
  height: var(--size) !important;
  margin-top: calc(var(--size) / -2);
  border-radius: 50%;
  background: #ffffff !important;
  color: var(--sg-primary, #0071cd) !important;
  border: 1px solid rgba(0,113,205,.18);
  box-shadow:
    0 4px 18px rgba(0,0,0,.10),
    0 0 0 1px rgba(255,255,255,.9) inset;
  backdrop-filter: blur(4px);
  transition: all .28s var(--sg-ease);
  opacity: .85;
  z-index: 5;
}
.sg-swiper-prev { left: 14px !important; }
.sg-swiper-next { right: 14px !important; }

/* Reemplazar los ::after feos de Swiper por íconos elegantes SVG */
.sg-swiper-prev::after,
.sg-swiper-next::after {
  content: "" !important;
  width: 18px;
  height: 18px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
}
.sg-swiper-prev::after {
  transform: translate(-35%, -50%) rotate(-135deg);
}
.sg-swiper-next::after {
  transform: translate(-65%, -50%) rotate(45deg);
}

.sg-swiper-prev:hover,
.sg-swiper-next:hover {
  opacity: 1;
  background: var(--sg-primary, #0071cd) !important;
  color: #ffffff !important;
  border-color: var(--sg-primary, #0071cd);
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 8px 24px rgba(0,113,205,.32),
    0 0 0 1px rgba(255,255,255,.2) inset;
}
.sg-swiper-prev:active,
.sg-swiper-next:active {
  transform: translateY(-50%) scale(.96);
}
.sg-swiper-prev.swiper-button-disabled,
.sg-swiper-next.swiper-button-disabled {
  opacity: .35 !important;
  cursor: not-allowed;
  pointer-events: none;
  background: #fff !important;
  color: #9aa4b2 !important;
  border-color: rgba(154,164,178,.25) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.06) !important;
}

/* ===== PAGINACIÓN ===== */
.sg-swiper-pagination {
  --swiper-pagination-color: var(--sg-primary, #0071cd);
  --swiper-pagination-bullet-size: 9px;
  --swiper-pagination-bullet-inactive-color: rgba(10,21,42,.28);
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-horizontal-gap: 6px;
  bottom: 12px !important;
}
.sg-swiper-pagination .swiper-pagination-bullet {
  background: rgba(10,21,42,.28);
  opacity: 1;
  width: 9px;
  height: 9px;
  transition: all .25s;
}
.sg-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--sg-primary, #0071cd);
  width: 26px;
  border-radius: 999px;
}

/* ===== LAYOUT DESCRIPCIÓN ===== */
/* Evita que la descripción se superponga o el carrusel quede con espacio excesivo */
.sg-section-sm > .container > .row + .row {
  clear: both;
}
@media (max-width: 991.98px) {
  .sg-prod-gallery { padding: 10px; }
  .sg-swiper-main { aspect-ratio: 4 / 3; border-radius: 12px; }
  .sg-swiper-main .swiper-slide img { aspect-ratio: 4 / 3; }
  .sg-swiper-prev, .sg-swiper-next { --size: 40px; }
  .sg-swiper-prev { left: 8px !important; }
  .sg-swiper-next { right: 8px !important; }
}

/* Correcciones adicionales para dispositivos muy pequeños */
@media (max-width: 430px) {
    .whatsapp-widget {
        width: 280px;
        right: 15px;
        bottom: 85px;
    }
    
    .whatsapp-messages {
        max-height: 100px;
        padding: 12px;
    }
}

.whatsapp-messages a {
    font-size: 12px;
    color: black;
}

.whatsapp-messages a:not([href]):not([class]) {
    font-size: 12px;
    color: black;
}

.whatsapp-messages a:not([href]):not([class]):hover {
    color: black; /* Asegura que el color permanezca negro */
}

.whatsapp-message {
    background: white;
    padding: 10px 15px;
    border-radius: 7px;
    margin-bottom: 10px;
    max-width: 80%;
    position: relative;
}

.whatsapp-message.received {
    background: white;
    margin-right: auto;
}
.whatsapp-message.received a {
    font-family: 'Verdana', sans-serif;
    color: black;
    
}
.whatsapp-message.sent {
    background: var(--whatsapp-light);
    margin-left: auto;
}

.whatsapp-input {
    border-radius: 0px 0px 30px 30px;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-top: 1px solid #eee;
    overflow: hidden; /* Agregado */
}


.whatsapp-input textarea {
    flex: 1;
    border: none;
    padding: 8px 10px;
    border-radius: 20px;
    resize: none;
    height: 40px;
    line-height: 24px;
    font-size: 14px;
}

.whatsapp-input textarea:focus {
    outline: none;
}

.whatsapp-send {
    background: var(--whatsapp-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.whatsapp-send:hover {
    background: #128C7E;
}

/* WhatsApp Modal */


.whatsapp-chat {
    background-color: #ECE5DD;
    padding: 1rem;
    border-radius: 10px;
}

.message-box textarea {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    height: 100px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}