/* INDUSER - Media Queries & Adaptabilidad Responsiva */

/* Laptops y pantallas medianas (<= 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }
  
  .nav-menu.is-active {
    transform: translateX(0);
  }
  
  .has-dropdown {
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    width: 100%;
    display: none;
  }
  
  .has-dropdown.is-open .dropdown-menu {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .top-bar {
    display: none;
  }
  
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  
  .step-form-container {
    padding: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal { flex: none; }
  .site-credit { justify-content: center; }

  .stats-intro { display: block; }
  .stats-intro p { margin-top: 1rem; }
  .counter-card { min-height: 165px; }

  .page-hero {
    min-height: 310px;
    background-image: linear-gradient(90deg, rgba(6,23,41,.96), rgba(10,37,64,.72)), var(--page-hero-image) !important;
  }

  .related-nav__head { display: block; }
  .related-nav__grid { grid-template-columns: 1fr; }
  .related-link { min-height: 96px; }

  .card-media { height: 210px; }

  body.nav-open { overflow: hidden; }
}

/* Teléfonos Móviles pequeños (<= 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.65rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .page-hero h1 { font-size: 2.25rem !important; }
  .breadcrumb { max-width: 100%; overflow-x: auto; white-space: nowrap; }
  .back-to-top-floating { right: 1rem; bottom: 4.75rem; width: 48px; height: 48px; border-radius: 15px; }
}
