/* ================================================================
   AMAZONITA CREATIVA — premium.css
   
   1. TOKEN BRIDGE (--az-* → tokens reales)
   2. HERO PREMIUM
   3. CARDS & HOVER PREMIUM
   4. PRODUCT PAGE PREMIUM
   5. CART & CHECKOUT PREMIUM
   6. MICROINTERACCIONES & MOTION
   7. MOBILE PREMIUM
   8. TIPOGRAFÍA & COPYWRITING HELPERS
   9. TRUST SIGNALS
   10. SCROLLBAR & POLISH GLOBAL
   ================================================================ */


/* ================================================================
   1. TOKEN BRIDGE
   Mapea --az-* a los tokens reales de tokens.css
   ================================================================ */
:root {
  /* Spacing bridge */
  --az-spacing-xs:   var(--space-2);
  --az-spacing-sm:   var(--space-3);
  --az-spacing-md:   var(--space-4);
  --az-spacing-lg:   var(--space-6);
  --az-spacing-xl:   var(--space-8);
  --az-spacing-2xl:  var(--space-10);
  --az-spacing-3xl:  var(--space-12);
  --az-spacing-4xl:  var(--space-16);
  --az-spacing-5xl:  var(--space-20);

  /* Color bridge */
  --az-bg-primary:     var(--clr-bg);
  --az-bg-alt:         var(--clr-bg-alt);
  --az-surface-1:      var(--clr-surface);
  --az-surface-2:      var(--clr-surface);
  --az-surface-3:      var(--clr-surface-alt);
  --az-border-primary: var(--clr-border);
  --az-border-hover:   var(--clr-border-mid);
  --az-accent:         var(--clr-accent);
  --az-accent-dim:     var(--clr-accent-dim);
  --az-violet:         var(--clr-accent2);
  --az-text-primary:   var(--clr-text);
  --az-text-secondary: var(--clr-text-muted);
  --az-text-muted:     var(--clr-text-faint);

  /* Typography bridge */
  --az-font-display: var(--font-display);
  --az-font-body:    var(--font-body);
  --az-font-mono:    var(--font-mono);

  /* Text size bridge */
  --az-text-xs:   var(--text-xs);
  --az-text-sm:   var(--text-sm);
  --az-text-base: var(--text-base);
  --az-text-lg:   var(--text-lg);
  --az-text-xl:   var(--text-xl);
  --az-text-2xl:  var(--text-2xl);
  --az-text-3xl:  var(--text-3xl);
  --az-text-4xl:  var(--text-4xl);

  /* Radius bridge */
  --az-radius-sm:   var(--radius-sm);
  --az-radius-md:   var(--radius-md);
  --az-radius-lg:   var(--radius-lg);
  --az-radius-xl:   var(--radius-xl);
  --az-radius-2xl:  var(--radius-2xl);
  --az-radius-full: var(--radius-full);

  /* Transition bridge */
  --az-transition-fast: var(--dur-fast) var(--ease-smooth);
  --az-transition-base: var(--dur-normal) var(--ease-smooth);

  /* Nav height */
  --az-nav-height: 72px;

  /* Premium additions */
  --az-glow-accent:  0 0 40px rgba(94,255,163,0.18), 0 0 80px rgba(94,255,163,0.08);
  --az-glow-sm:      0 0 20px rgba(94,255,163,0.12);
  --premium-border-glow: rgba(94,255,163,0.25);
  --premium-blur: blur(20px) saturate(1.5);
}


/* ================================================================
   2. HERO — UPGRADE PREMIUM
   Problemas: hero centrado, texto genérico, stats sin contexto
   Solución: left-aligned, headline más específica, noise texture,
   animated gradient orbs, scroll indicator
   ================================================================ */

/* Noise texture overlay para profundidad */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* Animated gradient orbs en hero */
.hero__glow {
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(94,255,163,0.07) 0%, transparent 65%);
  animation: az-orb-float 8s ease-in-out infinite;
  top: 40%;
  left: 45%;
  transform: translate(-50%, -55%);
}

@keyframes az-orb-float {
  0%, 100% { transform: translate(-50%, -55%) scale(1); }
  33%       { transform: translate(-46%, -58%) scale(1.08); }
  66%       { transform: translate(-54%, -52%) scale(0.96); }
}

/* Segundo orb violeta */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.05) 0%, transparent 65%);
  bottom: 10%;
  right: 5%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: az-orb-float 11s ease-in-out infinite reverse;
}

