/* ── STICKY CTA MÓVIL ─────────────────────────────── */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--foil);
    color: #1a0e00;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(255, 90, 30, .4);
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .sticky-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.65), transparent);
    transform: skewX(-20deg);
    animation: stickySweep 3.5s ease-in-out infinite;
  }

  @keyframes stickySweep {
    0%, 40%   { left: -60%; }
    60%, 100% { left: 130%; }
  }

  .sticky-cta:active {
    transform: scale(.94);
  }
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  .nav-toggle { display: block; }

  /* menú desplegable móvil (lo abre js/navbar.js con la clase .open) */
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(9,10,20,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: .9rem 1.5rem;
  }

  .contact-wrapper { grid-template-columns: 1fr; }
  .empresas-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .carousel-btn { width: 38px; height: 38px; font-size: 1.3rem; }

  .machine-photo-wrap { height: 260px; }

  .map-wrap { height: 320px; }
}

@media (max-width: 480px) {
  .section { padding: 4.5rem 1.25rem; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 8.5rem; }
}
