/* ==========================================================================
   KAPTA STANDS - ULTRA-PREMIUM AESTHETICS & MOTION SYSTEM
   Crafted for luxury exhibition stand architecture
   ========================================================================== */

:root {
  --color-bg-base: #0c0d10;
  --color-bg-deep: #060709;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  /* Kapta Brand Palette */
  --color-orange-brand: #fa7701;
  --color-orange-bright: #ff8a1f;
  --color-orange-glow: rgba(250, 119, 1, 0.35);
  --color-orange-soft: rgba(250, 119, 1, 0.12);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #c2c5cf;
  --text-tertiary: #848794;
  --text-dimmed: #565863;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout Spacing */
  --header-height: 90px;
  --container-max: 1540px;
  --side-padding: clamp(24px, 5vw, 80px);
}

/* ==========================================================================
   AMBIENT BACKGROUND & CURSOR TORCH
   ========================================================================== */
body {
  background-color: var(--color-bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   LUXURY ANIMATED PRELOADER (Obsidian & Amber Gold Glassmorphism)
   Guarantees 60fps buttery playback for the hero video & progressive loading
   ========================================================================== */
.kapta-luxury-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 40%, #171b26 0%, #0c0e14 55%, #06070a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.75s ease;
}

.kapta-luxury-loader.is-dismissed {
  opacity: 0 !important;
  transform: scale(1.05) !important;
  filter: blur(14px) !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.loader-ambient-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 119, 1, 0.16) 0%, rgba(250, 119, 1, 0.04) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: loaderPulseGlow 3s infinite ease-in-out;
}

@keyframes loaderPulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.loader-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  width: 85%;
}

.loader-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.loader-logo-img {
  height: clamp(34px, 4vw, 44px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
  animation: loaderLogoBreath 2.4s infinite ease-in-out;
}

@keyframes loaderLogoBreath {
  0%, 100% {
    opacity: 0.88;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 26px rgba(250, 119, 1, 0.5));
  }
}

.loader-spark-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(250, 119, 1, 0.35);
  animation: loaderHaloSpin 14s infinite linear;
  pointer-events: none;
}

@keyframes loaderHaloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loader-track-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: visible;
  margin-bottom: 14px;
}

.loader-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fa7701 0%, #ff9e3b 80%, #ffffff 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(250, 119, 1, 0.8), 0 0 24px rgba(250, 119, 1, 0.4);
  transition: width 0.15s ease-out;
}

.loader-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-body);
}

.loader-status-text {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.3s ease;
}

.loader-counter-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-orange-brand);
  letter-spacing: 0.02em;
}

/* Standard Native Cursor (Custom cursor and flashlight removed per user request) */
.mouse-torch,
.custom-cursor-dot,
.custom-cursor-ring {
  display: none !important;
}

/* ==========================================================================
   MOBILE NATIVE FOUNDATIONS & POLISH (Emil Kowalski / iOS Native Standards)
   ========================================================================== */
html {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button, a, [role="button"], .chip-expo, .chip-size, .chip-type, .opt-btn, .formation-card, .formation-mode-btn, .panel-hotspot, .mobile-gallery-card, .dock-item {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

button, [role="button"], .formation-mode-btn, .btn-nav-quote, .btn-subgallery-back, .mobile-menu-toggle, .dock-item {
  user-select: none;
  -webkit-user-select: none;
}

/* Haptic-like press microinteractions on touch */
.btn-nav-quote:active,
.btn-subgallery-back:active,
.btn-faq-quote:active,
.mobile-gallery-card:active,
.dock-item:active,
.opt-btn:active,
.mobile-nav-item:active,
.btn-drawer-quote:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s ease-out;
}

/* iOS Safari auto-zoom prevention: min 16px font size on inputs */
@media (pointer: coarse), (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   MOBILE HAMBURGER TOGGLE BUTTON
   Minimalist 2-line glassmorphic pill with magnetic feel
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  z-index: 102;
}

.mobile-menu-toggle:active {
  transform: scale(0.94);
  background: rgba(250, 119, 1, 0.15);
  border-color: rgba(250, 119, 1, 0.4);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background-color 0.25s ease;
}

/* Active hamburger turns into close X */
.mobile-menu-toggle.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  background-color: var(--color-orange-brand);
}

.mobile-menu-toggle.is-open .hamburger-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
  background-color: var(--color-orange-brand);
}

/* ==========================================================================
   MOBILE FULLSCREEN NAVIGATION DRAWER (Obsidian Glassmorphism)
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.4s ease;
}

.mobile-nav-drawer.active {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  height: 100dvh;
  background: radial-gradient(circle at 100% 0%, #171a24 0%, #0c0e14 65%, #07080b 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)) 24px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9da3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-drawer-close:active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(0.94);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item:active {
  background: rgba(250, 119, 1, 0.12);
  border-color: rgba(250, 119, 1, 0.35);
}

.mobile-nav-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-orange-brand);
  letter-spacing: 0.05em;
  width: 28px;
  opacity: 0.9;
}

.mobile-nav-text {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #e2e8f0;
}

.mobile-nav-arrow {
  color: #64748b;
  font-size: 1.1rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-nav-item:active .mobile-nav-arrow {
  transform: translateX(4px);
  color: var(--color-orange-brand);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.btn-drawer-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff902b 0%, #fa7701 100%);
  color: #0c0d10;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(250, 119, 1, 0.35);
}

.mobile-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
}

.mobile-contact-pill.whatsapp {
  border-color: rgba(37, 211, 102, 0.2);
  color: #e2e8f0;
}

/* ==========================================================================
   FLOATING MOBILE QUICK DOCK (Apple iOS Style)
   ========================================================================== */