/* Hero headline — grade premium */
.hero__headline {
  font-size: clamp(var(--text-4xl), 7.5vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* Gradient text premium (en vez de color plano) */
.hero__headline .highlight {
  background: linear-gradient(135deg, #5EFFA3 0%, #A8FFD0 40%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Hero sub — más conciso, mejor legibilidad */
.hero__sub {
  font-size: clamp(var(--text-base), 1.8vw, 1.2rem);
  color: var(--clr-text-muted);
  max-width: 540px;
  line-height: 1.75;
}

/* Stats con borde izquierdo tipo Stripe */
.hero__stat {
  position: relative;
  padding-left: var(--space-4);
}

.hero__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  opacity: 0.6;
}

.hero__stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: az-bounce 2.5s ease-in-out infinite;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.hero-scroll-indicator:hover { opacity: 1; }

.hero-scroll-indicator__line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--clr-accent));
}

.hero-scroll-indicator__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

@keyframes az-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ================================================================
   3. CARDS — UPGRADE PREMIUM
   Problemas: hover demasiado literal, sin depth, borders débiles
   Solución: shimmer en hover, glass edge, inner shadow sutil
   ================================================================ */

/* Card shimmer effect en hover */
.card,
.service-card,
.product-card {
  position: relative;
  isolation: isolate;
}

/* Borde luminoso en hover (inner highlight) */
.card::after,
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-smooth);
  pointer-events: none;
  z-index: 0;
}

.card:hover::after,
.service-card:hover::after { opacity: 1; }

/* Gradient border animado en hover */
.card--glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-2xl) + 1px);
  background: linear-gradient(135deg, rgba(94,255,163,0.0), rgba(94,255,163,0.4), rgba(167,139,250,0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-smooth);
}

.card--glow:hover::before { opacity: 1; }
.card--glow:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg), var(--az-glow-sm);
}

/* Service card — número de paso más sutil */
.service-card__number {
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.35;
}

/* Service card icon — animación de scale en hover */
.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(-3deg);
  transition: transform var(--dur-normal) var(--ease-spring);
}

/* Product card — aspect ratio consistente 16:9 → cambiar a 4:3 para más presencia */
.product-card__image {
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg);
}

/* Product card price — más prominente */
.product-card__price {
  font-size: var(--text-2xl);
  color: var(--clr-accent);
}

/* Product card footer — siempre visible, no colapsado */
.product-card__footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
  margin-top: var(--space-4);
}


/* ================================================================
   4. PRODUCT PAGE — UPGRADE PREMIUM
   Problemas: botón débil, sección de precio no destaca suficiente,
   trust signals demasiado pequeños
   ================================================================ */

/* Price block — más dramático */
.az-product-price-block {
  background: linear-gradient(135deg, var(--clr-surface) 0%, rgba(94,255,163,0.04) 100%);
  border-color: rgba(94,255,163,0.15);
  border-radius: var(--radius-2xl);
}

.az-product-price-current {
  font-size: 3rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #5EFFA3 0%, #A8FFD0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Add-to-cart button — nivel Gumroad */
.az-product-add-to-cart .single_add_to_cart_button,
.az-btn--add-cart {
  background: linear-gradient(135deg, #5EFFA3 0%, #3DCC7A 100%) !important;
  color: #09090B !important;
  font-size: var(--text-lg);
  font-weight: 800;
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-xl);
  border: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 24px rgba(94,255,163,0.3);
  transition: all var(--dur-normal) var(--ease-spring) !important;
  width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.az-product-add-to-cart .single_add_to_cart_button::before,
.az-btn--add-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.az-product-add-to-cart .single_add_to_cart_button:hover,
.az-btn--add-cart:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 8px 32px rgba(94,255,163,0.4) !important;
}

.az-product-add-to-cart .single_add_to_cart_button:hover::before,
.az-btn--add-cart:hover::before { opacity: 1; }

.az-product-add-to-cart .single_add_to_cart_button:active,
.az-btn--add-cart:active {
  transform: translateY(0) scale(0.99) !important;
}

/* Trust signals — más grandes, con iconos mejorados */
.az-product-trust {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.az-trust-item {
  background: rgba(94,255,163,0.04);
  border: 1px solid rgba(94,255,163,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-smooth);
}

.az-trust-item:hover {
  border-color: rgba(94,255,163,0.25);
}

.az-trust-item__icon { font-size: 1.5rem; }
.az-trust-item__text {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-align: center;
}

/* Social proof inline en product page */
.az-product-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--clr-text-faint);
  margin-top: var(--space-3);
}

