/* ═══════════════════════════════════════════════════════════════════
   IA EXPERIENCE — PREMIUM LANDING PAGE
   styles.css — Design System, Animations, Glassmorphism, Layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: 'TT Interphases Pro';
  src: url('assets/fonts/TT-Interphases-Pro-Trial-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Interphases Pro';
  src: url('assets/fonts/TT-Interphases-Pro-Trial-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Interphases Pro';
  src: url('assets/fonts/TT-Interphases-Pro-Trial-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ══════════════════════════════════════
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ══════════════════════════════════════ */
:root {
  --bg-deepest:    #f8f7ff;
  --bg-mid:        #f0eeff;
  --bg-light:      #e8e5ff;
  --bg-accent:     #ddd8ff;
  --primary:       #2717DC;
  --secondary:     #9083F1;
  --accent:        #6C5CE7;
  --glow:          #a78bfa;
  --text-white:    #1a1145;
  --text-bright:   #2d2260;
  --text-mid:      #5a5280;
  --text-soft:     #8078a0;
  --text-muted:    #a09ab8;
  --glass-bg:            rgba(255,255,255,0.65);
  --glass-bg-hover:      rgba(255,255,255,0.80);
  --glass-border:        rgba(144,131,241,0.15);
  --glass-border-hover:  rgba(144,131,241,0.35);
  --shadow-lg: 0 8px 32px rgba(39,23,220,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 20px 48px rgba(39,23,220,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --font-body:     'TT Interphases Pro', system-ui, -apple-system, sans-serif;
  --font-display:  'TT Interphases Pro', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════
   2. RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: #f8f7ff;
  font-family: var(--font-body);
  color: var(--text-bright);
}

::selection { background: rgba(39,23,220,0.15); color: var(--text-white); }

main { position: relative; z-index: 1; }

a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* Skip-to-content (a11y) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  z-index: 200;
  transition: top 0.3s ease;
}
.skip-to-content:focus {
  top: 0;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Remove focus ring for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* ══════════════════════════════════════
   3. KEYFRAME ANIMATIONS
   ══════════════════════════════════════ */

/* Morphing (used by CTA blobs) */
@keyframes morphBlob1 {
  0%, 100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(80px, -100px) rotate(90deg) scale(1.15);
  }
  50% {
    border-radius: 30% 70% 50% 50% / 50% 60% 40% 50%;
    transform: translate(-50px, 70px) rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 55% 45% 60% 40% / 35% 55% 45% 65%;
    transform: translate(50px, 50px) rotate(270deg) scale(1.08);
  }
}

@keyframes morphBlob2 {
  0%, 100% {
    border-radius: 50% 50% 40% 60% / 55% 40% 60% 45%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    border-radius: 35% 65% 55% 45% / 40% 55% 45% 60%;
    transform: translate(-80px, 60px) rotate(120deg) scale(1.1);
  }
  66% {
    border-radius: 60% 40% 45% 55% / 55% 35% 65% 45%;
    transform: translate(60px, -80px) rotate(240deg) scale(0.93);
  }
}

/* UI animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ══════════════════════════════════════
   4. STRIPE MESH GRADIENT BACKGROUND
   ══════════════════════════════════════ */
#gradient-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  --gradient-color-1: #e0dcff; --gradient-color-2: #7c6cf0;
  --gradient-color-3: #22d3ee; --gradient-color-4: #a78bfa;
}

.bg-grid-overlay {
  display: none;
}

.gradient-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 50%, rgba(248,247,255,0.3) 100%);
  pointer-events: none; z-index: 1;
}

/* ══════════════════════════════════════
   5. GLASSMORPHISM CARD
   ══════════════════════════════════════ */
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(144,131,241,0.12);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(39,23,220,0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.5s var(--ease-bounce), background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  position: relative; overflow: hidden;
}

.glass::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(144,131,241,0.15), transparent);
  pointer-events: none;
}

