/* ===================================================================
   FUTURA ECOSISTEMA FINANCIERO - ESTILOS COMPARTIDOS
   Transiciones Limpias · Nu Bank Engine · Marquee · Responsive
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Marca Futura */
  --futura-green: #8AEA00;         /* Verde Eléctrico Neobank (#8AEA00) */
  --futura-lime: #8AEA00;          /* Verde Eléctrico Neobank */
  --futura-lime-hover: #7DD600;    /* Verde Hover */
  --futura-green-deep: #00A859;    /* Verde Esmeralda */
  --futura-green-soft: #EAF8F0;
  --futura-green-glow: rgba(138, 234, 0, 0.45);

  --futura-magenta: #E11D48;       /* Magenta / Fucsia */
  --futura-magenta-vibrant: #FF007A;
  --futura-magenta-soft: #FFF1F4;
  --futura-magenta-glow: rgba(225, 29, 72, 0.35);

  --futura-blue: #0284C7;          /* Azul */
  --futura-blue-vibrant: #2563EB;
  --futura-blue-soft: #F0F9FF;

  /* Paleta Corporativa Futura (Sustituye el morado/lila Nu por Verde Corporativo) */
  --nu-purple: #8AEA00;            /* Verde Neobank Futura (#8AEA00) */
  --nu-purple-dark: #7DD600;       /* Verde Hover */
  --nu-purple-light: #8AEA00;      /* Verde Neón Firma */
  --nu-lilac: #E2F7EB;             /* Tinte Verde Corporativo Suave (Transición de sección) */
  --nu-lilac-soft: #EEFBF3;        /* Fondo Verde Tenue */
  --nu-gray-bg: #F5F5F7;
  --nu-text-dark: #111111;
  --nu-text-muted: #555555;

  /* Dark Theme Tokens */
  --dark-bg-900: #070A0F;
  --dark-bg-800: #0B0F17;
  --dark-bg-700: #121824;
  --dark-border: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===================================================================
   GLOBAL BUTTON STYLES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary-green {
  background-color: var(--futura-green);
  color: #070A0F !important;
  box-shadow: 0 4px 16px rgba(140, 234, 0, 0.35);
}

.btn-primary-green:hover {
  background-color: var(--futura-green-neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(140, 234, 0, 0.5);
  color: #070A0F !important;
}

.btn-primary-green:active {
  transform: translateY(0);
}

.nu-btn-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--futura-green-deep, #00A859);
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  padding: 13px 28px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 168, 89, 0.28);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nu-btn-purple:hover {
  background-color: var(--futura-green-dark, #008744);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 89, 0.42);
  color: #FFFFFF !important;
}

.nu-btn-purple:active {
  transform: translateY(0);
}

/* Scroll Reveal (Graceful fallback - visible by default) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .reveal-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

body.js-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   MARQUEE DE ALIADOS (HORIZONTAL INFINITO SIN APILARSE)
   =================================================================== */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 16px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex !important;
  flex-direction: row !important;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  gap: 56px;
  align-items: center;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.partner-logo-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===================================================================
   NU BANK 3D CAROUSEL COMPONENT
   =================================================================== */
.nu-carousel-section {
  padding: 90px 0 70px;
  background: #FFFFFF;
  overflow: hidden;
  text-align: center;
}

.nu-carousel-heading h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111111;
  margin-bottom: 12px;
}

.nu-carousel-heading p {
  color: #555555;
  font-size: 1.15rem;
  margin-bottom: 48px;
}

.nu-3d-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nu-slide-card {
  position: absolute;
  width: 380px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  user-select: none;
  cursor: pointer;
}

.nu-slide-img-wrap {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.nu-slide-img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.nu-slide-card:hover .nu-slide-img {
  transform: translateY(-6px) scale(1.03);
}

.nu-slide-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 8px;
}

.nu-slide-card p {
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

.nu-slide-card.slide-center {
  transform: translateX(0) translateZ(80px) scale(1.06);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
}

.nu-slide-card.slide-left {
  transform: translateX(-320px) translateZ(-60px) rotateY(18deg) scale(0.88);
  z-index: 5;
  opacity: 0.75;
  filter: blur(0.5px);
}

.nu-slide-card.slide-right {
  transform: translateX(320px) translateZ(-60px) rotateY(-18deg) scale(0.88);
  z-index: 5;
  opacity: 0.75;
  filter: blur(0.5px);
}

.nu-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.nu-dots-pill {
  display: flex;
  align-items: center;
  background: #EAEAEA;
  padding: 6px 14px;
  border-radius: 9999px;
  gap: 8px;
}

.nu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nu-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: #111111;
}

.nu-btn-pause {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EAEAEA;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

/* ===================================================================
   NU BANK LILAC SECTION (#ECD9FF)
   =================================================================== */
.nu-lilac-section {
  background-color: var(--nu-lilac);
  padding: 100px 0;
  position: relative;
}

.nu-lilac-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  align-items: flex-start;
}

.nu-lilac-sticky-info {
  position: sticky;
  top: 120px;
}

.nu-lilac-sticky-info h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #111111;
  margin-bottom: 20px;
}

.nu-lilac-sticky-info p {
  font-size: 1.15rem;
  color: #444444;
  line-height: 1.6;
}

.nu-lilac-cards-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nu-card-white {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(90, 8, 148, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nu-card-white:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(90, 8, 148, 0.12);
}

.nu-card-preview-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nu-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 10px;
}

.nu-card-content p {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===================================================================
   NU BANK 5-CAPSULE GALLERY
   =================================================================== */
.nu-capsules-section {
  padding: 100px 0;
  background: #FFFFFF;
  text-align: center;
}

.nu-capsules-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1100px;
  margin: 40px auto 32px;
  height: 440px;
}

.nu-capsule-item {
  flex: 1;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nu-capsule-item.active {
  flex: 2.5;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.nu-capsule-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nu-capsule-item:hover .nu-capsule-img {
  transform: scale(1.05);
}

.nu-capsule-caption {
  max-width: 650px;
  margin: 0 auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nu-capsule-caption h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 8px;
}

.nu-capsule-caption p {
  color: #555555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .nu-lilac-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nu-lilac-sticky-info {
    position: static;
  }
  .nu-card-white {
    grid-template-columns: 1fr;
  }
  .nu-capsules-container {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .nu-3d-stage {
    min-height: 420px;
  }
  .nu-slide-card {
    width: 290px;
    padding: 24px;
  }
  .nu-slide-card.slide-left,
  .nu-slide-card.slide-right {
    display: none;
  }
  .nu-capsules-container {
    height: 260px;
    gap: 8px;
  }
}
