/* Kartas sales site v3 — look and feel. Overrides site.css. */
:root {
  --paper: #f6eee9;
  --paper-deep: #eadfd8;
  --blush: #f3d6d8;
  --blush-deep: #c98991;
  --blush-soft: #e8c5c8;
  --ink: #2c2326;
  --muted: #6d5c61;
  --gold: #a07a4e;
  --gold-deep: #7c5c34;
  --gold-soft: #d4bc96;
  --line: #ead7d2;
  --card: #fffaf8;
  --whatsapp: #128c4a;
  --whatsapp-d: #0e6e3a;
  --ph-bg: #f8e6ea;
  --ph-ink: #8a4a54;
  --radius: 20px;
  --shadow: 0 22px 50px -28px rgba(80, 40, 50, 0.45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.v3 {
  background:
    radial-gradient(90% 60% at 85% -10%, rgba(243, 214, 216, 0.7), transparent 55%),
    radial-gradient(70% 50% at -10% 20%, rgba(232, 197, 200, 0.35), transparent 50%),
    var(--paper);
  background-attachment: fixed;
}

.site-header {
  background: rgba(246, 238, 233, 0.86);
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.logo { letter-spacing: 0.04em; }
.eyebrow { color: var(--blush-deep); letter-spacing: 0.18em; }
.hero h1, .section h2, .pedido-main h1, .promo-main h1 {
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero h1 { font-size: clamp(2.2rem, 9vw, 3.7rem); }

.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #3a2c30; }
.btn { border-radius: 999px; }
.btn-ghost { border-color: var(--blush-soft); background: rgba(255,250,248,0.6); }

/* ===== Cinematic hero ===== */
.hero { position: relative; }
.phone-wrap {
  position: relative;
  padding: 18px 0 8px;
}
.hero-atmosphere, .promo-atmosphere {
  position: absolute; inset: -12% -18%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(30px);
  opacity: 0.85;
}
.glow-a {
  width: 70%; height: 70%; left: 15%; top: 10%;
  background: radial-gradient(circle, rgba(243,214,216,0.95) 0%, rgba(243,214,216,0) 70%);
}
.glow-b {
  width: 55%; height: 55%; right: 0; bottom: 5%;
  background: radial-gradient(circle, rgba(212,188,150,0.55) 0%, transparent 70%);
}

.sparkle {
  position: absolute; width: 8px; height: 8px;
  background: var(--gold-soft);
  transform: rotate(45deg);
  border-radius: 1px;
  animation: twinkle 3.6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(200, 160, 100, 0.7);
}
.sparkle.s1 { left: 8%; top: 18%; animation-delay: 0s; }
.sparkle.s2 { right: 10%; top: 12%; width: 6px; height: 6px; animation-delay: 0.7s; }
.sparkle.s3 { left: 14%; bottom: 22%; width: 5px; height: 5px; animation-delay: 1.2s; background: var(--blush-soft); }
.sparkle.s4 { right: 16%; bottom: 28%; animation-delay: 1.8s; }
.sparkle.s5 { left: 48%; top: 6%; width: 4px; height: 4px; animation-delay: 0.4s; }
.sparkle.s6 { right: 6%; top: 42%; width: 7px; height: 7px; animation-delay: 2.2s; }

.petal {
  position: absolute;
  width: 12px; height: 18px;
  background: radial-gradient(circle at 30% 30%, #f7e1e3, var(--blush-deep));
  border-radius: 80% 20% 80% 20%;
  opacity: 0.7;
  animation: drift 11s linear infinite;
}
.petal.p1 { left: 6%; top: -8%; animation-duration: 12s; }
.petal.p2 { right: 12%; top: -10%; animation-duration: 14s; animation-delay: 2s; width: 10px; height: 15px; }
.petal.p3 { left: 22%; top: -12%; animation-duration: 13s; animation-delay: 4s; }
.petal.p4 { right: 28%; top: -6%; animation-duration: 16s; animation-delay: 1s; }
.petal.p5 { left: 70%; top: -10%; animation-duration: 15s; animation-delay: 3s; width: 9px; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: rotate(45deg) scale(0.7); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.15); }
}
@keyframes drift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.7; }
  100% { transform: translateY(420px) rotate(160deg); opacity: 0; }
}

.phone-wrap .phone { position: relative; z-index: 1; }
.phone {
  --pw: min(280px, 78vw);
  max-height: min(74vh, 660px);
  width: min(var(--pw), calc(min(74vh, 660px) * 390 / 844));
  height: min(calc(var(--pw) * 844 / 390), 74vh, 660px);
  background: #1a1416;
  box-shadow:
    0 0 0 1px #3a3032,
    0 28px 60px -18px rgba(80, 36, 48, 0.5),
    0 0 80px -20px rgba(201, 137, 145, 0.45),
    inset 0 0 0 1px rgba(255,255,255,0.1);
}
.phone.is-open {
  box-shadow:
    0 0 0 1px #3a3032,
    0 30px 70px -16px rgba(80, 36, 48, 0.55),
    0 0 90px -10px rgba(201, 137, 145, 0.55),
    inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* Smoother envelope + flap */
.demo-stage { perspective: 900px; }
.envelope {
  background:
    radial-gradient(120% 80% at 50% 0%, #fff 0%, #f8efe9 50%, #f0ddd8 100%);
  transition: transform 1.2s cubic-bezier(.22,1,.36,1), opacity 0.8s ease 0.15s;
}
.env-flap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(180deg, #fbecea 0%, #f3d6d8 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 3;
  box-shadow: 0 6px 16px -10px rgba(80,40,50,0.35);
  transition: transform 1.05s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.phone.is-open .env-flap {
  transform: rotateX(-160deg);
  opacity: 0.2;
}
.phone.is-open .envelope {
  transform: translateY(112%);
  opacity: 0;
}
.env-card {
  border-color: var(--gold-soft);
  background: #fffaf7;
  position: relative; z-index: 2;
}
.cover {
  transition: opacity 1.05s ease 0.2s, transform 1.25s cubic-bezier(.22,1,.36,1) 0.15s;
}
.phone-hint {
  position: relative; z-index: 1;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 0;
}

@media (max-width: 859px) {
  .phone {
    --ph: min(60vh, 560px);
    width: calc(var(--ph) * 390 / 844);
    height: var(--ph);
    max-height: var(--ph);
  }
}
@media (max-width: 859px) and (max-height: 700px) {
  .hero h1 { font-size: clamp(1.55rem, 6.6vw, 2rem); }
  .hero { gap: 8px; padding-top: 4px; }
  .phone {
    --ph: min(58vh, 460px);
    width: calc(var(--ph) * 390 / 844);
    height: var(--ph);
    max-height: var(--ph);
  }
  .phone-hint { display: none; }
}
@media (min-width: 860px) {
  .phone {
    --pw: 330px;
    width: 330px;
    height: calc(330px * 844 / 390);
    max-height: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle, .petal, .glow { animation: none !important; opacity: 0.35; }
  .envelope, .env-flap, .cover, .phone { transition: none !important; }
}

/* ===== Gallery + phone-frame showcase ===== */
.theme-card { border-radius: 24px; }
.theme-card .cap { padding: 52px 16px 18px; }
.showcase {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(32, 22, 26, 0.88);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 20px 8px 24px;
}
.showcase[hidden] { display: none !important; }
.showcase .lb-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; z-index: 2;
}
.show-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.show-phone {
  width: min(280px, 72vw) !important;
  height: min(calc(min(280px, 72vw) * 844 / 390), 72vh) !important;
  max-height: 72vh !important;
  cursor: default;
}
.show-phone .phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.show-caption {
  margin: 0;
  color: #f6eee9;
  font-family: var(--serif);
  font-size: 1.4rem;
  text-align: center;
}
.show-dots { display: flex; gap: 7px; }
.show-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.show-dots button.is-on { background: var(--blush-soft); transform: scale(1.2); }
.show-nav {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 520px) {
  .showcase { grid-template-columns: 1fr; }
  .show-nav { display: none; }
}

/* ===== Packages ===== */
.plan {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 10px 28px -24px rgba(80,40,50,0.4);
}
.plan.is-featured {
  border: 1.5px solid var(--blush-deep);
  background:
    linear-gradient(180deg, #fff8f6 0%, #fceeee 100%);
  box-shadow: 0 18px 40px -24px rgba(201, 137, 145, 0.65);
  transform: translateY(-2px);
}
.plan-tag {
  background: var(--blush-deep);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.12em;
}
.plan .price-free { color: var(--blush-deep); font-weight: 600; }
.brand-badge {
  border-color: var(--blush-soft);
  color: var(--blush-deep);
  background: #fff7f6;
}

/* ===== Promo as an invitation ===== */
.promo-page .promo-main { padding-top: 16px; }
.promo-hero {
  position: relative;
  text-align: center;
  padding: 28px 16px 8px;
}
.promo-seal {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #e8b4b8, var(--blush-deep) 60%, #9a5d64);
  color: #fffaf7;
  font-family: var(--serif);
  font-size: 1.8rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(154, 93, 100, 0.7);
  letter-spacing: 0.04em;
}
.promo-card {
  border-color: var(--blush-soft);
  background:
    linear-gradient(180deg, #fffaf8 0%, #fbf0ef 100%);
  box-shadow: 0 20px 50px -28px rgba(154, 93, 100, 0.5);
}
.promo-code { color: var(--ink); letter-spacing: 0.16em; }

/* ===== Order form steps ===== */
.form-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
}
.form-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.form-steps .sn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--card);
}
.form-steps li.is-active { color: var(--ink); }
.form-steps li.is-active .sn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.form-steps li.is-done .sn {
  background: var(--blush-deep);
  border-color: var(--blush-deep);
  color: #fff;
}
.form-progress {
  height: 3px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 18px;
}
.form-progress i {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--blush-soft), var(--blush-deep));
  transition: width .35s ease;
}
.step-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-deep);
  margin: 0 0 10px;
}
.step-panel[hidden] { display: none !important; }
.bar-steps {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.bar-steps.is-last {
  grid-template-columns: 1fr 1.6fr;
}
.bar-steps #prevStep:disabled { opacity: 0.4; cursor: default; }

.promo-banner {
  background: #f8eef0;
  border-color: var(--blush-soft);
}

@media (max-width: 420px) {
  .form-steps .sl { font-size: 0.6rem; }
}

.card { border-color: var(--line); background: var(--card); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.pkg[aria-pressed="true"] { border-color: var(--blush-deep); background: #fbf0ef; }

.compare thead th { background: #f8eef0; color: var(--blush-deep); }
.compare tbody tr:nth-child(even) td,
.compare tbody tr:nth-child(even) th[scope="row"] { background: #fbf6f4; }

.is-placeholder, .ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-color: #e0b4b8;
}

/* v3 fixes: hint under the phone, eyebrow on one line, icons below the notch */
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.hero .eyebrow,
.eyebrow {
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cover-icons { top: 22px; }
.phone-hint { max-width: 16rem; line-height: 1.35; }
@media (max-width: 859px) and (max-height: 820px) {
  .phone-hint { display: none; }
}

/* ===== Poster lockup: stacked name, then number, then label + date, with real spacing.
   Cormorant’s 7 has a long swash; line-height must contain the ink so it never
   paints through CUMPLE or the date. em gaps on the number use the number’s size. ===== */
.cover-shade {
  background: linear-gradient(
    180deg,
    rgba(20, 14, 10, 0) 0%,
    rgba(20, 14, 10, 0) 40%,
    rgba(20, 14, 10, 0.4) 62%,
    rgba(20, 14, 10, 0.82) 100%
  );
}
.cover-lockup {
  padding: 5% 6% 8%;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.cover-kicker {
  font-size: clamp(0.38rem, 1.7cqh, 0.66rem);
  margin: 0 0 0.2em;
  letter-spacing: 0.18em;
  line-height: 1.2;
}
.cover-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, min(14cqh, 36cqi), 3.5rem);
  line-height: 1.05;
  margin: 0 0 0.16em;
  letter-spacing: -0.03em;
}
.cover-age {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-style: normal;
  font-size: 1em;
  font-weight: 500;
  opacity: 1;
  line-height: 1;
}
.cover-age-num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, min(22cqh, 50cqi), 6.6rem);
  line-height: 1.25; /* contains the 7’s descending swash */
  letter-spacing: -0.05em;
  margin: 0 0 0.1em; /* 0.1em of the big number — real air before CUMPLE */
  padding: 0;
}
.cover-age-num.is-wide {
  font-size: clamp(2.5rem, min(18cqh, 38cqi), 5.4rem);
  letter-spacing: -0.04em;
}
.cover-age-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: clamp(0.48rem, 2cqh, 0.76rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.25;
  opacity: 0.92;
}
.cover-date {
  margin: clamp(0.35rem, 1.6cqh, 0.55rem) 0 0;
  padding: 0;
  font-size: clamp(0.38rem, 1.6cqh, 0.62rem);
  line-height: 1.3;
}

/* On short phones, shrink the stack so it stays in the bottom band with the same gaps. */
@media (max-width: 859px) and (max-height: 700px) {
  .cover-name { font-size: clamp(1.55rem, min(12cqh, 32cqi), 2.7rem); margin-bottom: 0.1em; }
  .cover-age-num { font-size: clamp(2.7rem, min(20cqh, 46cqi), 5.2rem); margin-bottom: 0.12em; }
  .cover-age-num.is-wide { font-size: clamp(2.2rem, min(16cqh, 34cqi), 4.4rem); }
  .cover-date { margin-top: 0.3em; }
}

/* Gallery phone-frame: hide baked-in type completely, then lay the poster lockup on top. */
.show-phone.is-relocked .show-shade {
  display: block;
  top: 28%;
  background: linear-gradient(
    180deg,
    rgba(16, 10, 12, 0) 0%,
    rgba(16, 10, 12, 0.55) 18%,
    rgba(16, 10, 12, 0.9) 38%,
    rgba(16, 10, 12, 0.97) 62%,
    rgba(16, 10, 12, 0.985) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
}
.show-lockup[hidden],
.show-shade[hidden] { display: none !important; }
.show-phone.is-relocked .show-lockup { display: flex; }

/* ===== Preview mobile fixes: nav pills, compare scroll, gallery close ===== */
@media (max-width: 859px) {
  :root { --header-h: 108px; }
  .section,
  .hero,
  .pedido-main,
  .promo-main { scroll-margin-top: calc(var(--header-h) + 8px); }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
    gap: 6px;
  }
  .nav-pills {
    order: 3;
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 0;
    margin-top: 2px;
  }
  .nav-pills::-webkit-scrollbar { display: none; }
  .nav-pills .nav-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    background: var(--card);
    border: 1px solid var(--blush-soft);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
  }
  .nav-pills .nav-link:hover,
  .nav-pills .nav-link:focus-visible {
    background: #fff8f6;
    border-color: var(--gold-soft);
    color: var(--gold-deep);
  }
}

/* Desktop: pills sit inline with the rest of the nav */
@media (min-width: 860px) {
  .nav-pills { display: flex; align-items: center; gap: 0; }
}

/* Comparison table: horizontal scroll with a visible hint, sticky first column */
.compare-hint {
  display: none;
}
@media (max-width: 700px) {
  .compare-hint {
    display: block;
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-deep);
  }
  .compare-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    background: var(--card);
  }
  .compare {
    width: max-content;
    min-width: 480px;
    max-width: none;
  }
  .compare th,
  .compare td { padding: 10px 10px; }
  .compare tbody th[scope="row"] {
    min-width: 8.2rem;
    max-width: 9.2rem;
  }
  .compare thead th:not(:first-child),
  .compare tbody td { min-width: 5.8rem; }
  .compare thead th:last-child,
  .compare tbody td:last-child { padding-right: 16px; }
  .compare thead th:first-child,
  .compare tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 8px 0 10px -8px rgba(80, 40, 50, 0.22);
  }
  .compare thead th:first-child { background: #f8eef0; }
  .compare tbody th[scope="row"] { background: var(--card); }
  .compare tbody tr:nth-child(even) th[scope="row"] { background: #fbf6f4; }
}

/* Gallery close: in the flow at the top, clear of the header and the phone */
body.lb-open .site-header { display: none !important; }
.showcase {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px 20px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 120;
  overflow: hidden;
  box-sizing: border-box;
}
.showcase .lb-close {
  position: relative;
  align-self: flex-end;
  flex-shrink: 0;
  margin: 0 4px 12px auto;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--gold-soft);
  box-shadow: 0 8px 20px rgba(44, 35, 38, 0.28);
  z-index: 5;
}
.showcase .show-nav.prev { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); }
.showcase .show-nav.next { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 520px) {
  .showcase .show-phone {
    width: min(260px, 68vw) !important;
    height: min(calc(min(260px, 68vw) * 844 / 390), calc(100dvh - 220px)) !important;
    max-height: calc(100dvh - 220px) !important;
  }
}
@media (min-width: 521px) {
  .showcase { display: grid; grid-template-columns: auto 1fr auto; align-items: center; overflow: auto; }
  .showcase .lb-close { grid-column: 1 / -1; justify-self: end; margin: 0 8px 8px 0; }
}