.az-product-social-proof__avatars {
  display: flex;
}

.az-product-social-proof__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-surface-alt);
  border: 2px solid var(--clr-bg);
  margin-left: -6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
}

.az-product-social-proof__avatar:first-child { margin-left: 0; }


/* ================================================================
   5. CART & CHECKOUT — UPGRADE PREMIUM
   Problemas: cart items demasiado espaciados, checkout intimidante,
   no hay feedback de progreso
   ================================================================ */

/* Cart — look Stripe-level */
.az-cart-item {
  grid-template-columns: 72px 1fr auto auto auto;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--clr-surface);
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}

.az-cart-item:hover {
  background: var(--clr-surface-alt);
  box-shadow: var(--shadow-sm);
}

/* Cart summary — sticky glass panel */
.az-cart-summary {
  background: rgba(17,17,20,0.85);
  backdrop-filter: var(--premium-blur);
  -webkit-backdrop-filter: var(--premium-blur);
  border-color: var(--clr-border-mid);
}

/* Checkout — progress steps prominentes */
.az-checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-10);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: var(--space-2);
}

.az-checkout-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-faint);
  transition: all var(--dur-normal) var(--ease-smooth);
}

.az-checkout-step.is-active {
  background: var(--clr-accent);
  color: #09090B;
}

.az-checkout-step.is-done {
  color: var(--clr-accent);
}

.az-checkout-step__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.az-checkout-step.is-active .az-checkout-step__num {
  background: rgba(0,0,0,0.2);
  border-color: rgba(0,0,0,0.2);
}

/* Checkout section — sin boxeo excesivo, estilo Apple */
.az-checkout-section {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--clr-border);
  border-radius: 0;
  padding: var(--space-8) 0;
}

.az-checkout-section:last-child { border-bottom: none; }

.az-checkout-section__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-faint);
  margin-bottom: var(--space-6);
  padding-bottom: 0;
  border-bottom: none;
}

/* Form inputs — nivel Stripe */
.az-form-input,
.az-form-select,
.az-form-textarea,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea {
  width: 100%;
  background: var(--clr-surface) !important;
  border: 1.5px solid var(--clr-border) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--clr-text) !important;
  padding: var(--space-4) var(--space-5) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  transition: border-color var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth) !important;
  outline: none !important;
}

.az-form-input:focus,
.az-form-select:focus,
.az-form-textarea:focus,
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.woocommerce-input-wrapper textarea:focus {
  border-color: var(--clr-accent) !important;
  box-shadow: 0 0 0 3px rgba(94,255,163,0.12) !important;
  background: var(--clr-surface-alt) !important;
}

.az-form-input::placeholder,
.az-form-textarea::placeholder { color: var(--clr-text-faint) !important; }

/* Labels flotantes premium */
.az-form-label,
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-faint);
  margin-bottom: var(--space-2);
}

/* Checkout order summary — vidrio */
.az-checkout-order-summary {
  background: rgba(17,17,20,0.7);
  backdrop-filter: var(--premium-blur);
  -webkit-backdrop-filter: var(--premium-blur);
  border-color: var(--clr-border-mid);
  border-radius: var(--radius-2xl);
}


/* ================================================================
   6. MICROINTERACCIONES & MOTION
   ================================================================ */

/* Scroll reveal mejorado — entra desde abajo con blur */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    filter 0.6s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* Botón primary — ripple on click */
.btn--primary {
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.btn--primary:active::after {
  transform: scale(2);
  opacity: 1;
  transition: none;
}

/* Badge pulse vivo */
.badge--dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: az-dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes az-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,255,163,0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(94,255,163,0); }
}

/* Nav link — underline animado */
.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: var(--clr-accent);
  transition: left var(--dur-fast) var(--ease-smooth),
              right var(--dur-fast) var(--ease-smooth);
  border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.current::after {
  left: var(--space-4);
  right: var(--space-4);
}

/* Image hover zoom suavizado */
.product-card__image img,
.az-portfolio-item__bg,
.az-blog-card__img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card__image img,
.az-portfolio-item:hover .az-portfolio-item__bg,
.az-blog-card:hover .az-blog-card__img {
  transform: scale(1.04);
}