.glass:hover {
  background: rgba(255,255,255,0.55);
  border-color: rgba(39, 23, 220, 0.20);
  box-shadow: 0 12px 40px rgba(39,23,220,0.10), 0 4px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Glass variant — no hover lift (for containers) */
.glass--static:hover {
  transform: none;
}

/* ══════════════════════════════════════
   6. TYPOGRAPHY UTILITIES
   ══════════════════════════════════════ */
.glow-text {
  background: linear-gradient(135deg, #2717DC, #6C5CE7, #9083F1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: linear-gradient(135deg, #2717DC, #9083F1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .glow-text {
  background: linear-gradient(135deg, #2717DC, #6C5CE7, #9083F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .gradient-text {
  background: linear-gradient(135deg, #2717DC, #9083F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-body);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  display: block;
}

/* ══════════════════════════════════════
   7. SCROLL REVEAL (controlled by JS)
   ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.97);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays via data-delay (set in JS) */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }

/* ══════════════════════════════════════
   8. NAVBAR
   ══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease-out-expo);
}

.navbar.is-scrolled {
  background: rgba(248,247,255,0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: rgba(144,131,241,0.10);
  box-shadow: 0 2px 20px rgba(39,23,220,0.06);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.navbar__logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: none;
}

.navbar__links {
  display: flex; gap: 36px; align-items: center;
}

.navbar__link {
  color: var(--text-mid); font-size: 14px; font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.3s; letter-spacing: -0.01em;
}
.navbar__link:hover { color: var(--primary); }

.navbar__cta {
  padding: 10px 24px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-size: 13px; font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(39,23,220,0.35);
  transition: all 0.35s var(--ease-out-expo);
}
.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(39,23,220,0.55);
}

/* Navbar over light hero (not scrolled) */
.navbar:not(.is-scrolled) .navbar__link {
  color: rgba(26, 17, 69, 0.6);
}
.navbar:not(.is-scrolled) .navbar__link:hover {
  color: #2717DC;
}
.navbar:not(.is-scrolled) .navbar__logo-img {
  filter: none;
}
.navbar:not(.is-scrolled) .navbar__cta {
  background: linear-gradient(135deg, #2717DC, #9083F1);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(39,23,220,0.3);
}

/* Navbar scrolled (over light background) */
.navbar.is-scrolled .navbar__logo-img {
  filter: none;
}

/* ══════════════════════════════════════
   9. HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px clamp(20px, 5vw, 48px) 140px;
  position: relative; z-index: 1; overflow: hidden;
}

.hero__fade-out {
  position: absolute; bottom: 0; left: 0; right: 0; height: 300px;
  background: linear-gradient(to bottom, transparent, #f8f7ff);
  z-index: 2; pointer-events: none;
}

.hero__glow {
  position: absolute; top: 25%; left: 50%;
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.2) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  filter: blur(50px); pointer-events: none;
  z-index: 2;
}
.hero__anim { position: relative; z-index: 3; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 24px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(144, 131, 241, 0.25);
  backdrop-filter: blur(16px);
}

.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6C5CE7;
  box-shadow: 0 0 12px rgba(108,92,231,0.5);
  animation: borderGlow 2s ease-in-out infinite;
}

.hero__badge-text {
  font-size: 13px; font-weight: 700;
  color: #2d2260; font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(42px, 6.5vw, 88px);
  font-weight: 800; line-height: 1.05;
  font-family: var(--font-display);
  color: #1a1145;
  text-shadow: none;
  max-width: 1100px;
  letter-spacing: -0.05em;
  margin-top: 36px;
}

/* Hero rotating text */
.hero__rotating {
  display: block;
  position: relative;
  height: 1.1em;
  overflow: hidden;
}

.hero__rotating-text {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.hero__rotating-text.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero__rotating-text.is-exiting {
  opacity: 0;
  transform: translateY(-20px);
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(26, 17, 69, 0.75);
  text-shadow: none;
  max-width: 580px; line-height: 1.7;
  margin-top: 24px; font-family: var(--font-body);
}

.hero__buttons {
  display: flex; gap: 16px; margin-top: 48px;
  flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 38px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #5a3ef5);
  color: white; font-size: 16px; font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 8px 40px rgba(39,23,220,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.4s var(--ease-out-expo);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 56px rgba(39,23,220,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
  padding: 18px 38px; border-radius: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px; font-weight: 600;
  font-family: var(--font-body);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}
.btn-ghost:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(144,131,241,0.35);
  color: var(--accent);
}

/* Hero-specific button overrides (dark hero background) */
.hero .btn-primary {
  background: linear-gradient(135deg, #2717DC, #5a3ef5);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 40px rgba(39,23,220,0.3);
}
.hero .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 56px rgba(39,23,220,0.3);
}
.hero .btn-ghost {
  background: rgba(26, 17, 69, 0.06);
  border: 1px solid rgba(26, 17, 69, 0.15);
  color: #2d2260;
}
.hero .btn-ghost:hover {
  background: rgba(26, 17, 69, 0.12);
  border-color: rgba(39, 23, 220, 0.3);
}

.hero__stats {
  display: flex; gap: clamp(36px, 6vw, 80px);
  margin-top: 88px; flex-wrap: wrap; justify-content: center;
}

.hero__stat-value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800; font-family: var(--font-display);
  letter-spacing: -0.04em; line-height: 1;
}

.hero__stat-label {
  font-size: 13px; color: rgba(255, 255, 255, 0.6);
  font-weight: 600; font-family: var(--font-body);
  margin-top: 8px; letter-spacing: 0.02em;
}

/* Hero tagline */
.hero__tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  margin-top: 28px;
  position: relative;
  z-index: 3;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  animation: bounceDown 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  opacity: 0.9;
}

.scroll-arrow__text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(26, 17, 69, 0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.scroll-arrow svg {
  stroke: rgba(26, 17, 69, 0.4);
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* Hero title — solid color + size override */
.hero__title {
  font-size: clamp(42px, 6.5vw, 88px) !important;
  max-width: 1100px !important;
  color: #1a1145 !important;
  -webkit-text-fill-color: #1a1145 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.hero__title-accent {
  color: #2717DC;
  -webkit-text-fill-color: #2717DC;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #2717DC;
  margin-left: 4px;
  vertical-align: baseline;
  position: relative;
  top: 0.05em;
  animation: cursorBlink 0.7s ease-in-out infinite;
}

.typewriter-cursor--done {
  animation: cursorFadeOut 0.5s ease forwards;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes cursorFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ══════════════════════════════════════
   10. SECTIONS (shared)
   ══════════════════════════════════════ */
.section {
  padding: 140px clamp(24px, 6vw, 80px);
  position: relative; z-index: 1;
}

.section__header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════
   11. ROADMAP
   ══════════════════════════════════════ */
.roadmap-section {
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 120px clamp(24px, 6vw, 80px) 140px;
}

.roadmap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(0,0,0,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.roadmap-section .section__header,
.roadmap-section .roadmap {
  position: relative;
  z-index: 1;
}

.roadmap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 0 60px;
}

.roadmap__svg {
  width: 100%;
  height: auto;
  display: block;
}

.roadmap__path-bg {
  opacity: 0.6;
}

/* Milestones */
.roadmap__milestones {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.roadmap__milestone {
  position: absolute;
  text-align: center;
  pointer-events: auto;
  max-width: 240px;
}

/* Hitos ARRIBA del path (1 y 3) */
.roadmap__milestone--1 {
  left: 8.5%;
  top: 0;
  transform: translateX(-50%) translateY(-20px);
}

.roadmap__milestone--3 {
  left: 68.5%;
  top: 0;
  transform: translateX(-50%) translateY(-20px);
}

/* Hitos ABAJO del path (2 y 4) */
.roadmap__milestone--2 {
  left: 40%;
  bottom: 0;
  top: auto;
  transform: translateX(-50%) translateY(20px);
}

.roadmap__milestone--4 {
  left: 98.5%;
  bottom: 0;
  top: auto;
  transform: translateX(-50%) translateY(20px);
}

.roadmap__year-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.25);
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.roadmap__year-badge--current {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 16px rgba(255,255,255,0.2);
}

.roadmap__icon {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1;
}

.roadmap__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.roadmap__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  font-family: var(--font-body);
}

/* ══════════════════════════════════
   FLIP CARDS — SERVICIOS
   ══════════════════════════════════ */
.services-grid--4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid--4 .flip-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: 420px;
  height: 360px;
}

/* Fila de 2: centradas */
.services-grid--4 .flip-card:nth-child(4),
.services-grid--4 .flip-card:nth-child(5) {
  flex: 0 0 calc(33.333% - 16px);
}

.flip-card {
  perspective: 1000px;
  height: 360px;
  cursor: pointer;
  will-change: transform;
  transform-origin: center center;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: 22px;
  overflow: hidden;
}

/* FRONT */
.flip-card__front {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1.5px solid rgba(39,23,220,0.12);
  box-shadow:
    0 8px 30px rgba(39,23,220,0.08),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.flip-card:hover .flip-card__front {
  transform: translateY(-4px);
  border-color: rgba(39,23,220,0.45);
  box-shadow:
    0 20px 56px rgba(39,23,220,0.14),
    0 10px 24px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* BACK — degradado lila sólido */
.flip-card__back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%);
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow:
    0 24px 64px rgba(39,23,220,0.25),
    0 12px 28px rgba(0,0,0,0.10);
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 28px 24px;
}



/* ── Front elements ── */
.flip-card__icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(39, 23, 220, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.flip-card__metric {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
  line-height: 1.1;
}

.flip-card__metric-label {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 18px;
}

.flip-card__subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 6px;
}

.flip-card__title {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
  margin: 0;
}

.flip-card__hint {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.flip-card:hover .flip-card__hint {
  opacity: 1;
  color: var(--primary);
}

/* ── Back elements — texto blanco ── */
.flip-card__back-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  margin: 0 0 14px;
}

.flip-card__back-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.90);
  line-height: 1.75;
  margin: 0 0 18px;
  flex: 1;
}

.flip-card__back-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flip-card__back-tags .tag {
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
}

/* ── Events Gallery ── */
.events-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 64px auto 0;
}

.events-gallery__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(39,23,220,0.10);
  box-shadow: 0 6px 24px rgba(39,23,220,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.events-gallery__item:hover {
  transform: translateY(-4px);
  border-color: rgba(39,23,220,0.35);
  box-shadow: 0 20px 56px rgba(39,23,220,0.14), 0 8px 20px rgba(0,0,0,0.06);
}

.events-gallery__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.events-gallery__item:hover img {
  transform: scale(1.04);
}

.events-gallery__label {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .events-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .events-gallery__item img {
    height: 200px;
  }
}

.tag {
  padding: 6px 14px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700;
  background: rgba(39,23,220,0.08);
  color: var(--primary);
  border: 1px solid rgba(39,23,220,0.12);
  font-family: var(--font-body);
}

/* ══════════════════════════════════════
   13. TRACTION
   ══════════════════════════════════════ */
.traction-section {
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%) !important;
  position: relative;
  overflow: hidden;
}

.traction-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(0,0,0,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.traction-section .section__header {
  position: relative;
  z-index: 1;
}

.traction-section .section-label {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

.traction-section .section-title {
  color: #fff;
}

.traction-section .traction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.traction-section .traction-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.traction-section .traction-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.30);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.traction-section .traction-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  margin: 0 auto 20px;
}

.traction-section .traction-card__icon svg {
  stroke: rgba(255,255,255,0.85);
}

.traction-section .traction-card__big {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-family: var(--font-display);
  line-height: 1;
  color: #ffffff;
}

.traction-section .traction-card__label {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-top: 12px;
  font-family: var(--font-body);
}

.traction-section .traction-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  margin-top: 14px;
  line-height: 1.7;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .traction-section .traction-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   14. SOCIAL PROOF
   ══════════════════════════════════════ */
.social-proof {
  padding: 100px clamp(20px, 5vw, 48px) 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent !important;
  overflow: hidden;
}

.social-proof__header {
  margin-bottom: 56px;
}

.social-proof__stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.social-proof__star {
  filter: drop-shadow(0 0 8px rgba(251,191,36,0.5));
}

.social-proof__big {
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #2717DC, #6C5CE7, #9083F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-proof__sub {
  font-size: 16px;
  color: var(--text-mid);
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── Quote Ticker ── */
.social-proof__ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.social-proof__ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}

.social-proof__ticker:hover .social-proof__ticker-track {
  animation-duration: 80s;
}

.social-proof__ticker-set {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

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

.social-proof__quote-card {
  flex-shrink: 0;
  width: 380px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(144,131,241,0.12);
  border-radius: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(39,23,220,0.05);
}

.social-proof__quote-card:hover {
  border-color: rgba(144,131,241,0.30);
  box-shadow: 0 8px 32px rgba(39,23,220,0.10);
}

.social-proof__quote-icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.social-proof__quote-text {
  font-size: 15px;
  color: var(--text-bright);
  line-height: 1.65;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

.social-proof__quote-source {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
}

@media (max-width: 768px) {
  .social-proof__quote-card {
    width: 300px;
    padding: 22px 20px;
  }
  .social-proof__quote-text {
    font-size: 14px;
  }
}

/* ══════════════════════════════════════
   15. TEAM
   ══════════════════════════════════════ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto 40px;
}

.founder-card { padding: 40px 34px; text-align: center; }

.founder-card__avatar {
  position: relative; width: 100px; height: 100px;
  margin: 0 auto 22px;
}

.founder-card__avatar-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--secondary), var(--primary));
  animation: rotateGlow 6s linear infinite;
}

.founder-card__avatar-inner {
  position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(135deg, #f0eeff, #e8e5ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  color: var(--primary); font-family: var(--font-display);
}

.founder-card__name {
  font-size: 22px; font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.founder-card__role {
  font-size: 12px; font-weight: 700;
  color: var(--accent); font-family: var(--font-body);
  letter-spacing: 0.04em; margin-top: 4px;
}

.founder-card__desc {
  font-size: 14px; color: var(--text-mid);
  line-height: 1.65; margin-top: 14px;
  font-family: var(--font-body);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px; max-width: 1000px; margin: 0 auto;
}

.team-card { padding: 28px 18px; text-align: center; }

.team-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  color: var(--accent); font-family: var(--font-display);
}

.team-card__name {
  font-size: 14px; font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
}

.team-card__role {
  font-size: 11px; font-weight: 600;
  color: var(--accent); font-family: var(--font-body);
  margin-top: 3px; opacity: 0.8;
}

/* ══════════════════════════════════════
   16. FINANCIAL METRICS
   ══════════════════════════════════════ */
.finance-card {
  max-width: 1100px; margin: 0 auto;
  padding: 56px clamp(24px, 5vw, 52px);
}

.finance-chart {
  display: flex; gap: clamp(20px, 4vw, 40px);
  align-items: flex-end; justify-content: center;
  height: 300px; margin-bottom: 48px;
  position: relative;
}

/* Trend line overlay */
.finance-trend {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.finance-trend__line {
  stroke-dashoffset: var(--trend-length, 0);
  stroke-dasharray: var(--trend-length, 0);
  transition: stroke-dashoffset 1.2s var(--ease-out-expo);
}

.finance-trend__line.is-drawn {
  stroke-dashoffset: 0;
}

.finance-trend__dot {
  opacity: 0;
  transform-origin: center;
  transform: scale(0);
}

.finance-trend__dot.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: transform 0.45s var(--ease-spring), opacity 0.3s ease;
}

.finance-bar-col {
  display: flex; flex-direction: column;
  align-items: center; flex: 1; max-width: 200px;
  height: 100%; justify-content: flex-end;
}

.finance-bar-label {
  font-family: var(--font-display);
  letter-spacing: -0.03em; margin-bottom: 16px;
  font-weight: 800;
  opacity: 0; transform: translateY(12px);
  transition: all 0.6s ease;
}
.finance-bar-label.is-visible {
  opacity: 1; transform: translateY(0);
}

.finance-bar {
  width: 100%; border-radius: 16px 16px 6px 6px;
  position: relative; overflow: hidden;
  height: 4px;
  transition: height 1.2s var(--ease-out-expo);
}
.finance-bar.is-visible {
  /* height set via JS */
}

.finance-bar__shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(to top, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  animation: textShimmer 3s ease-in-out infinite;
  background-size: 100% 300%;
}

.finance-bar__highlight {
  position: absolute; top: 6px; left: 6px; right: 6px; height: 25%;
  border-radius: 12px 12px 20px 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
}

.finance-year {
  font-size: 17px; font-weight: 800;
  font-family: var(--font-display); margin-top: 16px;
}

.finance-year-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-soft); font-family: var(--font-body);
  margin-top: 2px;
}

.finance-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(144,131,241,0.2), transparent);
  margin-bottom: 32px;
}

