:root {
  --sky: #8ec8ea;
  --sky-2: #c5e6f7;
  --sky-deep: #3e92c4;
  --heart: #e31b23;
  --heart-dark: #b01018;
  --gold: #f5c518;
  --cream: #fff8f0;
  --ink: #1c1414;
  --muted: #5c4d4d;
  --camara: #c41230;
  --coral: #f26b7a;
  --ok: #1f9d55;
  --paper: #fffdf9;
  --shadow: 0 18px 50px rgba(28, 20, 20, 0.14);
  --radius: 22px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Lilita One", "Trebuchet MS", sans-serif;
  --script: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(#b9dff3 0%, var(--sky) 28%, #eef7fc 70%, var(--cream) 100%);
  min-height: 100vh;
}
body.clouded::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 18% at 12% 8%, #fff 0%, transparent 70%),
    radial-gradient(ellipse 30% 14% at 78% 6%, #fff 0%, transparent 70%),
    radial-gradient(ellipse 24% 10% at 50% 2%, rgba(255,255,255,.7) 0%, transparent 70%);
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.demo-banner {
  position: relative; z-index: 5;
  background: var(--ink); color: #fff;
  text-align: center; font-size: 13px; letter-spacing: .04em;
  padding: 8px 16px;
}
.demo-banner strong { color: var(--gold); }

.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 240, .82);
  border-bottom: 1px solid rgba(227, 27, 35, .12);
}
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-name { font-family: var(--script); font-size: 28px; line-height: 1; color: var(--heart); }
.brand-name span { color: var(--ink); }
.nav-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav-links a, .nav-links button.linkish {
  background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.nav-links a:hover, .nav-links button.linkish:hover { background: rgba(227,27,35,.08); }
.lang { display: flex; background: #fff; border-radius: 999px; padding: 3px; border: 1px solid #ead9d9; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 9px; border-radius: 999px; font-weight: 800; font-size: 12px;
}
.lang button.active { background: var(--heart); color: #fff; }

.hero { padding: 42px 0 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.kicker { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--heart-dark); }
h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 72px); line-height: .92; margin: 8px 0 14px; letter-spacing: .02em; }
h1 em { font-style: normal; color: var(--heart); }
.lead { font-size: 18px; color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; border-radius: 999px; font-weight: 800;
  background: var(--heart); color: #fff; box-shadow: 0 8px 20px rgba(227,27,35,.28);
}
.btn.secondary { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #1c1414; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.stat { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 28px; color: var(--heart); }
.stat span { font-size: 13px; color: var(--muted); }

.heart-stage { position: relative; min-height: 420px; }
.heart-big {
  width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1;
  background: var(--heart);
  border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
  clip-path: path("M210 390 C 20 250, 10 130, 110 70 C 160 38, 190 62, 210 110 C 230 62, 260 38, 310 70 C 410 130, 400 250, 210 390 Z");
  filter: drop-shadow(0 20px 30px rgba(176,16,24,.35));
  position: relative;
  overflow: hidden;
}
@supports not (clip-path: path("M0 0")) {
  .heart-big { clip-path: none; border-radius: 40px; }
}
.heart-visual {
  width: min(100%, 440px); margin-left: auto;
  position: relative;
}
.poster {
  width: 100%; border-radius: 28px; box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.poster-mini {
  position: absolute; width: 38%; right: -4%; bottom: -8%;
  border-radius: 18px; border: 5px solid #fff; box-shadow: var(--shadow);
  transform: rotate(6deg);
}

.section { padding: 56px 0; }
.section h2 { font-family: var(--display); font-size: 36px; margin: 0 0 10px; }
.section .sub { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .panel {
  background: var(--paper); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.step-n {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-family: var(--font);
  display: grid; place-items: center; font-size: 18px; font-weight: 800; margin-bottom: 10px;
}
.step-n.heart {
  background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23e31b23' d='M12 21s-7.2-4.5-7.2-9.7C4.8 8.4 7.3 6.4 9.6 6.4c1.4 0 2.2.7 2.4 1.3.2-.6 1-1.3 2.4-1.3 2.3 0 4.8 2 4.8 4.9C19.2 16.5 12 21 12 21z'/></svg>") center/58% no-repeat;
  font-size: 0;
}
.partners {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 20px; padding: 16px 20px; margin-top: 22px;
}
.partners img.camara { height: 52px; width: auto; max-width: min(420px, 100%); flex: 0 0 auto; background: #111; border-radius: 8px; padding: 8px 12px; object-fit: contain; }
.partner-names { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 800; color: var(--muted); }

.app-shell { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.side { background: #1c1414; color: #fff; border-radius: var(--radius); padding: 16px; }
.side h3 { font-family: var(--script); font-size: 30px; margin: 4px 0 12px; color: var(--gold); }
.side button {
  width: 100%; text-align: left; background: transparent; color: #fff;
  border: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 700;
}
.side button.active, .side button:hover { background: var(--heart); }
.view { display: none; }
.view.on { display: block; }
label { display: block; font-size: 13px; font-weight: 800; margin: 12px 0 6px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #ead9d9; background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-weight: 700; }
.alert.ok { background: #e7f8ee; color: #0f6b38; }
.alert.err { background: #fde8ea; color: var(--heart-dark); }
.alert.warn { background: #fff4d6; color: #7a5b00; }

.wallet { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.coupon {
  border-radius: 18px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, var(--heart), #7a0b14);
  position: relative; overflow: hidden;
}
.coupon.used { filter: grayscale(.4); opacity: .8; }
.coupon .code { font-family: var(--display); font-size: 28px; letter-spacing: .08em; }
.qr { background: #fff; padding: 10px; border-radius: 12px; }
.qr canvas, .qr img { width: 100%; height: auto; }
.ticket-green {
  border: 3px dashed var(--ok); background: #edfbf2; color: #0f6b38;
  border-radius: 16px; padding: 18px; text-align: center; font-weight: 800;
}

#map { height: 420px; border-radius: 18px; overflow: hidden; z-index: 1; }
.shop-list { display: grid; gap: 8px; margin-top: 12px; }
.shop {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  background: #fff; border-radius: 14px; padding: 10px 12px; cursor: pointer;
}
.shop:hover { outline: 2px solid var(--heart); }

.winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.winner { background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.winner .n { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 800; }
.carousel {
  height: 84px; overflow: hidden; background: var(--ink); color: #fff;
  border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  font-family: var(--display); font-size: 32px;
}

footer.site {
  margin-top: 40px; background: #120c0c; color: #f7ecec; padding: 28px 0 40px;
}
footer.site a { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.muted { color: #cbb; font-size: 13px; }

@media (max-width: 860px) {
  .hero, .app-shell, .wallet, .grid-3, .foot-grid, .form-grid, .stats { grid-template-columns: 1fr; }
  .poster-mini { position: static; width: 70%; margin: 12px auto 0; transform: none; }
  .nav-links a { display: none; }
  .nav-links a.keep, .nav-links button { display: inline-flex; }
  .heart-stage { min-height: 0; }
}
