/* ==========================================================================
   LOMASCOOL.ES - AWIN / HABITISSIMO MODAL & CTA BUTTON STYLES
   ========================================================================== */

/* CTA Button Orange Style */
.btn-cta-orange,
.btn-presupuesto-orange,
a.btn--cta-orange {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4) !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.btn-cta-orange:hover,
.btn-presupuesto-orange:hover,
a.btn--cta-orange:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.55) !important;
  color: #ffffff !important;
}

/* Modal Backdrop Overlay */
.lc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

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

/* Modal Container */
.lc-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 850px;
  height: 90vh;
  max-height: 750px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.lc-modal-overlay.active .lc-modal-container {
  transform: scale(1);
}

/* Modal Header */
.lc-modal-header {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lc-modal-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.lc-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lc-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lc-modal-close:hover {
  color: #0f172a;
  background-color: #e2e8f0;
}

/* Modal Body & Loader */
.lc-modal-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.lc-modal-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.lc-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: lc-spin 0.8s linear infinite;
}

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

.lc-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Prevent body scroll when modal is open */
body.lc-modal-open {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .lc-modal-container {
    height: 95vh;
    border-radius: 12px;
  }
}