.finance-kpis {
  display: flex; justify-content: center;
  gap: clamp(24px, 5vw, 64px); flex-wrap: wrap;
}

.finance-kpi { text-align: center; }
.finance-kpi__value {
  font-size: 24px; font-weight: 800;
  color: var(--accent); font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.finance-kpi__label {
  font-size: 11px; color: var(--text-soft);
  font-weight: 600; font-family: var(--font-body);
  margin-top: 3px;
}

/* Bootstrap badge */
.bootstrap-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 100px;
  background: rgba(144,131,241,0.06);
  border: 1px solid rgba(144,131,241,0.15);
  margin-top: 40px;
}
.bootstrap-badge__text {
  font-size: 14px; font-weight: 700;
  color: var(--text-bright);
  font-family: var(--font-body);
}

/* ══════════════════════════════════════
   17. CTA
   ══════════════════════════════════════ */
.cta-section { padding: 80px clamp(20px, 5vw, 48px) 160px; }

.cta-card {
  max-width: 1100px; margin: 0 auto; text-align: center;
  padding: 80px clamp(28px, 6vw, 68px); border-radius: 32px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(39,23,220,0.4), rgba(144,131,241,0.2), rgba(39,23,220,0.3));
  border: 1px solid rgba(144,131,241,0.3);
  backdrop-filter: blur(30px);

}

