/* ==========================================================================
   NexIA-TECH — SOLUCIONES EMPRESARIALES CON IA & AUTOMATIZACIÓN
   ========================================================================== */

:root {
  --ink-primary: #0b101b;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ivory-surface: rgba(248, 246, 241, 0.88);
  --dark-card: rgba(10, 17, 32, 0.88);
  --dark-surface: rgba(15, 23, 42, 0.92);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #60a5fa;
  --emerald: #10b981;
  --border-light: rgba(11, 16, 27, 0.1);
  --border-dark: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(148, 163, 184, 0.25);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #e9e4da;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 90%);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.8rem 1.3rem;
  background: #0b101b;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0 0 12px 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent-soft);
}

/* ==========================================================================
   1. FULL-BLEED CINEMATIC BACKGROUND STAGE (SCROLL + CURSOR PARALLAX)
   ========================================================================== */
.cinema-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e9e4da;
}

.cinema-canvas-wrap {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  will-change: transform;
  transform-origin: 54% 48%;
  transform: translate3d(0px, 0px, 0px) scale(1.05);
}

.cinema-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 45%;
  user-select: none;
  -webkit-user-drag: none;
}

.cinema-veil-daylight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 18% 45%,
    rgba(248, 246, 241, 0.84) 0%,
    rgba(248, 246, 241, 0.56) 42%,
    rgba(248, 246, 241, 0.14) 76%
  );
  opacity: 1;
}

.cinema-veil-twilight {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(4, 9, 20, 0.9) 0%,
    rgba(8, 16, 34, 0.82) 52%,
    rgba(11, 22, 46, 0.7) 100%
  );
  opacity: 0;
  will-change: opacity;
}

.cinema-cursor-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  left: 50%;
  top: 50%;
  z-index: 2;
}

.cinema-svg-watermark {
  position: absolute;
  right: 4%;
  bottom: 10%;
  width: min(32vw, 380px);
  height: auto;
  opacity: 0.055;
  pointer-events: none;
  will-change: transform;
}

/* Pure Background View Toggle */
body.pure-photo-mode .scroll-content,
body.pure-photo-mode .hud-bottom-left,
body.pure-photo-mode .hud-bottom-center {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s var(--ease-out-expo);
}

body.pure-photo-mode .cinema-veil-twilight,
body.pure-photo-mode .cinema-veil-daylight {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   2. FIXED EDITORIAL HUD CHROME (TOP + BOTTOM)
   ========================================================================== */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 3.2vw;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, padding 0.35s ease;
}

.hud-header.scrolled-glass {
  padding: 0.85rem 3.2vw;
  background: rgba(248, 246, 241, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 16, 27, 0.08);
}

body.theme-dark-hud .hud-header.scrolled-glass {
  background: rgba(6, 11, 24, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.brand-svg-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0b101b;
  border: 1px solid rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}

.brand-mark:hover .brand-svg-badge {
  transform: rotate(-5deg) scale(1.05);
  border-color: var(--accent-soft);
}

.brand-svg-badge svg,
.brand-svg-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-primary);
  transition: color 0.35s ease;
}

.brand-wordmark span,
.brand-wordmark .brand-ia {
  color: var(--accent);
}

.brand-subtag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-top: 2px;
  transition: color 0.35s ease;
}

body.theme-dark-hud .brand-wordmark {
  color: #f8fafc;
}

body.theme-dark-hud .brand-wordmark span,
body.theme-dark-hud .brand-wordmark .brand-ia {
  color: var(--accent-soft);
}

body.theme-dark-hud .brand-subtag {
  color: #94a3b8;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.52rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 27, 0.08);
  transition: all 0.35s ease;
}

body.theme-dark-hud .hud-nav {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}

.hud-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.2s ease;
}

.hud-nav a:hover {
  color: var(--ink-primary);
}

body.theme-dark-hud .hud-nav a {
  color: #cbd5e1;
}

body.theme-dark-hud .hud-nav a:hover {
  color: #ffffff;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-pure-view {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(11, 16, 27, 0.12);
  color: var(--ink-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-pure-view:hover {
  transform: scale(1.06);
  background: #ffffff;
}

body.theme-dark-hud .btn-pure-view {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.btn-hud-cta {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-hud-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

body.theme-dark-hud .btn-hud-cta {
  background: var(--accent);
}

/* Bottom HUD */
.hud-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 3.2vw;
  pointer-events: none;
}

.hud-bottom-left,
.hud-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-primary);
  background: rgba(248, 246, 241, 0.78);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 27, 0.08);
  pointer-events: auto;
  transition: all 0.35s ease;
}

