/* ============================================
   BLACK N ORANGE — Design System
   Landing Page "Escala tu Demanda" Monterrey
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables (BnO Brand Tokens) --- */
:root {
  --fiery-orange: #FE8301;
  --mellow-yellow: #FFED02;
  --lively-pink: #ED8BFA;
  --cool-gray: #EBEAE8;
  --slack-black: #000000;
  --white: #FFFFFF;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--fiery-orange), var(--mellow-yellow), var(--lively-pink));
  --gradient-warm: linear-gradient(135deg, var(--fiery-orange), var(--mellow-yellow));
  --gradient-glow: linear-gradient(135deg, var(--mellow-yellow), var(--lively-pink));

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow-orange: 0 0 40px rgba(254, 131, 1, 0.3);
  --shadow-glow-pink: 0 0 40px rgba(237, 139, 250, 0.25);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s var(--ease-smooth);
  --transition-slow: all 0.6s var(--ease-smooth);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--slack-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--slack-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: opacity 0.6s var(--ease-smooth);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 120px;
  height: auto;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loading-bar-container {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-warm);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-smooth);
}

.loading-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(254, 131, 1, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 25px rgba(254, 131, 1, 0.6));
  }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-base);
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.6rem 1.4rem;
  background: var(--fiery-orange);
  color: var(--slack-black);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.navbar-deadline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.navbar-cta:hover {
  background: var(--mellow-yellow);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-orange);
}

/* --- Hero Intro (Text Section — Apple-style) --- */
.hero-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-3xl) + 40px) var(--space-lg) var(--space-xl);
  position: relative;
  z-index: 3;
  background: var(--slack-black);
}

.hero-content {
  max-width: 800px;
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: bounce-hint 2s ease-in-out infinite;
}

@keyframes bounce-hint {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* --- Hero Scroll Animation --- */
.hero-scroll-container {
  height: 500vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#frame-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, black 50%, transparent 85%);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(254, 131, 1, 0.15);
  border: 1px solid rgba(254, 131, 1, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fiery-orange);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 2.5rem;
  background: var(--fiery-orange);
  color: var(--slack-black);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition-base);
  box-shadow: var(--shadow-glow-orange);
}

.hero-cta:hover {
  background: var(--mellow-yellow);
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(254, 131, 1, 0.5);
}

/* --- Sections Common --- */
.section {
  padding: var(--space-3xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(254, 131, 1, 0.1);
  border: 1px solid rgba(254, 131, 1, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fiery-orange);
  margin-bottom: var(--space-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.section-title .highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  line-height: 1.8;
}

/* Animate on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

/* --- Section: ¿Qué incluye? (Benefits Grid) --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* --- Split Layout (Image + Text side by side) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.split-layout.reverse .split-image {
  order: 2;
}

.split-layout.reverse .split-text {
  order: 1;
}

.split-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.split-image img:hover {
  transform: scale(1.02);
}

.split-text .section-title {
  text-align: left;
}

.split-text .section-label {
  text-align: left;
  display: inline-block;
}

.split-text .section-description {
  text-align: left;
}

/* --- Section Hero Image (full-width banner between content) --- */
.section-hero-image {
  max-width: 900px;
  margin: var(--space-xl) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.section-hero-image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.section-hero-image:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .split-layout.reverse .split-image,
  .split-layout.reverse .split-text {
    order: unset;
  }

  .split-text .section-title,
  .split-text .section-label,
  .split-text .section-description {
    text-align: center;
  }
}

.benefit-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition-base);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(254, 131, 1, 0.2);
  transform: translateY(-4px);
}

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

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(254, 131, 1, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.benefit-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* --- Section: Steps (¿Cómo participar?) --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  position: relative;
}

.step-card {
  position: relative;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.step-card:hover {
  border-color: rgba(254, 131, 1, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--slack-black);
  margin-bottom: var(--space-sm);
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* --- Section: Timeline (Fechas clave) --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--fiery-orange), var(--lively-pink));
}

.timeline-item {
  position: relative;
  padding-left: var(--space-md);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fiery-orange);
  border: 3px solid var(--slack-black);
  box-shadow: 0 0 12px rgba(254, 131, 1, 0.4);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fiery-orange);
  margin-bottom: 2px;
}

.timeline-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Section: Not Selected Message --- */
.info-card {
  background: rgba(237, 139, 250, 0.06);
  border: 1px solid rgba(237, 139, 250, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(237, 139, 250, 0.08), transparent 70%);
  pointer-events: none;
}

.info-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* --- Section: Terms --- */
.terms-list {
  list-style: none;
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.terms-list li {
  position: relative;
  padding-left: var(--space-md);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.terms-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--fiery-orange);
  font-weight: 700;
}

/* --- Section: Client Logos --- */
.logos-marquee {
  overflow: hidden;
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  position: relative;
}

.logos-marquee::before,
.logos-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 1;
}

.logos-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--slack-black), transparent);
}

.logos-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--slack-black), transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  animation: marquee 25s linear infinite;
}

.logos-track img {
  height: 50px;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: var(--transition-base);
}

.logos-track img:hover {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(254, 131, 1, 0.4));
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- CTA Final Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(254, 131, 1, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-big-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.2rem 3.5rem;
  background: var(--gradient-warm);
  color: var(--slack-black);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-glow-orange);
  animation: pulse-cta 3s ease-in-out infinite;
}

.cta-big-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 80px rgba(254, 131, 1, 0.5);
}

@keyframes pulse-cta {

  0%,
  100% {
    box-shadow: 0 0 40px rgba(254, 131, 1, 0.3);
  }

  50% {
    box-shadow: 0 0 60px rgba(254, 131, 1, 0.5);
  }
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-logo {
  height: 32px;
  margin: 0 auto var(--space-md);
  opacity: 0.6;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--fiery-orange);
}

/* --- Card Animations --- */
.card-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- Squiggle Decorations --- */
.squiggle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.squiggle-1 {
  top: 10%;
  right: -5%;
  width: 300px;
  transform: rotate(-20deg);
}

.squiggle-2 {
  bottom: 5%;
  left: -8%;
  width: 250px;
  transform: rotate(15deg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) var(--space-sm);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: var(--space-xs) var(--space-sm);
  }

  .navbar-cta {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .navbar-deadline {
    display: none;
  }

  .hero-scroll-container {
    height: 250vh;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .section-hero-image {
    max-height: 250px;
  }

  .section-hero-image img {
    object-fit: cover;
  }

  .timeline {
    padding-left: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .cta-big-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}