:root {
  /* Tokens Oficiales de vx1.cl */
  --bg-abyss: #0e1833;
  --color-calipso: #22d3ee;
  --color-calipso-dark: #0891b2;
  --color-teal: #5eead4;
  --color-sky: #38bdf8;
  --color-blue: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --rose-400: #fb7185;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-abyss);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* -------------------------------------------------------------------------- */
/* Fondo Ambiental Oficial con Aurora Luminous (Idéntico a vx1.cl)             */
/* -------------------------------------------------------------------------- */
.vx-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% -15%, #18335c 0%, #0d1933 45%, #081022 100%);
}

.vx-ambient::before,
.vx-ambient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
}

/* Emerald & Cyan Aurora (Top Left & Center) */
.vx-ambient::before {
  top: -12%;
  left: -8%;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, rgba(34, 211, 238, 0.35) 40%, transparent 70%);
}

/* Sky Blue & Royal Indigo Aurora (Bottom & Right) */
.vx-ambient::after {
  bottom: -20%;
  right: -10%;
  width: 75vw;
  height: 75vh;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 70%);
}

/* Optimización para móviles */
@media (max-width: 767px) {
  .vx-ambient::before,
  .vx-ambient::after {
    filter: none;
    opacity: 0.28;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* Header Glassmorphism Sutil                                                */
/* -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 24, 51, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.vx-mark {
  height: 28px;
  width: auto;
  display: block;
}

.brand-divider {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  font-size: 1.25rem;
}

.brand-sub {
  font-size: 0.875rem;
  color: var(--color-calipso);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-calipso);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-calipso);
  animation: pulse 2s infinite;
}

.pulse-dot-sm {
  width: 6px;
  height: 6px;
  background-color: var(--color-calipso);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-calipso);
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--color-calipso);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-header-wa:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--color-calipso);
}

/* -------------------------------------------------------------------------- */
/* Hero Section                                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-calipso);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

/* Gradiente Textual Oficial vx1.cl: Calipso -> Teal -> Sky */
.vx-gradient-text {
  background: linear-gradient(to right, #22d3ee 0%, #5eead4 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.hero-lead strong {
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* Filtros                                                                    */
/* -------------------------------------------------------------------------- */
.filters-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
}

.filter-btn.active {
  background: var(--color-calipso);
  color: #0e1833;
  border-color: var(--color-calipso);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Grid de Demos: Tarjetas Glassmorphism vx-card (Idéntico a vx1.cl)           */
/* -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  padding-bottom: 5rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.demo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 35px rgba(34, 211, 238, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-brand-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  margin: 0 0 1rem;
  object-fit: contain;
  object-position: left center;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.badge-cyan { background: rgba(34, 211, 238, 0.12); color: var(--color-calipso); border: 1px solid rgba(34, 211, 238, 0.25); }
.badge-rose { background: rgba(251, 113, 133, 0.12); color: var(--rose-400); border: 1px solid rgba(251, 113, 133, 0.25); }
.badge-blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.badge-gold { background: rgba(212, 175, 55, 0.15); color: #dfba53; border: 1px solid rgba(212, 175, 55, 0.35); }
.badge-teal { background: rgba(0, 168, 150, 0.15); color: #2dd4bf; border: 1px solid rgba(0, 168, 150, 0.35); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-calipso);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.card-tagline {
  font-size: 0.875rem;
  color: var(--color-calipso);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-highlights {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.h-icon {
  font-size: 1.125rem;
  line-height: 1.4;
}

.highlight-item strong {
  display: block;
  font-size: 0.875rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.highlight-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: #ffffff;
  color: #020617;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: scale(1.02);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.25);
}

.arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.fqdn-tag {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-dim);
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Banner Comercial de Conversión                                             */
/* -------------------------------------------------------------------------- */
.cta-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.eyebrow-accent {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-calipso);
  margin-bottom: 0.75rem;
}

.cta-banner h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--emerald-500);
  color: #ffffff;
  font-weight: 700;
  gap: 0.5rem;
}

.btn-cta:hover {
  background: var(--emerald-400);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  transform: scale(1.02);
}

.wa-icon-sm {
  width: 18px;
  height: 18px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-calipso);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 24, 51, 0.5);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copy {
  color: #ffffff;
  font-weight: 500;
}

.footer-sub {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-calipso);
}

.vx-rd-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.85rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.vx-rd-pill:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.ping-container {
  position: relative;
  display: flex;
  height: 6px;
  width: 6px;
}

.ping-radar {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: var(--color-calipso);
  opacity: 0.4;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-core {
  position: relative;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--color-calipso);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.pill-dot { color: var(--text-dim); }
.pill-bold { font-weight: 700; color: var(--color-calipso); }
.pill-arrow { font-size: 0.6875rem; color: var(--text-dim); }

/* -------------------------------------------------------------------------- */
/* Widget Flotante Oficial WhatsApp (Idéntico a vx1.cl)                        */
/* -------------------------------------------------------------------------- */
.wa-floating-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.wa-floating-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  background: rgba(12, 21, 41, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.wa-floating-btn:hover {
  transform: scale(1.05);
  border-color: var(--emerald-400);
  box-shadow: 0 8px 36px rgba(16, 185, 129, 0.45);
}

.wa-radar-container {
  position: relative;
  display: flex;
  height: 10px;
  width: 10px;
  align-items: center;
  justify-content: center;
}

.wa-radar-pulse {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: var(--emerald-400);
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.wa-radar-core {
  position: relative;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.wa-floating-icon {
  width: 20px;
  height: 20px;
  fill: var(--emerald-400);
}

.wa-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wa-text-tag {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-400);
  line-height: 1.1;
}

.wa-text-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-back-home:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.8);
  color: var(--color-calipso);
  transform: translateX(-2px);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}
.btn-back-home svg {
  transition: transform 0.2s ease;
}
.btn-back-home:hover svg {
  transform: translateX(-2px);
}

.demo-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
}
.breadcrumb-link {
  color: var(--color-calipso);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.breadcrumb-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.25);
}
.breadcrumb-curr {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .demo-grid { grid-template-columns: 1fr; }
  .header-inner, .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .header-right, .footer-right {
    justify-content: center;
  }
}