/* Number counter shimmer */
.hero__stat-number {
  position: relative;
  display: inline-block;
}

/* Process step — conexión activa en hover */
.az-process-step {
  transition: transform var(--dur-normal) var(--ease-spring);
}

.az-process-step:hover {
  transform: translateY(-6px);
}

.az-process-step:hover .az-process-step__num {
  box-shadow: var(--az-glow-sm);
  border-color: var(--clr-accent);
  background: rgba(94,255,163,0.1);
}


/* ================================================================
   7. MOBILE — UPGRADE PREMIUM
   Problemas: botones demasiado pequeños, spacing insuficiente,
   no hay bottom safe area
   ================================================================ */

@media (max-width: 1024px) {
  /* Bottom safe area para móvil */
  .site-footer {
    padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom));
  }

  /* Cart flotante en móvil — sticky bottom CTA */
  .az-mobile-cart-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: var(--space-4) var(--container-pad);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    background: rgba(9,9,11,0.95);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    border-top: 1px solid var(--clr-border);
    display: flex;
    gap: var(--space-3);
    align-items: center;
  }

  /* Product page mobile — sticky add-to-cart */
  .az-product-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    padding: var(--space-4) var(--container-pad);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    background: rgba(9,9,11,0.96);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
    border-top: 1px solid var(--clr-border);
    transform: translateY(100%);
    transition: transform var(--dur-normal) var(--ease-smooth);
  }

  .az-product-mobile-sticky.is-visible {
    transform: translateY(0);
  }

  /* Tap targets mínimo 44px (WCAG) */
  .btn,
  .nav-menu a,
  .az-filter-btn,
  .az-cart-item__remove,
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 44px;
  }

  /* Cards en móvil — sin hover transform (mejor en touch) */
  .card:hover,
  .service-card:hover,
  .product-card:hover {
    transform: none;
  }

  /* Hero stats — layout compacto */
  .hero__social-proof {
    gap: var(--space-5);
  }

  .hero__stat-number {
    font-size: var(--text-xl);
  }

  /* Checkout mobile — campo full width siempre */
  .az-checkout-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Product layout mobile */
  .az-product-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Nav mobile — animate backdrop */
  .nav-mobile {
    background: rgba(9,9,11,0.98);
    backdrop-filter: var(--premium-blur);
    -webkit-backdrop-filter: var(--premium-blur);
  }

  /* Section padding reducido en móvil */
  .section {
    padding-block: var(--space-12);
  }
}

@media (max-width: 640px) {
  /* Hero — más aire, menos padding top */
  .hero {
    padding-top: calc(var(--az-nav-height) + var(--space-12));
    min-height: 100svh;
  }

  .hero__headline {
    font-size: clamp(2.2rem, 10vw, 3rem);
    letter-spacing: -0.03em;
  }

  /* Botones full width en móvil */
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Product trust — 3 columnas en móvil también, más pequeñas */
  .az-product-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .az-trust-item {
    padding: var(--space-3);
  }

  /* Cart items en móvil — columna */
  .az-cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .az-cart-item__qty,
  .az-cart-item__price,
  .az-cart-item__remove {
    grid-column: 2;
  }
}


/* ================================================================
   8. TIPOGRAFÍA & JERARQUÍA PREMIUM
   ================================================================ */

/* Section eyebrow con línea izquierda (estilo Webflow) */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
}

/* Section title — tracking más tight */
.section-title {
  letter-spacing: -0.03em;
  line-height: 1.06;
}

/* Links underline premium */
a:not(.btn):not(.nav-logo):not(.nav-menu a) {
  text-decoration-color: rgba(255,255,255,0.15);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease-smooth);
}

a:not(.btn):not(.nav-logo):not(.nav-menu a):hover {
  text-decoration-color: var(--clr-accent);
}

/* Prose content — blog/page */
.az-prose h2,
.az-prose h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.az-prose p {
  color: var(--clr-text-muted);
  line-height: 1.85;
}


/* ================================================================
   9. TRUST & SOCIAL PROOF — UPGRADE PREMIUM
   ================================================================ */

/* Sección de logos de clientes / trust bar */
.az-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.az-trust-bar__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-faint);
  white-space: nowrap;
}

/* Testimonial card premium */
.az-testimonial {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.az-testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--clr-accent);
  opacity: 0.08;
  pointer-events: none;
}