.mobile-floating-dock {
  display: none;
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: rgba(14, 16, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px rgba(250, 119, 1, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  padding: 6px 12px;
  align-items: center;
  gap: 8px;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

body.subgallery-active .mobile-floating-dock,
body.cotizador-mode .mobile-floating-dock,
body.somos-mode .mobile-floating-dock {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 20px) !important;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 14px;
  min-width: 58px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-icon {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dock-label {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.dock-item.dock-item-highlight {
  position: relative;
  background: linear-gradient(135deg, #ff9431 0%, #fa7701 100%);
  color: #0c0d10;
  box-shadow: 0 4px 16px rgba(250, 119, 1, 0.45);
  padding: 7px 18px;
}

.dock-item.dock-item-highlight .dock-label {
  color: #0c0d10;
  font-weight: 700;
}

.dock-glow-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(250, 119, 1, 0.6);
  animation: pulseDot 2.2s infinite ease-in-out;
  pointer-events: none;
}

/* ==========================================================================
   MOBILE TACTILE GALLERY CARDS
   ========================================================================== */
.mobile-gallery-selector-container {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 500px;
  margin: 20px auto 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 20;
}

.mobile-gallery-card {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.mobile-gallery-card:active {
  background: rgba(250, 119, 1, 0.08);
  border-color: rgba(250, 119, 1, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(250, 119, 1, 0.2);
}

.m-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.m-card-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(250, 119, 1, 0.15);
  border: 1px solid rgba(250, 119, 1, 0.35);
  color: var(--color-orange-brand);
}

.m-card-pill.custom {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.m-card-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.mobile-gallery-card:active .m-card-arrow {
  transform: translateX(4px);
  color: var(--color-orange-brand);
}

.m-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.m-card-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

.m-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-orange-brand);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-padding);
  z-index: 1000;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  transform: translateY(-20px);
}

.site-header.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Brand Logo in Nav - Starts invisible, morphs in smoothly on scroll */
.brand-logo-nav {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  user-select: none;
  opacity: 0; /* Hidden while viewing Hero, reveals on scroll */
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.brand-nav-img {
  height: clamp(30px, 2.4vw, 38px);
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.35s ease;
}

.brand-logo-nav .brand-k {
  color: var(--color-orange-brand);
  display: inline-block;
  text-shadow: 0 0 16px rgba(250, 119, 1, 0.4);
}

.brand-logo-nav .brand-rest {
  color: #ffffff;
  display: inline-block;
  margin-left: 0.5px;
  font-weight: 700;
}

/* Nav Right Cluster: Quote CTA + Menu Links */
.nav-cluster-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin-left: auto;
}

/* Top Nav Quote Button: compact, tighter pill, shifted right away from arm */
.btn-nav-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--color-orange-brand);
  color: #ffffff;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(250, 119, 1, 0.3);
  transition: all 0.3s var(--ease-out-expo);
  margin-left: clamp(20px, 3.5vw, 55px); /* Shifted right, well clear of the arm */
}

.btn-nav-quote:hover {
  background: #ff8512;
  box-shadow: 0 5px 20px rgba(250, 119, 1, 0.5);
  transform: translateY(-2px);
}

.nav-quote-arrow {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.btn-nav-quote:hover .nav-quote-arrow {
  transform: translateX(4px);
}

.site-header .nav-text-gallery {
  display: none;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 500;
  color: #c9cdd8;
  text-decoration: none;
  position: relative;
  padding: 8px 4px;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-orange-brand);
  border-radius: 2px;
  transition: width 0.35s var(--ease-out-expo);
  box-shadow: 0 0 8px var(--color-orange-glow);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-base);
}

/* Video Stage */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center; /* Balances hand, bulb and typography perfectly */
  opacity: 1; /* Immediately visible and sharp */
  filter: contrast(1.05) brightness(1.02);
  transition: opacity 0.5s ease;
}

/* Master Storytelling Sequence Video (Videos 1 to 6) */
.story-seq-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center; /* 100% pixel-perfect match with hero video hand/bulb */
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  filter: contrast(1.05) brightness(1.02);
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.story-seq-video.active {
  opacity: 1;
}

/* Hand Bulb Glow Contour Image (Active during sequential phrases, filament off) */
.hand-contour-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center; /* 100% pixel-perfect match with hero video hand/bulb */
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  filter: contrast(1.05) brightness(1.02);
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.hand-contour-img.active {
  opacity: 1;
}

/* When video sequence is active, soften hero overlays for absolute crystal-clear visuals */
.hero-section.sequence-mode .hero-video,
.hero-section.sequence-mode .hand-contour-img {
  opacity: 0 !important;
}

.hero-section.sequence-mode .hero-vignette-left,
.hero-section.sequence-mode .hero-vignette-top,
.hero-section.sequence-mode .hero-vignette-bottom,
.hero-section.sequence-mode .hero-electric-glow,
.hero-section.sequence-mode #spark-canvas {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

/* Overlays start invisible so the video is 100% visible and in the foreground */
.hero-vignette-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 48%;
  background: linear-gradient(
    90deg,
    rgba(12, 13, 16, 0.6) 0%,
    rgba(12, 13, 16, 0.3) 60%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Once UI reveals, soft vignette activates for pristine text contrast without burying the video */
.hero-vignette-left.active {
  opacity: 1;
}

.hero-vignette-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(12, 13, 16, 0.8) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-vignette-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.6) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Ambient Electric Glow Pulse synchronized with spark */
.hero-electric-glow {
  position: absolute;
  top: 45%;
  right: 28%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 119, 1, 0.45) 0%, rgba(250, 119, 1, 0.15) 45%, transparent 70%);
  transform: translate(50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  filter: blur(24px);
  mix-blend-mode: screen;
  transition: opacity 0.12s ease, transform 0.18s ease;
}

.hero-electric-glow.active {
  opacity: 1;
  transform: translate(50%, -50%) scale(1.3);
}

/* Canvas Spark Particle Overlay */
#spark-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Hero Content Area */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-story-scroll-track {
  position: relative;
  width: 100%;
}

