/* FacturaScan Specific Styles */

/* Global Background Gradient */
html {
  /* Mobile browser theme color support */
  background-color: #0a0a0f;
}

body {
  background: linear-gradient(
    180deg,
    #1a1a2e 0%,
    #16213e 50%,
    #0f1729 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  /* Ensure mobile browser UI matches theme */
  min-height: -webkit-fill-available;
}

/* Fix Flaticon icon centering globally */
[class*="fi-"]::before {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

/* =============================================
   FACTURASCAN HERO SECTION
   ============================================= */

/* Hero Section */
.facturascan-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Synthetic-Hero for FacturaScan (network background) */
.synthetic-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 8rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Animated Network Background (used in FacturaScan hero) */
.synthetic-hero__background {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.network-viz {
  position: relative;
  width: 100%;
  height: 100%;
}

.network-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  animation: pulse-node 3s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.6),
              0 0 40px rgba(59, 130, 246, 0.4);
}

.network-node::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent);
  animation: ripple 2s ease-out infinite;
  animation-delay: var(--delay);
}

@keyframes pulse-node {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.network-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.connection-line {
  stroke: url(#gradient-line);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0.3;
  animation: draw-line 4s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
}

/* Content */
.synthetic-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.facturascan-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.facturascan-hero__badge,
.synthetic-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.facturascan-hero__badge i,
.synthetic-hero__badge i {
  color: #00d4ff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.facturascan-hero__title,
.synthetic-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
  display: block;
  margin-bottom: 0.3rem;
}

.title-highlight {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}

.gradient-text-animated {
  background: linear-gradient(
    90deg,
    #9333ea 0%,
    #3b82f6 25%,
    #0ea5e9 50%,
    #3b82f6 75%,
    #9333ea 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.facturascan-hero__subtitle,
.synthetic-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.facturascan-hero__ctas,
.synthetic-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-large i {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-large.btn-secondary {
  background: var(--glass-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-large.btn-secondary:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: var(--card-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

button.btn-large {
  cursor: pointer;
  font-family: var(--font-family);
}

.btn-glow {
  position: relative;
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #9333ea, #3b82f6);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 0.7;
  animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    filter: blur(10px);
  }
  50% {
    filter: blur(15px);
  }
}

/* Stats */
.facturascan-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.stat-item:hover::before {
  width: 200px;
  height: 200px;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.stat-value.animated {
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
  }
}

.stat-value::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.6s ease;
  transform-origin: center;
}

.stat-item:hover .stat-value::after {
  transform: scaleX(1);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--text-secondary);
}

/* How it Works Section */
.facturascan-how-it-works {
  padding: 6rem 2rem;
  background: transparent;
  position: relative;
  margin-bottom: 0;
}

/* How it Works Grid */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* How it Works Step Cards */
.how-it-works-step {
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.how-it-works-step .step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(102, 126, 234, 0.15));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.how-it-works-step .step-icon i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #00d4ff, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-it-works-step .step-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: #00d4ff;
}

.how-it-works-step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.how-it-works-step p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.how-it-works-step:hover {
  transform: translateY(-8px);
}

.how-it-works-step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(0, 212, 255, 0.6);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(102, 126, 234, 0.25));
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.highlight-text {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
}

/* Document Types */
.facturascan-document-types {
  padding: 6rem 2rem;
  background: transparent;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}

.document-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.document-type-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.document-type-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.document-type-item:hover {
  background: var(--card-hover-bg);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(8px);
}

.document-type-item i {
  font-size: 1.8rem;
  color: #ff9500;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.document-type-item i::before {
  display: block;
  line-height: 1;
}

.document-type-item span {
  font-size: var(--font-size-lg);
  font-weight: 500;
}

.custom-document-cta {
  text-align: center;
  margin-top: 4rem;
}

.custom-question {
  font-size: var(--font-size-xl);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Screenshots Showcase */
.facturascan-screenshots {
  padding: 6rem 2rem 8rem 2rem;
  background: transparent;
  position: relative;
  margin-bottom: 0;
}

.screenshots-showcase {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Ocultar indicadores en desktop */
.screenshots-indicators {
  display: none;
}

.screenshot-main {
  display: none; /* Hidden - screenshots now open in lightbox */
}

.screenshots-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.thumbnail-btn {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.6) 0%,
    rgba(22, 33, 62, 0.7) 100%
  );
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.thumbnail-btn:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.7) 0%,
    rgba(22, 33, 62, 0.8) 100%
  );
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.thumbnail-btn.active {
  border-color: #00d4ff;
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
}

.thumbnail-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-btn:hover img {
  transform: scale(1.05);
}

.thumbnail-btn span {
  padding: 0.875rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 600;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
}

/* Process Adaptation */
.facturascan-process {
  padding: 6rem 2rem;
  background: transparent;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}

/* Process Content Layout */
.process-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Process Visual (Left side - Diagram) */
.process-visual {
  position: relative;
}

.process-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem;
}

/* Process Flow Steps */
.process-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 280px;
}

