/** Shopify CDN: Minification failed

Line 46:0 All "@import" rules must come first

**/
/* ============================================================
   ControlLux — Design tokens + utilidades compartidas
   Coherente con el ERP Controllux Core (paleta tema "controllux"
   de MODULO INTEGRADOR/ui/, default).
   Usado por todas las secciones cx-*.
   ============================================================ */

/* ── Tipografías ──
   Caviar Dreams (display + body): copiada desde Core a /assets/.
   JetBrains Mono (etiquetas técnicas / eyebrow): Google Fonts. */

@font-face {
  font-family: 'Caviar Dreams';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('CaviarDreams.ttf') format('truetype');
}
@font-face {
  font-family: 'Caviar Dreams';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('CaviarDreams_Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Caviar Dreams';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('CaviarDreams_Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Caviar Dreams';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('CaviarDreams_BoldItalic.ttf') format('truetype');
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Tokens ──
   Paleta "Océano" del ERP — la misma que usan los PDFs de cotización
   y correos al cliente. Coherencia total: lo que el cliente ve en su
   bandeja de entrada se ve igual en la tienda.
   Si en el theme editor el merchant cambia el color scheme, las
   secciones cx-* respetan eso (no overridean). */

:root {
  /* Ocean & Sand — paleta costera cálida */
  --cx-bg:        #F8EFE5;  /* Ivory Breeze */
  --cx-bg-deep:   #F2D9C7;  /* Soft Seashell Pink */
  --cx-surface:   #FCF6EC;  /* Ivory Breeze más claro */
  --cx-paper:     #FFFFFF;
  --cx-paper-translucent: rgba(255, 255, 255, 0.80);

  --cx-indigo:    #2C3E4D;  /* navy derivado de Ocean Deep, más oscuro para texto */
  --cx-mid:       #5D768B;  /* Ocean Deep Blue */
  --cx-lav:       #C8B39B;  /* Warm Sandy Beige (slot lav reutilizado) */
  --cx-ghost:     #F8EFE5;  /* Ivory Breeze */

  --cx-coral:     #5D768B;  /* Ocean Deep Blue — acento principal */
  --cx-coral-l:   #48617A;  /* Ocean Deep darken para hover */

  --cx-green:     #C8B39B;  /* Warm Sandy Beige (sin verde en la paleta) */
  --cx-amber:     #E3C9A4;  /* Golden Driftwood */
  --cx-red:       #C97A6A;

  --cx-dim:       #7A8C9A;
  --cx-text:      #2C3E4D;
  --cx-text-onDark: #F8EFE5;

  --cx-border:    rgba(44, 62, 77, 0.10);
  --cx-border-strong: rgba(44, 62, 77, 0.18);

  --cx-shadow-sm: 0 2px 6px rgba(44, 62, 77, 0.06);
  --cx-shadow-md: 0 8px 24px rgba(44, 62, 77, 0.10);
  --cx-shadow-lg: 0 18px 50px rgba(44, 62, 77, 0.18);
  --cx-shadow-coral: 0 6px 22px rgba(93, 118, 139, 0.45);

  --cx-radius-sm: 8px;
  --cx-radius-md: 12px;
  --cx-radius-lg: 18px;
  --cx-radius-xl: 28px;

  --cx-font-display: 'Caviar Dreams', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --cx-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --cx-ease: cubic-bezier(0.22, 0.8, 0.36, 1);
  --cx-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --cx-container: min(1440px, 100% - 48px);
  --cx-container-tight: min(1200px, 100% - 48px);
}

@media (min-width: 990px) {
  :root {
    --cx-container: min(1440px, 100% - 96px);
    --cx-container-tight: min(1200px, 100% - 96px);
  }
}

/* ── Body — fondo con cuerpo (no blanco vacío) ──
   Gradient sutil multi-stop: azul más cargado en los extremos, más
   claro al centro. Da profundidad sin distraer. */
body.gradient,
body {
  background:
    radial-gradient(60% 50% at 0% 0%,    rgba(93, 118, 139, 0.20)  0%, transparent 60%),  /* Ocean Deep */
    radial-gradient(50% 40% at 100% 30%, rgba(242, 217, 199, 0.50) 0%, transparent 60%),  /* Seashell Pink */
    radial-gradient(70% 60% at 50% 100%, rgba(200, 179, 155, 0.32) 0%, transparent 65%),  /* Sandy Beige */
    var(--cx-bg) !important;
  background-attachment: fixed;
}

/* ── Utilidades de sección ── */

.cx-section {
  position: relative;
  width: 100%;
  font-family: var(--cx-font-display);
  color: var(--cx-text) !important;
  letter-spacing: -0.005em;
}

/* Defensivo: secciones cx-* sobre fondo CLARO siempre tienen texto navy.
   Las secciones sobre fondo OSCURO (cx-hero, cx-proj) overridean abajo. */
.cx-cat,
.cx-feat,
.cx-marq {
  color: var(--cx-text) !important;
}

.cx-cat h1, .cx-cat h2, .cx-cat h3, .cx-cat h4, .cx-cat p, .cx-cat span,
.cx-feat h1, .cx-feat h2, .cx-feat h3, .cx-feat h4, .cx-feat p, .cx-feat span,
.cx-marq h1, .cx-marq h2, .cx-marq h3, .cx-marq h4, .cx-marq p {
  color: inherit;
}

/* Override puntual: cards de category finder tienen su propio texto Ivory Veil
   sobre imagen+scrim oscuro. CTA siempre en Whisper, sin variar por categoría. */
.cx-cat .cx-cat__card,
.cx-cat .cx-cat__card * {
  color: #F4EDE1;
}
.cx-cat .cx-cat__cta,
.cx-cat .cx-cat__cta * {
  color: var(--cx-mid) !important;  /* Whisper #799DAC */
}
.cx-cat .cx-cat__brands-label {
  color: rgba(244, 237, 225, 0.55) !important;
}

/* Hero sobre imagen oscura: texto en Ivory Breeze.
   Forzamos para ganarle al --color-foreground del scheme de Dawn. */
.cx-hero {
  color: #F8EFE5 !important;
}
.cx-hero .cx-hero__title { color: #F8EFE5 !important; }
.cx-hero .cx-hero__lede  { color: rgba(248, 239, 229, 0.94) !important; }
.cx-hero .cx-hero__eyebrow { color: #F8EFE5 !important; }

/* Project CTA sobre navy: TODO el texto en Ocean Deep Blue
   (excepto los botones, que conservan sus colores propios). */
.cx-proj {
  color: #5D768B !important;
}
.cx-proj h1, .cx-proj h2, .cx-proj p,
.cx-proj span:not(.cx-btn):not(.cx-btn *) {
  color: inherit;
}
.cx-proj .cx-proj__heading,
.cx-proj .cx-proj__stat-value { color: #5D768B !important; }
.cx-proj .cx-proj__desc { color: rgba(93, 118, 139, 0.92) !important; }
.cx-proj .cx-proj__eyebrow { color: #5D768B !important; }
.cx-proj .cx-proj__caption { color: #5D768B !important; }
.cx-proj .cx-proj__stat-label { color: rgba(93, 118, 139, 0.78) !important; }

/* Los botones del Project CTA mantienen sus colores propios.
   El primary ("Ir al sitio de proyectos") forzado a texto blanco.
   El secondary ("Hablar con un asesor") mantiene su Ocean Deep sobre fondo blanco. */
.cx-proj .cx-btn:not(.cx-btn--secondary):not(.cx-btn--ghost),
.cx-proj .cx-btn:not(.cx-btn--secondary):not(.cx-btn--ghost) * {
  color: #ffffff !important;
}
.cx-proj .cx-btn--secondary,
.cx-proj .cx-btn--secondary * {
  color: var(--cx-indigo) !important;
}

.cx-container {
  width: var(--cx-container);
  margin-inline: auto;
}

.cx-container--tight {
  width: var(--cx-container-tight);
  margin-inline: auto;
}

/* Eyebrow: la etiqueta mono uppercase del ERP — sello visual.
   La línea de la izquierda crece al revelar (animación). */
.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cx-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cx-coral);
  margin: 0 0 18px;
}

.cx-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transform-origin: left center;
  transform: scaleX(0.4);
  transition: transform 1s var(--cx-ease) 0.2s;
}

.cx-js [data-cx-reveal].cx-in-view .cx-eyebrow::before,
.cx-js [data-cx-reveal] .cx-eyebrow::before {
  transform: scaleX(1);
}

.cx-eyebrow--center {
  justify-content: center;
}

/* Tipografías display reutilizables */
.cx-display {
  font-family: var(--cx-font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  color: inherit;
}

.cx-display--xl {
  font-size: clamp(40px, 6.5vw, 88px);
}

.cx-display--lg {
  font-size: clamp(32px, 4.5vw, 64px);
}

.cx-display--md {
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: -0.025em;
}

.cx-lede {
  font-family: var(--cx-font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--cx-dim);
  margin: 0;
  max-width: 60ch;
}

.cx-lede--onDark {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Botones — replican .btn-primary / .btn-secondary del Core */
.cx-btn {
  --_bg: var(--cx-coral);
  --_fg: #fff;
  --_border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--cx-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--_border);
  background: var(--_bg);
  color: var(--_fg);
  transition: transform 0.18s var(--cx-ease), box-shadow 0.18s var(--cx-ease), background 0.18s var(--cx-ease), color 0.18s var(--cx-ease);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}

/* Shimmer sweep — barrido de luz cuando se hace hover sobre un CTA */
.cx-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--cx-ease);
  pointer-events: none;
  z-index: 0;
}
.cx-btn > * { position: relative; z-index: 1; }
.cx-btn:hover::before { transform: translateX(100%); }

.cx-btn:hover {
  transform: translateY(-1px);
  background: var(--cx-coral-l);
  box-shadow: var(--cx-shadow-coral);
}

.cx-btn--secondary {
  --_bg: rgba(255, 255, 255, 0.92);
  --_fg: var(--cx-indigo);
  --_border: rgba(59, 61, 110, 0.18);
}
.cx-btn--secondary:hover {
  --_bg: #fff;
  --_fg: var(--cx-indigo);
  box-shadow: 0 6px 18px rgba(59, 61, 110, 0.18);
  background: #fff;
}

.cx-btn--ghost {
  --_bg: transparent;
  --_fg: currentColor;
  --_border: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.cx-btn--ghost:hover {
  --_bg: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.55);
}

.cx-btn--lg { padding: 16px 32px; font-size: 15px; }

/* Card translúcida — patrón del Core */
.cx-card {
  background: var(--cx-paper-translucent);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* prefers-reduced-motion: respetar siempre */
@media (prefers-reduced-motion: reduce) {
  .cx-btn,
  .cx-btn:hover { transition: none; transform: none; }
}

/* ── Smooth scroll global ─── */
html { scroll-behavior: smooth; }

/* ── Reveal on scroll — driven by cx-animations.js ──
   El JS añade .cx-in-view cuando el elemento entra al viewport.
   Si JS no carga, .cx-js no existe y el contenido queda visible. */
.cx-js [data-cx-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.95s var(--cx-ease),
    transform 0.95s var(--cx-ease);
  will-change: opacity, transform;
}
.cx-js [data-cx-reveal="left"]  { transform: translate3d(-40px, 0, 0); }
.cx-js [data-cx-reveal="right"] { transform: translate3d(40px, 0, 0);  }
.cx-js [data-cx-reveal="zoom"]  { transform: scale(0.94); }
.cx-js [data-cx-reveal="fade"]  { transform: none; }

.cx-js [data-cx-reveal].cx-in-view {
  opacity: 1;
  transform: var(--cx-reveal-final, translate3d(0, 0, 0) scale(1));
}

/* Stagger por orden con CSS custom prop */
.cx-js [data-cx-reveal] { transition-delay: var(--cx-reveal-delay, 0s); }

/* Override específico para cards con tilt 3D — el reveal solo controla
   opacity, el transform queda 100% en manos del tilt para que las 5
   cards respondan idéntico al hover sin pelearse con el reveal. */
.cx-js .cx-cat__card[data-cx-reveal],
.cx-js .cx-feat__card[data-cx-reveal] {
  opacity: 0;
  transform: var(--cx-reveal-final);
  transition:
    opacity 0.95s var(--cx-ease),
    transform 0.5s var(--cx-ease),
    box-shadow 0.5s var(--cx-ease);
}
.cx-js .cx-cat__card[data-cx-reveal].cx-in-view,
.cx-js .cx-feat__card[data-cx-reveal].cx-in-view {
  opacity: 1;
  transform: var(--cx-reveal-final);
}

/* Body fade-in al cargar */
body.gradient,
body {
  animation: cxBodyFadeIn 0.6s var(--cx-ease) both;
}
@keyframes cxBodyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cx-js [data-cx-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  body { animation: none; }
}
