/* ==========================================================================
   Santiago Cerda — Growth Portfolio (SaaS Modern Blue Edition)
   Pure White (#FFFFFF), Slate Grays (#F8FAFC, #111827), Royal Blue (#2563EB)
   ========================================================================== */

:root {
  /* ── 1. Paleta de Colores SaaS Modern Blue ── */
  --bg-primary:      #FFFFFF;
  --bg-secondary:    #F8FAFC;
  --bg-card:         #FFFFFF;

  --text-primary:    #111827;
  --text-secondary:  #4B5563;
  --text-muted:      #94A3B8;

  /* Colores Azulados SaaS (Royal Blue / Electric Blue / Sky) */
  --blue-primary:    #2563EB;
  --blue-dark:       #1D4ED8;
  --blue-light:      #EFF6FF;
  --blue-border:     #BFDBFE;
  --blue-accent:     #0284C7;

  --border:          #E2E8F0;
  --border-light:    #F1F5F9;

  /* Sombra sutil y limpia */
  --shadow-subtle:   0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover:    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-blue:     0 8px 20px -4px rgba(37, 99, 235, 0.35);

  --r-sm:            8px;
  --r-md:            12px;
  --r-lg:            16px;
  --r-xl:            24px;
  --r-full:          9999px;

  --t-fast:          0.15s ease;
  --t-smooth:        0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.nav-link:hover {
  color: var(--blue-primary);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--blue-primary);
  color: #FFFFFF;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color var(--t-fast), transform var(--t-fast);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.nav-cta-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 24px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ── Typography & Section Headers ────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: all var(--t-smooth);
}

.btn-primary {
  background: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

/* Mint Primary Button — reusable across Hero + other sections */
.btn-mint-primary {
  background: #10B981;
  color: #FFFFFF;
  border: 1px solid #10B981;
  padding: 12px 26px;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
}

.btn-mint-primary:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ── 1. Hero Cinema (Fullscreen Video, Nav + Left Text revealed on scroll) ─ */

/* Navbar: hidden initially, slides in from top on scroll */
.navbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   0. PRISMATIC CHROMATIC HERO (VIVID+CO OBSIDIAN PRISM SPECIFICATION)
   Obsidian Canvas (#101010), Bone White (#fffdf9), RGB Dispersion caustics
   ══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════
   0. PRISMA HERO: SCROLL-SCRUBBED VIDEO & RAINBOW MOUSE REVEAL LANTERN
   Pure Obsidian Black (#000000), Bone White (#fffdf9), Prismatic Caustic Glow
   ══════════════════════════════════════════════════════════════════════════ */
.prisma-hero-section {
  position: relative;
  width: 100%;
  height: 640vh;
  background: #000000;
  color: #fffdf9;
  z-index: 20;
}

/* 100vh Sticky Viewport Pin */
.prisma-hero-pinned {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000000;
}

/* Layer 1: Background Video */
.prisma-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.prisma-video,
.prisma-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prisma-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Minimalist Top Nav Header */
.prisma-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 56px;
  max-width: 1480px;
  margin: 0 auto;
}

.prisma-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prisma-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a2a, #2a7fff, #2aff2a);
  box-shadow: 0 0 12px rgba(42, 127, 255, 0.9);
}

.prisma-brand-name {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fffdf9;
  letter-spacing: -0.02em;
}

.prisma-nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.prisma-nav-link {
  color: #fffdf9;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.52, 0.01, 0, 1);
}

.prisma-nav-link:hover {
  color: #2a7fff;
  text-shadow: 0 0 10px rgba(42, 127, 255, 0.6);
}

.prisma-btn-contact {
  border: 1px solid rgba(255, 253, 249, 0.8);
  border-radius: 6px;
  padding: 7px 18px;
  color: #fffdf9;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.52, 0.01, 0, 1);
}

.prisma-btn-contact:hover {
  background: #fffdf9;
  color: #000000;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

/* Layer 2: Phase 1 Display Typography */
.prisma-content-phase-1 {
  position: absolute;
  top: 50%;
  left: 56px;
  transform: translateY(-50%);
  z-index: 15;
  max-width: 880px;
  pointer-events: none;
  will-change: opacity, transform, filter;
  transform-origin: left center;
}

/* Layer 2.5: Phase 2 Display Typography (Appears at second 3.0 before rainbow) */
.prisma-content-phase-2 {
  position: absolute;
  top: 50%;
  left: 56px;
  transform: translateY(-50%);
  z-index: 16;
  max-width: 880px;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform, filter;
  transform-origin: left center;
}

/* Layer 2.8: Phase 3 Display Typography (Bottom-Right, Hits at 8.5s - 10.0s when rainbow appears) */
.prisma-content-phase-3 {
  position: absolute;
  bottom: 48px;
  right: 56px;
  z-index: 18;
  max-width: 620px;
  text-align: right;
  pointer-events: auto;
  opacity: 0;
  will-change: opacity, transform, filter;
  transform-origin: right bottom;
}

.prisma-content-phase-3 .prisma-main-headline {
  font-size: clamp(2.75rem, 5.2vw, 5.4rem);
  line-height: 1.0;
  margin-bottom: 14px;
}

.prisma-content-phase-3 .prisma-main-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  max-width: 480px;
  margin-left: auto;
  color: rgba(255, 253, 249, 0.85);
}

.prisma-eyebrow-rainbow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fffdf9;
  font-size: 13px;
  margin-bottom: 14px;
}

