@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hero-panel {
    min-height: 640px;
    padding: 2.5rem 1.5rem 8rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.25rem);
    max-width: 19ch;
  }

  .hero-logo-wrap {
    width: min(100%, 198px);
  }

  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 320px);
    transform: translateX(100%);
    background: rgba(255, 249, 239, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -12px 0 32px rgba(146, 100, 73, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 1.4rem;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 50px;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step:hover,
  .process-step:focus-visible,
  .process-step.is-active {
    transform: translateY(-4px) scale(1.02);
  }

  .footer-links {
    justify-content: center;
  }

  .stack-card {
    position: relative;
    top: auto;
  }

  .section-wrap:nth-child(n + 2) .stack-card {
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .site-shell {
    padding-top: 86px;
  }

  .header-container {
    height: 76px;
  }

  .hero-panel,
  .stack-card {
    border-radius: 24px;
  }

  .hero-panel {
    min-height: 660px;
    padding: 2rem 1rem 8rem;
  }

  .stack-card {
    padding: 3rem 1.2rem;
  }

  .hero-actions,
  .contact-actions,
  .footer-cta-actions {
    flex-direction: column;
  }

  .hero-actions {
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
  }

  .hero-points {
    border-radius: 22px;
    padding: 0.55rem;
  }

  .hero-points li,
  .btn {
    width: 100%;
  }

  .footer-cta {
    padding: 1.8rem 1.2rem;
  }

  .banana-burst-item {
    width: calc(var(--banana-size, 24px) * 0.82);
    height: calc(var(--banana-size, 24px) * 0.82);
  }

  .hero-logo-wrap {
    width: min(100%, 180px);
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.75rem);
    max-width: 15ch;
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .footer {
    padding: 3.5rem 0 7rem;
  }

  .footer-logo {
    width: 180px;
  }
}

/* ============================================================
   v2 UPGRADE — responsive para nuevas secciones y fixes
   ============================================================ */

/* Tablet: mantener 2 cols en servicios y pilares */
@media (max-width: 992px) {
  .about-pillars,
  .philosophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-col a {
    width: auto;
  }
}

/* Móvil: stack todo + arreglar botones dentro del pill container */
@media (max-width: 768px) {
  .about-pillars,
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  /* Botones del hero salen del pill blur en móvil para legibilidad */
  .hero-actions {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }

  .hero-trust {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  /* Connector line del proceso oculto en móvil */
  .process-grid::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .about-pillar,
  .philosophy-card {
    padding: 1.3rem 1.15rem;
  }

  .philosophy-num {
    font-size: 1.7rem;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .footer-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}
