/* ============================================================
   QRSPACE — Main Stylesheet
   Dark-mode, Glassmorphism, Mobile-First
   Acento violeta (estilo Byterock/protoWebsite)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Palette */
  --clr-bg:            #0a0a0f;
  --clr-bg-alt:        #0f0f17;
  --clr-bg-card:       #13131e;
  --clr-surface:       #1a1a2e;
  --clr-border:        rgba(255, 255, 255, 0.06);
  --clr-border-light:  rgba(255, 255, 255, 0.10);

  --clr-text:          #e8e8f0;
  --clr-text-muted:    #8888a0;
  --clr-text-dim:      #5a5a7a;

  /* Accent — electric violet */
  --clr-accent:        #8b5cf6;
  --clr-accent-hover:  #a78bfa;
  --clr-accent-glow:   rgba(139, 92, 246, 0.35);
  --clr-accent-soft:   rgba(139, 92, 246, 0.12);

  /* Gradient */
  --gradient-primary:  linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-text:     linear-gradient(135deg, #c084fc 0%, #818cf8 100%);

  /* Typography */
  --ff-body:           'Inter', system-ui, -apple-system, sans-serif;
  --ff-heading:        'Outfit', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --container-max:     1200px;
  --container-padding: 1.5rem;

  /* Shadows */
  --shadow-sm:         0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:         0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg:         0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow:       0 0 40px var(--clr-accent-glow);

  /* Glass */
  --glass-bg:          rgba(255, 255, 255, 0.03);
  --glass-bg-hover:    rgba(255, 255, 255, 0.06);
  --glass-blur:        20px;
  --glass-border:      rgba(255, 255, 255, 0.08);

  /* Transitions */
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:       cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:     150ms;
  --duration-base:     300ms;
  --duration-slow:     600ms;

  /* Nav */
  --navbar-height:     72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ---------- Section Common ---------- */
.section {
  padding-block: 6rem;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  padding: 0.35em 1em;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__description {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--ff-body);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65em 1.5em;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-out-expo),
    color var(--duration-base) var(--ease-out-expo),
    border-color var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--clr-accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 6px 32px var(--clr-accent-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--glass-bg);
  color: var(--clr-text);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
}

.btn--ghost:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border-light);
}

.btn--outline:hover {
  background: var(--glass-bg);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 0.85em 2em;
  font-size: 1rem;
}

.btn i {
  font-size: 1.05em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--navbar-height);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--duration-base);
}

.navbar__glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar__logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
}

.navbar__logo-img {
  display: block;
  height: 32px;
  width: auto;
}

/* Nav desktop */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar__link {
  font-size: 0.9rem;
  transition: color var(--duration-fast);
}

.navbar__link:hover {
  color: var(--clr-accent-hover);
}

/* Cart */
.navbar__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  transition:
    color var(--duration-fast),
    background var(--duration-fast),
    border-color var(--duration-fast);
}

.navbar__cart:hover {
  color: var(--clr-accent-hover);
  background: var(--clr-accent-soft);
  border-color: rgba(139, 92, 246, 0.25);
}

.navbar__cart--mobile {
  display: none;
}

/* Lang Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: var(--glass-bg);
  color: var(--clr-text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.45em 0.9em;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--duration-fast),
    background var(--duration-fast),
    border-color var(--duration-fast);
}

.lang-toggle:hover {
  color: var(--clr-text);
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle i {
  font-size: 0.9rem;
}

/* Navbar right group (mobile: hamburger) */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out-expo),
              opacity var(--duration-fast);
}

.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay — hidden on desktop */
.mobile-overlay {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  padding-block: 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Decorative orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--clr-accent);
  top: -20%;
  right: -10%;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: #6366f1;
  bottom: -15%;
  left: -5%;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -30px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid pattern */
.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.4em 1em;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 0.15em;
  max-width: 130px;
}

/* QR scanning visual */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 3.5rem;
}

