/* ==========================================================
   Archivo: responsive.css
   Descripción: Complemento responsivo para el sitio ALTURH
   Autor: Carlos (versión generada con ChatGPT)
   ========================================================== */

/* ----------------------------------------------------------
   1. AJUSTES GENERALES
---------------------------------------------------------- */
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ----------------------------------------------------------
   2. MENÚ HAMBURGUESA (DROPDOWN)
---------------------------------------------------------- */

/* Botón visible solo en móviles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #000;
}


/* Menú móvil */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ccc;
    text-align: center;
    z-index: 9999;
  }

  .main-menu.active {
    display: block !important;
  }

  .main-menu ul {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
    margin: 0;
  }



  .main-menu ul li a {
    display: block;
    color: #000 !important;
    font-size: 18px;
    text-decoration: none;
    padding: 10px 0;
    transition: background-color 0.3s ease;
  }

  .main-menu ul li a:hover {
    background-color: #f4f4f4;
  }
}


/* ----------------------------------------------------------
   3. SECCIÓN ABOUT - UNA SOLA IMAGEN EN MÓVILES
---------------------------------------------------------- */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Solo una imagen visible en móvil */
  .about-left-image .about-image-2,
  .about-right-image .about-image-2 {
    display: none !important;
  }

  /* Ajustes de margen y centrado */
  .about-left-image,
  .about-right-image {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .about-content {
    text-align: center !important;
    padding: 10px;
  }

  .about-content h2 {
    font-size: 24px !important;
    line-height: 1.4;
  }

  .about-content p {
    font-size: 16px !important;
  }
}

/* ----------------------------------------------------------
   4. AJUSTES GENERALES DE IMÁGENES Y TEXTOS
---------------------------------------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: 36px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  .section-title {
    text-align: center;
  }

  .hero-section .section-title h1 {
    font-size: 30px !important;
    line-height: 1.3;
  }
}

/* ----------------------------------------------------------
   5. CORRECCIONES DE ESPACIADOS EN MÓVILES
---------------------------------------------------------- */
@media (max-width: 768px) {
  .section-padding {
    padding: 40px 20px !important;
  }

  .container {
    padding: 0 15px !important;
  }

  .hero-button a.theme-btn {
    margin-bottom: 10px;
  }

  .footer-newsletter-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .footer-newsletter-wrapper .newsletter-input {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   6. MEJORAS EN TABLETS (entre 769px y 1024px)
---------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-section {
    padding: 60px 40px !important;
  }

  .about-wrapper {
    gap: 30px !important;
  }

  .main-menu ul li a {
    font-size: 16px !important;
  }
}

/* ----------------------------------------------------------
   7. COMPORTAMIENTO DEL MENÚ (SCRIPT)
---------------------------------------------------------- */
/* Animación al abrir */
.main-menu.active {
  animation: dropdownFade 0.3s ease forwards;
}

@keyframes dropdownFade {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   8. AJUSTES VISUALES DEL BOTÓN
---------------------------------------------------------- */
.mobile-menu-toggle i {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.open i {
  transform: rotate(90deg);
}

/* ----------------------------------------------------------
   9. OTROS PEQUEÑOS DETALLES DE USABILIDAD
---------------------------------------------------------- */
@media (max-width: 991px) {
  .header-1 {
    padding: 10px 0;
  }

  #header-sticky {
    background-color: #fff !important;
  }

  #header-sticky .logo img {
    height: 45px !important;
  }
}

/* ==========================================================
   FIN DEL ARCHIVO responsive.css
   ========================================================== */
