/* ==========================================================================
   RESPONSIVE.CSS - Reglas de Adaptabilidad (Mobile First Media Queries)
   Alcaldía Metropolitana Moderna
   ========================================================================== */

/* ==========================================================================
   Dispositivos Medianos (Tablets - 768px o más)
   ========================================================================== */
@media (min-width: 768px) {
  /* --- Contenedor --- */
  .container {
    max-width: 720px;
  }

  .section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* --- Hero --- */
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-buttons {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-buttons .btn {
    width: auto;
    min-width: 180px;
  }

  /* --- Quiénes Somos --- */
  .about-grid {
    flex-direction: row;
    gap: 3.5rem;
  }

  .about-content,
  .about-img-wrapper {
    flex: 1;
    width: 50%;
  }

  .about-img-wrapper img {
    height: 100%;
    min-height: 350px;
  }

  /* --- Misión y Visión --- */
  .mv-grid {
    flex-direction: row;
  }

  .mv-card {
    flex: 1;
  }

  /* --- Estadísticas --- */
  .stats-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  /* --- Mapa --- */
  .map-wrapper {
    height: 450px;
  }

  .map-info-card {
    width: 380px;
    left: 40px;
    bottom: 40px;
  }

  /* --- Footer --- */
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-col {
    flex: 1 1 40%;
  }

  .footer-col-brand {
    flex: 1 1 100%;
  }

  /* --- Página: Gobierno --- */
  .alcalde-container {
    display: flex;
    gap: 3rem;
    align-items: center;
  }

  .alcalde-img-wrapper,
  .alcalde-text-wrapper {
    flex: 1;
  }

  .alcalde-img-wrapper img {
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }

  .concejo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

  .trans-doc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* --- Página: Direcciones --- */
  .direcciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .filter-btn.active,
  .filter-btn:hover {
    background-color: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
  }

  body.dark-mode .filter-btn.active,
  body.dark-mode .filter-btn:hover {
    background-color: var(--accent-celeste);
    color: #0b0f19;
    border-color: var(--accent-celeste);
  }

  /* --- Página: Turismo --- */
  .turismo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .gastronomia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: center;
  }

  /* --- Página: Noticias --- */
  .noticias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* --- Página: Contacto --- */
  .contacto-container {
    display: flex;
    gap: 3.5rem;
  }

  .contacto-form-wrapper {
    flex: 1.3;
  }

  .contacto-info-wrapper {
    flex: 0.7;
  }
}

/* ==========================================================================
   Dispositivos Grandes (Pantallas de Escritorio - 1024px o más)
   ========================================================================== */
@media (min-width: 1024px) {
  /* --- Contenedor --- */
  .container {
    max-width: 960px;
  }

  /* --- Header y Menú --- */
  .hamburger {
    display: none; /* Ocultar menú hamburguesa en escritorio */
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    gap: 1.15rem; /* Ajustado para dar cabida a los 7 enlaces del Navbar */
    background-color: transparent;
    overflow-y: visible;
    border-right: none;
  }

  body.dark-mode .nav-menu {
    background-color: transparent;
  }

  .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-link.active {
    border-bottom-color: var(--primary-green);
    padding-left: 0;
  }

  body.dark-mode .nav-link:hover,
  body.dark-mode .nav-link.active {
    border-bottom-color: var(--accent-celeste);
  }

  /* --- Hero --- */
  .hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 3.75rem;
    max-width: 850px;
  }

  .hero-desc {
    font-size: 1.25rem;
    max-width: 750px;
  }

  /* --- Estadísticas --- */
  .stat-item {
    flex: 1;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    gap: 2rem;
  }

  .footer-col {
    flex: none;
  }

  .footer-col-brand {
    grid-column: span 1;
  }

  /* --- Página: Gobierno --- */
  .concejo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .directores-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* --- Página: Transparencia --- */
  .trans-doc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* --- Página: Direcciones --- */
  .direcciones-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Página: Turismo --- */
  .turismo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Página: Noticias --- */
  .noticias-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .noticias-featured {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
  }

  .noticia-featured-img,
  .noticia-featured-content {
    flex: 1;
  }
}

/* ==========================================================================
   Dispositivos Extra Grandes (Pantallas Gigantes - 1200px o más)
   ========================================================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .nav-menu {
    gap: 1.85rem;
  }

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

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