.cta-card__blob1, .cta-card__blob2 {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(60px);
}
.cta-card__blob1 {
  top: -100px; right: -100px; width: 300px; height: 300px;
  background: rgba(144,131,241,0.18);
  animation: morphBlob1 15s ease-in-out infinite;
}
.cta-card__blob2 {
  bottom: -80px; left: -80px; width: 250px; height: 250px;
  background: rgba(39,23,220,0.2);
  animation: morphBlob2 12s ease-in-out infinite;
  filter: blur(50px);
}

.cta__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; color: var(--text-white);
  font-family: var(--font-display);
  letter-spacing: -0.04em; line-height: 1.1;
  position: relative;
}

.cta__desc {
  font-size: 17px; color: var(--text-mid);
  margin-top: 20px; line-height: 1.7;
  font-family: var(--font-body);
  position: relative; max-width: 480px; margin: 20px auto 0;
}

.cta__buttons {
  position: relative; margin-top: 40px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 42px; border-radius: 16px;
  background: #fff; color: var(--primary);
  font-size: 16px; font-weight: 800;
  font-family: var(--font-body);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 60px rgba(144,131,241,0.15);
  transition: all 0.4s var(--ease-out-expo);
  border: none; cursor: pointer;
}
.btn-white:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 56px rgba(0,0,0,0.35), 0 0 80px rgba(144,131,241,0.25);
}