.prisma-rainbow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a2a, #2a7fff, #2aff2a);
  box-shadow: 0 0 10px rgba(42, 127, 255, 0.8);
}

.prisma-headline-right {
  align-items: flex-end;
}

.prisma-subtitle-right {
  margin-left: auto;
}

.prisma-phase3-chips {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}

.prisma-chip {
  padding: 8px 16px;
  border: 1px solid rgba(255, 253, 249, 0.25);
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #fffdf9;
  background: rgba(255, 253, 249, 0.06);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.52, 0.01, 0, 1);
  cursor: pointer;
}

.prisma-chip:hover {
  border-color: #2a7fff;
  background: rgba(42, 127, 255, 0.25);
  box-shadow: 0 0 16px rgba(42, 127, 255, 0.6);
  transform: translateY(-2px);
}

.prisma-eyebrow {
  font-size: 14px;
  color: #6f879c;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 20px;
}

.prisma-main-headline {
  font-size: clamp(4.5rem, 9.5vw, 9.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fffdf9;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.prisma-headline-sub {
  display: block;
}

.prisma-headline-brand {
  display: block;
  color: #fffdf9;
}

.prisma-main-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #fffdf9;
  max-width: 520px;
  font-weight: 400;
  opacity: 0.85;
}

/* Layer 3: Phase 2 "Mouse Reveal" Lantern Stage */
.prisma-reveal-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform, filter;
  transform-origin: center center;
}

/* High-tech Cursor Light Glow (Screen blend mode with expanded halo) */
.prisma-mouse-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(42, 127, 255, 0.60) 25%, rgba(10, 60, 200, 0.35) 55%, transparent 80%);
  filter: blur(50px);
  mix-blend-mode: screen;
  will-change: transform;
}

/* Masked Content Layer illuminated by radial gradient */
.prisma-masked-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 56px;
  pointer-events: auto;
  mask-image: radial-gradient(circle 520px at var(--mouse-x, -500px) var(--mouse-y, -500px), black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle 520px at var(--mouse-x, -500px) var(--mouse-y, -500px), black 40%, transparent 85%);
  will-change: mask-image;
}

.prisma-reveal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1320px;
  width: 100%;
}

.prisma-reveal-card {
  padding: 30px 24px;
  background: rgba(255, 253, 249, 0.05);
  border: 1px solid rgba(255, 253, 249, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.prisma-reveal-card:hover {
  transform: translateY(-4px);
  border-color: #fffdf9;
  box-shadow: 0 0 25px rgba(42, 127, 255, 0.35);
}

.prisma-reveal-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fffdf9;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.prisma-reveal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fffdf9;
  margin-bottom: 6px;
}

.prisma-reveal-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 253, 249, 0.8);
}

/* Backlit Brand Badges Strip (Luz que pasa por detrás + Alto Contraste) */
.prisma-reveal-brands-strip {
  margin-top: 24px;
  width: 100%;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.prisma-reveal-brands-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.prisma-brands-beam-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a7fff;
  box-shadow: 0 0 8px #2a7fff;
}

.prisma-reveal-brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.prisma-brand-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.52, 0.01, 0, 1);
  cursor: default;
  overflow: hidden;
}

.prisma-brand-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 40px;
  background: radial-gradient(circle at center, rgba(42, 127, 255, 0.4), rgba(255, 42, 127, 0.25), transparent 70%);
  opacity: 0.25;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.prisma-brand-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  filter: brightness(1.2) contrast(1.15);
  transition: all 0.35s ease;
}