.hero-content {
  position: relative;
  max-width: 720px;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-step-1 {
  position: relative;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  margin-left: clamp(35px, 4.5vw, 85px); /* Shifted to the right closer to the hand per user request */
}

.hero-step-2 {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  width: 100%;
}

/* ==========================================================================
   HERO MAIN BRAND (Huge Kapta Logo in body, morphs to nav on scroll)
   ========================================================================== */
.hero-main-brand {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 8.5vw, 8.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: clamp(28px, 4.5vh, 46px); /* More breathing room from text below */
  user-select: none;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  display: inline-block;
}

.brand-hero-img {
  height: clamp(4.2rem, 7.8vw, 7.6rem);
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-huge-k {
  color: var(--color-orange-brand);
  display: inline-block;
  text-shadow: 0 0 35px rgba(250, 119, 1, 0.45);
}

.brand-huge-apta {
  color: #ffffff;
  display: inline-block;
  margin-left: 1px;
}

/* ==========================================================================
   STAGE 1: EXACT REFERENCE ASYMMETRIC STAGGERED COMPOSITION
   ========================================================================== */
.hero-text-composition {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  margin-bottom: 24px;
}

.typo-row {
  display: flex;
  align-items: baseline;
  line-height: 1.22;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

/* Row 1: "enfocate en" */
.row-1 .text-enfocate {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 400;
  color: #b8bccb;
  letter-spacing: -0.01em;
}

/* Row 2: Indented "Crecer tu negocio" */
.row-2 {
  padding-left: clamp(22px, 3.8vw, 46px);
}

.row-2 .word-crecer {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.3vw, 4.1rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.row-2 .text-tu-negocio {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  font-weight: 400;
  color: #8e93a4;
  margin-left: 8px;
  letter-spacing: -0.02em;
}

/* Row 3: Further Indented "en la EXPO" */
.row-3 {
  padding-left: clamp(65px, 9.8vw, 120px);
}

.row-3 .text-en-la {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  font-weight: 400;
  color: #8e93a4;
  letter-spacing: -0.02em;
}

.row-3 .word-expo {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.6vw, 4.4rem);
  font-weight: 800;
  color: var(--color-orange-brand);
  margin-left: 8px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 28px rgba(250, 119, 1, 0.6);
}

/* Row 4: Further Indented "de tu STAND" */
.row-4 {
  padding-left: clamp(95px, 14vw, 175px);
}

.row-4 .text-de-tu {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  font-weight: 400;
  color: #8e93a4;
  letter-spacing: -0.02em;
}

.row-4 .word-stand {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.6vw, 4.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-left: 8px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

/* Row 5: "nosotros nos encargamos" */
.row-5 {
  padding-left: clamp(48px, 7.5vw, 95px);
  margin-top: 6px;
}

.row-5 .phrase-nosotros {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  font-weight: 600;
  color: var(--color-orange-brand);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(250, 119, 1, 0.45);
}

/* ==========================================================================
   PURE SCROLL CUE: No frames, no rectangle boxes
   ========================================================================== */
.hero-scroll-cue-pure {
  margin-top: 32px;
  padding-left: clamp(135px, 18.5vw, 220px); /* Shifted further to the right per user request */
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.scroll-pure-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.scroll-pure-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: #d6d9e5;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.scroll-pure-link:hover .scroll-pure-text {
  color: var(--color-orange-brand);
}

.scroll-pure-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mouse-clean-pill {
  width: 18px;
  height: 28px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  position: relative;
  display: flex;
  justify-content: center;
  background: transparent;
  transition: border-color 0.3s ease;
}

.scroll-pure-link:hover .mouse-clean-pill {
  border-color: var(--color-orange-brand);
}

.mouse-clean-wheel {
  position: absolute;
  top: 4px;
  width: 2.5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 2px;
  animation: mouseWheelClean 1.8s infinite ease-in-out;
}

.scroll-pure-link:hover .mouse-clean-wheel {
  background-color: var(--color-orange-brand);
  box-shadow: 0 0 6px var(--color-orange-glow);
}

@keyframes mouseWheelClean {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(11px);
  }
}

/* ==========================================================================
   STAGE 2: SCROLL STORYTELLING - SEQUENTIAL PHRASE FLOW & IDEA CLIMAX
   ========================================================================== */
.story-sequence-flow {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
}

.story-seq-item {
  will-change: transform, opacity, filter;
}

/* Phrase 1: "Escuchamos lo que necesitas," */
.seq-item-1 .story-seq-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  font-weight: 300;
  color: #9da2b3;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 10px;
}

/* Phrase 2: "entendemos tus necesidades" */
.seq-item-2 {
  padding-left: clamp(12px, 2.2vw, 28px); /* Asymmetric indentation */
}

.seq-item-2 .story-seq-text {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  font-weight: 500;
  color: #dbe0ee;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Phrase 3: "y generamos la mejor..." */
.seq-item-3 {
  padding-left: clamp(20px, 3.8vw, 48px); /* Further staggered */
}

.seq-item-3 .story-seq-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 24px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Phrase 4 / Climax: "Idea" in handwritten script centered */
.seq-item-idea {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.idea-script-container {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.idea-script-text {
  font-family: 'Caveat', 'Kalam', cursive;
  font-size: clamp(5.5rem, 10.5vw, 9.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: 0.02em;
  display: inline-block;
  transform: rotate(-3deg);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.65), 0 0 70px rgba(250, 119, 1, 0.5);
  user-select: none;
}

.idea-subtitle-text {
  font-family: 'Caveat', 'Kalam', cursive;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-orange-brand, #fa7701);
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-block;
  transform: rotate(-2deg);
  text-shadow: 0 0 25px rgba(250, 119, 1, 0.75), 0 0 50px rgba(250, 119, 1, 0.4);
  user-select: none;
  opacity: 0;
  margin-top: 6px;
  will-change: transform, opacity, filter;
}

/* ==========================================================================
   MASTER VIDEO SEQUENCE STORYTELLING NARRATIVE OVERLAYS (PURO TEXTO CINEMATOGRÁFICO)
   Sin cajas, sin rectángulos, sin fases: tipografía pura de alta gama sincronizada con el scroll
   ========================================================================== */
/* ==========================================================================
   MASTER VIDEO SEQUENCE STORYTELLING NARRATIVE OVERLAYS (5 ESCENAS SEGÚN M1 - M5)
   Exact position, colors, sizes and phrase staggering matching user reference sheets
   ========================================================================== */
.hero-step-video-narrative {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}

.video-narrative-item {
  position: absolute;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.narrative-phrase {
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* --- ESCENA 1 (m1.png): Mesa de trabajo con plano y tablet (Abajo Izquierda) --- */
.narrative-scene-1 {
  bottom: clamp(24px, 7vh, 60px);
  left: clamp(36px, 7vw, 110px);
  max-width: clamp(340px, 58vw, 820px);
  text-align: left;
}
.narrative-scene-1 .phrase-1 {
  margin-bottom: 12px;
}
.narrative-scene-1 .n1-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.0rem, 3.8vw, 3.3rem);
  font-weight: 700;
  color: #353434;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.85);
}
.narrative-scene-1 .n1-title-sub {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.8rem, 3.4vw, 3.0rem);
  font-weight: 700;
  color: #353434;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.85);
}
.narrative-scene-1 .text-orange-ia {
  color: var(--color-orange-brand, #fa7701);
  font-size: 1.12em;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 18px rgba(250, 119, 1, 0.4);
}
.narrative-scene-1 .n1-desc {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.36;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.65);
}
.narrative-scene-1 .text-orange-exp {
  color: var(--color-orange-brand, #fa7701);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 12px rgba(250, 119, 1, 0.35);
}

/* --- ESCENA 2 (m2.png): Logística y Planeación (Arriba Derecha) --- */
.narrative-scene-2 {
  top: clamp(35px, 14vh, 130px);
  right: clamp(24px, 8vw, 120px);
  max-width: clamp(320px, 48vw, 650px);
  text-align: right;
}
.narrative-scene-2 .phrase-1 {
  margin-bottom: 8px;
}
.narrative-scene-2 .n2-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.2rem, 4.0vw, 3.4rem);
  font-weight: 700;
  color: var(--color-orange-brand, #fa7701);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 18px rgba(250, 119, 1, 0.35);
}
.narrative-scene-2 .n2-body {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 600;
  color: #111111;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.8);
}

/* --- ESCENA 3 (m3.png): Montaje con Trabajadores (Arriba Derecha/Centro) --- */
.narrative-scene-3 {
  top: clamp(24px, 8vh, 80px);
  right: clamp(20px, 8vw, 140px);
  max-width: clamp(340px, 58vw, 800px);
  text-align: right;
}
.narrative-scene-3 .phrase-1 {
  margin-bottom: 8px;
}
.narrative-scene-3 .phrase-2 {
  margin-bottom: 4px;
}
.narrative-scene-3 .n3-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  font-weight: 800;
  color: #262626;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.8);
}
.narrative-scene-3 .text-orange-bold {
  color: var(--color-orange-brand, #fa7701);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 18px rgba(250, 119, 1, 0.35);
}
.narrative-scene-3 .n3-sub {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.2rem, 2.0vw, 1.7rem);
  font-weight: 700;
  color: #262626;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.8);
}
.narrative-scene-3 .n3-highlight {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.2rem, 2.0vw, 1.7rem);
  font-weight: 700;
  color: var(--color-orange-brand, #fa7701);
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(250, 119, 1, 0.35);
}

/* --- ESCENA 4 (m4.png): Último día de montaje (Izquierda Centrado) --- */
.narrative-scene-4 {
  top: clamp(35px, 14vh, 130px);
  left: clamp(40px, 14vw, 210px);
  max-width: clamp(300px, 40vw, 520px);
  text-align: center;
}
.narrative-scene-4 .phrase-1 {
  margin-bottom: 12px;
}
.narrative-scene-4 .n4-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  font-weight: 800;
  color: #333333;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.8);
}
.narrative-scene-4 .n4-title-orange {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.4rem, 4.3vw, 3.8rem);
  font-weight: 800;
  color: var(--color-orange-brand, #fa7701);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 18px rgba(250, 119, 1, 0.35);
}
.narrative-scene-4 .n4-body {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #333333;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.8);
}
.narrative-scene-4 .text-orange-bold {
  color: var(--color-orange-brand, #fa7701);
  font-weight: 800;
}

/* --- ESCENA 5 (m5.png): Comienza la EXPO (Arriba Izquierda) --- */
.narrative-scene-5 {
  top: clamp(30px, 9vh, 85px);
  left: clamp(40px, 11vw, 170px);
  max-width: clamp(320px, 48vw, 680px);
  text-align: left;
}
.narrative-scene-5 .phrase-1 {
  margin-bottom: 8px;
}
.narrative-scene-5 .n5-lead {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.0rem, 3.6vw, 3.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.75);
}
.narrative-scene-5 .n5-expo {
  font-weight: 800;
  font-size: 1.08em;
  letter-spacing: 0.02em;
}
.narrative-scene-5 .n5-sub {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  font-weight: 700;
  color: var(--color-orange-brand, #fa7701);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(250, 119, 1, 0.55);
}
.narrative-scene-5 .n5-climax {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  font-weight: 800;
  color: var(--color-orange-brand, #fa7701);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(250, 119, 1, 0.65);
}

/* Mobile responsive alignment */
@media (max-width: 768px) {
  .hero-step-video-narrative {
    top: auto;
    bottom: 16%;
    transform: none;
  }

  .video-narrative-item,
  .video-narrative-card {
    top: auto;
    bottom: 0;
    left: 5%;
    right: 5%;
    width: 90%;
    transform: none;
    padding: 0;
    background: transparent !important;
    border: none !important;
  }

  .narrative-lead {
    font-size: clamp(1.35rem, 5.4vw, 1.85rem);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .narrative-sub {
    font-size: clamp(0.95rem, 4.0vw, 1.15rem);
    line-height: 1.4;
  }

  .narrative-lead-climax {
    font-size: clamp(2.1rem, 7.8vw, 3.0rem);
  }

  .narrative-sub-climax {
    font-size: clamp(1.6rem, 6.2vw, 2.3rem);
  }
}

/* ==========================================================================
   STORYTELLING TRANSITION & FUTURE SECTIONS PREVIEW
   ========================================================================== */
.story-preview-section {
  position: relative;
  min-height: 100vh;
  background-color: #08090c;
  padding: 120px var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.story-container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.story-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px auto;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(250, 119, 1, 0.08);
  border: 1px solid rgba(250, 119, 1, 0.25);
  color: var(--color-orange-brand);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.story-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Grid for the next stages */
.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.story-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange-brand), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(250, 119, 1, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(250, 119, 1, 0.08);
}

.story-card:hover::before {
  opacity: 1;
}

.card-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange-brand);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-video {
    object-position: 80% center;
  }
  .hero-vignette-left {
    width: 75%;
    background: linear-gradient(
      90deg,
      rgba(12, 13, 16, 0.96) 0%,
      rgba(12, 13, 16, 0.8) 55%,
      rgba(12, 13, 16, 0.35) 85%,
      rgba(12, 13, 16, 0) 100%
    );
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --side-padding: 16px;
  }

  /* Safe Area Notch Padding for Header */
  .site-header {
    padding-top: max(8px, env(safe-area-inset-top, 8px));
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
  }

  /* Mobile Navigation Header Layout */
  .nav-menu {
    display: none !important; /* Replaced by Luxury Fullscreen Drawer */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-floating-dock {
    display: flex;
  }

  .mobile-gallery-selector-container {
    display: flex;
  }

  .btn-nav-quote {
    padding: 6px 14px;
    font-size: 0.76rem;
    margin-left: 8px;
    white-space: nowrap;
  }

  .brand-nav-img {
    height: 25px;
  }

  /* Hero Section Mobile Framing & Contrast */
  .hero-video {
    object-position: 78% center !important;
    opacity: 0.78 !important;
  }

  .hero-vignette-left {
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(12, 13, 16, 0.75) 0%,
      rgba(12, 13, 16, 0.88) 45%,
      rgba(12, 13, 16, 0.96) 100%
    );
  }

  .hero-content {
    max-width: 100%;
    padding-top: calc(70px + env(safe-area-inset-top, 0px));
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Hero Step 1 Typography Indentations & Sizing for Mobile */
  .row-1 .text-enfocate {
    font-size: 1.15rem;
  }

  .row-2 {
    padding-left: 8px !important;
  }
  .row-2 .word-crecer {
    font-size: clamp(2.05rem, 7.8vw, 2.7rem) !important;
  }
  .row-2 .text-tu-negocio {
    font-size: clamp(1.35rem, 5vw, 1.8rem) !important;
    margin-left: 6px;
  }

  .row-3 {
    padding-left: 16px !important;
  }
  .row-3 .text-en-la {
    font-size: clamp(1.35rem, 4.8vw, 1.7rem) !important;
  }
  .row-3 .word-expo {
    font-size: clamp(2.2rem, 8.2vw, 2.9rem) !important;
    margin-left: 6px;
  }

  .row-4 {
    padding-left: 22px !important;
  }
  .row-4 .text-de-tu {
    font-size: clamp(1.35rem, 4.8vw, 1.7rem) !important;
  }
  .row-4 .word-stand {
    font-size: clamp(2.2rem, 8.2vw, 2.9rem) !important;
    margin-left: 6px;
  }

  .row-5 {
    padding-left: 10px !important;
    margin-top: 4px;
  }
  .row-5 .phrase-nosotros {
    font-size: clamp(1.4rem, 5.2vw, 1.9rem) !important;
  }

  .hero-scroll-cue-pure {
    padding-left: 10px !important;
    margin-top: 22px;
  }

  /* Stage 2 Flow & Idea on Mobile */
  .story-sequence-flow {
    padding: 0 12px;
  }

  .seq-item-1 .story-seq-text {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  }

  .seq-item-2 {
    padding-left: 6px !important;
  }
  .seq-item-2 .story-seq-text {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
  }

  .seq-item-3 {
    padding-left: 12px !important;
  }
  .seq-item-3 .story-seq-text {
    font-size: clamp(1.45rem, 5.8vw, 1.95rem);
    margin-bottom: 16px;
  }

  .seq-item-idea {
    margin-top: 6px;
    padding-top: 14px;
  }

  .seq-idea-script {
    font-size: clamp(3.2rem, 14vw, 4.5rem) !important;
  }

  /* Subgallery Header on Mobile */
  .subgallery-nav-bar {
    padding: max(12px, env(safe-area-inset-top, 12px)) 16px 12px 16px;
  }

  .btn-subgallery-back {
    padding: 7px 16px;
    font-size: 0.82rem;
  }

  .formation-dock-container {
    bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    transform: translateX(-50%) scale(0.92);
  }

  .formation-footer-bar {
    bottom: max(60px, calc(45px + env(safe-area-inset-bottom, 0px)));
    font-size: 0.72rem;
  }

  .formation-hint-text {
    display: none; /* Hide clutter on mobile screen */
  }

  /* Focused modal on mobile */
  .formation-focus-card {
    max-width: 90vw !important;
    max-height: 75vh !important;
  }

  /* Cotizador Section on Mobile */
  .cotizador-section {
    padding-top: calc(85px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hero-cta-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Botón "Quiero mi stand" en celular: centrado y accesible debajo de las tarjetas */
  .btn-gallery-discreet-quote {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 22px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    width: min(92%, 360px) !important;
    padding: 13px 24px !important;
    font-size: 0.95rem !important;
    background: linear-gradient(135deg, rgba(250, 119, 1, 0.25) 0%, rgba(14, 16, 22, 0.92) 100%) !important;
    border-color: var(--color-orange-brand) !important;
    box-shadow: 0 6px 25px rgba(250, 119, 1, 0.4) !important;
  }
}

/* ==========================================================================
   GALERÍA SECTION & WHITE CURTAIN TRANSITION
   ========================================================================== */
.gallery-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
  background-color: var(--color-bg-base);
}

/* ==========================================================================
   TRANSICIÓN PREMIUM FONDO GRIS OXFORD & CONTADORES CIRCULARES
   ========================================================================== */
.gallery-white-curtain {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 25%, #252b36 0%, #1c2029 60%, #14171d 100%);
  color: #ffffff;
  padding: clamp(60px, 8vh, 90px) clamp(20px, 4vw, 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.75), 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 12;
  overflow: hidden;
}

.white-curtain-container {
  max-width: 1120px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.white-curtain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 119, 1, 0.12);
  border: 1px solid rgba(250, 119, 1, 0.35);
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.white-curtain-badge .badge-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-orange-brand);
  text-transform: uppercase;
}

.white-curtain-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.15);
  margin-bottom: 14px;
}

.white-curtain-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vh, 44px);
}

