/* Custom additions for TSDFACT */

.messenger-float {
  position: fixed;
  right: 15px;
  /* Separación para no tapar el botón de WhatsApp */
  bottom: 135px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #0084ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

.whatsapp-float {
  position: fixed;
  right: 15px;
  /* Separación para no tapar el botón "subir" (.scroll-top) */
  bottom: 75px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

/* Asegura que el scroll-top quede abajo y visible */
.scroll-top {
  right: 18px;
  bottom: 18px;
  z-index: 9998;
}

.messenger-float:hover,
.messenger-float:focus,
.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  transform: translateY(-2px);
}

.messenger-float i,
.whatsapp-float i {
  font-size: 26px;
  line-height: 1;
}

/* Logo del footer: evita que se vea gigante */
.footer-style-1 .footer-widget .logo img {
  max-width: 170px;
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
}

/* Cards de Servicios (imagen + descripción) */
.tsd-service-card .card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsd-service-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.tsd-service-media {
  height: 170px;
  background: #f4f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid rgba(43, 45, 66, 0.08);
}

.tsd-service-media img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.tsd-service-card .card-title {
  margin-bottom: 10px;
}

/* Cards de Proyectos (imagen + resumen) */
.tsd-project-card .card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsd-project-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.tsd-project-media {
  height: 190px;
  background: #f4f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(43, 45, 66, 0.08);
}

.tsd-project-media img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.tsd-project-card .card-body {
  display: flex;
  flex-direction: column;
}

.tsd-project-card .card-text {
  margin-bottom: 14px;
}

.tsd-project-card .button {
  margin-top: auto;
}

.tsd-project-demo {
  background: #27ae60;
  border-color: #27ae60;
  color: #fff;
}

.tsd-project-demo:hover,
.tsd-project-demo:focus {
  background: #219150;
  border-color: #219150;
  color: #fff;
}

/* Cards de Blog (imagen + resumen) */
.tsd-blog-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tsd-blog-card .card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsd-blog-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.tsd-blog-media {
  height: 190px;
  background: #f4f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(43, 45, 66, 0.08);
}

.tsd-blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsd-blog-card .card-body {
  display: flex;
  flex-direction: column;
}

.tsd-blog-card .card-text {
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tsd-project-toolbar .input-group-text {
  background: #f4f7ff;
  border-color: rgba(43, 45, 66, 0.12);
}

.tsd-project-toolbar .form-control {
  border-color: rgba(43, 45, 66, 0.12);
}

.pagination .page-link {
  color: #2F80ED;
}

.pagination .page-item.active .page-link {
  background: #2F80ED;
  border-color: #2F80ED;
}

/* FAQ */
.tsd-faq {
  background: #f4f7ff;
}

.tsd-faq .tsd-faq-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tsd-faq .tsd-faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #2B2D42;
  font-weight: 700;
}

.tsd-faq .tsd-faq-question:hover {
  background: rgba(47, 128, 237, 0.06);
}

.tsd-faq .tsd-faq-question .q {
  font-size: 16px;
  line-height: 1.35;
}

.tsd-faq .tsd-faq-question .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(47, 128, 237, 0.12);
  color: #2F80ED;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tsd-faq .tsd-faq-answer {
  padding: 0 18px 18px 18px;
  color: #585978;
  line-height: 1.7;
}

.tsd-faq .tsd-faq-answer p {
  margin: 0;
}

.tsd-faq .tsd-faq-divider {
  height: 1px;
  background: rgba(43, 45, 66, 0.08);
}

/* Centro de Soporte */
.tsd-support-guide .tsd-support-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.tsd-support-guide .tsd-support-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tsd-support-guide .tsd-support-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tsd-bg, rgba(47, 128, 237, 0.12));
  color: var(--tsd-color, #2F80ED);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tsd-support-guide .tsd-support-icon i {
  font-size: 22px;
}

.tsd-support-guide .tsd-support-card p {
  color: #585978;
  line-height: 1.65;
}

.tsd-support-guide .tsd-support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tsd-support-guide .tsd-support-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #2B2D42;
}

.tsd-support-guide .tsd-support-list i {
  margin-top: 2px;
  color: #2F80ED;
}

.tsd-support-guide .tsd-support-note {
  border-radius: 14px;
  padding: 14px;
  background: rgba(47, 128, 237, 0.06);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

/* Clientes */
.tsd-clients .tsd-client-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(43, 45, 66, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsd-clients .tsd-client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.tsd-clients .tsd-client-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

.tsd-clients .tsd-client-card:hover .tsd-client-logo {
  filter: grayscale(0);
  opacity: 1;
}