.btn-glass {
  padding: 18px 42px; border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
  font-size: 16px; font-weight: 700;
  font-family: var(--font-body);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}
.btn-glass:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.16);
}

/* ══════════════════════════════════════
   18. FOOTER
   ══════════════════════════════════════ */
.footer {
  padding: 48px clamp(20px, 5vw, 48px) 40px;
  border-top: 1px solid rgba(144,131,241,0.06);
  background: #1a1145;
  color: #c0b8e0;
  position: relative; z-index: 1;
}

.footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}

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

.footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: none;
}

.footer__legal {
  font-size: 11.5px; color: #9e96c0;
  font-family: var(--font-body);
}

.footer__legal--small {
  font-size: 11px; margin-top: 2px; opacity: 0.7;
}

.footer__right { text-align: right; }
.footer__award {
  font-size: 12px; color: #9e96c0;
  font-family: var(--font-body);
}
.footer__copyright {
  font-size: 11px; color: #7d75a0;
  font-family: var(--font-body);
  margin-top: 4px;
}

/* ══════════════════════════════════════
   19. SCROLL PROGRESS BAR
   ══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 101;
  background: linear-gradient(90deg, #2717DC, #9083F1, #c4b5fd);
  box-shadow: 0 0 12px rgba(39, 23, 220, 0.5), 0 0 4px rgba(144, 131, 241, 0.4);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}


/* ══════════════════════════════════════
   20. ABOUT SECTION
   ══════════════════════════════════════ */
#about .section__header {
  max-width: 1000px;
}

.about-content {
  max-width: 1100px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-text {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-mid);
  text-align: left;
  line-height: 1.85;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 400;
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.about-stat {
  text-align: center;
}

.about-stat__value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-stat__label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════
   21. HAMBURGER & MOBILE MENU
   ══════════════════════════════════════ */

/* ── Hamburger button ── */
.hamburger {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger__line {
  display: block;
  width: 26px; height: 2.5px;
  border-radius: 2px;
  background: var(--text-bright);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

/* Hamburger lines over light hero */
.navbar:not(.is-scrolled) .hamburger__line {
  background: #2d2260;
}

/* Hamburger → X animation */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ── Mobile menu overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  background: rgba(248,247,255,0.95);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid rgba(144,131,241,0.10);
  transition: max-height 0.5s var(--ease-out-expo);
}

.mobile-menu.is-open {
  max-height: 420px;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 24px clamp(20px, 5vw, 48px) 32px;
  gap: 4px;
}

/* ── Mobile links with stagger ── */
.mobile-menu__link,
.mobile-menu__cta {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring),
              color 0.3s ease, background 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__link,
.mobile-menu.is-open .mobile-menu__cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__cta { transition-delay: 0.30s; }

.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px; font-weight: 700;
  color: var(--text-bright);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: var(--primary);
  background: rgba(99,102,241,0.08);
}

.mobile-menu__cta {
  display: block;
  margin-top: 8px;
  padding: 16px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 15px; font-weight: 700;
  font-family: var(--font-body);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(39, 23, 220, 0.4);
}

/* ══════════════════════════════════════
   22. RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .roadmap__milestone {
    max-width: 200px;
  }
  .roadmap__title { font-size: 16px; }
  .roadmap__desc { font-size: 12.5px; }
  .roadmap__icon { font-size: 30px; }
}

@media (max-width: 768px) {
  .roadmap-section {
    padding: 80px clamp(20px, 5vw, 40px) 100px;
  }

  .roadmap__svg {
    display: none;
  }

  .roadmap {
    padding: 0;
  }

  .roadmap__milestones {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .roadmap__milestone {
    position: relative;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 100%;
    text-align: left;
    display: flex;
    gap: 16px;
    padding-left: 28px;
    border-left: 2px solid rgba(255,255,255,0.20);
  }

  .roadmap__milestone::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
  }

  .roadmap__icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .roadmap__milestone > div:last-child {
    flex: 1;
  }

  .hero__buttons { flex-direction: column; align-items: stretch; }
  .hero__stats { flex-direction: column; gap: 28px !important; }
  .navbar__links { display: none !important; }
  .founders-grid { grid-template-columns: 1fr !important; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__right { text-align: center; }

  /* Show hamburger & mobile menu on mobile */
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

}