/* Hilera de Contadores Circulares con Sombras Obscuras */
.stats-circles-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 44px);
  width: 100%;
  max-width: 1020px;
  margin: 0 auto clamp(24px, 3.5vh, 42px);
}

@media (max-width: 900px) {
  .stats-circles-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 520px;
  }
}

@media (max-width: 460px) {
  .stats-circles-row {
    gap: 18px;
  }
}

.stat-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-circle-card {
  position: relative;
  width: clamp(135px, 14vw, 170px);
  height: clamp(135px, 14vw, 170px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #2a313d 0%, #1e222a 60%, #14171d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 22px 45px -10px rgba(0, 0, 0, 0.9),
    0 10px 20px -5px rgba(0, 0, 0, 0.7),
    inset 0 2px 3px rgba(255, 255, 255, 0.1),
    inset 0 -5px 12px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.82);
  will-change: transform, opacity;
  transition: box-shadow 0.35s ease;
}

.stat-circle-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 28px 55px -10px rgba(0, 0, 0, 0.95),
    0 12px 24px -5px rgba(250, 119, 1, 0.3),
    inset 0 2px 3px rgba(255, 255, 255, 0.15),
    inset 0 -5px 12px rgba(0, 0, 0, 0.85);
}

.stat-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-circle-track {
  fill: none;
  stroke: #252b36;
  stroke-width: 9.5px;
}

