/* ============================================================================
   LAYOSCAMP · Popup "Plazas limitadas" + FAB "Inscríbete" — Design System v3
   Tokens del theme (design-system-v3-tokens) con fallbacks por si cargan tarde.
   ============================================================================ */

/* ============ FAB "Inscríbete" ============ */
.lc-floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--sol, #FBBB0E);
  color: var(--bosque-deep, #22401F);
  border-radius: 999px;
  font-family: var(--font-body, "Outfit", "Helvetica Neue", Arial, sans-serif);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(251,187,14,.5), 0 4px 12px rgba(34,64,31,.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.lc-floating-cta--visible {
  opacity: 1;
  transform: translateY(0);
}
.lc-floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(251,187,14,.6), 0 6px 16px rgba(34,64,31,.22);
  color: var(--bosque-deep, #22401F);
}
.lc-floating-cta:focus-visible {
  outline: 2px solid var(--bosque, #31562D);
  outline-offset: 2px;
}
.lc-floating-cta__icon { flex-shrink: 0; }

@media (max-width: 768px) {
  .lc-floating-cta {
    right: 14px;
    bottom: 14px;
    padding: 13px 17px;
    font-size: .86rem;
  }
}

/* ============ POPUP "Plazas limitadas" ============ */
.lc-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34,64,31,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease;
}
.lc-popup-overlay--visible { opacity: 1; }
.lc-popup-overlay--closing { opacity: 0; }

.lc-popup {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  background: var(--crema, #FDF8EE);
  border-radius: var(--radius-md, 22px);
  box-shadow: 0 38px 84px -26px rgba(49,86,45,.42), 0 14px 32px -12px rgba(39,39,37,.2);
  padding: 40px 32px 24px;
  text-align: center;
  font-family: var(--font-body, "Outfit", "Helvetica Neue", Arial, sans-serif);
  color: var(--ink, #272725);
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.lc-popup-overlay--visible .lc-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lc-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--arena, #F0E0C3);
  color: var(--ink, #272725);
  cursor: pointer;
  transition: background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.lc-popup__close:hover { background: var(--arena-2, #E6D2AC); transform: rotate(90deg); }
.lc-popup__close:focus-visible { outline: 2px solid var(--bosque, #31562D); outline-offset: 2px; }

.lc-popup__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bosque-deep, #22401F);
  color: var(--sol, #FBBB0E);
  box-shadow: 0 0 0 8px rgba(34,64,31,.08);
}

.lc-popup__eyebrow {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracota, #D2603A);
}

.lc-popup__title {
  margin: 0 0 14px;
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--bosque-deep, #22401F);
}

.lc-popup__body {
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(39,39,37,.8);
  margin-bottom: 24px;
}
.lc-popup__body p { margin: 0 0 8px; }
.lc-popup__body p:last-child { margin-bottom: 0; }

.lc-popup__footer {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lc-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--sol, #FBBB0E);
  color: var(--bosque-deep, #22401F);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(251,187,14,.35), 0 2px 8px rgba(39,39,37,.12);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.lc-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(251,187,14,.5), 0 4px 12px rgba(39,39,37,.16);
  color: var(--bosque-deep, #22401F);
}
.lc-popup__cta:focus-visible { outline: 2px solid var(--bosque, #31562D); outline-offset: 2px; }

.lc-popup__dismiss {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 12px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(39,39,37,.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.lc-popup__dismiss:hover { color: var(--bosque-deep, #22401F); }

.lc-popup__trust {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(49,86,45,.12);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(39,39,37,.6);
}

@media (max-width: 480px) {
  .lc-popup { padding: 34px 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-popup-overlay,
  .lc-popup,
  .lc-popup__close,
  .lc-popup__cta,
  .lc-floating-cta {
    transition: none !important;
  }
  .lc-popup { transform: none; }
}

/* v3fix B8 (2026-07-22): el CTA flotante "Inscríbete" tapaba el badge de
   reCAPTCHA v3 (ambos bottom-right). El badge debe quedar visible (términos
   de Google) → se sube por encima del CTA. */
.grecaptcha-badge {
  bottom: 104px !important;
}