/* ══════════════════════════════════════
   23. PREFERS-REDUCED-MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Kill all CSS animations */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Ensure all reveals are visible immediately */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__anim {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Show first rotating text, no animation */
  .hero__rotating-text.is-active {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Stop marquee */
  .clients-marquee__track {
    animation: none !important;
  }

  /* Finance bars: show at target height instantly */
  .finance-bar {
    transition: none !important;
  }

  /* Disable parallax, blobs, shimmer */
  .finance-bar__shimmer,
  .cta-card__blob1,
  .cta-card__blob2,
  .hero__glow {
    animation: none !important;
  }
}


/* Todas las secciones deben ser transparentes */
.section {
  background: transparent !important;
}

.roadmap-section.section {
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%) !important;
}

.traction-section.section {
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%) !important;
}

.cta-section {
  background: transparent !important;
}

/* Footer semi-opaco */
.footer {
  background: rgba(13, 10, 31, 0.92) !important;
  backdrop-filter: blur(10px);
}


/* ══════════════════════════════════════
   NEW: ABOUT HIGHLIGHTS
   ══════════════════════════════════════ */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 48px auto 0;
}

.about-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 30px;
  background: rgba(255,255,255,0.50);
  border: 1.5px solid rgba(39, 23, 220, 0.10);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 8px 32px rgba(39,23,220,0.06),
    0 2px 8px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.7);
  cursor: default;
  will-change: transform;
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.4s ease;
}