.stat-circle-progress {
  fill: none;
  stroke: url(#statOrangeGrad);
  stroke-width: 9.5px;
  stroke-linecap: round;
  stroke-dasharray: 414.69;
  stroke-dashoffset: 414.69;
  filter: drop-shadow(0 0 8px rgba(250, 119, 1, 0.7));
}

.stat-circle-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.stat-number-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-number-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.35vw, 2.35rem);
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.stat-number-prefix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  color: var(--color-orange-brand, #fa7701);
  margin-right: 2px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(250, 119, 1, 0.5);
}

.stat-number-unit {
  font-family: var(--font-body);
  font-size: clamp(0.74rem, 0.9vw, 0.85rem);
  font-weight: 600;
  color: #8b95a5;
  margin-top: 5px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.stat-circle-info {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.stat-circle-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  font-weight: 800;
  color: var(--color-orange-brand, #fa7701);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(250, 119, 1, 0.45);
}

.stat-circle-sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  color: #cbd5e1;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Instrucción interactiva con fondo glass dark */
.white-curtain-instruction {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.instruction-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-orange-brand);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-orange-glow);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.instruction-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Interactive Video Stage */
.gallery-interactive-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  background-color: #0c0d0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
}

.gallery-stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 16:9 Viewport strictly aligned with canvas coordinates across all screen sizes */
.gallery-canvas-viewport {
  position: relative;
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  max-width: calc(100vh * (16 / 9));
  max-height: 100vh;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

/* 100% uncropped camera view: shows full panels of Sistema Modular and Custom without cutting off */
.galeria-interactive-canvas,
.galeria-interactive-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
  filter: contrast(1.03) brightness(1.02);
}