.prisma-brand-badge span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  transition: all 0.35s ease;
}

/* Back-Light Glow & High Contrast Effect */
.prisma-brand-badge:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 35px rgba(42, 127, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.25);
}

.prisma-brand-badge:hover::before {
  opacity: 1;
}

.prisma-brand-badge:hover img {
  filter: brightness(1.9) contrast(1.45) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  transform: scale(1.15);
}

.prisma-brand-badge:hover span {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.prisma-reveal-instruction {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fffdf9;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.prisma-lantern-icon {
  color: #2a7fff;
  font-size: 1.25rem;
  animation: lanternPulse 2s infinite ease-in-out;
}

@keyframes lanternPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #2a7fff); }
  50% { transform: scale(1.3); filter: drop-shadow(0 0 12px #ff2a2a); }
}

/* Bottom Scroll Status */
.prisma-scroll-status {
  position: absolute;
  bottom: 28px;
  left: 56px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 253, 249, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prisma-scroll-track {
  width: 60px;
  height: 2px;
  background: rgba(255, 253, 249, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.prisma-scroll-fill {
  width: 0%;
  height: 100%;
  background: #fffdf9;
  transition: width 0.1s linear;
}

@media (max-width: 900px) {
  .prisma-top-nav { padding: 24px; }
  .prisma-nav-menu { gap: 16px; }
  .prisma-content-phase-1,
  .prisma-content-phase-2 { left: 24px; right: 24px; }
  .prisma-main-headline { font-size: 3.75rem; }
  .prisma-reveal-grid { grid-template-columns: 1fr; gap: 16px; }
  .prisma-masked-content { padding: 20px; }
  .prisma-scroll-status { left: 24px; }
}



/* Sticky hero wrapper — 250vh gives room for the scroll reveal */
.hero-cinema-section {
  position: relative;
  height: 250vh;
}

.hero-cinema-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video fills entire screen */
.hero-cinema-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-cinema-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient on the left side — reveals as scroll progresses */
.hero-cinema-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.40) 38%,
    transparent 70%
  );
  opacity: 0;  /* starts invisible; fades in with scroll */
  transition: none;
  pointer-events: none;
  z-index: 2;
}

/* Left Text Panel — starts hidden (translateX(-50px) + opacity 0) */
.hero-cinema-text {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%) translateX(-60px);
  max-width: 520px;
  z-index: 10;
  color: #FFFFFF;
  opacity: 0;
  will-change: opacity, transform;
}

.hero-cinema-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 9999px;
  color: #A7F3D0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero-badge-dot-mint {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  flex-shrink: 0;
}

.hero-cinema-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-cinema-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-cinema-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cinema-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.btn-cinema-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Scroll hint at bottom center */
.hero-cinema-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.hero-cinema-hint-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* Reusable mint button (used across sections) */
.hero-cinema-badge,
.hero-badge-dot-mint { }

@media (max-width: 768px) {
  .hero-cinema-title { font-size: 2.1rem; }
  .hero-cinema-text { left: 24px; max-width: calc(100vw - 48px); }
}



/* ── CLIENT LOGO MARQUEE STRIP (ELEGANTE CON FADE LATERAL) ─────────────── */
.marquee-wrapper-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}

