/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-wisp-1, .page-wisp-2, .page-wisp-3, .page-wisp-4 { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Reveal desactivado en móvil ---------- */
@media (max-width: 900px) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- WhatsApp flotante ---------- */
@media (max-width: 720px) {
  .whatsapp-float { right: 16px; bottom: 16px; }
  .whatsapp-float-bubble { display: none; }
  .whatsapp-float-icon { width: 50px; height: 50px; }
  .whatsapp-float-icon svg { width: 25px; height: 25px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { order: 2; }
  .hero-media { order: 1; }
  .hero-media img { max-width: 380px; }
  .hero-tagline { margin-left: auto; margin-right: auto; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
  }

  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
  }
  .service-row.reverse .service-content,
  .service-row.reverse .service-visual,
  .service-content,
  .service-visual {
    order: initial;
  }
  .service-visual { order: -1; min-height: 160px; }
  .service-content {
    border-right: none;
    border-bottom: var(--border);
  }
  .service-row.reverse .service-content { border-left: none; }

  .about-card { grid-template-columns: 1fr; }
  .about-photo {
    border-right: none;
    border-bottom: var(--border);
    min-height: clamp(260px, 55vw, 380px);
  }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .container { padding: 0 20px; }

  .header-inner {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 39;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav.no-transition { transition: none; }

  .main-nav a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 20px 24px;
    font-size: 20px;
    border-bottom: 1px solid var(--gray-300);
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .main-nav a:last-of-type { border-bottom: none; }

  .main-nav.open a { opacity: 1; transform: translateY(0); }
  .main-nav.open a:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.12s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.19s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.26s; }

  .main-nav a.nav-cta {
    margin-top: 22px;
    width: auto;
    border: var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--black);
    color: var(--white);
  }

  .menu-toggle { display: flex; z-index: 41; }

  .trabajos .section-label-wrap,
  .servicios .section-label-wrap,
  .sobre-mi .section-label-wrap,
  .contacto .section-label-wrap { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

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

  .contact-form { padding: 28px 22px; }
  .about-content, .service-content { padding: 30px 24px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }

  .legal-hero-box { grid-template-columns: 1fr; text-align: center; padding: 30px 26px; }
  .legal-hero-img { width: 130px; margin: 0 auto; order: -1; }
  .legal-article { padding: 30px 22px; }

  .not-found { padding: 60px 0; }
  .not-found-img { width: 260px; }
}