.az-testimonial__text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.az-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.az-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-sm);
  color: #09090B;
  flex-shrink: 0;
}

.az-testimonial__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--clr-text);
}

.az-testimonial__role {
  font-size: var(--text-xs);
  color: var(--clr-text-faint);
}

.az-testimonial__stars {
  margin-bottom: var(--space-4);
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: var(--text-sm);
}

/* WhatsApp CTA — más prominente */
.btn--whatsapp {
  box-shadow: 0 4px 20px rgba(37,211,102,0.25);
}

.btn--whatsapp:hover {
  box-shadow: 0 8px 32px rgba(37,211,102,0.4) !important;
}


/* ================================================================
   10. POLISH GLOBAL — scrollbar, focus, selection
   ================================================================ */

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--clr-border-mid);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-faint); }

/* Text selection */
::selection {
  background: rgba(94,255,163,0.2);
  color: var(--clr-text);
}

/* Focus visible — ring verde */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

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

/* Imagen loading blur-up */
img {
  transition: opacity 0.3s var(--ease-smooth);
}

img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].is-loaded { opacity: 1; }

/* Section alternada — fondo sutil para ritmo visual */
.section--alt {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

/* CTA section — gradient background más dramático */
.cta-section {
  background: linear-gradient(135deg, var(--clr-surface) 0%, rgba(94,255,163,0.03) 50%, rgba(167,139,250,0.03) 100%);
  border-color: rgba(94,255,163,0.12);
}

/* Footer — separador superior con gradiente */
.site-footer {
  border-top: 1px solid var(--clr-border);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), var(--clr-accent2), transparent);
  opacity: 0.3;
}

/* Tooltip premium (para elementos con title) */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--clr-surface-alt);
  border: 1px solid var(--clr-border-mid);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  color: var(--clr-text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: var(--z-overlay);
  transition: opacity var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
  box-shadow: var(--shadow-md);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Number counter animation helper */
.az-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Sticky product sidebar en desktop */
@media (min-width: 1025px) {
  .az-product-gallery,
  .az-checkout-order-summary,
  .az-cart-summary {
    position: sticky;
    top: calc(var(--az-nav-height) + var(--space-6));
    max-height: calc(100vh - var(--az-nav-height) - var(--space-12));
    overflow-y: auto;
    scrollbar-width: thin;
  }

  /* Grid de servicios en home — 3 col con variación de tamaño */
  .az-services-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Primer card de servicio más prominente */
  .az-services-grid-home .card:first-child {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--clr-surface) 0%, rgba(94,255,163,0.06) 100%);
    border-color: rgba(94,255,163,0.2);
  }

  .az-services-grid-home .card:first-child .service-card__icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}

/* ================================================================
   SHOP — SAAS FEEL (en vez de WooCommerce clásico)
   ================================================================ */

/* Shop grid — gaps y bordes más refinados */
.az-shop-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 640px) {
  .az-shop-grid { grid-template-columns: 1fr; }
}

/* Filter buttons — estilo pill premium */
.az-filter-btn {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease-spring);
}

.az-filter-btn.is-active {
  transform: scale(1.02);
  box-shadow: var(--az-glow-sm);
}

/* Empty cart state — más humano */
.az-cart-empty {
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

.az-cart-empty__icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  opacity: 0.4;
}

.az-cart-empty__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--space-3);
}

.az-cart-empty__desc {
  color: var(--clr-text-faint);
  margin-bottom: var(--space-8);
}


/* ================================================================
   FIX ALINEACIÓN — HERO, PROCESS, SECTION HEADERS
   ================================================================ */

/* ── HERO: centrado completo ─────────────────────────────────── */

/* El hero usa justify-content:center en el .hero (flex),
   pero .hero__content estaba pegado a la izquierda del container.
   Forzamos que el container lleve el contenido al centro. */
.hero .container {
  display: flex;
  justify-content: center;
}

.hero__content {
  text-align: center;
  max-width: 860px;
  width: 100%;
  margin-inline: auto;        /* centra el bloque */
}

/* Eyebrow — centrada */
.hero__eyebrow {
  justify-content: center;
  display: flex;
}

/* Subtítulo — centrado y con margen auto */
.hero__sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* CTAs — centrados */
.hero__ctas {
  justify-content: center;
}

/* Stats — centradas */
.hero__social-proof {
  justify-content: center;
}

