/* ============================================
   Playbook Lead Capture — Floating Button & Modal
   ============================================ */

/* Floating Button */
.playbook-fab {
  position: fixed;
  bottom: 120px;
  right: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #d946ef);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 24px;
  border-radius: 50px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: playbook-glow 4s ease-in-out infinite, playbook-gradient 6s ease infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.playbook-fab:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6);
  background-position: right center;
}

.playbook-fab:active {
  transform: translateY(0) scale(0.95);
}

.playbook-fab i {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes playbook-glow {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 15px 60px rgba(217, 70, 239, 0.6);
    transform: scale(1.02);
  }
}

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

/* Modal Overlay */
.playbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.playbook-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.playbook-modal {
  background: linear-gradient(145deg,
      rgba(15, 15, 25, 0.98),
      rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px 30px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.playbook-overlay.active .playbook-modal {
  transform: translateY(0) scale(1);
}

/* Close Button */
.playbook-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.playbook-close:hover {
  color: #fff;
}

/* Modal Header */
.playbook-modal h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 8px;
  text-align: center;
}

.playbook-modal .modal-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Form Fields */
.playbook-form .form-group {
  margin-bottom: 18px;
}

.playbook-form label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.playbook-form input[type="text"],
.playbook-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.playbook-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.playbook-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Checkbox */
.playbook-form .consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.playbook-form .consent-group input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #3b82f6;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.playbook-form .consent-group label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}

.playbook-form .consent-group a {
  color: #3b82f6;
  text-decoration: underline;
}

/* Submit Button */
.playbook-form .submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.playbook-form .submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.playbook-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner */
.playbook-form .submit-btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.playbook-form .submit-btn.loading .spinner {
  display: inline-block;
}

.playbook-form .submit-btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Messages */
.playbook-message {
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  border-radius: 8px;
  display: none;
  margin-top: 12px;
}

.playbook-message.success {
  display: block;
  color: #22c55e;
}

.playbook-message.error {
  display: block;
  color: #ef4444;
}

/* Success State */
.playbook-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.playbook-success.active {
  display: block;
}

.playbook-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 15px;
}

.playbook-success h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.playbook-success p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .playbook-fab {
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .playbook-fab i {
    font-size: 1.5rem;
    margin: 0;
  }

  .playbook-fab .playbook-fab-text {
    display: none !important;
  }

  .playbook-modal {
    padding: 25px 20px;
    width: 95%;
  }

  .playbook-modal h2 {
    font-size: 1.3rem;
  }
}

/* Mercado Pago Button Custom Styles */
.mercadopago-button-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Standalone Mercado Pago Button (Yellow Style) */
.mercadopago-button {
  width: 100% !important;
  height: 48px !important;
  border-radius: 8px !important;
  background-color: #F7E011 !important;
  font-weight: 600 !important;
  color: #000 !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  padding: 0 24px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  min-width: 280px !important;
}

.mercadopago-button:hover {
  transform: translateY(-2px) !important;
  background-color: #ffe81e !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.mercadopago-button-container .mercadopago-button {
  width: 100% !important;
  max-width: 100%;
  height: 52px !important;
  border: none !important;
  border-radius: 12px !important;
  background-color: #009ee3 !important; /* MP Blue */
  background-image: linear-gradient(135deg, #009ee3, #007eb5) !important;
  color: #fff !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 4px 15px rgba(0, 158, 227, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.mercadopago-button-container .mercadopago-button:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(0, 158, 227, 0.5) !important;
}

/* Align fix for the section container */
@media (max-width: 768px) {
  .pricing-cta-column {
    width: 100%;
    margin-top: 10px;
  }
  
  #asesoria .container > .glass-card > div:first-child > div {
    flex-direction: column !important;
    text-align: center !important;
  }

  #asesoria h3 {
    text-align: center !important;
  }
  
  #asesoria ul {
    justify-content: center !important;
  }
}