/* ==========================================================================
   LETRERO GALERÍA FLOTANTE (Puro texto, responsivo al mouse, arriba al centro)
   ========================================================================== */
.gallery-title-sign {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  text-align: center;
}

.gallery-sign-text {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.2);
  display: block;
}

.gallery-portfolio-badge,
.btn-gallery-discreet-quote {
  display: none !important;
  pointer-events: none !important;
}

.btn-gallery-discreet-quote:hover .discreet-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   INTERACTIVE PANELS: PURE GLOW HOTSPOTS OVER MODULAR & CUSTOM SCREENS
   "solo deja el brillo" - No orange borders, no duplicate text
   ========================================================================== */
.gallery-hotspots-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.panel-hotspot {
  position: absolute;
  top: 6.5%;
  height: 77.5%;
  width: 28.5%;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  text-decoration: none;
}

.panel-hotspot.panel-modular {
  left: 17.5%;
}

.panel-hotspot.panel-custom {
  left: 54%;
}

/* Pure luminous shimmer & glow following cursor inside screen */
.hotspot-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0;
  background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 175, 75, 0.26) 0%, rgba(250, 119, 1, 0.08) 45%, transparent 75%);
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.panel-hotspot:hover .hotspot-shimmer {
  opacity: 1;
}

/* ==========================================================================
   SUB-GALLERIES CINEMATIC FULLSCREEN VIEW & 6-CARD FISHEYE CAROUSEL
   ========================================================================== */
.subgallery-view-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 15%, #181b24 0%, #090a0d 75%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985) translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.subgallery-view-container.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Completely hide outer site-header when subgallery is open to prevent overlapping logos or click blockers */
body.subgallery-active {
  overflow: hidden !important;
}

body.subgallery-active .site-header {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Sub-gallery Top Bar */
.subgallery-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2vh, 22px) clamp(24px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  z-index: 100;
}

.subgallery-brand-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.brand-subgallery-img {
  height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}

.subgallery-brand-logo .brand-k {
  color: var(--color-orange-brand);
  text-shadow: 0 0 15px var(--color-orange-glow);
}

.subgallery-brand-logo .brand-rest {
  color: #ffffff;
}

.subgallery-nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.subgallery-nav-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .subgallery-nav-title {
    font-size: 0.85rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.btn-subgallery-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  z-index: 101;
  pointer-events: auto !important;
}

.btn-subgallery-back:hover {
  background: rgba(250, 119, 1, 0.22);
  border-color: rgba(250, 119, 1, 0.7);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(250, 119, 1, 0.45);
  transform: translateX(-3px);
}

.btn-subgallery-back .back-arrow-svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-subgallery-back:hover .back-arrow-svg {
  transform: translateX(-4px);
}

/* Sub-gallery Body */
.subgallery-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   FORMATION 3D CAROUSEL (Multi-Mode Formation: Flat / Ring / Tilt)
   3D spatial field with interactive modes, parallax lean, momentum scrub,
   smooth morphing, and focused popover with discreet inside-X button.
   ========================================================================== */