/* Stat individual — texto centrado */
.hero__stat {
  text-align: center;
}

/* Stat border izquierda de premium.css — solo en desktop,
   y solo si no rompe el centrado */
@media (min-width: 1025px) {
  .hero__stat {
    padding-left: var(--space-4);
    text-align: left;             /* la barra izq pide texto izq */
  }
  /* Pero el bloque completo de stats igual queda centrado via flex */
}

@media (max-width: 1024px) {
  .hero__stat {
    padding-left: 0;
    text-align: center;
  }
  .hero__stat::before { display: none; } /* quita la barra izq en móvil */
}


/* ── SECTION HEADER: centrado por defecto ────────────────────── */

/* section-header sin --center también centra cuando está
   dentro de secciones que lo necesitan (eyebrow + title) */
.section-header {
  text-align: left;             /* default: izquierda */
}

/* Todas las secciones del homepage que usan --center */
.section-header--center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

/* Section eyebrow dentro de --center: centrar el flex */
.section-header--center .section-eyebrow,
.section-header--center > p.section-eyebrow {
  justify-content: center;
}

/* Section eyebrow — la línea ::before solo en alineación izquierda */
.section-header--center .section-eyebrow::before {
  display: none;               /* sin línea izq cuando está centrado */
}

/* Section desc — centrado automático */
.section-header--center .section-desc {
  margin-inline: auto;
  text-align: center;
}

/* section-title en --center */
.section-header--center .section-title {
  text-align: center;
}


/* ── PROCESS STEPS: tarjetas centradas ───────────────────────── */

/* Las cards de proceso alinean texto al centro */
.process-step {
  text-align: center;
  align-items: center;          /* centra el número, título y desc */
}

.process-step__num {
  /* ya es flex-column, el número queda centrado por align-items: center */
}

.process-step__title {
  text-align: center;
}

.process-step__desc {
  text-align: center;
}

/* Número — círculo con borde acento */
.process-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 900;
  color: var(--clr-accent);
  background: rgba(94,255,163,0.06);
  margin-inline: auto;          /* centra el círculo */
  margin-bottom: var(--space-2);
}

/* Section eyebrow standalone (fuera de section-header) */
p.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Cuando section-eyebrow es dentro de un bloque centrado */
.cta-section p.section-eyebrow,
[style*="justify-content:center"] p.section-eyebrow {
  justify-content: center;
}


/* ── SERVICE CARDS: texto izquierda (diseño correcto) ─────────── */
/* Las cards de servicio sí van alineadas a la izquierda */
.service-card {
  text-align: left;
}
.service-card .section-eyebrow {
  justify-content: flex-start;
}


/* ── MOBILE: todo centrado en móvil ─────────────────────────── */
@media (max-width: 640px) {
  .hero__content,
  .hero__sub,
  .hero__headline {
    text-align: center;
  }

  .process-step {
    text-align: center;
    align-items: center;
  }

  .section-header {
    text-align: center;
  }

  .section-header .section-eyebrow {
    justify-content: center;
  }

  .section-header .section-eyebrow::before {
    display: none;
  }

  .section-header .section-desc {
    margin-inline: auto;
  }
}


/* ================================================================
   FIX PROCESS STEPS — ALINEACIÓN INTERNA (override específico)
   ================================================================ */

/* Mayor especificidad para ganar al components.css */
.process-steps.grid--4 .process-step,
.process-steps .process-step {
  display: flex;
  flex-direction: column;
  align-items: center;          /* CENTRA todo el contenido vertical */
  text-align: center;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-3);
}

.process-steps.grid--4 .process-step__num,
.process-steps .process-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-accent);
  background: rgba(94,255,163,0.06);
  flex-shrink: 0;
  letter-spacing: 0.1em;
  margin-bottom: 0;             /* gap del flex lo maneja */
}

.process-steps.grid--4 .process-step__title,
.process-steps .process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--clr-text);
  text-align: center;
  width: 100%;
}

.process-steps.grid--4 .process-step__desc,
.process-steps .process-step__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-loose);
  text-align: center;
  width: 100%;
}

/* Reducir espacio excesivo entre header y cards */
.section-header--center + .process-steps,
.section-header--center + .grid {
  margin-top: var(--space-8);   /* antes era ~5vw (~60-80px), ahora 32px */
}

/* El gap entre items del grid de proceso */
.process-steps.grid--4 {
  gap: var(--space-5);
}