.about-highlight-card:hover {
  background: rgba(255,255,255,0.60);
  border-color: rgba(39, 23, 220, 0.35);
  box-shadow:
    0 0 20px rgba(39, 23, 220, 0.15),
    0 0 40px rgba(39, 23, 220, 0.08),
    0 12px 40px rgba(39,23,220,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.about-highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-highlight-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
}

.about-highlight-text span {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  font-family: var(--font-body);
}

/* ══════════════════════════════════════
   NEW: VIDEO CAROUSEL 3D
   ══════════════════════════════════════ */
.section--compact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.video-carousel-scene {
  width: 100%;
  max-width: 1100px;
  height: 460px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.video-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-carousel-card {
  position: absolute;
  width: 420px;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  cursor: none;
  will-change: transform, opacity, filter;
  border: 2px solid rgba(39, 23, 220, 0.15);
  box-shadow:
    0 12px 40px rgba(39,23,220,0.08),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5);
  background: white;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.video-carousel-card:hover {
  border-color: rgba(39, 23, 220, 0.40);
  box-shadow:
    0 0 24px rgba(39, 23, 220, 0.15),
    0 0 48px rgba(39, 23, 220, 0.08),
    0 16px 48px rgba(39,23,220,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.video-carousel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.video-carousel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 2;
}

.video-carousel-title {
  font-size: 14px;
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  margin: 0;
}

.video-carousel-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  margin: 2px 0 0;
}

/* ── Video Cursor ── */
.video-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(39, 23, 220, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(39, 23, 220, 0.4);
}

.video-cursor.is-visible {
  opacity: 1;
  transform: scale(1);
}

.video-cursor svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

/* ══════════════════════════════════════
   RESPONSIVE: New sections
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid--4 .flip-card {
    flex: 0 0 calc(50% - 12px);
  }
  .flip-card { height: 340px; }
}

@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .video-carousel-scene { height: 380px; }
  .video-carousel-card { width: 300px; height: 190px; border-radius: 18px; }
  .video-carousel-title { font-size: 12px; }
}

@media (max-width: 600px) {
  .services-grid--4 .flip-card {
    flex: 0 0 100%;
  }
  .flip-card { height: 320px; }
}

@media (max-width: 480px) {
  .video-carousel-scene { height: 320px; }
  .video-carousel-card { width: 240px; height: 150px; border-radius: 16px; }
}

/* ══════════════════════════════════════
   EQUIPO — FOUNDERS ROW + TEAM DIVISIONS
   ══════════════════════════════════════ */
.founders-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto 64px;
}

.founders-row__photo {
  flex: 0 0 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(39,23,220,0.10);
  box-shadow: 0 8px 32px rgba(39,23,220,0.08);
}

.founders-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founders-row__cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-mini-card {
  padding: 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-mini-card__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

.founder-mini-card__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.founder-mini-card__desc {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
  font-family: var(--font-body);
  margin-top: 10px;
}

/* Team grid horizontal */
.team-grid-horizontal {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.team-grid-horizontal .team-card {
  flex: 0 0 calc(16.666% - 14px);
  min-width: 150px;
}

/* Card variantes color */
.team-card--white {
  background: rgba(255,255,255,0.70) !important;
  border-color: rgba(39,23,220,0.10) !important;
}

.team-card--blue {
  background: linear-gradient(135deg, rgba(39,23,220,0.05), rgba(144,131,241,0.10)) !important;
  border-color: rgba(39,23,220,0.14) !important;
}

/* Responsive equipo */
@media (max-width: 768px) {
  .founders-row {
    flex-direction: column;
  }
  .founders-row__photo {
    flex: none;
    height: 280px;
  }
  .team-grid-horizontal .team-card {
    flex: 0 0 calc(33.333% - 12px);
  }
}

@media (max-width: 480px) {
  .team-grid-horizontal .team-card {
    flex: 0 0 calc(50% - 8px);
  }
}

/* ══════════════════════════════════════
   RECURSOS — TICKER HORIZONTAL
   ══════════════════════════════════════ */
.resources-section {
  overflow: hidden;
}

.resources-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.resources-ticker__track {
  display: flex;
  width: max-content;
  animation: resourcesScroll 45s linear infinite;
  will-change: transform;
}

.resources-ticker:hover .resources-ticker__track {
  animation-play-state: paused;
}

.resources-ticker__set {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

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

/* Resource cards */
.resource-card {
  flex-shrink: 0;
  width: 320px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(39,23,220,0.10);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}

a.resource-card {
  cursor: pointer;
}

a.resource-card:hover {
  border-color: rgba(39,23,220,0.25);
  box-shadow: 0 8px 32px rgba(39,23,220,0.10);
  transform: translateY(-3px);
}

.resource-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

.resource-card--blog .resource-card__tag {
  background: rgba(39,23,220,0.08);
  color: var(--primary);
}

.resource-card--event .resource-card__tag {
  background: rgba(108,92,231,0.10);
  color: var(--accent);
}

.resource-card--product .resource-card__tag {
  background: rgba(144,131,241,0.12);
  color: var(--secondary);
}

.resource-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.resource-card__desc {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  font-family: var(--font-body);
  margin: 0;
}

.resource-card__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-body);
  margin-top: auto;
}

/* ══════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════ */
.cta-final {
  text-align: center;
  padding: 80px clamp(20px, 5vw, 48px) 100px;
}

.cta-final__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin: 0 0 16px;
}

.cta-final__desc {
  font-size: 17px;
  color: var(--text-mid);
  font-family: var(--font-body);
  margin: 0 0 36px;
  line-height: 1.6;
}

.btn-primary--lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ══════════════════════════════════════
   FOOTER CLARO
   ══════════════════════════════════════ */
.footer-clean {
  background: #f8f7ff;
  border-top: 1px solid rgba(39,23,220,0.08);
  padding: 40px clamp(20px, 5vw, 48px);
}

.footer-clean__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-clean__logo {
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-clean__text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
}

.footer-clean__right {
  text-align: right;
}

.footer-clean__highlight {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  margin: 0 0 4px;
}

@media (max-width: 768px) {
  .resource-card {
    width: 280px;
  }
  .footer-clean__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-clean__right {
    text-align: center;
  }
}

/* ══════════════════════════════════════
   ACORDEÓN DE RECURSOS
   ══════════════════════════════════════ */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion__item {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(39,23,220,0.10);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion__item:hover {
  border-color: rgba(39,23,220,0.20);
}

.accordion__item--active {
  border-color: rgba(39,23,220,0.20);
  box-shadow: 0 4px 24px rgba(39,23,220,0.08);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.accordion__tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: 100px;
}

.accordion__tag--blog {
  background: rgba(39,23,220,0.08);
  color: var(--primary);
}

.accordion__tag--event {
  background: rgba(108,92,231,0.10);
  color: var(--accent);
}

.accordion__tag--product {
  background: rgba(144,131,241,0.12);
  color: var(--secondary);
}

.accordion__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
}

.accordion__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion__item--active .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 24px;
}

.accordion__item--active .accordion__body {
  max-height: 200px;
  padding: 0 24px 20px;
}

.accordion__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  font-family: var(--font-body);
  margin: 0 0 10px;
}

.accordion__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-body);
  text-decoration: none;
  transition: color 0.2s;
}

.accordion__link:hover {
  color: var(--primary);
}

/* ══════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════ */
.cta-final {
  text-align: center;
  padding: 80px clamp(20px, 5vw, 48px) 100px;
}

.cta-final__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin: 0 0 16px;
}

.cta-final__desc {
  font-size: 17px;
  color: var(--text-mid);
  font-family: var(--font-body);
  margin: 0 0 36px;
  line-height: 1.6;
}

.btn-primary--lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ══════════════════════════════════════
   FOOTER CLARO
   ══════════════════════════════════════ */