/* Process Nodes */
.process-node {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.node-upload {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(59, 130, 246, 0.2));
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
}

.node-ai {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(102, 126, 234, 0.2));
  border: 2px solid rgba(147, 51, 234, 0.5);
  color: #9333ea;
}

.node-rules {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(59, 130, 246, 0.2));
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
}

.node-decision {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 107, 0, 0.2));
  border: 2px solid rgba(255, 159, 10, 0.5);
  color: #ff9f0a;
  width: 90px;
  height: 90px;
  border-radius: 12px;
}

.node-success {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.3), rgba(16, 185, 129, 0.3));
  border: 2px solid rgba(52, 211, 153, 0.6);
  color: #34d399;
  width: 70px;
  height: 70px;
}

.node-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
  border: 2px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
  width: 70px;
  height: 70px;
}

/* Process Labels */
.process-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.process-label.success {
  color: #34d399;
  font-weight: 600;
}

.process-label.error {
  color: #ef4444;
  font-weight: 600;
}

/* Process Arrows */
.process-arrow-down {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.5), rgba(0, 212, 255, 0.2));
  position: relative;
  margin: 0.5rem 0;
}

.process-arrow-down::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(0, 212, 255, 0.5);
}

.success-arrow {
  background: linear-gradient(to bottom, rgba(52, 211, 153, 0.5), rgba(52, 211, 153, 0.2));
}

.success-arrow::after {
  border-top-color: rgba(52, 211, 153, 0.5);
}

.error-arrow {
  background: linear-gradient(to bottom, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.2));
}

.error-arrow::after {
  border-top-color: rgba(239, 68, 68, 0.5);
}

/* Process Branches Container */
.process-branches-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  margin-top: 1rem;
}

.process-branch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Process Info (Right side - Text) */
.process-info {
  text-align: left;
}

.process-info h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.process-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.process-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.process-features li i {
  color: #34d399;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Benefits / ROI */
.facturascan-benefits {
  padding: 6rem 2rem;
  background: transparent;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.benefit-card {
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.benefit-icon {
  margin-bottom: 2rem;
}

.benefit-percentage {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
  font-weight: 600;
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.benefits-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Final CTA Section */
.facturascan-final-cta {
  padding: 4rem 2rem 8rem 2rem;
  background: transparent;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.final-cta-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Visual Side */
.final-cta-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-icon-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.15));
  border: 3px solid rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.25), inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.cta-icon-container::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--primary-gradient);
  z-index: -1;
  opacity: 0.7;
  filter: blur(25px);
  animation: pulse-glow-cta 2s ease-in-out infinite;
  pointer-events: none;
}

