/* =========================================================
   Estilos propios del sitio (complementan style.min.css)
   ========================================================= */

/* ---------- Boton flotante de redes ---------- */
.fab-wrapper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1030; /* debajo del menu del celular (1045) */
}
.fab-container { position: relative; }

.fab-button {
  width: 50px;
  height: 50px;
  border: 0;
  padding: 0;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .3);
  transition: transform .3s ease;
}
.fab-button:hover { transform: rotate(45deg); }

.fab-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 70px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all .3s ease;
}
.fab-options.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-options li {
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
}
.fab-options.active li { opacity: 1; transform: translateY(0); }
.fab-options.active li:nth-child(1) { transition-delay: .05s; }
.fab-options.active li:nth-child(2) { transition-delay: .1s; }
.fab-options.active li:nth-child(3) { transition-delay: .15s; }
.fab-options.active li:nth-child(4) { transition-delay: .2s; }
.fab-options.active li:nth-child(5) { transition-delay: .25s; }

.fab-options li a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.fab-options li a:hover { transform: scale(1.1); color: #fff; }

.fab-options .red-whatsapp { background: #25D366; }
.fab-options .red-facebook { background: #1877F2; }
.fab-options .red-instagram { background: #E4405F; }
.fab-options .red-tiktok { background: #000; }
.fab-options .red-youtube { background: #FF0000; }

/* ---------- Tarjetas ---------- */
a.product-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.product-item .product-desc,
.product-item .product-medidas {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 6px 0 8px;
}
.product-item .product-medidas { font-weight: 500; color: #444; }

/* Celulares, tablets y pantallas tactiles (sin "hover"): el boton de la tarjeta
   siempre visible. La plantilla original lo ocultaba en celulares. */
@media (max-width: 991.98px), (hover: none) {
  .product-st2-item .product-action {
    display: flex;
    position: relative;
    bottom: auto;
    margin: 0;
    transform: none;
    width: 100%;
  }
  .product-st2-item .product-action .product-action-btn {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .product-st2-item:hover .product-info { margin-top: 0; }
}
@media (max-width: 575.98px) {
  .product-st2-item .product-action .action-btn-cart {
    width: 100%;
    height: auto;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    font-size: 11px;
    letter-spacing: .05em;
    line-height: 1.3;
    white-space: normal;
  }
  .product-st2-item .prices { margin-bottom: 12px; }
}

/* ---------- Botones con texto editable desde el panel ----------
   La plantilla usa alto fijo: si el texto ocupa 2 lineas, la segunda se pierde.
   Con .btn-auto el boton crece y el texto se centra. */
.btn.btn-auto {
  height: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  padding-top: 10px;
  padding-bottom: 10px;
  max-width: 100%;
}
@media (max-width: 575.98px) {
  .btn.btn-auto {
    padding-left: 22px;
    padding-right: 22px;
    letter-spacing: .1em;
  }
}

/* ---------- Banner "estilista profesional" (Inicio) ---------- */
@media (max-width: 767.98px) {
  .page-header-st2-content {
    background: rgba(255, 255, 255, .85);
    border-radius: 14px;
    padding: 20px 18px;
  }
}

/* ---------- Cursos ---------- */
.curso-datos {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 500;
}

/* ---------- Catalogo ---------- */
.catalogo-vacio {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #e1d1d1;
  border-radius: 10px;
}
.catalogo-vacio p { margin-bottom: 20px; }
.product-widget-category a.active { color: #FF6565; font-weight: 600; }
.pagination .page-item.active .page-link { background-color: #FF6565; color: #fff; }

/* ---------- Testimonios (sin enlace) ---------- */
.post-item .thumb { display: block; overflow: hidden; }
.post-item .post-category { display: inline-block; }

/* ---------- 404 ---------- */
.pagina-404 img { max-width: 100%; height: auto; }

/* ---------- Boton flotante mas compacto en celulares ---------- */
@media (max-width: 575.98px) {
  .fab-wrapper { bottom: 14px; left: 12px; }
  .fab-button { width: 44px; height: 44px; font-size: 22px; }
  .fab-options { bottom: 58px; }
  .fab-options li a { width: 44px; height: 44px; font-size: 21px; }
}
