/*
==============================================
PLEY — BUTTONS CSS
Contiene: btn-primary, btn-secondary,
gradient-btn, download-btn, virtue-cta-btn,
btn-mobile, hero-cta y sus variantes.
==============================================
*/

/* ============================================
   BTN PRIMARY
   ============================================ */
.btn-primary {
  background-color: #dd00ff;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: #c700e3;
  transform: translateY(-3px);
  color: #ffffff;
}

/* ============================================
   BTN SECONDARY
   ============================================ */
.btn-secondary,
.canales-plan-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.9rem !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.canales-plan-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

/* Variante específica para header */
.header-btn-secondary {
  padding: 0.5rem 1rem !important;
  min-height: 40px;
  font-size: 0.875rem;
}

/* Variante específica para menú mobile */
.mobile-btn-secondary {
  padding: 0.75rem 1.5rem !important;
  min-height: 48px;
  font-size: 1rem;
}

/* ============================================
   GRADIENT BTN (Botón principal animado)
   ============================================ */
.gradient-btn,
.tutorial-download-btn,
.paquete-modal-activar-btn,
.ver-plan-btn.animated-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.9rem !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #b900f4 0%, #8b00d6 100%) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(139, 0, 214, 0.28);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.gradient-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.gradient-btn:hover::before {
  left: 100%;
}

.gradient-btn:hover,
.tutorial-download-btn:hover,
.paquete-modal-activar-btn:hover,
.ver-plan-btn.animated-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(139, 0, 214, 0.34);
  filter: brightness(1.08);
  color: #ffffff !important;
}

/* ============================================
   DOWNLOAD BTN (Botón grande de descarga)
   ============================================ */
.download-btn {
  background: linear-gradient(45deg, #dd00ff, #aa00ff, #7700cc, #5e00b3);
  background-size: 300% 300%;
  color: white;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.5rem !important;
  min-height: 60px;
  box-shadow: 0 15px 35px rgba(221, 0, 255, 0.4);
  animation: download-gradient 3s ease infinite, pulse-scale 2s ease-in-out infinite;
  transition: all 0.3s ease, transform 0.2s ease;
  transform-style: preserve-3d;
  text-decoration: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 20px 40px rgba(221, 0, 255, 0.5);
  filter: brightness(1.15);
  color: #ffffff;
}

.download-btn:active {
  transform: translateY(2px) scale(0.98);
}

.download-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.download-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.download-btn .app-icons {
  margin-right: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.download-btn .app-icons .material-icons {
  font-size: 1.3rem;
  animation: bounce 1.5s ease infinite;
  color: #ffffff;
}

.download-btn .app-icons .material-icons:nth-child(2) {
  animation-delay: 0.3s;
}

/* Ripple del download btn */
.download-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  transform: scale(0);
  z-index: 10;
}

/* ============================================
   SABER MÁS BTN
   ============================================ */
.saber-mas-btn .app-icons {
  margin-right: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.saber-mas-btn .app-icons .material-icons {
  font-size: 1.3rem;
  color: white;
}

/* Botón de activación */
.activate-btn .app-icons .material-icons:first-child,
.activate-btn .app-icons .material-icons:last-child {
  color: #ffffff;
}

/* ============================================
   VIRTUE CTA BTN
   ============================================ */
.virtue-cta-btn {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 9999px;
}

.virtue-cta-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  border-radius: 50%;
}

.virtue-cta-btn:hover::after {
  width: 300px;
  height: 300px;
}

.virtue-cta-btn:hover {
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 20px 40px rgba(221, 0, 255, 0.5);
}

/* ============================================
   BTN MOBILE
   ============================================ */
.btn-mobile {
  width: 100%;
  padding: 0.875rem 1.5rem !important;
  font-size: 1rem;
  min-height: 56px;
  max-width: 280px;
  margin: 0 auto;
}

/* Hero CTA */
.hero-cta {
  min-width: 180px;
  max-width: 260px;
}

/* Ancho automático para variantes full */
.gradient-btn.w-full,
.download-btn.w-full,
.btn-secondary.w-full {
  width: auto;
}

/* ============================================
   KEYFRAMES DE BOTONES
   ============================================ */
@keyframes gradient-animation {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes download-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes ripple-animation {
  0%   { transform: scale(0); opacity: 1; background: rgba(255, 255, 255, 0.8); }
  100% { transform: scale(4); opacity: 0; background: rgba(255, 255, 255, 0.4); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .gradient-btn,
  .download-btn,
  .tutorial-download-btn,
  .paquete-modal-activar-btn,
  .ver-plan-btn.animated-btn,
  .btn-secondary,
  .canales-plan-btn {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem;
  }

  .gradient-btn.w-full,
  .download-btn.w-full,
  .btn-secondary.w-full {
    width: 100%;
  }

  .hero-cta {
    max-width: none;
  }

  .virtue-cta-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
    min-height: 50px;
  }

  .download-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
    min-height: 50px;
  }

  .download-btn .app-icons {
    margin-right: 8px;
  }

  .download-btn .app-icons .material-icons {
    font-size: 1.1rem;
    color: #ffffff;
  }

  .btn-secondary .app-icons .material-icons {
    color: #ffffff;
  }
}
