/* 
  Responsive Design 
*/

/* Tablets and below */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  .search-field {
    width: 100%;
    border-bottom: 1px solid var(--color-niebla);
    border-radius: 0;
  }
  
  .search-field:last-child {
    border-bottom: none;
  }
  
  .search-bar .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.125rem; }
  
  .header-actions .btn {
    display: none; /* Hide primary CTA in header on very small screens, keep in menu */
  }

  .menu-toggle {
    display: block; /* Show hamburger menu */
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-blanco);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 999;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  /* Stack cards in grids */
  .grid {
    grid-template-columns: 1fr !important;
  }
}
