/* ==========================================================================
   Botones VidaFiV
   Sustituye el estilo de botón de la plantilla (.th-btn): degradado vertical
   hacia verde menta, brillo difuminado y texto en mayúsculas.
   Se carga después de style.css, así que redefine las mismas clases.

   Variantes que se usan en la web:
     .th-btn          Principal: turquesa relleno (citas, envíos, CTA)
     .th-btn.style4   Destacado: rosa relleno (patente PIWA, ver más)
     .th-btn.style2   Secundario: contorno turquesa (enlaces dentro de tarjetas)
     .btn-sm          Tamaño pequeño
     .btn-fw          Ancho completo
   ========================================================================== */

.th-btn {
  --btn-bg: linear-gradient(135deg, #1aa5a8 0%, #138a8d 100%);
  --btn-bg-hover: linear-gradient(135deg, #17999c 0%, #0f7477 100%);
  --btn-color: #fff;
  --btn-shadow: 0 8px 20px rgba(26, 165, 168, 0.28);
  --btn-shadow-hover: 0 12px 28px rgba(26, 165, 168, 0.4);

  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  color: var(--btn-color);
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* Fondo de hover en una capa aparte para que la transición sea suave
   (los degradados no se animan directamente). */
.th-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-bg-hover);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* El brillo difuminado de la plantilla desaparece */
.th-btn::before {
  display: none;
}

.th-btn i {
  font-size: 0.95em;
  margin: 0;
}

.th-btn:hover,
.th-btn:focus-visible {
  color: var(--btn-color);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

.th-btn:hover::after,
.th-btn:focus-visible::after {
  opacity: 1;
}

.th-btn:active {
  transform: translateY(0);
}

.th-btn:focus-visible {
  outline: 3px solid rgba(26, 165, 168, 0.45);
  outline-offset: 3px;
}

/* ---------- Destacado: rosa ---------- */
.th-btn.style4 {
  --btn-bg: linear-gradient(135deg, #f25bbd 0%, #d63f9c 100%);
  --btn-bg-hover: linear-gradient(135deg, #e44daf 0%, #c0318a 100%);
  --btn-shadow: 0 8px 20px rgba(254, 101, 196, 0.32);
  --btn-shadow-hover: 0 12px 28px rgba(254, 101, 196, 0.45);
}

/* La plantilla define fondo y sombra en .th-btn.style2/.style4 y en
   .blog-single .th-btn (PIWA y artículos) con más especificidad que
   .th-btn, así que hay que volver a aplicarlos aquí. */
.blog-single .th-btn,
.th-btn.style2,
.th-btn.style4 {
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  color: var(--btn-color);
}

.th-btn.style2:hover,
.th-btn.style2:focus-visible,
.th-btn.style4:hover,
.th-btn.style4:focus-visible {
  box-shadow: var(--btn-shadow-hover);
}

.th-btn.style4:focus-visible {
  outline-color: rgba(254, 101, 196, 0.5);
}

/* ---------- Secundario: contorno turquesa ---------- */
.th-btn.style2 {
  --btn-bg: #fff;
  --btn-bg-hover: linear-gradient(135deg, #1aa5a8 0%, #138a8d 100%);
  --btn-color: #138a8d;
  --btn-shadow: none;
  --btn-shadow-hover: 0 10px 24px rgba(26, 165, 168, 0.3);
  border-color: #1aa5a8;
}

.th-btn.style2:hover,
.th-btn.style2:focus-visible {
  color: #fff;
}

/* ---------- Tamaños ---------- */
.th-btn.btn-sm {
  min-width: 120px;
  padding: 11px 22px;
  font-size: 14px;
}

.th-btn.btn-fw {
  width: 100%;
  box-shadow: var(--btn-shadow);
}

@media (max-width: 575px) {
  .th-btn {
    padding: 15px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-btn,
  .th-btn::after {
    transition: none;
  }

  .th-btn:hover,
  .th-btn:focus-visible {
    transform: none;
  }
}