.footer-clean {
  background: #f8f7ff;
  border-top: 1px solid rgba(39,23,220,0.08);
  padding: 40px clamp(20px, 5vw, 48px);
}

.footer-clean__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-clean__logo {
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-clean__text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
}

.footer-clean__right {
  text-align: right;
}

.footer-clean__highlight {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  margin: 0 0 4px;
}

@media (max-width: 768px) {
  .footer-clean__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-clean__right {
    text-align: center;
  }
}

/* ══════════════════════════════════════
   RECURSOS — FONDO DEGRADADO PURPLE
   ══════════════════════════════════════ */
.resources-section {
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%) !important;
  position: relative;
  overflow: hidden;
}

.resources-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(0,0,0,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.resources-section .section-label {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

.resources-section .section-title {
  color: #fff;
}

.resources-section .accordion {
  position: relative;
  z-index: 1;
}

.resources-section .accordion__item {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
}

.resources-section .accordion__item:hover {
  border-color: rgba(255,255,255,0.25);
}

.resources-section .accordion__item--active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.resources-section .accordion__title {
  color: #fff;
}

.resources-section .accordion__chevron {
  color: rgba(255,255,255,0.5);
}

.resources-section .accordion__desc {
  color: rgba(255,255,255,0.65);
}

.resources-section .accordion__link {
  color: rgba(255,255,255,0.9);
}

.resources-section .accordion__link:hover {
  color: #fff;
}

.resources-section .accordion__tag--blog {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.resources-section .accordion__tag--event {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.resources-section .accordion__tag--product {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* ══════════════════════════════════════
   PANELES EXPANDIBLES — HOVER
   ══════════════════════════════════════ */
.panels-section {
  background: linear-gradient(135deg, #2717DC 0%, #5a3ef5 40%, #7c6cf0 70%, #9083F1 100%) !important;
  position: relative;
  overflow: hidden;
}

.panels-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(0,0,0,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.panels-section .section__header {
  position: relative;
  z-index: 1;
}

.panels {
  display: flex;
  gap: 8px;
  height: 480px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 20px;
  background-image: var(--panel-bg);
  background-size: cover;
  background-position: center;
  background-color: rgba(39,23,220,0.3);
}

/* Fallback si no hay imagen */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39,23,220,0.4), rgba(108,92,231,0.3));
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Si tiene imagen de fondo, el ::after es menos visible */
.panel[style*="url"] .panel::after {
  opacity: 0;
}

.panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.panel__tag,
.panel__title,
.panel__desc {
  position: relative;
  z-index: 2;
}

/* Colapsado: solo título vertical */
.panel__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.panel__title {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  font-family: var(--font-body);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
  max-width: 300px;
}

/* Panel activo por defecto y hover */
.panel--active,
.panels:hover .panel:hover {
  flex: 4;
}

.panels:hover .panel {
  flex: 1;
}

.panels:hover .panel:hover {
  flex: 4;
}

.panels:not(:hover) .panel--active {
  flex: 4;
}

/* Cuando un panel está expandido: título horizontal, desc visible */
.panel--active .panel__title,
.panels:hover .panel:hover .panel__title {
  writing-mode: horizontal-tb;
  text-orientation: initial;
  font-size: 22px;
  white-space: normal;
  margin-bottom: 8px;
}

.panel--active .panel__tag,
.panels:hover .panel:hover .panel__tag {
  opacity: 1;
  transform: translateY(0);
}

.panel--active .panel__desc,
.panels:hover .panel:hover .panel__desc {
  opacity: 1;
  transform: translateY(0);
}

/* Cuando NO se hace hover en el container, resetear los no-activos */
.panels:not(:hover) .panel:not(.panel--active) .panel__tag,
.panels:not(:hover) .panel:not(.panel--active) .panel__desc {
  opacity: 0;
}

.panels:not(:hover) .panel:not(.panel--active) .panel__title {
  writing-mode: vertical-rl;
  font-size: 13px;
}

/* ══════════════════════════════════════
   CTA FINAL (v2)
   ══════════════════════════════════════ */
.cta-final {
  text-align: center;
  padding: 80px clamp(20px, 5vw, 48px) 100px;
}

.cta-final__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text-white);
  margin: 0 0 16px;
}

.cta-final__desc {
  font-size: 17px;
  color: var(--text-mid);
  font-family: var(--font-body);
  margin: 0 0 36px;
  line-height: 1.6;
}

.btn-primary--lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ══════════════════════════════════════
   FOOTER CLARO (v2)
   ══════════════════════════════════════ */
.footer-clean {
  background: #f8f7ff;
  border-top: 1px solid rgba(39,23,220,0.08);
  padding: 40px clamp(20px, 5vw, 48px);
}

.footer-clean__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-clean__logo {
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-clean__text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
}

.footer-clean__right {
  text-align: right;
}

.footer-clean__highlight {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  margin: 0 0 4px;
}

@media (max-width: 768px) {
  .panels {
    flex-direction: column;
    height: auto;
  }
  .panel {
    min-height: 120px;
    flex: none !important;
  }
  .panel__title {
    writing-mode: horizontal-tb !important;
    font-size: 17px !important;
  }
  .panel__tag,
  .panel__desc {
    opacity: 1 !important;
    transform: none !important;
  }
  .footer-clean__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-clean__right {
    text-align: center;
  }
}