body.theme-dark-hud .hud-bottom-left,
body.theme-dark-hud .hud-bottom-right {
  color: #e2e8f0;
  background: rgba(10, 17, 32, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

.hud-dot {
  opacity: 0.4;
}

.hud-bottom-center {
  pointer-events: auto;
}

.btn-pill-nexus {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0b101b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease;
}

.btn-pill-nexus:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.scroll-progress-track {
  width: 80px;
  height: 2px;
  background: rgba(11, 16, 27, 0.16);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

body.theme-dark-hud .scroll-progress-track {
  background: rgba(255, 255, 255, 0.2);
}

.scroll-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
}

.scroll-pct {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  min-width: 32px;
  text-align: right;
}

/* ==========================================================================
   3. SCROLLING CHAPTERS
   ========================================================================== */
.scroll-content {
  position: relative;
  z-index: 10;
  transition: opacity 0.4s ease;
}

/* Buttons inside cards */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.68rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-soft);
  background: #0f172a;
}

.btn-ghost {
  background: transparent;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.95rem;
  font-size: 0.83rem;
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: #ffffff;
}

/* Chapter 1: Monumental Daylight Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 5.5rem;
}

.hero-editorial-col {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 1.35rem;
  backdrop-filter: blur(8px);
}

.hero-display-title {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.4vw, 4.45rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #0b101b;
  margin-bottom: 1.35rem;
}

.hero-display-title .accent-line {
  display: block;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.06rem;
  line-height: 1.6;
  color: #1e293b;
  max-width: 50ch;
  margin-bottom: 1.9rem;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn-hero-dark {
  background: #0b101b;
  color: #ffffff;
  padding: 0.88rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 14px 30px rgba(11, 16, 27, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-hero-light {
  background: rgba(255, 255, 255, 0.82);
  color: #0b101b;
  border: 1px solid rgba(11, 16, 27, 0.16);
  padding: 0.88rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-hero-light:hover {
  background: #ffffff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 16, 27, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.hero-metric-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0b101b;
}

.hero-metric-lbl {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  line-height: 1.3;
}

/* Dark Glass Sections over Moving Stage */
.chapter-section {
  padding: 4.5rem 0;
}

.section-header-glass {
  max-width: 68ch;
  margin-bottom: 2.25rem;
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 1.65rem 2rem;
  backdrop-filter: blur(14px);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.7rem;
}

.section-lead {
  color: #cbd5e1;
  font-size: 0.98rem;
}

/* Flagship Cards */
.flagship-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flagship-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  gap: 2.2rem;
  align-items: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.flagship-card--split {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.flagship-card--reverse {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.62rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
}

.tag--live {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.tag--private {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.tag--open {
  color: var(--accent-soft);
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.12);
}

.flagship-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.project-copy-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.94rem;
  color: #cbd5e1;
}

.project-copy-block strong {
  color: #ffffff;
}

.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fisio-media-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 1rem;
  align-items: center;
}

.mockup-frame {
  background: #030712;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 0.45rem;
}

.mockup-frame img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Lite YouTube Facade */
.yt-facade {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #020617;
}

.yt-facade--16x9 {
  aspect-ratio: 16 / 9;
}

.yt-facade--9x16 {
  aspect-ratio: 9 / 16;
  max-width: 230px;
  margin-inline: auto;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.75), rgba(3, 7, 18, 0.2));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.yt-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.yt-play-label {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-strong);
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
}

.finanzas-extra {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.9rem;
  padding: 0.7rem 0.95rem;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
}

.finanzas-extra img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
}

.finanzas-extra p {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Interactive 3D Solar Simulator Box */
.solar-3d-shell {
  background: #060b16;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solar-3d-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.solar-3d-canvas {
  width: 100%;
  height: 310px;
  position: relative;
  cursor: grab;
}

.solar-3d-canvas:active {
  cursor: grabbing;
}

.solar-3d-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-dark);
}

