/* ============================================================ */
/* BLOQUE: STICKY CTA BAR v1.0 (solo mobile < 768px)            */
/* Depende de: variables.css, base.css                          */
/* ============================================================ */

.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
    background: rgba(17, 17, 17, 0.95);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(110%);
    transition: transform var(--transition-base);
  }

  /* Aparece tras hacer scroll (clase añadida por JS) */
  .sticky-cta--visible { transform: translateY(0); }

  .sticky-cta__info { min-width: 0; }

  .sticky-cta__title {
    font-size: var(--text-sm);
    color: var(--text-primary);
    white-space: nowrap;
  }

  .sticky-cta__title s {
    color: var(--text-muted);
    font-size: var(--text-xs);
  }

  .sticky-cta__sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
  }

  .sticky-cta__btn {
    min-width: 0;
    min-height: 48px;
    width: auto;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    flex-shrink: 0;
  }

  /* Espacio para que la barra no tape el footer ni el widget */
  body { padding-bottom: 76px; }
  .whatsapp-widget { bottom: calc(76px + var(--space-md)); }
}
