/* =========================
   RESPONSIVE PRO SYSTEM
   (FULLSCREEN SAFE)
========================= */


/* ================= TABLET (≤ 1024px) ================= */
@media (max-width: 1024px){

  h1{ font-size: 2.8rem; }
  h2{ font-size: 2.2rem; }

  .hero-content h1{
    font-size: 3rem;
  }

  .video-gallery{
    height: 60vh;
  }

  .counter{
    font-size: 3rem;
  }

  /* EVENTOS */
  .eventos-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  /* NOTICIAS */
  .news-top{
    grid-template-columns: 1fr;
  }

  .news-side{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .news-carousel{
    flex: 0 0 200px;
  }
}


/* ================= TABLET PEQUEÑA (≤ 768px) ================= */
@media (max-width: 768px){

  /* NAV */
  .navbar{
    padding: 10px 0;
  }
  
  .section{
    min-height: 100vh;
    padding: 80px 16px 40px;
  }

  /* TITULOS */
  h1{ font-size: 2.3rem; }
  h2{ font-size: 1.9rem; }

  /* HERO */
  .hero-content h1{
    font-size: 2.3rem;
  }

  .hero-content p{
    font-size: 1rem;
    padding: 0 10px;
  }

  /* MISION */
  .slide-content h2{
    font-size: 1.6rem;
  }

  .slide-content p{
    font-size: 0.95rem;
  }

  /* EVENTOS */
  .eventos-grid{
    grid-template-columns: 1fr;
  }

  /* NOTICIAS */
  .news-top{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-side{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .noticia-card{
    min-height: 200px;
  }

  .news-carousel{
    flex: 0 0 180px;
  }

  .noticia-layout{
    grid-template-columns: 1fr;
  }

  .noticia-content{
    height: 90vh;
  }

  .main-img{
    max-height: 300px;
  }


  /* GALERIA */
  .gallery-item img{
    height: 240px;
  }

  /* VIDEOS */
  .video-gallery{
    height: 45vh;
  }

  /* DESCARGAS */
  .downloads-grid{
    grid-template-columns: 1fr;
  }

  /* PAGOS */
  .pagos-section .content{
    padding: 20px;
  }

  /* REDES */
  .social{
    right: 10px;
    gap: 10px;
  }

  .social a{
    width: 42px;
    height: 42px;
  }
}


/* ================= MOBILE (≤ 480px) ================= */
@media (max-width: 480px){

  h1{ font-size: 2rem; }
  h2{ font-size: 1.6rem; }

  /* HERO */
  .hero-content h1{
    font-size: 2rem;
  }

  .hero-content p{
    font-size: 0.9rem;
  }

  /* NAV */
  .navbar-brand{
    font-size: 1rem;
  }

  /* MISION */
  .slide-content h2{
    font-size: 1.4rem;
  }

  .slide-content p{
    font-size: 0.85rem;
  }

  /* NOSOTROS */
  .counter{
    font-size: 2rem;
  }

  /* ESPECIALIDADES */
  .carousel-text h2{
    font-size: 1.2rem;
  }

  .carousel-text p{
    font-size: 0.85rem;
  }

  /* GALERIA */
  .gallery-item img{
    height: 200px;
  }

  /* VIDEOS */
  .video-gallery{
    height: 38vh;
  }

  /* MODALES */
  .modal-img,
  #modalVideo{
    max-width: 95%;
    max-height: 60vh;
  }

  /* SOCIAL FLOAT */
  .social{
    right: 8px;
    bottom: 20px;
  }
}


/* ================= ULTRA SMALL (≤ 360px) ================= */
@media (max-width: 360px){

  .hero-content h1{
    font-size: 1.6rem;
  }

  .hero-content p{
    font-size: 0.8rem;
  }

  .carousel-text h2{
    font-size: 1.1rem;
  }
}