/* Mejoras Fase 1 (2026-12). Se carga en todas las páginas. */

/* Botón flotante de WhatsApp */
.tft-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tft-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.tft-wa svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 575.98px) {
  .tft-wa { right: 14px; bottom: 14px; padding: 14px; }
  .tft-wa span { display: none; }
}

/* Teléfono y correo del pie de página como enlaces */
.tft-contacto a { color: #fff; text-decoration: underline; }
.tft-contacto a:hover { color: #25d366; }

/* Inicio: animación ligera en lugar del GIF */
#inicioLogo video, #inicioLogo img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* Formularios: mensaje de enviado */
.tft-gracias {
  padding: 16px;
  border-radius: 10px;
  background: #e8f7ee;
  color: #14532d;
  font-weight: 500;
  margin-top: 12px;
}
.tft-gracias a { color: #128c4a; font-weight: 600; }
.tft-error { background: #fdecec; color: #7f1d1d; }

/* Botón de menú en celular (oculto en computadora) */
.tft-menu-btn { display: none; }

@media (max-width: 991.98px) {
  /* El recuadro de Facebook tapaba los productos */
  #frameFace { display: none !important; }

  /* Encabezado compacto con menú desplegable */
  .tft-header .container-fluid {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  }
  .tft-header .container-fluid {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
  }
  /* En la página de inicio el encabezado viene anidado dos veces */
  .tft-header .container-fluid .container-fluid,
  .tft-header .container-fluid .navbar { position: static !important; width: 100% !important; padding: 0 !important; box-shadow: none; background: #fff !important; }
  .tft-header.tft-abierto .container-fluid {
    height: auto !important;
    max-height: 100vh;
    overflow-y: auto;
  }
  .tft-header .navbar-brand img { width: 150px !important; height: auto !important; }
  .tft-header .navbar-social p { display: none; }
  .tft-header .navbar-social { display: flex; align-items: center; }
  .tft-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    margin-left: auto;
    cursor: pointer;
  }
  .tft-menu-btn svg { width: 24px; height: 24px; }
  .tft-header .nav.nav-pills, .tft-header .search-container { display: none !important; }
  .tft-header.tft-abierto .nav.nav-pills {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
  }
  .tft-header.tft-abierto .search-container {
    display: flex !important;
    width: 100% !important;
    margin: 8px 0 4px;
  }
  .tft-header.tft-abierto .search-container input {
    flex: 1;
    border: 1px solid #d0d7de !important;
  }
  .tft-header.tft-abierto .dropdown-menu { position: static !important; transform: none !important; width: 100%; }

  /* Contenido y pie a todo lo ancho (antes ocupaban 72% de la pantalla) */
  .conteiner, footer, #content, .container-cards, .quieneSomos, #txtClass,
  .container-USPHI, .container-location { width: 100% !important; max-width: 100% !important; }
  .conteiner, footer { margin-top: 0 !important; }
  #content, .container-cards { justify-content: center !important; }
  .container-cards .card, #content .card { width: 100% !important; max-width: 24rem; margin-left: auto; margin-right: auto; }
  #content > * { max-width: 100%; }
  .container-fluid1 {
    flex-direction: column;
    gap: 18px;
    margin-top: 0 !important;
    text-align: center;
  }
  .container-fluid1 .contact-info { text-align: center !important; }
  .container-fluid1 .contact-info p { margin-bottom: 6px !important; }
}
