/* =========================================
   🔹 Ajustes de responsividad global 🔹
   ========================================= */

/* Navbar en móviles */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .logo {
    max-width: 55px;
    max-height: 70px;
  }
}

/* Carrusel móvil: mostrar solo 1 imagen */
@media (max-width: 768px) {
  .home-slide img {
    width: 100% !important;
    height: 100vh;
    object-fit: cover;
  }
  .home-slide img:nth-child(2) {
    display: none;
  }

  .home-content h1 {
    font-size: 2rem;
  }
  .home-content p {
    font-size: 1rem;
  }
}

/* Formularios */
@media (max-width: 600px) {
  .contact-form-wrapper {
    padding: 20px;
  }
  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }
  .submit-button {
    width: 100%;
    text-align: center;
  }
}

/* Footer más compacto */
@media (max-width: 600px) {
  .footer {
    grid-template-columns: 1fr;
    height: auto;
    gap: 15px;
    padding: 15px;
    text-align: center;
  }
  .footer-logo {
    height: 50px;
  }
  .social-links {
    justify-content: center;
  }
}

/* Chatbot ventana adaptada */
@media (max-width: 480px) {
  .chatbot-window {
    width: 90%;
    height: 70%;
    bottom: 80px;
    right: 5%;
  }

  .chatbot-button {
    width: 50px;
    height: 50px;
  }

  .chatbot-icon {
    width: 28px;
    height: 28px;
  }
}
