/* ==========================================================================
   NEGOCIO PRO - SYSTEMA DE DISEÑO (ORGANIC TECH)
   ========================================================================== */

/* IMPORTACIÓN DE FUENTES */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta de Colores Principal */
  --color-deep-forest: #0A2018;
  --color-moss-green: #1E5C3A;
  --color-sage: #4D9B72;
  --color-green: #2EBF7E;
  --color-green-glow: rgba(46, 191, 126, 0.15);
  --color-terracotta: #2EBF7E;
  --color-terracotta-glow: rgba(46, 191, 126, 0.15);
  --color-warm-cream: #F0F5F2;
  --color-soft-sand: #C8DDD4;
  --color-charcoal: #080F0C;
  --color-dark-green: #050D09;

  /* Gradientes */
  --grad-forest: linear-gradient(135deg, #0A2018 0%, #123828 100%);
  --grad-terracotta: linear-gradient(135deg, #2EBF7E 0%, #56D69A 100%);
  --grad-dark: linear-gradient(180deg, #080F0C 0%, #050D09 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Fuentes */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  /* Spacing & Borders */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET GENERAL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-charcoal);
  color: var(--color-warm-cream);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* GLOBAL NOISE GRAIN TEXTURE */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-charcoal);
}
::-webkit-scrollbar-thumb {
  background: var(--color-moss-green);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-terracotta);
}

/* TYPOGRAPHY */
h1, h2 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-warm-cream);
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-warm-cream);
  letter-spacing: -0.01em;
}

p {
  color: var(--color-soft-sand);
  line-height: 1.6;
  font-weight: 300;
}

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

/* LAYOUT CONTAINER & UTILITIES */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.text-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-sage);
}

.gradient-text {
  background: var(--grad-terracotta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-terracotta);
  color: var(--color-charcoal);
  border: none;
  box-shadow: 0 10px 30px rgba(46, 191, 126, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #56D69A 0%, #2EBF7E 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(46, 191, 126, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--color-warm-cream);
  border: 1px solid rgba(244, 239, 231, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(244, 239, 231, 0.05);
  border-color: var(--color-warm-cream);
  transform: translateY(-3px);
}

/* GLASSMORPHISM CARDS */
.glass-panel {
  background: var(--grad-glass);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* DYNAMIC GLOW BACKGROUNDS */
.glow-ambient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 46, 42, 0.45) 0%, rgba(17, 23, 20, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.glow-terracotta {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 191, 126, 0.1) 0%, rgba(8, 15, 12, 0) 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* HEADER & NAVIGATION */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(17, 23, 20, 0.85);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-warm-cream);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  display: inline;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-soft-sand);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--color-warm-cream);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-terracotta);
  transition: var(--transition-smooth);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-warm-cream);
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* SECTION STRUCTURE */
section {
  position: relative;
  padding: 5rem 0;
  z-index: 2;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

/* ==========================================================================
   1. HERO SECTION (Split Cinematic Narrative Hero)
   ========================================================================== */
.hero-section {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(15, 46, 42, 0.6) 0%, rgba(17, 23, 20, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(46, 191, 126, 0.08) 0%, rgba(17, 23, 20, 0) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-content {
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 226, 52, 0.08);
  border: 1px solid rgba(255, 226, 52, 0.3);
  margin-bottom: 2rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFE234;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--color-terracotta); }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-soft-sand);
  margin-bottom: 3rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  cursor: pointer;
}

.scroll-indicator p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-warm-cream), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--color-terracotta);
  animation: scroll-down 2s infinite ease-in-out;
}

@keyframes scroll-down {
  0% { transform: translateY(-100%); }
  80% { transform: translateY(350%); }
  100% { transform: translateY(350%); }
}

/* HERO VISUAL ELEMENT (FLOAT COMPOSITION) */
.hero-visual {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

@media (max-width: 992px) {
  .hero-visual {
    height: 400px;
  }
}

.floating-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hero-card {
  position: absolute;
  transition: transform 0.1s ease-out;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
}

.card-main {
  width: 320px;
  top: 15%;
  left: 10%;
  z-index: 3;
}

.card-sec {
  width: 240px;
  bottom: 12%;
  right: 5%;
  z-index: 2;
}

.card-chart {
  width: 280px;
  top: 45%;
  right: 15%;
  z-index: 4;
}

.hero-decor-line {
  position: absolute;
  stroke: var(--color-terracotta);
  stroke-dasharray: 6, 6;
  opacity: 0.3;
  z-index: 1;
}

/* Floating particles in background */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--color-sage);
  border-radius: 50%;
  opacity: 0.15;
}

