@font-face {
  font-family: "Baby Girly Script";
  src: url("../fonts/BabyGirlyScript.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clicker Script";
  src: url("../fonts/ClickerScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.lpm-lamina-app,
.lpm-lamina-app * { box-sizing: border-box; }

.lpm-lamina-app {
  --ink: #014025;
  --ink-soft: #1e3f30;
  --gold: #c59b2d;
  --cream: #fffdf8;
  --paper: #fbf6e9;
  --line: rgba(1, 64, 37, 0.16);
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.lpm-lamina-full { max-width: min(1400px, 100%); }

.lpm-lamina-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(1, 64, 37, 0.1);
  margin-bottom: 18px;
  scroll-margin-top: 96px;
}

.lpm-lamina-kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin: 0 0 10px;
}

.lpm-lamina-card h2 {
  font-size: 32px;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--ink);
}

.lpm-lamina-lead {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.lpm-lamina-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.lpm-lamina-fields label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.lpm-lamina-fields label span {
  font-weight: 400;
  color: #6b7f73;
}

.lpm-lamina-fields input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid rgba(1, 64, 37, 0.5);
  padding: 0 14px;
  text-align: center;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-family: Georgia, serif;
}

.lpm-lamina-fields input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(1, 64, 37, 0.1);
}

.lpm-lamina-arcano {
  display: none;
  position: relative;
  z-index: 2;
  margin: 4px 0 36px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0d36a 0%, #c59b2d 100%);
  border: 1px solid #8d6914;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #014025;
  box-shadow: 0 10px 22px rgba(197, 155, 45, 0.28);
}

.lpm-lamina-arcano span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lpm-lamina-arcano strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #014025;
}

.lpm-lamina-arcano::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 20px solid #c59b2d;
  filter: drop-shadow(0 3px 0 #8d6914);
}

.lpm-lamina-frame[hidden],
.lpm-lamina-sheet[hidden],
.lpm-lamina-pay[hidden],
.lpm-lamina-pay-need[hidden],
.lpm-lamina-check[hidden] {
  display: none !important;
}

.lpm-lamina-stage {
  padding: 10px 0 6px;
}

.lpm-lamina-frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 8px auto 18px;
  padding: 36px 38px 42px;
  border-radius: 6px;
  overflow: visible;
  background:
    linear-gradient(145deg, #f8e7a4 0%, #e8c45c 14%, #c59b2d 34%, #7a5a12 55%, #e4c056 76%, #a67c18 100%);
  border: 1px solid #6e5010;
  box-shadow:
    0 2px 0 #d4af37,
    0 16px 0 #5c430c,
    0 32px 48px rgba(1, 64, 37, 0.28),
    inset 3px 3px 0 rgba(255, 253, 248, 0.55),
    inset -4px -6px 10px rgba(70, 40, 0, 0.4);
}

.lpm-lamina-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 236, 170, 0.75);
  box-shadow:
    inset 0 0 0 6px #6a4c0e,
    inset 0 0 0 8px #e8c45c,
    inset 0 0 0 10px #8d6914;
  pointer-events: none;
  z-index: 3;
}

.lpm-lamina-mat {
  background: #f3e6c4;
  padding: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(80, 50, 0, 0.22);
}

.lpm-lamina-placeholder {
  display: none;
}

.lpm-lamina-sheet {
  position: relative;
  width: 100%;
  container-type: inline-size;
  background: #efe6d0;
  box-shadow: inset 0 0 22px rgba(80, 50, 0, 0.08);
}

.lpm-lamina-base {
  width: 100%;
  height: auto;
  display: block;
}

.lpm-lamina-wm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='340' height='220'><text x='20' y='130' fill='rgba(1,64,37,0.18)' font-size='28' font-family='Georgia,serif' transform='rotate(-28 170 110)'>La Puerta Mágica</text></svg>");
  background-size: 280px 180px;
}