.hero__scan {
  position: relative;
  width: 240px;
  max-width: 100%;
  padding: 1.25rem;
  background: linear-gradient(160deg, rgba(19, 19, 30, 0.85) 0%, rgba(19, 19, 30, 0.45) 100%);
  border: 1px solid var(--clr-border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(139, 92, 246, 0.12);
}

.hero__scan-inner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.hero__scan-inner img {
  width: 100%;
  height: auto;
}

/* Scan corners */
.hero__scan-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--clr-accent);
  filter: drop-shadow(0 0 6px var(--clr-accent-glow));
  z-index: 3;
}

.hero__scan-corner--tl { top: -10px;  left: -10px;  border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.hero__scan-corner--tr { top: -10px;  right: -10px; border-left: 0;  border-bottom: 0; border-top-right-radius: 10px; }
.hero__scan-corner--bl { bottom: -10px; left: -10px; border-right: 0; border-top: 0;   border-bottom-left-radius: 10px; }
.hero__scan-corner--br { bottom: -10px; right: -10px; border-left: 0; border-top: 0;   border-bottom-right-radius: 10px; }

/* Scanning laser */
.hero__shot-laser {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 3%;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--clr-accent-hover) 20%, #fff 50%, var(--clr-accent-hover) 80%, transparent 100%);
  box-shadow:
    0 0 8px var(--clr-accent-hover),
    0 0 20px var(--clr-accent-hover),
    0 8px 32px -4px var(--clr-accent-glow);
  border-radius: 100px;
  animation: laserScan 2.6s ease-in-out infinite;
}

@keyframes laserScan {
  0%, 100% { top: 3%; }
  50%      { top: 97%; }
}

/* Scan status + live feed */
.hero__scan-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 260px;
}

.hero__scan-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-accent-hover);
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.45em 1.1em;
  border-radius: 100px;
}

.hero__scan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__feed {
  width: 100%;
  height: 116px;
  padding: 0.75rem 1rem;
  background: rgba(19, 19, 30, 0.6);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__feed-row {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  opacity: 0;
  animation: feedRow 6s ease-in-out infinite;
}

.hero__feed-row:nth-child(1) { animation-delay: 0s; }
.hero__feed-row:nth-child(2) { animation-delay: 2s; }
.hero__feed-row:nth-child(3) { animation-delay: 4s; }

.hero__feed-row i {
  color: #22c55e;
  font-size: 0.85rem;
}

.hero__feed-name {
  font-weight: 600;
  color: var(--clr-text);
}

.hero__feed-time {
  margin-left: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  color: var(--clr-text-dim);
}

@keyframes feedRow {
  0%, 8%   { opacity: 0; transform: translateY(10px); }
  18%, 40% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(-8px); }
}

