@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1024px !important;
  }
}

/* =========================
   MEDIA QUERIES RESPONSIVE
========================= */

/* Móviles pequeños: <576px */
@media (max-width: 575.98px) {
  .h1_grande {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  .h2_grande {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
  .p_grande {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .service-card {
    padding: 1rem;
  }
  /* SE ELIMINA LA ALTURA FIJA DEL PORTFOLIO */

  header.hero,
  section {
    padding: 3rem 1rem;
  }

  .hero-dots {
    bottom: 20px;
    gap: 8px;
  }
}

/* Tablets: 576px - 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .h1_grande {
    font-size: 3.5rem;
    line-height: 4rem;
  }
  .h2_grande {
    font-size: 3rem;
    line-height: 3.5rem;
  }
  .p_grande {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}

/* Tablets grandes / pequeñas laptops: 768px - 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
  .h1_grande {
    font-size: 4rem;
    line-height: 4.5rem;
  }
  .h2_grande {
    font-size: 3.5rem;
    line-height: 4rem;
  }
  .p_grande {
    font-size: 2.5rem;
    line-height: 3rem;
  }
}

/* Desktops medianos: 992px - 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .h1_grande {
    font-size: 4.5rem;
    line-height: 5rem;
  }
  .h2_grande {
    font-size: 4rem;
    line-height: 4.5rem;
  }
  .p_grande {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

/* Ajustes específicos de cards y contacto */
@media (max-width: 991.98px) {
  #contacto .col-lg-5,
  #contacto .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  #contacto .row.g-4 {
    flex-direction: column;
  }
}

/* =========================
   NAVBAR RESPONSIVE
========================= */

.navbar {
  padding: 0.5rem 1rem;
}

.navbar-brand img {
  max-height: 50px;
}

/* Links generales */
.navbar .nav-link {
  color: #9a9a9a;
  font-weight: 400;
  transition: all 0.2s ease;
}

/* Hover */
.navbar .nav-link:hover {
  color: #fff;
  font-weight: 700;
}

/* Botón Contacto */
.navbar .nav-link.btn {
  background-color: #fff;
  color: #000 !important;
  border: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar .nav-link.btn:hover {
  background-color: #eaeaea;
  color: #000 !important;
}

/* Link activo */
.navbar .nav-link.active:not(.btn) {
  color: #fff;
  font-weight: 700;
}

/* Mobile: navbar full width, links verticales */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.8); /* opcional: fondo detrás del menú */
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }

  .navbar-nav .nav-link.btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}