.lpm-lamina-name,
.lpm-lamina-date {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.lpm-lamina-name {
  font-family: "Baby Girly Script", "Great Vibes", cursive;
  color: #1B4D3E;
}

.lpm-lamina-date {
  font-family: "Clicker Script", Georgia, cursive;
}

.lpm-lamina-buy {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  right: 28px;
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 6;
  width: min(310px, 38%);
  padding: 16px 14px 14px;
  text-align: center;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 22px;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  color: #014025;
  border: 2px solid #d4af37;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f4e6c2 100%);
  box-shadow:
    0 0 0 4px rgba(92, 67, 12, 0.35),
    0 2px 0 #f8e7a4,
    0 12px 0 #5c430c,
    0 26px 40px rgba(0, 0, 0, 0.45);
}

.lpm-lamina-buy:hover:not(:disabled) {
  filter: brightness(1.03);
}

.lpm-lamina-buy:hover:not(:disabled) .lpm-lamina-buy-cta {
  filter: brightness(1.08);
}

.lpm-lamina-buy:disabled {
  opacity: 0.88;
  cursor: not-allowed;
}

.lpm-lamina-buy-kicker,
.lpm-lamina-buy-title,
.lpm-lamina-buy-check,
.lpm-lamina-buy-hint {
  display: block;
  margin: 0;
  width: 100%;
  color: #014025;
  text-shadow: none;
}

.lpm-lamina-buy-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d6914;
}

.lpm-lamina-buy-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.lpm-lamina-buy-check,
.lpm-lamina-buy-hint {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.lpm-lamina-buy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4ecf82 0%, #1f8a4d 100%);
  border: 1px solid #f6e7b2;
  box-shadow:
    0 3px 0 #0d4a28,
    0 10px 18px rgba(1, 64, 37, 0.35);
  animation: lpmBuyPulse 1.8s ease-in-out infinite;
}

.lpm-lamina-buy-cta-text {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}

.lpm-lamina-buy .lpm-pay-logo-mp {
  background: #fff;
  border-radius: 8px;
  padding: 3px 5px;
  box-sizing: content-box;
  flex: 0 0 32px;
  width: 32px;
  height: 24px;
}

.lpm-lamina-buy:disabled .lpm-lamina-buy-cta {
  animation: none;
  opacity: 0.72;
}