.hero__scan-text {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   SEGMENTS (¿Cómo podemos ayudarle?)
   ============================================================ */
.segments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.segment-card {
  position: relative;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition:
    border-color var(--duration-base),
    box-shadow var(--duration-base),
    transform var(--duration-base);
}

.segment-card:hover {
  border-color: var(--clr-border-light);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.segment-card--featured {
  background: linear-gradient(145deg, var(--clr-bg-card) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.segment-card--featured:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.08);
}

.segment-card__shot {
  max-width: 180px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
}

.segment-card__shot img {
  width: 100%;
  height: auto;
}

.segment-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.segment-card__icon i {
  font-size: 1.3rem;
  color: var(--clr-accent-hover);
}

.segment-card__title {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.segment-card__text {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.segment-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-accent-hover);
  transition: gap var(--duration-fast);
}

.segment-card__link:hover {
  gap: 0.8em;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: left;
  padding: 2.5rem 2rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  transition:
    border-color var(--duration-base),
    box-shadow var(--duration-base),
    transform var(--duration-base);
}

.feature-card:hover {
  border-color: var(--clr-border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
}

.feature-card__icon i {
  font-size: 1.4rem;
  color: var(--clr-accent-hover);
}

.feature-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================================
   SCREENSHOTS / DEMO
   ============================================================ */
.screens__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.screens__item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-md);
  background: var(--clr-bg-card);
}

.screens__item img {
  width: 100%;
  height: auto;
}

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

/* ============================================================
   SUCCESS CASES
   ============================================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.case-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  box-shadow: var(--shadow-md);
  background: var(--clr-bg-card);
  transition:
    transform var(--duration-base),
    border-color var(--duration-base),
    box-shadow var(--duration-base);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  transition:
    border-color var(--duration-base),
    box-shadow var(--duration-base),
    transform var(--duration-base);
}

.price-card:hover {
  border-color: var(--clr-border-light);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.price-card--featured {
  background: linear-gradient(145deg, var(--clr-bg-card) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(139, 92, 246, 0.25);
}

.price-card--featured:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.12);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-primary);
  padding: 0.35em 1.2em;
  border-radius: 100px;
  box-shadow: 0 4px 16px var(--clr-accent-glow);
  white-space: nowrap;
}

.price-card__period {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent-hover);
  margin-bottom: 0.5rem;
}

.price-card__name {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price-card__amount {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.price-card__amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.price-card__text {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 340px;
}

.price-card__note {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-bottom: 2rem;
}

.price-card .btn {
  width: 100%;
  max-width: 260px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
  padding: 2.25rem 2rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    border-color var(--duration-base),
    box-shadow var(--duration-base),
    transform var(--duration-base);
}

.blog-card:hover {
  border-color: var(--clr-border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.blog-card--banner {
  max-width: 640px;
  margin-inline: auto;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(145deg, var(--clr-bg-card) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.blog-card--banner:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.1);
}

.blog-card--banner .blog-card__icon {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  border-radius: 16px;
}

.blog-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: var(--clr-accent-hover);
  font-size: 1.2rem;
}

.blog-card__title {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-card--banner .blog-card__title {
  font-size: 1.4rem;
}

.blog-card__desc {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-accent-hover);
  margin-top: auto;
  transition: gap var(--duration-fast);
}

.blog-card__link:hover {
  gap: 0.8em;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta__card {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 24px;
  overflow: hidden;
}

.cta__card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--clr-accent);
  filter: blur(120px);
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--clr-accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta__icon i {
  font-size: 1.4rem;
  color: var(--clr-accent-hover);
}

.cta__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta__text {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--clr-border);
  padding-block: 4rem 2rem;
  background: var(--clr-bg-alt);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__logo-img {
  display: block;
  height: 34px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--glass-bg);
  border: 1px solid var(--clr-border-light);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  transition:
    color var(--duration-fast),
    background var(--duration-fast),
    border-color var(--duration-fast);
}

.footer__social a:hover {
  color: var(--clr-accent-hover);
  background: var(--clr-accent-soft);
  border-color: rgba(139, 92, 246, 0.25);
}

.footer__col h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--clr-text);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__col li,
.footer__col a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color var(--duration-fast);
}

.footer__col a:hover {
  color: var(--clr-text);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.08); }
  20%      { transform: scale(1); }
}

/* ============================================================
   REVEAL ANIMATIONS (driven by JS)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .section {
    padding-block: 4rem;
  }

  /* --- Mobile Nav --- */
  .navbar__nav {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__cart--mobile {
    display: inline-flex;
  }

  /* --- Mobile Overlay (body-level, no stacking conflicts) --- */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: rgba(10, 10, 15, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--duration-base) var(--ease-out-expo),
      visibility var(--duration-base) var(--ease-out-expo);
    overflow-y: auto;
    padding: 2rem;
  }

  .mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-overlay__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
  }

  .mobile-overlay__links .navbar__link {
    font-size: 1.2rem;
  }

  .mobile-overlay__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .mobile-overlay__actions .navbar__cta {
    font-size: 1rem;
    padding: 0.7em 1.8em;
  }

  .mobile-overlay__cart {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    border-radius: 14px;
  }

  /* Hero stats */
  .hero__stats {
    gap: 1.5rem;
  }

  .hero__stat-number {
    font-size: 1.4rem;
  }

  /* Segments */
  .segments__grid {
    grid-template-columns: 1fr;
  }

  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* Screens */
  .screens__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Cases */
  .cases__grid {
    grid-template-columns: 1fr;
  }

  /* Blog banner */
  .blog-card--banner {
    padding: 2.5rem 1.5rem;
  }

  /* CTA */
  .cta__card {
    padding: 3rem 1.5rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* WhatsApp button */
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    font-size: 1.4rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

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

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta__actions .btn {
    width: 100%;
  }
}
