/* =========================================================
   RESPONSIVE
   Desktop > Laptop > Tablet > Celular
========================================================= */

/* Laptop (<=1200px) */
@media (max-width: 1200px) {
  .mega-menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (<=991px) */
@media (max-width: 991px) {
  .nav-menu,
  .nav-cta .btn-outline {
    display: none;
  }

  .navbar-toggler-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 80vh;
  }

  .quick-access {
    margin-top: -40px;
  }

  .welcome-badge {
    position: static;
    margin-top: 1.5rem;
  }

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

  .stats-section {
    padding: var(--space-md);
  }

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

/* Celular (<=767px) */
@media (max-width: 767px) {
  .topbar-contact span:nth-child(n+2) {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-scroll {
    display: none;
  }

  .quick-access .col-6 {
    margin-bottom: 1rem;
  }

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

  .academic-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .academic-tab {
    flex-shrink: 0;
  }

  .stats-section {
    text-align: center;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* Celular pequeño (<=480px) */
@media (max-width: 480px) {
  .container-xl {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }

  .footer-col {
    text-align: center;
  }

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