.formation-stage-section {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-stage-section.is-blurred {
  filter: blur(24px) brightness(0.24);
  transform: scale(0.96);
  pointer-events: none;
}

.formation-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  perspective-origin: 50% 50%;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
  /* Smooth edge fade vignette mask */
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.formation-viewport.is-dragging {
  cursor: grabbing;
}

.formation-parallax-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
}

/* 3D Formation Card */
.formation-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform, opacity;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.formation-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.88), 0 0 30px rgba(250, 119, 1, 0.3);
}

.formation-card-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-card:hover .formation-card-inner {
  transform: scale(1.06);
}

.formation-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  filter: contrast(1.04) brightness(0.96);
}

/* Formation Dock: Mode switcher pill (Flat / Tilt / Ring / Gallery) exactly as in reference */
.formation-dock-container {
  position: absolute;
  top: clamp(16px, 2.5vh, 26px);
  right: clamp(20px, 3.5vw, 40px);
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 50;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .formation-dock-container {
    top: auto;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.formation-mode-dock {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 19, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px -15px rgba(0, 0, 0, 0.65);
}

.formation-mode-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.formation-mode-btn:hover {
  color: #ffffff;
}

.formation-mode-btn.active {
  background: #ffffff;
  color: #0a0a0c;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Footer Bar with Hint and Focus Counter */
.formation-footer-bar {
  position: absolute;
  bottom: clamp(14px, 2.5vh, 24px);
  left: clamp(24px, 4vw, 50px);
  right: clamp(24px, 4vw, 50px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 40;
}

.formation-hint-text {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.formation-focus-counter {
  font-family: 'Space Grotesk', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .formation-footer-bar {
    display: none;
  }
}

/* ==========================================================================
   FLUID & PREMIUM FOCUSED VIEW:
   - Original format (uncropped natural proportions)
   - Appropriate generous size
   - Discreet inside-X button
   ========================================================================== */
.formation-focus-modal {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-focus-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.formation-focus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.formation-focus-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-focus-modal.active .formation-focus-container {
  transform: scale(1);
}

.formation-focus-card {
  position: relative;
  max-width: 86vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #090b0e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.95), 0 0 50px rgba(250, 119, 1, 0.25);
}

@media (max-width: 768px) {
  .formation-focus-card {
    max-width: 94vw;
    max-height: 75vh;
    border-radius: 14px;
  }
}

.formation-focus-img {
  max-width: 85vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .formation-focus-img {
    max-width: 92vw;
    max-height: 72vh;
  }
}

/* Discreet X inside the image */
.formation-discreet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  z-index: 10;
  outline: none;
}

.formation-discreet-close .discreet-x-svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.formation-discreet-close:hover {
  background: rgba(250, 119, 1, 0.75);
  border-color: rgba(250, 119, 1, 1);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(250, 119, 1, 0.6);
}

.formation-discreet-close:hover .discreet-x-svg {
  transform: rotate(90deg);
}

/* ==========================================================================
   HIGH-RESOLUTION LIGHTBOX MODAL
   ========================================================================== */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.gallery-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox-close-btn:hover {
  background: var(--color-orange-brand);
  border-color: var(--color-orange-brand);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}

.lightbox-nav-btn.lightbox-prev {
  left: -70px;
}

.lightbox-nav-btn.lightbox-next {
  right: -70px;
}

.lightbox-nav-btn:hover {
  background: var(--color-orange-brand);
  border-color: var(--color-orange-brand);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-image-wrapper {
  max-width: 85vw;
  max-height: 74vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(250, 119, 1, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-main-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
}

.lightbox-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  color: #ffffff;
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lightbox-counter {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-orange-brand);
  font-weight: 700;
}

/* Header adaptation in Galería Stage:
   Pure transparent floating navigation: Logo at top-left, button "Quiero mi stand" at top-right.
   No dark background rectangle, no navigation menus, no portfolio badge. */
.site-header.gallery-mode {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.site-header.gallery-mode .nav-menu {
  display: none !important;
}

.site-header.gallery-mode .mobile-menu-toggle {
  display: none !important;
}

.site-header.gallery-mode .nav-cluster-right {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.site-header.gallery-mode .brand-logo-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.site-header.gallery-mode .nav-text-default {
  display: none !important;
}

.site-header.gallery-mode .nav-text-gallery {
  display: inline !important;
}

.site-header.gallery-mode .btn-nav-quote {
  background: transparent !important;
  border: 1.5px solid var(--color-orange-brand, #fa7701) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(250, 119, 1, 0.25) !important;
  padding: 8px 20px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: all 0.3s ease !important;
}

.site-header.gallery-mode .btn-nav-quote:hover {
  background: rgba(250, 119, 1, 0.18) !important;
  border-color: #ff9838 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(250, 119, 1, 0.5) !important;
  transform: translateY(-2px) !important;
}

.site-header.gallery-mode .btn-nav-quote .nav-quote-arrow {
  color: var(--color-orange-brand, #fa7701) !important;
}

/* Header style adaptation over white section */
.site-header.header-on-light .brand-logo-nav .brand-rest {
  color: #111111 !important;
}

.site-header.header-on-light .brand-nav-img {
  filter: brightness(0);
}

.site-header.header-on-light .nav-link {
  color: #333333 !important;
}

.site-header.header-on-light .nav-link:hover {
  color: #000000 !important;
}

/* Responsive adjust for smaller screens */
@media (max-width: 900px) {
  .panel-hotspot.panel-modular {
    left: 14%;
    width: 32%;
  }
  .panel-hotspot.panel-custom {
    left: 54%;
    width: 32%;
  }
  .lightbox-nav-btn.lightbox-prev {
    left: 10px;
  }
  .lightbox-nav-btn.lightbox-next {
    right: 10px;
  }
}

/* ==========================================================================
   COTIZADOR SECTION & NAVIGATION INTEGRATION
   ========================================================================== */
#cotizador.hidden {
  display: none !important;
}

#cotizador:not(.hidden) {
  display: block !important;
  animation: cotizadorFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cotizadorFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.cotizador-mode #main-content {
  display: none !important;
}

/* When Cotizador view is active:
   - Hide "Cuéntanos de tu expo" button from navbar to eliminate clutter
   - Show brand logo "Kapta" as clickable Home link
   - Keep navbar clean and unobstructed */
body.cotizador-mode #navCtaQuote {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.cotizador-mode .site-header {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  background: rgba(8, 9, 11, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.cotizador-mode .brand-logo-nav {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  cursor: pointer;
}

/* ==========================================================================
   QUIÉNES SOMOS SECTION (Vista Exclusiva Minimalista & Premium)
   Accesible exclusivamente desde el botón "Somos" del menú
   ========================================================================== */
#seccion-somos.hidden {
  display: none !important;
}

#seccion-somos:not(.hidden) {
  display: block !important;
  animation: cotizadorFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.somos-mode #main-content,
body.somos-mode #cotizador {
  display: none !important;
}

body.somos-mode .site-header {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  background: rgba(8, 9, 11, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.somos-mode .brand-logo-nav {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  cursor: pointer;
}

body.cotizador-mode .site-header .nav-cluster-right,
body.somos-mode .site-header .nav-cluster-right {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Ensure step headers and option buttons register clicks immediately */
.opt-btn > *,
.step-toggle-btn > * {
  pointer-events: none;
}

.opt-btn {
  cursor: pointer !important;
}

.step-toggle-btn {
  cursor: pointer !important;
}

/* Chevron rotation when step is unfolded */
.chevron-step.rotate-180 {
  transform: rotate(180deg);
}

/* Cotizador Option Buttons and Interactions */
.opt-btn {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none !important;
}

.opt-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5) !important;
  background-color: rgba(245, 158, 11, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 158, 11, 0.15);
}

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

.opt-btn.is-selected {
  border-color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.14) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 0 12px rgba(245, 158, 11, 0.1) !important;
}

.opt-btn.is-selected div:first-child {
  color: #fbbf24 !important;
}

/* Selected badge checkmark animation */
.selected-tag:not(.hidden) {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  animation: tagPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tagPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   SECCIÓN FAQ: PREGUNTAS FRECUENTES (Elegante & Premium)
   ========================================================================== */
.faq-section {
  position: relative;
  width: 100%;
  background: radial-gradient(ellipse at 50% 0%, #171a22 0%, #0d0f14 55%, #07080a 100%);
  color: #ffffff;
  padding: clamp(32px, 4vh, 48px) clamp(16px, 3vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
  overflow: hidden;
}

/* Subtle amber ambient glow behind FAQ header */
.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 85vw);
  height: 220px;
  background: radial-gradient(circle, rgba(250, 119, 1, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.faq-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-header {
  text-align: center;
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(250, 119, 1, 0.08);
  border: 1px solid rgba(250, 119, 1, 0.25);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.faq-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-orange-brand, #fa7701);
  box-shadow: 0 0 6px rgba(250, 119, 1, 0.8);
  animation: pulseDot 2s infinite ease-in-out;
}

.faq-badge-text {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-orange-brand, #fa7701);
  text-transform: uppercase;
}

/* Título con contraste de pesos (Light + Bold) para acabado ultra premium */
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.1vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.faq-title-light {
  font-weight: 300;
  color: #e2e8f0;
  letter-spacing: -0.02em;
}

.faq-title-bold {
  font-weight: 700;
  color: var(--color-orange-brand, #fa7701);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(250, 119, 1, 0.35);
}

.faq-description {
  font-family: var(--font-body);
  font-size: clamp(0.80rem, 0.95vw, 0.88rem);
  color: #8b99ae;
  line-height: 1.45;
  max-width: 580px;
  margin: 0 auto;
}

/* Acordeón en 2 columnas: todas las 8 preguntas visibles en una sola pantalla */
.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
  width: 100%;
}

@media (max-width: 860px) {
  .faq-accordion-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(250, 119, 1, 0.3);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.6);
}

.faq-item.active {
  border-color: rgba(250, 119, 1, 0.5);
  background: rgba(250, 119, 1, 0.03);
  box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.75), 0 0 16px rgba(250, 119, 1, 0.07);
}

.faq-item-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  min-height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

.faq-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.faq-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--color-orange-brand, #fa7701);
  letter-spacing: 0.03em;
  opacity: 0.9;
  flex-shrink: 0;
  min-width: 18px;
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.79rem, 0.92vw, 0.85rem);
  color: #cbd5e1;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.faq-item:hover .faq-question {
  color: #f1f5f9;
}

.faq-item.active .faq-question {
  color: #ffffff;
  font-weight: 600;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.faq-icon-svg {
  width: 11px;
  height: 11px;
  transition: transform 0.3s ease;
}

.faq-item-header:hover .faq-toggle-icon {
  border-color: rgba(250, 119, 1, 0.45);
  color: #ffffff;
  background: rgba(250, 119, 1, 0.12);
}

.faq-item.active .faq-toggle-icon {
  background: var(--color-orange-brand, #fa7701);
  border-color: var(--color-orange-brand, #fa7701);
  color: #0d0f14;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(250, 119, 1, 0.45);
}

/* Acordeón desplegable fluido */
.faq-item-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.faq-item.active .faq-item-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item-content {
  overflow: hidden;
  padding: 0 12px 10px 12px;
}

.faq-item-content p {
  font-family: var(--font-body);
  font-size: 0.77rem;
  color: #94a3b8;
  line-height: 1.5;
  letter-spacing: -0.005em;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 8px;
}

.faq-lead {
  color: #ff9d3b;
  font-weight: 600;
  margin-right: 4px;
}

/* Banner CTA ultra compacto al pie de FAQ */
.faq-cta-banner {
  margin-top: 14px;
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(250, 119, 1, 0.04) 100%);
  border: 1px solid rgba(250, 119, 1, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.81rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.faq-cta-desc {
  font-family: var(--font-body);
  font-size: 0.73rem;
  color: #8b99ae;
  line-height: 1.35;
}

.btn-faq-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff9431 0%, #fa7701 100%);
  color: #0b0c0e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(250, 119, 1, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.btn-faq-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 119, 1, 0.4);
  filter: brightness(1.05);
}

.faq-quote-arrow {
  transition: transform 0.25s ease;
}

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




