@media (max-width: 1024px) {
  .hide-mobile { display: none !important; }
}
@media (max-width: 768px) {
  /* NAV: links pequeños, avatar solo icono */

  .nav-username { display: none !important; }
  .nav-chevron { display: none !important; }
  #nav-links-center { gap: 12px !important; }
  #nav-links-center a { font-size: 11px !important; white-space: nowrap !important; }
  .nav-full { display: none !important; }
  .nav-short { display: inline !important; }
  /* PRICING: stack cards */
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 400px; margin: 0 auto; }
  /* FOOTER */

  #footer-right { align-items: center !important; width: 100%; }
  #footer-inner, footer > div { flex-direction: column !important; align-items: center !important; gap: 20px !important; }
  #footer-copyright { text-align: center !important; }
  body { overflow-x: hidden; }
}
/* Desktop: centrado perfecto de nav links */
@media (min-width: 769px) {
  #nav-links-center {
    position: absolute;
    max-width: calc(100% - 480px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

}

/* Fix: imágenes se ven enteras dentro de contenedores en móvil */
@media (max-width: 768px) {
  /* Upload boxes (foto y outfit): imagen contenida dentro del marco */
  .studio-box.has-image img {
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  /* Result box: se ajusta al contenido */
  .studio-box.result-box.has-result {
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .studio-box.result-box.has-result img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Sticky mobile CTA — no-restrictions landing */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  /* Hide original inline CTA to avoid duplication */
  .seo-cta {
    display: none;
  }
  .mobile-sticky-cta {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(245, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  .mobile-sticky-cta .btn-primary {
    display: inline-block;
    background: #c45a3c;
    color: white;
    padding: 14px 36px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(196, 90, 60, 0.3);
  }
  .mobile-sticky-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 90, 60, 0.4);
  }
  .mobile-sticky-cta span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
  }
}