.cta-icon-container i {
  font-size: 5rem;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 6px 12px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse-glow-cta {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.cta-stats-mini {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.cta-stat-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cta-stat-badge:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.cta-stat-badge i {
  font-size: 1.5rem;
  color: #00d4ff;
  flex-shrink: 0;
}

.cta-stat-badge span {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Content Side */
.final-cta-content {
  text-align: left;
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.cta-label i {
  color: #ffd700;
  font-size: 1rem;
}

.final-cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cta-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.cta-benefit-item i {
  color: #38ef7d;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.final-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cta-primary:hover::before {
  transform: translateX(100%);
}

.cta-secondary {
  position: relative;
}

.cta-secondary:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(102, 126, 234, 0.1));
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.video-modal.active .video-modal__content {
  transform: scale(1) translateY(0);
}

.video-modal__close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(238, 9, 121, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.video-modal__close:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 32px rgba(238, 9, 121, 0.6);
}

.video-modal__close i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.video-modal__player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================
   HIDE BROWSER SCROLLBAR
   ============================ */
html {
  scrollbar-width: none; /* Firefox */
  scrollbar-gutter: stable; /* Prevent layout shift */
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ============================
   SCROLL PROGRESS INDICATOR
   ============================ */
/* ============================================
   SCROLL PROGRESS - NOW IN assets/css/components/scroll-progress.css
   Commented out to avoid duplication
   ============================================ */

/* All scroll-progress styles moved to modular CSS */

/* ============================
   SCROLL INDICATOR (HERO)
   ============================ */
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-indicator__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.scroll-indicator__mouse {
  width: 28px;
  height: 44px;
  border: 2px solid #00d4ff;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(10, 20, 40, 0.18);
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: #00d4ff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  animation: scroll-dot-move 1.5s infinite;
  opacity: 0.8;
}

@keyframes scroll-dot-move {
  0% {
    opacity: 0.7;
    top: 10px;
  }
  40% {
    opacity: 1;
    top: 22px;
  }
  80% {
    opacity: 0.7;
    top: 34px;
  }
  100% {
    opacity: 0;
    top: 40px;
  }
}

/* ============================
   SCREENSHOT LIGHTBOX MODAL
   ============================ */
.screenshot-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.screenshot-lightbox.active {
  display: flex;
  opacity: 1;
}

.screenshot-lightbox__container {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-lightbox.active .screenshot-lightbox__container {
  transform: scale(1);
  opacity: 1;
}

.screenshot-lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(0, 212, 255, 0.3),
    0 0 40px rgba(0, 212, 255, 0.2);
  object-fit: contain;
}

.screenshot-lightbox__caption {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.screenshot-lightbox__close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.screenshot-lightbox__close:hover {
  background: rgba(245, 87, 108, 0.9);
  border-color: #f5576c;
  transform: scale(1.1) rotate(90deg);
}

.screenshot-lightbox__close i {
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* ============================================
     HEADER STYLES - NOW IN assets/css/components/header.css
     Commented out to avoid duplication
     ============================================ */

  /* All header mobile styles moved to modular CSS */

  /* .header {
    padding: 0.875rem 0;
  }

  .header__container {
    padding: 0 1rem;
  }

  .header__logo-text {
    font-size: 1.125rem;
    letter-spacing: 0.5px;
  }

  .header__nav-toggle {
    width: 40px;
    height: 40px;
  }

  .header__nav-toggle i {
    font-size: 1.25rem;
  } */

  .facturascan-hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  .synthetic-hero {
    padding: 8rem 1.5rem 4rem;
    min-height: 100vh;
    justify-content: center;
  }

  .network-node {
    width: 8px;
    height: 8px;
  }

  .synthetic-hero__badge {
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem !important;
    gap: 0.5rem !important;
  }

  .synthetic-hero__badge i {
    font-size: 1rem !important;
  }

  .synthetic-hero__badge span {
    font-size: 0.8125rem !important;
  }

  .facturascan-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }

  .facturascan-hero__subtitle {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.6;
  }

  .scroll-indicator {
    bottom: 1.5rem !important;
  }

  .scroll-indicator__label {
    font-size: 0.8125rem !important;
    margin-bottom: 0.5rem !important;
  }

  .scroll-indicator__mouse {
    width: 22px !important;
    height: 32px !important;
  }

  /* Section headers responsive */
  .section-header h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 1rem;
  }

  .section-header p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
  }

  .facturascan-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .how-it-works-step {
    padding: 2rem 1.5rem;
  }

  .how-it-works-step .step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }

  .how-it-works-step .step-icon i {
    font-size: 2rem;
  }

  .how-it-works-step .step-number {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    top: 1.5rem;
    right: 1.5rem;
  }

  .how-it-works-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
  }

  .how-it-works-step p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .document-types-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .document-types-group {
    margin-bottom: 1rem;
  }

  .document-types-group h3 {
    font-size: clamp(1rem, 4vw, 1.125rem);
    margin-bottom: 0.75rem;
  }

  .document-type-item {
    padding: 0.875rem 1rem;
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
  }

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

  /* Fix responsive for process section */
  .process-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-text h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .process-text p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
  }

  .process-features-list li {
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  }

  .process-diagram {
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .process-node {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .node-decision {
    width: 70px;
    height: 70px;
  }

  .node-success,
  .node-error {
    width: 55px;
    height: 55px;
  }

  .process-label {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    max-width: 100px;
  }

  .process-branches-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-branch {
    margin: 0 auto;
  }

  .final-cta-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .final-cta-visual {
    order: 1;
  }

  .final-cta-content {
    order: 2;
    text-align: center;
  }

  .final-cta-content h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 1rem;
  }

  .final-cta-content p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.6;
  }

  .cta-icon-container {
    width: 140px;
    height: 140px;
  }

  .cta-icon-container i {
    font-size: 3.5rem;
  }

  .cta-label {
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 1rem;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }

  .cta-stats {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-stat {
    padding: 0.75rem 1rem;
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
  }

  .cta-benefits-list {
    align-items: center;
    gap: 0.75rem;
  }

  .cta-benefit-item {
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
    padding-left: 2rem;
  }

  .final-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
    font-size: clamp(0.9375rem, 3vw, 1rem);
    padding: 1rem 1.5rem;
  }

  /* Mobile: Carousel horizontal swipeable */
  .screenshots-showcase {
    position: relative;
    overflow: visible;
    padding: 0 1rem;
  }

  .screenshot-main {
    display: none; /* Ocultar imagen principal en mobile */
  }

  .screenshots-thumbnails {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0.5rem;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin: 0 -1rem; /* Compensar padding del container */
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .screenshots-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .thumbnail-btn {
    flex: 0 0 90%;
    scroll-snap-align: center;
    min-width: 90%;
    padding: 0;
    border: 2px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(
      135deg,
      rgba(26, 26, 46, 0.6) 0%,
      rgba(22, 33, 62, 0.7) 100%
    );
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
  }

  .thumbnail-btn img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .thumbnail-btn:active img {
    transform: scale(0.97);
  }

  .thumbnail-btn span {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
  }

  .thumbnail-btn.active {
    border-color: #00d4ff;
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
    transform: scale(1.01);
  }

  /* Indicadores de progreso (dots) */
  .screenshots-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    margin-top: 2rem;
    padding: 0.75rem;
  }

  .screenshot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .screenshot-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
  }

  .screenshot-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
  }

  .screenshot-dot.active {
    width: 28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #00d4ff 0%, #667eea 100%);
    box-shadow:
      0 2px 8px rgba(0, 212, 255, 0.4),
      0 0 16px rgba(0, 212, 255, 0.3);
  }

  .screenshot-dot.active::before {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent);
  }

  .screenshots-section {
    padding: 3rem 0;
  }

  .screenshot-lightbox {
    padding: 1rem;
  }

  .screenshot-lightbox__image {
    max-height: 70vh;
    border-radius: var(--radius-lg);
  }

  .screenshot-lightbox__caption {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .screenshot-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .facturascan-hero {
    padding: 5rem 1rem 2rem;
  }

  .facturascan-hero__title {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .facturascan-hero__subtitle {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }

  .facturascan-hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .how-it-works-step {
    padding: 1.5rem 1.25rem;
  }

  .how-it-works-step .step-icon {
    width: 60px;
    height: 60px;
  }

  .how-it-works-step .step-icon i {
    font-size: 1.75rem;
  }

  .how-it-works-step .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .how-it-works-step h3 {
    font-size: 1.125rem;
  }

  .how-it-works-step p {
    font-size: 0.875rem;
  }

  .document-type-item {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .process-node {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .node-decision {
    width: 60px;
    height: 60px;
  }

  .process-label {
    font-size: 0.75rem;
    max-width: 80px;
  }

  .cta-icon-container {
    width: 120px;
    height: 120px;
  }

  .cta-icon-container i {
    font-size: 3rem;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* Carousel más grande en pantallas muy pequeñas */
  .thumbnail-btn {
    flex: 0 0 90%;
    min-width: 90%;
  }

  .screenshots-indicators {
    margin-top: 1rem;
  }

  .screenshot-dot {
    width: 6px;
    height: 6px;
  }

  .screenshot-dot.active {
    width: 20px;
  }

  .video-modal__content {
    width: 95%;
    margin: 1rem;
    padding: 1rem;
  }

  .video-modal__close {
    top: -0.5rem;
    right: -0.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .video-modal__player {
    aspect-ratio: 16 / 9;
  }

  .final-cta-actions {
    gap: 0.75rem;
  }

  .cta-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-stat {
    width: 100%;
  }
}

/* Hide scroll progress on smaller screens */
@media (max-width: 1200px) {
  .scroll-progress {
    display: none;
  }

  /* Show scrollbar on mobile */
  html {
    scrollbar-width: auto;
  }

  html::-webkit-scrollbar {
    display: block;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .network-node,
  .connection-line {
    animation: none !important;
  }
}

/* High contrast improvements */
@media (prefers-contrast: high) {
  .facturascan-hero__badge,
  .document-type-item,
  .thumbnail-btn {
    border-width: 2px;
  }

  .gradient-text {
    -webkit-text-fill-color: #00d4ff;
  }
}