@keyframes lpmBuyPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 3px 0 #0d4a28, 0 10px 18px rgba(1, 64, 37, 0.35);
  }
  50% {
    transform: scale(1.035);
    box-shadow:
      0 5px 0 #0d4a28,
      0 14px 24px rgba(1, 64, 37, 0.42),
      0 0 18px rgba(78, 207, 130, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpm-lamina-buy-cta { animation: none; }
}

.lpm-lamina-pay-need {
  margin: 10px auto 0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #7a5a12;
}

.lpm-lamina-pay {
  position: relative;
  overflow: hidden;
  margin: 36px 0 12px;
  padding: 28px 22px 30px;
  border-radius: 22px;
  text-align: center;
  border: 1px solid rgba(197, 155, 45, 0.45);
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 253, 248, 0.55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 22% 72%, rgba(197, 155, 45, 0.55) 0 1.5px, transparent 3px),
    radial-gradient(circle at 78% 22%, rgba(255, 253, 248, 0.45) 0 2px, transparent 3.5px),
    radial-gradient(circle at 92% 68%, rgba(197, 155, 45, 0.5) 0 1.5px, transparent 3px),
    radial-gradient(circle at 48% 12%, rgba(255, 236, 170, 0.35) 0 2px, transparent 4px),
    radial-gradient(circle at 64% 86%, rgba(255, 253, 248, 0.35) 0 1px, transparent 2.5px),
    linear-gradient(165deg, #012a1a 0%, #014025 48%, #0a5538 100%);
  box-shadow: 0 18px 40px rgba(1, 64, 37, 0.28), inset 0 0 60px rgba(197, 155, 45, 0.12);
}

.lpm-lamina-pay-title {
  position: relative;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #fffdf8;
}

.lpm-lamina-pay-hint {
  position: relative;
  margin: 0 0 18px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: rgba(255, 253, 248, 0.86);
}

.lpm-lamina-pay-btns {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lpm-lamina-pay-btns .lpm-lamina-btn:only-child {
  flex: 1 1 280px;
  max-width: 460px;
}

.lpm-lamina-btn,
a.lpm-lamina-btn,
a.lpm-lamina-btn:link,
a.lpm-lamina-btn:visited,
a.lpm-lamina-btn:hover,
a.lpm-lamina-btn:focus,
a.lpm-lamina-btn:active {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  min-width: 300px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: #fff !important;
  background: #014025;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lpm-pay-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
}

.lpm-pay-logo-mp {
  width: 36px;
  height: 27px;
  flex: 0 0 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  box-sizing: content-box;
}

.lpm-lamina-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.lpm-pay-mp {
  background: linear-gradient(180deg, #3aaa6e 0%, #217a4c 100%);
  border: 1px solid #f6e7b2;
}

.lpm-pay-pp {
  background: linear-gradient(180deg, #5a9a62 0%, #3a6e44 100%);
  border: 1px solid #f6e7b2;
}

.lpm-lamina-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff1f0;
  border: 1px solid #f5c2c0;
  color: #7a1f1a;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.lpm-lamina-missing {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8e7;
  border: 1px solid #eadfca;
  font-family: Arial, sans-serif;
}

.lpm-lamina-paid,
.lpm-lamina-pending {
  background: #f4fff5;
  border: 1px solid #b7efc4;
  border-radius: 18px;
  padding: 22px 20px;
  margin: 0 0 18px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.lpm-lamina-pending { background: #fff8e7; border-color: #eadfca; }

.lpm-lamina-paid h2,
.lpm-lamina-pending h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.lpm-lamina-offer {
  max-width: 650px;
  margin: 0 auto 22px;
  padding: 22px 20px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(197, 155, 45, 0.45);
  text-align: center;
  font-family: Arial, sans-serif;
}

.lpm-lamina-offer-body { margin: 0 0 4px; }

.lpm-lamina-offer-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.lpm-lamina-offer-kicker {
  color: #c59b2d;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}

.lpm-lamina-offer h3 {
  margin: 0 0 10px;
  color: #014025;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.15;
}

.lpm-lamina-offer p {
  margin: 0 0 6px;
  color: #1e3f30;
  font-size: 15px;
  line-height: 1.5;
}

.lpm-lamina-offer-footer {
  margin: 28px auto 36px;
}

.arcano-lpm-postal-cta {
  display: none !important;
}

#lpmLaminaSlot .lpm-lamina-offer {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

#lpmLaminaSlot .lpm-lamina-offer h3 {
  font-size: 22px;
}

#lpmLaminaSlot a.lpm-lamina-btn {
  width: 100%;
  margin-top: 12px;
}

.lpm-lamina-offer a.lpm-lamina-btn,
.lpm-lamina-offer a.lpm-lamina-btn:link,
.lpm-lamina-offer a.lpm-lamina-btn:visited,
.lpm-lamina-offer a.lpm-lamina-btn:hover,
.lpm-lamina-offer a.lpm-lamina-btn:focus,
.lpm-lamina-offer a.lpm-lamina-btn:active {
  display: inline-block;
  margin-top: 8px;
  color: #fff !important;
  background: #014025;
  text-decoration: none !important;
}

.lpm-mkt { margin: 0 0 28px; }

.lpm-mkt-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.lpm-mkt-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--ink);
}

.lpm-mkt-lead {
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

a.lpm-mkt-cta,
a.lpm-mkt-cta:link,
a.lpm-mkt-cta:visited {
  display: inline-block;
  min-width: 0;
  text-align: center;
}

.lpm-mkt-hero-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(1, 64, 37, 0.16);
}

.lpm-mkt-hero-photo img,
.lpm-mkt-uses img {
  width: 100%;
  height: auto;
  display: block;
}

.lpm-mkt-uses {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lpm-mkt-uses li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.lpm-mkt-uses img { aspect-ratio: 4 / 3; object-fit: cover; }

.lpm-mkt-uses h3,
.lpm-mkt-why h3 {
  margin: 14px 16px 6px;
  font-size: 18px;
  color: var(--ink);
}

.lpm-mkt-uses p,
.lpm-mkt-why p {
  margin: 0 16px 16px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.lpm-mkt-why-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 26px 18px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 22%, rgba(197, 155, 45, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 94% 18%, rgba(1, 64, 37, 0.18) 0 2px, transparent 3.5px),
    radial-gradient(circle at 70% 88%, rgba(197, 155, 45, 0.28) 0 1.5px, transparent 3px),
    linear-gradient(180deg, #e7f3ea 0%, #d5ead9 100%);
}

.lpm-mkt-why {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}

.lpm-mkt-why article {
  background: rgba(255, 253, 248, 0.72);
  border-radius: 16px;
  padding: 6px 4px 4px;
}

.lpm-mkt-why h3 { margin-top: 12px; }

@keyframes lpm-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(14deg); }
}

.lpm-star {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
  line-height: 1;
  z-index: 1;
  animation: lpm-twinkle 2.8s ease-in-out infinite;
}

.lpm-star-a { top: 12px; left: 18px; font-size: 15px; }
.lpm-star-b { top: 18px; right: 28px; font-size: 11px; animation-delay: 0.5s; animation-duration: 3.4s; }
.lpm-star-c { bottom: 14px; left: 42%; font-size: 13px; animation-delay: 1.1s; }
.lpm-star-d { bottom: 18px; right: 22px; font-size: 16px; animation-delay: 1.7s; animation-duration: 2.4s; }
.lpm-star-e { top: 46%; left: 8px; font-size: 10px; animation-delay: 0.9s; animation-duration: 3.1s; }
.lpm-star-f { top: 58%; right: 12px; font-size: 13px; animation-delay: 2.1s; }

.lpm-lamina-pay .lpm-star { color: #f6e7b2; }
.lpm-lamina-pay .lpm-star-a { top: 16px; left: 22px; font-size: 18px; }
.lpm-lamina-pay .lpm-star-b { top: 28px; right: 18%; font-size: 12px; }
.lpm-lamina-pay .lpm-star-c { bottom: 16px; left: 16%; font-size: 14px; }
.lpm-lamina-pay .lpm-star-d { top: 20px; right: 24px; font-size: 17px; }
.lpm-lamina-pay .lpm-star-e { top: 62%; left: 28px; font-size: 11px; }
.lpm-lamina-pay .lpm-star-f { bottom: 22px; right: 18%; font-size: 15px; }

.lpm-lamina-pay .lpm-lamina-btn {
  box-shadow: 0 0 0 1px rgba(246, 231, 178, 0.35), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.lpm-mkt-steps {
  display: flex;
  justify-content: center;
  gap: 28px 42px;
  list-style: none;
  margin: 8px 0 10px;
  padding: 18px 8px 12px;
  flex-wrap: wrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.lpm-mkt-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lpm-mkt-steps span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #014025;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: Georgia, serif;
  box-shadow: 0 6px 0 rgba(1, 64, 37, 0.12);
}

@media (max-width: 900px) {
  .lpm-mkt-hero,
  .lpm-mkt-uses,
  .lpm-mkt-why { grid-template-columns: 1fr; }
  .lpm-mkt-steps { font-size: 18px; gap: 16px 28px; }
}

@media (max-width: 720px) {
  .lpm-lamina-fields-grid { grid-template-columns: 1fr; }
  .lpm-lamina-card { padding: 18px; }
  .lpm-lamina-pay-btns { flex-direction: column; }
  .lpm-lamina-btn { width: 100%; min-width: 0; }
  .lpm-lamina-frame { padding: 22px 22px 26px; }
  .lpm-lamina-mat { padding: 9px; }
  .lpm-lamina-buy {
    right: 12px;
    width: min(230px, 54%);
    padding: 12px 10px;
    gap: 6px;
  }
  .lpm-lamina-buy-title { font-size: 16px; }
  .lpm-lamina-buy-check,
  .lpm-lamina-buy-hint { font-size: 12px; }
  .lpm-lamina-buy-cta { padding: 9px 8px; gap: 6px; }
  .lpm-lamina-buy-cta-text { font-size: 12px; }
}