.marquee-header-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.marquee-strip {
  width: 100%;
  overflow: hidden;
  display: flex;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Presentación fluida y moderna de cada marca */
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.marquee-item:hover {
  transform: translateY(-2px);
  color: var(--blue-primary);
}

.marquee-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.marquee-dot {
  color: #CBD5E1;
  font-size: 1rem;
}

/* ── 2. Resultados de Impacto (HYBRID VERTICAL + FULLSCREEN HORIZONTAL) ──── */
.timeline-section {
  padding: 60px 0 0;
  background: var(--bg-primary);
  position: relative;
}

.timeline-intro-header {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.timeline-container {
  position: relative;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 0 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.timeline-beam-track {
  position: absolute;
  top: 180px;
  bottom: 180px;
  left: 45px;
  width: 3px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  z-index: 2;
}

.timeline-beam-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #2563EB 0%, #38BDF8 100%);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.9);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.timeline-item {
  min-height: 75vh;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  padding: 30px 0;
  scroll-snap-align: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-left-sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-node-circle {
  position: absolute;
  left: -53px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #CBD5E1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.timeline-node-circle.active {
  border-color: var(--blue-primary);
  background: var(--blue-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 0 0 40px rgba(56, 189, 248, 0.4);
  transform: translateY(-50%) scale(1.25);
}

.timeline-node-title {
  font-size: clamp(2.75rem, 4.2vw, 4.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.timeline-node-subtitle {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-node-subtitle::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-primary);
}

.timeline-right-content {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 28px 36px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.timeline-item:hover .timeline-right-content {
  border-color: var(--blue-border);
  box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.12), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 500;
}

.timeline-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.checklist-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  border-radius: 10px;
}

.timeline-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.timeline-card-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 130px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card-preview:hover {
  transform: translateY(-4px);
  border-color: var(--blue-primary);
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.28);
}

.timeline-card-preview::after {
  content: 'Ver videos ↗';
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.92);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.timeline-card-preview:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card-preview:hover img {
  transform: scale(1.06);
}

.timeline-card-preview.timeline-card-logo {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline-card-preview.timeline-card-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
  background: #FFFFFF;
  padding: 3px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.timeline-card-preview.timeline-card-logo:hover img {
  transform: scale(1.12);
  border-color: var(--blue-primary);
}

.timeline-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Escenario Horizontal Fullscreen Sticky para Node 2 (+257), Node 3 (ROAS) y Node 4 (+75K) ──── */
.timeline-horizontal-fullscreen-pin {
  position: relative;
  height: 360vh; /* Altura para recorrer fluidamente las 3 etapas horizontales */
  width: 100%;
  margin-top: 20px;
}

.timeline-horizontal-sticky-view {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.timeline-horizontal-slider {
  display: flex;
  flex-direction: row;
  width: 300vw; /* 3 pantallas completas de 100vw cada una */
  will-change: transform;
  transition: transform 0.08s ease-out;
  position: relative;
  z-index: 5;
}

.timeline-fullscreen-slide {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  box-sizing: border-box;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: center;
  position: relative;
  padding: 30px 0;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-left-sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-node-circle {
  position: absolute;
  left: -53px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #CBD5E1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.timeline-node-circle.active {
  border-color: var(--blue-primary);
  background: var(--blue-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 0 0 40px rgba(56, 189, 248, 0.4);
  transform: translateY(-50%) scale(1.25);
}

.timeline-node-title {
  font-size: clamp(2.75rem, 4.2vw, 4.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}


.timeline-node-subtitle {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-node-subtitle::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-primary);
}

.timeline-right-content {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 26px 32px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.timeline-item:hover .timeline-right-content {
  border-color: var(--blue-border);
  box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.12), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  font-weight: 500;
}

.timeline-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.checklist-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  border-radius: 10px;
}

.timeline-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.timeline-card-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 125px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card-preview:hover {
  transform: translateY(-3px);
  border-color: var(--blue-primary);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.2);
}

.timeline-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card-preview:hover img {
  transform: scale(1.06);
}

.timeline-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 700;
  border-radius: var(--r-full);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── 3. MAYORES CASOS DE ÉXITO (GALERÍA DINÁMICA) ────────────────────────── */
.cases-section {
  padding: 96px 0;
  background: var(--bg-secondary);
}

/* ── 3.0 SECCIÓN EVIDENCIAS VERIFICADAS (ANTES → DESPUÉS - HORIZONTAL) ─── */
.evidence-section {
  padding: 96px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.evidence-full-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1140px;
  margin: 0 auto;
}

.evidence-full-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 960px) {
  .evidence-full-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.evidence-full-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.12);
}

.evidence-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.e-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.e-brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.e-brand-logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.e-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.e-brand-handle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.e-metric-comparison {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 20px;
}

.e-stat-box {
  display: flex;
  flex-direction: column;
}

.e-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.e-stat-box.before .e-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #64748B;
  line-height: 1.1;
}

.e-stat-box.after .e-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.1;
}

.e-stat-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.e-stat-arrow {
  color: var(--blue-primary);
  display: flex;
  align-items: center;
}

.e-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.evidence-images-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: start;
}

.evidence-image-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0B0F19;
  border: 1px solid #1E293B;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.evidence-img-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

.evidence-large-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.evidence-large-img:hover {
  transform: scale(1.02);
  border-color: var(--blue-primary);
}

/* ── Modal Selector de Reels de la Misma Empresa ────────────────────────── */
.modal-company-selector-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.modal-company-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.modal-company-selector-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-company-all-btn {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 4px;
}

.modal-company-all-btn:hover {
  text-decoration: underline;
}

.modal-company-reels-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-company-reel-card {
  position: relative;
  width: 68px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  cursor: pointer;
  background: #0F172A;
  transition: all 0.2s ease;
}