/* ==========================================================================
   2. SOCIAL PROOF (Logos + Métricas + Testimonios)
   ========================================================================== */
.social-proof-section {
  background: var(--color-charcoal);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.logos-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-item {
  height: 35px;
  opacity: 0.3;
  filter: grayscale(1);
  transition: var(--transition-fast);
  cursor: pointer;
}

.logo-item:hover {
  opacity: 0.9;
  filter: grayscale(0) brightness(1.2);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 6rem 0;
}

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--color-warm-cream);
  line-height: 1;
}

.metric-number span {
  color: var(--color-terracotta);
}

.metric-label {
  font-size: 0.95rem;
  color: var(--color-sage);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.metric-desc {
  font-size: 0.85rem;
  color: var(--color-soft-sand);
  margin-top: 0.25rem;
}

/* Testimonios Masonry */
.section-intro {
  margin-bottom: 5rem;
  max-width: 800px;
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-soft-sand);
}

.testimonials-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .testimonials-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.testimonial-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--color-warm-cream);
  font-weight: 300;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-warm-cream);
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-sage);
}

.testimonial-card::after {
  content: '“';
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 6rem;
  font-family: var(--font-headings);
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
}

/* ==========================================================================
   3. STACK DE SERVICIOS
   ========================================================================== */
.services-section {
  background: radial-gradient(circle at 10% 20%, rgba(15, 46, 42, 0.5) 0%, rgba(17, 23, 20, 0) 50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  height: 380px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-soft-sand);
  margin-bottom: auto;
  line-height: 1.6;
}

.service-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-sage);
  margin-top: 2rem;
}

.service-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-terracotta);
  opacity: 0.3;
  transition: var(--transition-smooth);
}

/* Card hover animation */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 120%, rgba(46, 191, 126, 0.08) 0%, rgba(46, 191, 126, 0) 70%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 191, 126, 0.25);
  box-shadow: 0 20px 40px rgba(46, 191, 126, 0.05);
}

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

.service-card:hover .service-icon {
  background: var(--color-terracotta);
  color: var(--color-charcoal);
  box-shadow: 0 10px 20px rgba(46, 191, 126, 0.3);
  transform: scale(1.05);
}

.service-card:hover .service-indicator span {
  opacity: 1;
  box-shadow: 0 0 8px var(--color-terracotta);
}

/* ==========================================================================
   4. MICRO-UIs INTERACTIVAS
   ========================================================================== */
.microui-section {
  background: var(--color-charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.microui-container {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.ui-showcase-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 6rem;
  align-items: center;
}

.ui-showcase-row:nth-child(even) {
  grid-template-columns: 1.05fr 0.95fr;
}

.ui-showcase-row:nth-child(even) .ui-info-pane {
  order: 2;
}

.ui-showcase-row:nth-child(even) .ui-mockup-pane {
  order: 1;
}

@media (max-width: 992px) {
  .ui-showcase-row, .ui-showcase-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .ui-showcase-row:nth-child(even) .ui-info-pane {
    order: 1;
  }
  .ui-showcase-row:nth-child(even) .ui-mockup-pane {
    order: 2;
  }
}

.ui-info-pane {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ui-num {
  font-family: var(--font-mono);
  color: var(--color-terracotta);
  font-weight: 500;
  font-size: 0.9rem;
}

.ui-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.ui-desc {
  font-size: 1.05rem;
  color: var(--color-soft-sand);
  margin-bottom: 1rem;
}

.ui-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ui-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-warm-cream);
}

.ui-features li i {
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.ui-mockup-pane {
  position: relative;
}

/* MICRO-UI 1: Workflow Visualizer */
.workflow-ui {
  padding: 2rem;
  height: 420px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.node {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(17, 23, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: var(--transition-fast);
}

.node span {
  font-size: 0.8rem;
  font-weight: 500;
}

.node i {
  color: var(--color-terracotta);
  font-size: 1rem;
}

.node-active {
  border-color: var(--color-moss-green);
  box-shadow: 0 0 20px rgba(62, 107, 97, 0.25);
}

.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-terracotta);
  opacity: 0;
  pointer-events: none;
}

.node-active .node-pulse {
  animation: pulse-out 2s infinite;
}

@keyframes pulse-out {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.node-trigger { top: 10%; left: 10%; }
.node-agent { top: 40%; left: 45%; }
.node-action-a { top: 20%; right: 10%; }
.node-action-b { bottom: 15%; right: 10%; }
.node-crm { bottom: 10%; left: 20%; }

.svg-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.svg-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5;
}

.svg-path-active {
  fill: none;
  stroke: var(--color-terracotta);
  stroke-width: 1.5;
  stroke-dasharray: 8, 200;
  animation: dash 3s infinite linear;
}

@keyframes dash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -208; }
}

