/* ===========================================================
   Universidad del Rosario · Extensión y Sociedad
   Media queries y reglas de adaptabilidad
   =========================================================== */

/* ---------- Tablet grande / escritorio pequeño ---------- */
@media (max-width: 1200px) {
  .hero__title { font-size: 2.3rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet ---------- */
@media (max-width: 992px) {
  .top-bar__nav ul { display: none; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.is-open { max-height: 70vh; overflow-y: auto; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav ul > li { border-bottom: 1px solid var(--border-light); }

  .main-nav a,
  .main-nav__btn {
    width: 100%;
    padding: 0.9rem 2rem;
    justify-content: space-between;
  }

  .main-nav__dropdown,
  .top-bar__dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--off-white);
  }

  .has-dropdown.is-open .main-nav__dropdown { display: block; }

  .main-header__actions .pill-btn--outline { display: none; }

  .hamburger { display: flex; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .top-bar__inner { padding: 0.5rem 1rem; }
  .main-header__inner { padding: 0.75rem 1rem; gap: 1rem; }
  .section__inner { padding: 0 1.25rem; }

  .brand__title { display: none; }

  .hero { min-height: 420px; }
  .hero__content { padding: 2.5rem 1.25rem; }
  .hero__title { font-size: 1.8rem; }
  .hero__subtitle { font-size: 0.95rem; }

  .section { padding: 2.75rem 0; }
  .section__title { font-size: 1.5rem; }
  .section__icon,
  .section__icon-svg { width: 2.2rem; height: 2.2rem; }

  .stats__grid { grid-template-columns: 1fr; }
  .logos { gap: 1.5rem; }

  .card-grid { grid-template-columns: 1fr; }

  .whatsapp-float__img { height: 2.75rem; }

  .main-header__actions .pill-btn--filled span { display: none; }
}