.modal-company-reel-card.active {
  border-color: var(--blue-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.modal-company-reel-card:hover {
  transform: translateY(-2px);
}

.modal-company-reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-company-reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 4px 2px;
  text-align: center;
}

.modal-reel-badge {
  font-size: 0.58rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.e-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.e-thumb-preview:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.e-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 4px;
  text-align: center;
}

.e-thumb-preview:hover .e-thumb-overlay {
  opacity: 1;
}

/* ── Modal de Evidencias en Alta Resolución ──────────────────────────────── */
.evidence-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.evidence-modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow: hidden;
}

.evidence-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-right: 40px;
}

.evidence-modal-img-wrap {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  overflow: auto;
  border-radius: 12px;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evidence-modal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cases-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}

.filter-btn:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Grid Dinámico para PC */
.cases-grid-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reel-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
  display: flex;
  flex-direction: column;
}

.reel-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-border);
}

.reel-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  background: #0F172A;
  overflow: hidden;
  cursor: pointer;
}

.reel-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.reel-card-item:hover .reel-cover-img {
  transform: scale(1.03);
}

.reel-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform var(--t-fast);
  z-index: 5;
}

.reel-card-item:hover .reel-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
}

.reel-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}

.reel-views-pill {
  padding: 5px 12px;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

.reel-views-pill.blue {
  background: var(--blue-primary);
}

.reel-category-tag {
  padding: 5px 12px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

.reel-info-bar {
  padding: 18px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.reel-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reel-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
}

.reel-brand-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
}

.reel-brand-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reel-card-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.reel-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-primary);
}

/* ── Feed Móvil TikTok / Reels Scroll-Snap ───────────────────────────────── */
.cases-mobile-feed {
  display: none;
}

@media (max-width: 768px) {
  .cases-grid-desktop {
    display: none;
  }

  .cases-mobile-feed {
    display: block;
    width: 100%;
    height: 80vh;
    max-height: 680px;
    border-radius: var(--r-lg);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    background: #000000;
    box-shadow: var(--shadow-hover);
  }

  .cases-mobile-feed::-webkit-scrollbar {
    display: none;
  }

  .mobile-snap-item {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  .mobile-snap-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .mobile-snap-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .mobile-snap-header {
    position: relative;
    z-index: 10;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-pill-views {
    padding: 4px 12px;
    background: var(--blue-primary);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--r-full);
  }

  .mobile-swipe-indicator {
    padding: 4px 10px;
    background: rgba(0,0,0,0.5);
    color: #FFFFFF;
    font-size: 0.6875rem;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-snap-footer {
    position: relative;
    z-index: 10;
    padding: 20px 16px 16px;
    color: #FFFFFF;
  }

  .mobile-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  .mobile-author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--blue-primary);
    object-fit: cover;
  }

  .mobile-author-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #FFFFFF;
  }

  .mobile-author-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.35;
  }

  .mobile-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--blue-primary);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--r-full);
  }
}

/* ── 4. Especialización por Industria (Expanding Cards) ──────────────────── */
.expanding-section {
  padding: 96px 0;
  background: var(--bg-primary);
}

.expanding-cards-container {
  display: flex;
  gap: 16px;
  height: 440px;
  margin-top: 40px;
  width: 100%;
}

.expanding-card {
  position: relative;
  flex: 0.8;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border);
}

.expanding-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expanding-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}

.expanding-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #FFFFFF;
  z-index: 5;
}

.expanding-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-full);
  margin-bottom: 6px;
}

.expanding-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #FFFFFF;
}

.expanding-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 6px;
}

.expanding-card.active {
  flex: 3.2;
}

.expanding-card.active .expanding-desc {
  opacity: 1;
  max-height: 100px;
}

@media (max-width: 900px) {
  .expanding-cards-container {
    flex-direction: column;
    height: auto;
  }
  .expanding-card {
    height: 120px;
    flex: 1;
  }
  .expanding-card.active {
    height: 240px;
  }
}

/* ── 4.5 Evidencias Antes -> Después Section & Analytical KPI Cards ─────── */
.evidence-full-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.evidence-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 32px;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.evidence-full-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
}

.evidence-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.e-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.e-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.e-brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}

.e-brand-handle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.e-metric-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 20px;
}

.e-stat-box {
  display: flex;
  flex-direction: column;
}

.e-stat-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.e-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.e-stat-box.after .e-stat-num {
  color: var(--blue-primary);
}