/* MICRO-UI 2: ROI Calculator Preview */
.roi-ui {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calculator-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.calculator-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-soft-sand);
}

.input-val-display {
  font-family: var(--font-mono);
  color: var(--color-warm-cream);
  font-weight: 500;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-terracotta);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(46, 191, 126, 0.5);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-label {
  font-size: 0.75rem;
  color: var(--color-sage);
  font-family: var(--font-mono);
}

.result-val {
  font-family: var(--font-headings);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-warm-cream);
}

.result-val span {
  color: var(--color-terracotta);
}

/* MICRO-UI 3: Live Automation Feed */
.feed-ui {
  padding: 1.5rem;
  height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.feed-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.feed-indicator span {
  width: 6px;
  height: 6px;
  background-color: #4cd964;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.feed-window {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  overflow-y: hidden;
  position: relative;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-item.show {
  opacity: 1;
  transform: translateY(0);
}

.feed-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46, 191, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-terracotta);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.feed-item-content {
  flex-grow: 1;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

.feed-item-text {
  font-weight: 450;
  color: var(--color-warm-cream);
}

.feed-item-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-sage);
}

/* ==========================================================================
   5. PROCESO DE TRABAJO (Timeline Vertical)
   ========================================================================== */
.process-section {
  background: radial-gradient(circle at 90% 80%, rgba(62, 107, 97, 0.15) 0%, rgba(17, 23, 20, 0) 50%);
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 5rem auto 0;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-moss-green), var(--color-terracotta));
  z-index: 1;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 8rem;
  z-index: 2;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step:nth-child(even) .step-info {
  grid-column: 2;
}

.timeline-step:nth-child(even) .step-visual {
  grid-column: 1;
  text-align: right;
  justify-content: flex-end;
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-num-bg {
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: 7rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.015);
  line-height: 1;
  pointer-events: none;
  z-index: -1;
}

.timeline-step:nth-child(even) .step-num-bg {
  left: auto;
  right: -20px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-terracotta);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.step-title {
  font-size: 1.8rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-soft-sand);
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.step-visual-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
  font-size: 1.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-step:hover .step-visual-icon {
  color: var(--color-warm-cream);
  border-color: var(--color-terracotta);
  box-shadow: 0 0 30px rgba(46, 191, 126, 0.15);
  transform: scale(1.05);
}

.timeline-dot {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-charcoal);
  border: 3px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-dot {
  border-color: var(--color-terracotta);
  background: var(--color-terracotta);
  box-shadow: 0 0 10px var(--color-terracotta);
}

@media (max-width: 768px) {
  .timeline-line, .timeline-progress, .timeline-dot {
    left: 20px;
  }
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
    padding-left: 50px;
  }
  .timeline-step:nth-child(even) .step-info {
    grid-column: 1;
  }
  .timeline-step:nth-child(even) .step-visual {
    grid-column: 1;
    justify-content: flex-start;
    text-align: left;
  }
  .step-visual {
    order: -1;
  }
  .step-visual-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .timeline-dot {
    top: 25px;
    left: 20px;
  }
  .step-num-bg {
    font-size: 5rem;
    top: -20px;
  }
}

/* ==========================================================================
   6. CASOS / RESULTADOS (Sticky Scrolling)
   ========================================================================== */
.cases-section {
  background: var(--color-charcoal);
}

.cases-sticky-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.case-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  border-radius: var(--radius-lg);
  padding: 4rem;
  position: sticky;
  top: 100px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  margin-bottom: 4rem;
  overflow: hidden;
}

@media (max-width: 992px) {
  .case-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
    top: 80px;
  }
}

.case-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-client {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
}

.case-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--color-sage);
}

.case-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.case-desc {
  font-size: 1rem;
  color: var(--color-soft-sand);
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-terracotta);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--color-sage);
}

.case-visual-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 320px;
}

.case-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-visual {
  transform: scale(1.05);
}

