/* Hero gradient & clip */
.hero-gradient {
  background: linear-gradient(135deg, #3E56FF 0%, #2E3FCC 50%, #1a2a99 100%);
}

/* POS Terminal */
.pos-terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}

.pos-receipt {
  width: 120px;
  background: #f9f9f5;
  border-radius: 2px 2px 0 0;
  padding: 8px 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  /* Torn edge effect */
  mask-image: linear-gradient(to bottom, transparent 0%, white 3%);
}

.pos-body {
  width: 220px;
  background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1e 50%, #2a2a2e 100%);
  border-radius: 20px 20px 12px 12px;
  padding: 14px 14px 16px;
  position: relative;
  z-index: 1;
}

.pos-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #e97320, transparent);
  border-radius: 0 0 4px 4px;
}

.pos-screen {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #333;
}

.pos-grip {
  width: 180px;
  height: 60px;
  background: linear-gradient(145deg, #e8e8e8 0%, #ccc 40%, #e8e8e8 100%);
  border-radius: 0 0 30px 30px;
  position: relative;
  z-index: 0;
  margin-top: -2px;
}

.pos-grip::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #bbb;
  border-radius: 3px;
}

/* Feature card hover */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 40px rgba(62, 86, 255, 0.12);
}

/* Step connector line */
.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background: linear-gradient(90deg, #3E56FF, #a5b4fc);
}

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.6s ease-out forwards;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Pricing card highlight */
.pricing-highlight {
  position: relative;
  border: 2px solid #3E56FF;
}

.pricing-highlight::before {
  content: 'Recomendado';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #3E56FF;
  color: white;
  padding: 2px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Nav active link */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3E56FF;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Trust badge pulse */
.trust-icon {
  transition: transform 0.2s ease;
}

.trust-icon:hover {
  transform: scale(1.05);
}

/* Phone mockup frame for screenshots */
.phone-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  background: linear-gradient(145deg, #1a1a1e 0%, #2a2a2e 50%, #1a1a1e 100%);
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a1e;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-frame img {
  display: block;
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* Dual phone layout */
.dual-phones {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
}

.dual-phones .phone-frame {
  padding: 8px;
  border-radius: 24px;
}

.dual-phones .phone-frame::before {
  width: 60px;
  height: 18px;
  border-radius: 0 0 12px 12px;
}

.dual-phones .phone-frame img {
  max-width: 180px;
  border-radius: 16px;
}