.solar-control-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.solar-control-item label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
}

.solar-control-item input[type="range"] {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
}

.solar-3d-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.95rem 0.65rem;
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.73rem;
  color: #94a3b8;
}

.btn-auto-sun {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-auto-sun.is-playing {
  background: #f59e0b;
  color: #0b101b;
}

/* Filter Bar & Open Source Tools Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  background: var(--dark-card);
  color: #cbd5e1;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(14px);
}

.tool-card.is-hidden {
  display: none;
}

.mini-ui {
  background: #030712;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.mini-ui-top {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.69rem;
}

.mini-ui-line {
  margin-bottom: 0.25rem;
}

.mini-ui-highlight {
  color: #34d399;
}

.mini-ui-accent {
  color: var(--accent-soft);
}

.stamp-preview-paper {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin: 0.2rem 0 0.55rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.stamp-preview-paper img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0.45rem auto 0.25rem;
}

.telegram-preview-frame {
  background: #0b1324;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.45rem;
  margin: 0.2rem 0 0.55rem;
}

.telegram-preview-frame img {
  width: auto;
  max-width: 100%;
  max-height: 290px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

.tool-benefit {
  font-size: 0.85rem;
  color: #f1f5f9;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-left: 3px solid #60a5fa;
  padding: 0.6rem 0.85rem;
  border-radius: 0 8px 8px 0;
}

.tool-benefit strong {
  color: #60a5fa;
  font-weight: 700;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-dark);
}

/* Capabilities & Training */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.capability-item {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 1.55rem;
  backdrop-filter: blur(14px);
}

.capability-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.capability-item h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.capability-item p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}

.capability-io {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #93c5fd;
  background: #030712;
  border: 1px solid var(--border-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.training-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.75rem;
}

.training-card,
.honesty-note,
.cta-closing-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 2rem;
  color: #e2e8f0;
  backdrop-filter: blur(14px);
}

.cta-closing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 50px rgba(3, 7, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-closing-card h3 {
  font-family: var(--font-display);
  color: #ffffff;
}

.cta-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

/* Soluciones por Sector */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.sector-card {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 1.6rem;
  color: #e2e8f0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 18px 36px rgba(3, 7, 18, 0.45);
}

.sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
  margin-top: 0.75rem;
  margin-bottom: 0.45rem;
}

.sector-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.sector-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sector-outcomes li {
  font-size: 0.83rem;
  color: #e2e8f0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.sector-outcomes li::before {
  content: "✓";
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
}

.sector-card-footer {
  padding-top: 0.5rem;
}

/* Botón WhatsApp Business */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #10b981;
  color: #032219;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.68rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sectors-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.training-card h3,
.honesty-note h3 {
  font-family: var(--font-display);
  color: #ffffff;
}

.training-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.2rem 0 1.65rem;
}

.training-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: #cbd5e1;
}

.training-list li::before {
  content: "→";
  color: var(--accent-soft);
  font-weight: 700;
}

.honesty-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.honesty-signature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

.signature-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #030712;
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Clean Footer (Fixes crushed/duplicate logo) */
.site-footer {
  background: rgba(3, 7, 18, 0.94);
  border-top: 1px solid var(--border-dark);
  padding: 2.75rem 0 5.5rem;
  color: #cbd5e1;
  backdrop-filter: blur(14px);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
}

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

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.footer-brand-name span {
  color: var(--accent-soft);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Native Modal Dialogs + Modern Web Guidance Scroll Containment */
dialog:modal {
  margin: auto;
  width: min(520px, 92vw);
  max-height: 90dvh;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 0;
  overscroll-behavior: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-inner {
  padding: 1.65rem;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-dark);
}

.dialog-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.dialog-close {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 0.68rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.84rem;
  margin: 0.5rem 0 0.85rem;
}

.form-status.is-success {
  color: #34d399;
}

.form-status.is-error {
  color: #f87171;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dark);
}

@media (max-width: 960px) {
  .flagship-card--split,
  .flagship-card--reverse,
  .tools-grid,
  .capabilities-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .fisio-media-combo {
    grid-template-columns: 1fr;
  }

  .solar-3d-controls {
    grid-template-columns: 1fr;
  }

  .hud-nav,
  .hud-bottom-left {
    display: none;
  }
}
