/* Landing Regalo Acemco - Acemco campaign landing
   Replica del diseño Figma node 13:204
*/

/* ==== Animations (shared with all landings) ==== */
@keyframes lpReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lpHeroIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
}
@keyframes lpGoldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 227, 138, 0.55); }
  50%      { box-shadow: 0 0 0 16px rgba(247, 227, 138, 0); }
}
@keyframes lpFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.lp-reveal.is-revealed { opacity: 1; transform: translateY(0); }
.lp-reveal-delay-1 { transition-delay: 0.1s; }
.lp-reveal-delay-2 { transition-delay: 0.2s; }
.lp-reveal-delay-3 { transition-delay: 0.3s; }
.lp-reveal-delay-4 { transition-delay: 0.4s; }

.lp-hero-in { animation: lpHeroIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.lp-pulse { animation: lpPulse 2.6s ease-in-out infinite; }
.lp-gold-pulse { animation: lpGoldPulse 2.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .lp-reveal, .lp-hero-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  .lp-pulse, .lp-gold-pulse { animation: none !important; }
}

/* ==== Toast notifications ==== */
.lp-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

@keyframes lpToastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lpToastOut {
  to { opacity: 0; transform: translateX(40px) scale(0.96); }
}
@keyframes lpToastCheck {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}

.lp-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0a7d2c 0%, #0d9c38 100%);
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255,255,255,0.06) inset;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  pointer-events: auto;
  animation: lpToastIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  min-width: 280px;
  max-width: 380px;
}

.lp-toast.is-error {
  background: linear-gradient(135deg, #b80012 0%, #d6112a 100%);
}

.lp-toast.is-leaving { animation: lpToastOut 0.32s ease both; }

.lp-toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-toast-icon svg { width: 14px; height: 14px; display: block; }
.lp-toast-icon path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: lpToastCheck 0.45s 0.12s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.lp-toast-msg { flex: 1; min-width: 0; }

.lp-toast-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background 140ms ease, color 140ms ease;
}
.lp-toast-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 480px) {
  .lp-toast-container { bottom: 16px; right: 16px; left: 16px; }
  .lp-toast { min-width: 0; max-width: 100%; font-size: 14px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-toast, .lp-toast.is-leaving { animation: none !important; }
  .lp-toast-icon path { animation: none !important; stroke-dashoffset: 0 !important; }
}

.lra-root,
.lra-root * {
  box-sizing: border-box;
}

.lra-root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #0b0906;
  overflow: hidden;
  font-family: 'Inter Tight', 'SF UI Display', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==== Background layers ==== */
.lra-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lra-bg-image,
.lra-bg-curtains {
  display: none;
}

/* Vertical curtains pattern (background "shape" matching Figma) */
.lra-root::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 28px,
      rgba(255, 255, 255, 0.06) 28px,
      rgba(255, 255, 255, 0.06) 29px,
      transparent 29px,
      transparent 80px
    );
  opacity: 0.9;
}

.lra-root::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 36%, rgba(190, 155, 73, 0.30), transparent 70%),
    linear-gradient(175.44deg, #000 0.78%, rgba(0, 0, 0, 0) 99.85%);
}

.lra-bg-fade {
  display: none;
}

/* ==== Content ==== */
.lra-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lra-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 58px 24px 64px;
  text-align: center;
}

.lra-title {
  margin: 0 auto;
  max-width: 890px;
  font-family: 'Inter Tight', 'SF UI Display', sans-serif;
  font-weight: 600;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}

.lra-subtitle {
  margin: 18px auto 0;
  max-width: 682px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.64;
  color: #fff;
}

.lra-subtitle strong {
  font-weight: 700;
}

/* ==== Form Card ==== */
.lra-form {
  margin: 50px auto 0;
  width: 100%;
  max-width: 516px;
  padding: 56px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 2px 4px 94px 0 rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.lra-form-title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 30px;
  color: #09080d;
}

.lra-form-sub {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #000;
  opacity: 0.6;
}

.lra-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}

.lra-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.lra-field label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  color: #1a1a1a;
}

.lra-field input {
  height: 44px;
  padding: 10px 14px;
  background: #fdfdfd;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  color: #000;
  outline: none;
  transition: border-color 160ms ease;
}

.lra-field input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.lra-field input:focus {
  border-color: #23263f;
}

.lra-phone-wrap {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: #fdfdfd;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.lra-phone-wrap:focus-within {
  border-color: #23263f;
}

.lra-phone-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.lra-phone-wrap input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #000;
}

.lra-phone-wrap input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* ==== Submit ==== */
.lra-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 8px 24px;
  background: linear-gradient(180deg, #23263f 39.58%, #121320 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.16px;
  transition: filter 160ms ease, transform 80ms ease;
}

.lra-submit:hover {
  filter: brightness(1.12);
}

.lra-submit:active {
  transform: scale(0.99);
}

.lra-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lra-submit img {
  width: 14.5px;
  height: auto;
}

.lra-feedback {
  min-height: 18px;
  font-size: 13px;
  color: #000;
  text-align: center;
}

.lra-feedback.is-error { color: #b80012; }
.lra-feedback.is-success { color: #0a7d2c; }

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .lra-root { min-height: 100vh; }
  .lra-content { padding: 48px 16px; }
  .lra-title { font-size: 30px; line-height: 1.1; letter-spacing: -0.5px; }
  .lra-subtitle { font-size: 16px; }
  .lra-form { padding: 32px 24px; margin-top: 32px; }
  .lra-form-title { font-size: 22px; line-height: 26px; }
}

@media (max-width: 480px) {
  .lra-title { font-size: 26px; }
}

/* ==== Theme override guards ==== */
.lra-root .lra-submit {
  background: linear-gradient(180deg, #23263f 39.58%, #121320 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  height: 48px !important;
  width: 100% !important;
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-transform: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.lra-root .lra-submit span {
  flex: 1;
  text-align: center;
}

.lra-root .lra-submit img {
  width: 18px !important;
  height: 16px !important;
  flex-shrink: 0;
  object-fit: contain;
}

.lra-root .lra-submit:hover {
  filter: brightness(1.12) !important;
  color: #fff !important;
  border: none !important;
}

.lra-root .lra-field input,
.lra-root .lra-phone-wrap input {
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  background: #fdfdfd !important;
  color: #000 !important;
  height: 44px !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow: none !important;
}

.lra-root .lra-phone-wrap {
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  background: #fdfdfd !important;
  height: 44px !important;
  padding: 0 14px !important;
}

.lra-root .lra-phone-wrap input {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: 100% !important;
}

.lra-root .lra-field input:focus,
.lra-root .lra-phone-wrap:focus-within {
  border-color: #23263f !important;
}

.lra-root .lra-form {
  background: #ffffff !important;
  border-radius: 6px !important;
}
