/* ============================================
   TABLET (<= 960px)
   ============================================ */
@media (max-width: 960px) {
  section {
    padding: var(--space-xl) 0;
  }

  .section-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section-split-image {
    max-height: 520px;
    aspect-ratio: 4 / 3;
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .projects-grid {
    grid-auto-rows: 110px;
  }

  .service-block,
  .service-block.reverse {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .service-block.reverse .service-block-image {
    order: 0;
  }

  .service-block-image {
    max-height: 420px;
  }
}

/* ============================================
   MOBILE (<= 720px)
   ============================================ */
@media (max-width: 720px) {
  :root {
    --header-height-desktop: var(--header-height-mobile);
  }

  /* Tipografía secundaria en móvil (Manrope) */
  p {
    font-size: 0.9375rem; /* 15px */
  }

  .service-card-body .services-list {
    font-size: 0.875rem; /* 14px */
  }

  .site-header {
    height: var(--header-height-mobile);
  }

  .site-header.scrolled {
    height: var(--header-height-mobile-scrolled);
  }

  .site-logo img {
    height: var(--logo-height-mobile);
  }

  .site-header.scrolled .site-logo img {
    height: var(--logo-height-mobile-scrolled);
  }

  .footer-col img {
    height: var(--logo-height-mobile);
  }

  .site-nav,
  .site-header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    height: 85vh;
    min-height: 560px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw + 1rem, 3.25rem);
  }

  /* Separar el texto del hero del logo/header fijo (solo móvil) */
  .hero .hero-content {
    padding-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-secondary {
    padding-top: var(--header-height-mobile);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .project-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float .tooltip {
    display: none;
  }

  .cta-final {
    padding: var(--space-2xl) 0;
  }

  .testimonials-quote-mark {
    font-size: 4.5rem;
  }
}

/* ============================================
   MOBILE PEQUEÑO (<= 420px)
   ============================================ */
@media (max-width: 420px) {
  .container,
  .container-narrow {
    padding: 0 var(--space-sm);
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
  }

  .overline {
    font-size: 0.6875rem;
  }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