.e-stat-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.e-stat-arrow {
  color: var(--blue-primary);
}

.e-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.evidence-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.evidence-kpi-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.evidence-kpi-card:hover {
  background: #FFFFFF;
  border-color: var(--blue-primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.evidence-kpi-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.evidence-kpi-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.evidence-kpi-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .evidence-full-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }
  .evidence-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── 5. Servicios y Metodología (Scroll-Triggered Video Hero) ───────────── */
.cinematic-services-section {
  position: relative;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0;
}

.cinematic-sticky-wrapper {
  position: relative;
  height: 280vh;
}

.cinematic-sticky-viewport {
  position: sticky;
  top: 60px;
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cinematic-services-section .section-subtitle {
  color: #38BDF8;
}

.cinematic-services-section .section-title {
  color: #FFFFFF;
}

.cinematic-services-section .section-description {
  color: #94A3B8;
}

.cinematic-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.cinematic-left-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chapter-nav-track {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.chapter-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.chapter-nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.chapter-nav-item.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.chapter-num {
  font-size: 0.6875rem;
  font-weight: 800;
  opacity: 0.8;
}

.chapter-active-content {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chapter-badge-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: var(--r-full);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.chapter-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 10px;
}

.chapter-main-desc {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.chapter-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-item {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: #E2E8F0;
}

/* Right Panel Screen Frame */
.cinematic-right-panel {
  position: relative;
}

.cinematic-screen-frame {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #020617;
}

.cinematic-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cinematic-media-layer.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cinematic-media-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.85) 100%);
}

.screen-caption-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.screen-controls-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0) 100%);
  z-index: 10;
}

.chapter-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.chapter-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  transition: width 0.15s linear;
}

/* Metodología Proceso */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 14px;
  box-shadow: var(--shadow-subtle);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-primary);
  background: var(--blue-light);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── 6. SECCIÓN "SOBRE MÍ" (ULTRA MINIMALISTA) ───────────────────────────── */
.about-section {
  padding: 96px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.about-clean-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo-img {
  width: 280px;
  height: auto;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.about-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-heading {
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.about-summary {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

/* ── Testimonios ─────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-row {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.author-name {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ── 4. SCROLL MORPH HERO (3D CIRCLE TO RAINBOW ARC) ─────────────────────── */
.scroll-morph-section {
  position: relative;
  height: 280vh;
  background: #FAFAFA;
  color: #111827;
  /* overflow visible so arc cards aren't clipped at edges */
  overflow: clip;
  overflow-clip-margin: 0;
}

.morph-cards-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  /* Must NOT be hidden — cards extend below the arc bottom edge */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.morph-text-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.morph-text-intro h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.morph-text-intro p {
  font-size: 0.75rem;
  font-weight: 800;
  color: #6B7280;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.morph-text-active {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.morph-text-active h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.morph-text-active p {
  font-size: 0.9375rem;
  color: #4B5563;
  max-width: 500px;
}

/* Morph Card Items */
.morph-card-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 115px;
  cursor: pointer;
  z-index: 8;
  perspective: 1000px;
  will-change: transform;
}

.morph-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.morph-card-item:hover .morph-card-inner {
  transform: rotateY(180deg) scale(1.15);
  z-index: 50;
}

.morph-card-front, .morph-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.morph-card-front {
  background: #E2E8F0;
}

.morph-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.morph-card-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 7px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

.morph-card-back {
  background: #0F172A;
  color: #FFFFFF;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.morph-back-cat {
  font-size: 0.5625rem;
  font-weight: 800;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.morph-back-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 8px;
}

.morph-back-btn {
  padding: 4px 10px;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.5625rem;
  font-weight: 800;
  border-radius: var(--r-full);
}

/* ── 7. Footer / Contacto ────────────────────────────────────────────────── */
.footer-section {
  padding: 80px 0 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.footer-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-contact-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-link:hover {
  color: var(--blue-primary);
}

/* Chat Widget Azul SaaS */
.chat-widget-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  height: 360px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.chat-name {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-primary);
}

.chat-status {
  font-size: 0.6875rem;
  color: var(--blue-primary);
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.45;
  animation: chatFade 0.25s ease;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--blue-primary);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

/* Opciones / Botones Interactivos de Selección */
.chat-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  animation: chatFade 0.3s ease;
}

.chat-option-btn {
  padding: 9px 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  transition: all var(--t-fast);
  cursor: pointer;
}

.chat-option-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-light);
  transform: translateX(3px);
}