/* Card custom offset background layers */
.case-card:nth-child(1) { background: linear-gradient(135deg, #0b221f 0%, #061513 100%); }
.case-card:nth-child(2) { background: linear-gradient(135deg, #111a18 0%, #090e0c 100%); }
.case-card:nth-child(3) { background: linear-gradient(135deg, #1c1c1b 0%, #101010 100%); }

/* ==========================================================================
   7. MANIFIESTO DE MARCA (Bloque Inmersivo)
   ========================================================================== */
.manifesto-section {
  background: radial-gradient(circle at 50% 40%, rgba(46,191,126,0.06) 0%, rgba(8,15,12,0) 65%);
  padding: 5rem 0;
}

/* MANIFESTO NUEVO */
.manifesto-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.manifesto-item {
  display: grid;
  grid-template-columns: 56px 1px 1fr;
  gap: 0;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
  transition: background 0.3s;
}

.manifesto-item:last-child { border-bottom: none; }

.manifesto-item:hover {
  background: rgba(46,191,126,0.04);
}

.manifesto-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-green);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}

.manifesto-line {
  width: 1px;
  background: rgba(255,255,255,0.07);
  align-self: stretch;
  margin: 0 2rem;
}

.manifesto-body { flex: 1; }

.manifesto-phrase {
  font-family: var(--font-headings);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-warm-cream) !important;
  line-height: 1.2;
  margin-bottom: 0.6rem !important;
  letter-spacing: -0.01em;
}

.manifesto-phrase em {
  font-style: normal;
  color: var(--color-green);
}

.manifesto-sub {
  font-size: 0.875rem;
  color: var(--color-soft-sand) !important;
  line-height: 1.65;
  font-weight: 300 !important;
  margin-bottom: 0 !important;
}

.manifesto-cierre {
  font-family: var(--font-headings);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-soft-sand);
  text-align: center;
  margin-top: 4rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.manifesto-cierre span {
  color: var(--color-green);
}

@media (max-width: 640px) {
  .manifesto-item { grid-template-columns: 40px 1px 1fr; padding: 1.5rem; }
  .manifesto-line { margin: 0 1rem; }
}

.manifesto-text {
  font-family: var(--font-headings);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-warm-cream);
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.manifesto-text p {
  color: var(--color-warm-cream);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.manifesto-text p span {
  color: var(--color-green);
}

.manifesto-text p.small-m {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-family: var(--font-mono);
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4rem;
}

/* ==========================================================================
   8. EQUIPO / VISIÓN
   ========================================================================== */
.team-section {
  background: var(--color-charcoal);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #222;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: var(--transition-smooth);
}

.team-card:hover .team-img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}

.team-quote-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(17, 23, 20, 0.95), transparent);
  transform: translateY(100%);
  transition: var(--transition-smooth);
  opacity: 0;
}

.team-card:hover .team-quote-overlay {
  transform: translateY(0);
  opacity: 1;
}

.team-quote {
  font-size: 0.9rem;
  color: var(--color-soft-sand);
  font-style: italic;
  line-height: 1.5;
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 600;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-terracotta);
}

/* ==========================================================================
   9. FAQ PREMIUM (Accordion)
   ========================================================================== */
.faq-section {
  background: radial-gradient(circle at 10% 80%, rgba(15, 46, 42, 0.5) 0%, rgba(17, 23, 20, 0) 50%);
}

.faq-list {
  max-width: 800px;
  margin: 5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(46, 191, 126, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.faq-trigger {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-warm-cream);
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--color-sage);
}

.faq-item:hover .faq-icon-box {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.faq-item.active .faq-icon-box {
  transform: rotate(45deg);
  background: var(--color-terracotta);
  color: var(--color-charcoal);
  border-color: var(--color-terracotta);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  padding: 0 2rem 2rem;
  font-size: 0.95rem;
  color: var(--color-soft-sand);
  line-height: 1.6;
}

/* ==========================================================================
   10. CTA FINAL INMERSIVO
   ========================================================================== */
.cta-section {
  padding: 12rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(46, 191, 126, 0.15) 0%, rgba(17, 23, 20, 0) 70%),
              linear-gradient(180deg, #111714 0%, #071c19 100%);
  overflow: hidden;
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.cta-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-soft-sand);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* FOOTER */
.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0;
  background: #071c19;
}

.footer-grid,
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .footer-grid,
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-info,
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-sage);
}

.footer-logo {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-logo span {
  color: var(--color-green);
  font-weight: 800;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--color-soft-sand);
  max-width: 320px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-sage);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-soft-sand);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-warm-cream);
  padding-left: 3px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-sage);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MOBILE EXPANSIONS & SMOOTH SCROLL ACCENTS
   ========================================================================== */
.fade-in-trigger {
  opacity: 0;
  transform: translateY(30px);
}

/* Modal form contact override (optional placeholder structure) */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: rgba(17, 23, 20, 0.85);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.modal-card {
  width: 100%;
  max-width: 550px;
  padding: 3rem;
  position: relative;
  animation: modal-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-soft-sand);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-warm-cream);
  border-color: var(--color-warm-cream);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-sage);
}

.form-input {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-warm-cream);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-terracotta);
  background: rgba(255, 255, 255, 0.04);
}

.modal-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
