/**
 * Mejoras para Móvil
 * - Ajuste de botón WhatsApp
 * - Footer responsive y elegante
 * - Mejoras generales de UX móvil
 */

/* ============================================
   1. BOTÓN DE WHATSAPP - Ajuste para barra inferior
   ============================================ */
@media (max-width: 767px) {
  #whatsapp-button {
    bottom: 80px !important; /* Subir por encima de la barra inferior */
    right: 15px !important;
    z-index: 9999 !important;
  }

  #whatsapp-button a {
    width: 55px !important;
    height: 55px !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  }

  #whatsapp-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6) !important;
  }
}

/* ============================================
   2. FOOTER MÓVIL - Diseño Mejorado
   ============================================ */
@media (max-width: 767px) {
  /* Ocultar secciones innecesarias en móvil */
  #site-footer .block-newsletter {
    display: none !important; /* Ocultar descripción larga */
  }

  /* Reorganizar el footer */
  #site-footer .footer {
    padding: 30px 0 20px !important;
  }

  #site-footer .section-padding {
    padding: 0 !important;
  }

  #site-footer .row {
    margin: 0 !important;
  }

  /* Logo centrado y más pequeño */
  #site-footer .block-image {
    text-align: center;
    margin-bottom: 25px;
  }

  #site-footer .block-image img {
    max-width: 120px;
    height: auto;
  }

  /* Secciones del footer con mejor diseño */
  #site-footer .col-lg-3,
  #site-footer .col-md-6 {
    margin-bottom: 25px;
    text-align: center;
  }

  /* Títulos más pequeños y elegantes */
  #site-footer .block-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* Links del footer */
  #site-footer .block-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #site-footer .block-menu ul li {
    margin-bottom: 10px;
  }

  #site-footer .block-menu ul li a {
    color: #666 !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
  }

  #site-footer .block-menu ul li a:hover {
    color: #000 !important;
  }

  /* Icono de teléfono y email */
  #site-footer .block-menu ul li a[href^="tel"]::before {
    content: "📞 ";
    margin-right: 5px;
  }

  #site-footer .block-menu ul li a[href^="emailto"]::before {
    content: "✉️ ";
    margin-right: 5px;
  }

  /* Footer bottom más compacto */
  #site-footer .footer-bottom {
    padding: 15px 0 !important;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
  }

  #site-footer .footer-bottom .row {
    flex-direction: column;
    text-align: center;
  }

  #site-footer .footer-bottom .col-md-6 {
    margin-bottom: 0;
  }

  #site-footer .copyright {
    font-size: 11px !important;
    color: #999 !important;
    margin-bottom: 10px;
  }

  /* Redes sociales - BRANDING v1.0 */
  #site-footer .social-link {
    justify-content: center;
    padding: 0;
    margin: 10px 0 0 0;
  }

  #site-footer .social-link li {
    margin: 0 8px;
  }

  #site-footer .social-link li a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy-ninfa, #5C0A34);
    color: #fff !important;
    border-radius: 50%;
    border: 1px solid var(--burgundy-ninfa, #5C0A34);
    transition: all 0.3s;
  }

  #site-footer .social-link li a:hover {
    background: var(--burgundy-ninfa-dark, #3D0620);
    border-color: var(--burgundy-ninfa-dark, #3D0620);
    transform: translateY(-2px);
  }

  /* Agregar padding bottom para la barra de navegación fija */
  #site-footer {
    padding-bottom: 70px; /* Espacio para la barra inferior */
  }
}

/* ============================================
   3. BARRA DE NAVEGACIÓN INFERIOR
   ============================================ */
@media (max-width: 767px) {
  .header-mobile-fixed {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    z-index: 9998 !important;
    padding: 8px 0 !important;
  }

  .header-mobile-fixed > div {
    flex: 1;
    text-align: center;
  }

  .header-mobile-fixed a {
    display: inline-block;
    padding: 8px;
    transition: all 0.3s;
  }

  .header-mobile-fixed i {
    font-size: 22px;
    color: #666;
    transition: color 0.3s;
  }

  .header-mobile-fixed a:hover i,
  .header-mobile-fixed a.active i {
    color: #000;
    transform: scale(1.1);
  }
}

/* ============================================
   MEJORAS ADICIONALES
   ============================================ */
@media (max-width: 767px) {
  /* Espaciado del contenido para no quedar cubierto por la barra */
  #main-content {
    margin-bottom: 70px;
  }

  /* Animaciones suaves */
  #whatsapp-button a,
  #site-footer .social-link li a,
  .header-mobile-fixed a {
    transition: all 0.3s ease;
  }
}

/* ============================================
   TABLET - Ajustes intermedios
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
  #site-footer .col-lg-3,
  #site-footer .col-md-6 {
    margin-bottom: 30px;
  }

  #site-footer .block-newsletter .newsletter-text {
    font-size: 13px;
    line-height: 1.6;
  }
}