.chat-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

.chat-replay-btn:hover {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

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

.chat-input-row {
  padding: 10px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.8125rem;
  outline: none;
  background: var(--bg-secondary);
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--blue-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-fast);
}

.chat-send-btn:hover {
  background: var(--blue-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Modal Video 9:16 ────────────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  display: grid;
  grid-template-columns: 340px 1fr;
  box-shadow: var(--shadow-hover);
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-media-box {
  background: #000000;
  height: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-details {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.modal-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

.modal-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-stats-row {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.modal-stat-pill {
  flex: 1;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-align: center;
}

.modal-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
}

.modal-stat-val {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--blue-primary);
}

/* ── 8. Efecto 1: Scroll Morph 3D Gallery — additional overrides ── */
.scroll-morph-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.morph-text-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 680px;
  padding: 0 20px;
}

.morph-text-intro h2 {
  font-size: 2.5rem;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.morph-text-intro p {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.morph-text-active {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: 680px;
  padding: 0 20px;
}

.morph-text-active h2 {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.morph-text-active p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.morph-cards-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 5;
}

.morph-flip-card {
  position: absolute;
  width: 96px;
  height: 148px;
  perspective: 1000px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.morph-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.morph-flip-card:hover .morph-card-inner {
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25);
}

.morph-card-front, .morph-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.morph-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.morph-card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}

.morph-card-back {
  background: #0F172A;
  color: #FFFFFF;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.morph-badge-text {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.morph-brand-text {
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.morph-action-hint {
  font-size: 0.625rem;
  color: var(--blue-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.morph-overlay-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ── 9. Efecto 2: Robot 3D Companion ─────────────────────────────────────── */
.robot-section {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.robot-card-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.robot-canvas-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  cursor: grab;
}

.robot-canvas-container:active {
  cursor: grabbing;
}

.robot-click-hint {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: var(--r-full);
  pointer-events: none;
  z-index: 10;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid-desktop { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(3, 1fr); }
  .robot-card-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }

  .container {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.875rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-clean-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-text-wrap { align-items: center; }
  .footer-grid-layout { grid-template-columns: 1fr; gap: 32px; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-media-box { min-height: 300px; }
  .scroll-morph-viewport { height: 420px; }
  .robot-canvas-container { height: 300px; }

  /* ── Pure Mobile Hero Optimization ── */
  .prisma-hero-section {
    height: 280vh !important;
  }

  .prisma-hero-pinned {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .prisma-canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .prisma-top-nav {
    padding: 16px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .prisma-top-nav .prisma-nav-link {
    display: none !important;
  }

  .prisma-top-nav .prisma-nav-menu {
    display: flex !important;
    gap: 0 !important;
  }

  .prisma-top-nav .prisma-btn-contact {
    display: inline-flex !important;
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
  }

  .prisma-content-phase-1,
  .prisma-content-phase-2,
  .prisma-content-phase-3 {
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box !important;
  }

  .prisma-main-headline {
    font-size: clamp(2rem, 8vw, 2.6rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 12px !important;
  }

  .prisma-main-subtitle {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
  }

  .prisma-reveal-stage {
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .prisma-masked-content {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .prisma-reveal-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .prisma-reveal-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }

  .prisma-reveal-num {
    font-size: 1.5rem !important;
    margin-bottom: 2px !important;
  }

  .prisma-reveal-title {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .prisma-reveal-desc {
    font-size: 0.65rem !important;
    line-height: 1.35 !important;
  }

  .prisma-reveal-brands-strip {
    margin-top: 18px !important;
    gap: 10px !important;
  }

  .prisma-reveal-brands-label {
    font-size: 9px !important;
  }

  .prisma-reveal-brands-list {
    gap: 6px !important;
  }

  .prisma-brand-badge {
    padding: 5px 10px !important;
    font-size: 0.6875rem !important;
  }

  .prisma-brand-badge img {
    width: 18px !important;
    height: 18px !important;
  }

  /* ── Filter Bar Touch Scroll ── */
  .filter-bar {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }

  .filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }


  /* ── Expanding Cards Mobile ── */
  .expanding-cards-container {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .expanding-card {
    height: 120px !important;
    width: 100% !important;
    flex: none !important;
  }

  .expanding-card.active {
    height: 240px !important;
  }

  /* ── Flujo de Trabajo Timeline Mobile ── */
  .timeline-horizontal-fullscreen-pin {
    height: auto !important;
    margin-top: 0 !important;
  }

  .timeline-horizontal-sticky-view {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .timeline-horizontal-slider {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    gap: 32px !important;
  }

  .timeline-fullscreen-slide {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 20px 16px !important;
  }

  .timeline-container {
    padding: 0 16px !important;
  }

  .timeline-item {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
  }

  .timeline-beam-track,
  .timeline-node-circle {
    display: none !important;
  }

  .timeline-left-sticky {
    padding-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .timeline-node-title {
    font-size: 2.2rem !important;
  }

  .timeline-right-content {
    padding: 20px 16px !important;
  }

  .timeline-checklist {
    grid-template-columns: 1fr !important;
  }

  /* ── Cinematic Services Mobile ── */
  .cinematic-sticky-viewport {
    padding: 10px 16px !important;
  }

  .cinematic-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .cinematic-left-panel {
    min-width: 0 !important;
    width: 100% !important;
  }

  .cinematic-right-panel {
    display: none !important;
  }

  .chapter-active-content {
    padding: 12px 12px !important;
    min-height: auto !important;
  }
  
  .chapter-main-title {
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 1.35rem !important;
  }

  .chapter-nav-track {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
    width: 100% !important;
  }

  .chapter-nav-track::-webkit-scrollbar {
    display: none !important;
  }

  .chapter-nav-item {
    white-space: normal !important;
    font-size: 0.8rem !important;
    padding: 8px 6px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .cinematic-screen-frame {
    height: 180px !important;
  }

  /* ── Sobre Mí Mobile ── */
  .about-clean-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
  }

  .about-photo-wrap {
    display: flex !important;
    justify-content: center !important;
  }

  .about-photo-img {
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .about-text-wrap {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* ── Testimonios Mobile ── */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .testimonial-card {
    padding: 20px 16px !important;
  }

  /* ── Footer & Contact Mobile ── */
  .footer-grid-layout {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 32px !important;
  }

  .footer-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .footer-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .footer-contact-links {
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: flex-start !important;
  }

  .chat-widget-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── Modal Video 9:16 Mobile ── */
  .video-modal {
    padding: 10px !important;
    align-items: center !important;
  }

  .modal-content {
    grid-template-columns: 1fr !important;
    max-height: 92vh !important;
    width: 100% !important;
    max-width: 440px !important;
    border-radius: 18px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .modal-media-box {
    min-height: 460px !important;
    height: 460px !important;
    width: 100% !important;
    background: #000000 !important;
  }

  .modal-details {
    padding: 18px 16px 24px !important;
  }

  .modal-close {
    top: 10px !important;
    right: 10px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 30 !important;
  }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .prisma-reveal-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .prisma-reveal-card { padding: 12px 10px; }
  .prisma-reveal-num { font-size: 1.35rem; }
  .footer-contact-links { flex-direction: column; align-items: flex-start; }

  .modal-media-box {
    min-height: 420px !important;
    height: 420px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRISMA LIVE CALIBRATION PANEL (DEV CONTROLLER STYLES)
   ══════════════════════════════════════════════════════════════════════════ */
.prisma-dev-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  max-height: calc(100vh - 40px);
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(42, 127, 255, 0.2);
  color: #fffdf9;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prisma-dev-panel.minimized .prisma-dev-body {
  display: none;
}

.prisma-dev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
}

.prisma-dev-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prisma-dev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a7fff;
  box-shadow: 0 0 8px #2a7fff;
}

.prisma-dev-btn-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.prisma-dev-btn-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.prisma-dev-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.prisma-dev-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prisma-dev-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 253, 249, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.prisma-dev-val {
  color: #2a7fff;
  font-weight: 700;
  font-family: monospace;
}

.prisma-dev-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.prisma-dev-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.1s;
}

.prisma-dev-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #2a7fff;
}

.prisma-dev-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.prisma-dev-btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: #2a7fff;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prisma-dev-btn-copy:hover {
  background: #1b6be0;
  box-shadow: 0 0 12px rgba(42, 127, 255, 0.5);
}

.prisma-dev-btn-copy.copied {
  background: #2aff2a;
  color: #000;
}

.prisma-dev-btn-reset {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fffdf9;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.prisma-dev-btn-reset:hover {
  background: rgba(255, 255, 255, 0.18);
}

.prisma-dev-hint {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 253, 249, 0.6);
  background: rgba(42, 127, 255, 0.08);
  border-left: 2px solid #2a7fff;
  padding: 8px 10px;
  border-radius: 0 4px 4px 0;
}

