:root {
  --guinda: #780019;
  --guinda-oscuro: #43000f;
  --dorado: #d99a11;
  --crema: #fbf7f1;
  --negro: #171719;
}

/* Boleta y cartas coleccionables */
.field input,
.field select,
.field textarea { box-sizing: border-box; max-width: 100%; }
.method-grid input { width: 1px !important; height: 1px; }
.receipt-page,
.lookup-purchase {
  display: grid;
  gap: 42px;
  width: min(100%, 1040px);
  margin: 0 auto 64px;
}
.lookup-purchase + .lookup-purchase { margin-top: 70px; padding-top: 70px; border-top: 1px solid #e7d4d8; }
.purchase-receipt {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #e6c9a5;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #fffaf2 62%, #f7e6c8 100%);
  box-shadow: 0 24px 70px rgb(80 0 20 / 13%);
}
.purchase-receipt::after {
  content: "C";
  position: absolute;
  right: -18px;
  bottom: -85px;
  color: rgb(122 0 29 / 5%);
  font-size: 270px;
  font-weight: 1000;
  line-height: 1;
}
.receipt-brand { display: flex; align-items: center; gap: 14px; color: #740018; }
.receipt-brand > span { display: grid; place-items: center; width: 54px; height: 62px; border-radius: 15px 15px 24px 24px; color: #fff; background: #740018; font-size: 33px; font-weight: 1000; }
.receipt-brand div { display: grid; gap: 2px; }
.receipt-brand strong { font-size: clamp(16px, 2vw, 22px); letter-spacing: .04em; }
.receipt-brand small { color: #9a6c32; font-weight: 800; letter-spacing: .13em; }
.receipt-number { position: absolute; top: 34px; right: 42px; color: #927b70; font-size: 13px; font-weight: 800; }
.receipt-person { display: grid; gap: 5px; margin: 34px 0 24px; }
.receipt-person span, .receipt-grid span, .receipt-codes > span { color: #8e7377; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.receipt-person strong { color: #4f0715; font-size: clamp(24px, 4vw, 38px); line-height: 1.05; }
.receipt-person small { color: #554c4e; font-size: 15px; }
.receipt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.receipt-grid > div { display: grid; gap: 6px; padding: 17px; border-radius: 15px; background: rgb(255 255 255 / 72%); border: 1px solid #ead9c3; }
.receipt-grid strong { color: #700018; font-size: 18px; }
.receipt-codes { position: relative; z-index: 1; margin-top: 22px; padding: 19px; border-radius: 16px; color: #fff; background: linear-gradient(125deg, #650014, #960027); }
.receipt-codes > span { color: #f6c867; }
.receipt-codes ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.receipt-codes li { padding: 8px 12px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; font-weight: 900; letter-spacing: .04em; }
.purchase-receipt > p { position: relative; z-index: 1; margin: 18px 0 0; color: #76686a; font-size: 13px; }
.ticket-gallery { display: grid; gap: 24px; text-align: center; }
.gallery-heading { max-width: 720px; margin: 0 auto; }
.gallery-heading > span { display: inline-block; margin-bottom: 8px; color: #a16b00; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.gallery-heading h2 { margin: 0; color: #650014; font-size: clamp(28px, 5vw, 48px); line-height: 1.02; }
.gallery-heading p { margin: 14px auto 0; color: #74676a; font-size: 16px; line-height: 1.55; }
.card-stage { display: grid; grid-template-columns: 58px minmax(0, 430px) 58px; align-items: center; justify-content: center; gap: 18px; }
.card-slides { min-width: 0; perspective: 1800px; }
.ticket-card-slide { display: none; position: relative; }
.ticket-card-slide.active { display: block; animation: cardSlideIn .42s ease both; }
.collectible-card { position: relative; width: 100%; aspect-ratio: 450 / 637; transform-style: preserve-3d; }
.card-back,
.card-front { position: absolute; inset: 0; overflow: hidden; border: 0; border-radius: 28px; backface-visibility: hidden; transition: transform .95s cubic-bezier(.2,.75,.2,1); box-shadow: 0 28px 60px rgb(58 0 14 / 25%); }
.card-back { display: grid; place-content: center; gap: 10px; padding: 30px; color: #fff; cursor: pointer; background: radial-gradient(circle at 50% 36%, #a30c2e 0 12%, transparent 13%), repeating-linear-gradient(45deg, rgb(255 255 255 / 5%) 0 2px, transparent 2px 9px), linear-gradient(145deg, #35000c, #870022 52%, #2c0009); border: 5px solid #d4a62e; }
.card-back::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgb(255 215 92 / 70%); border-radius: 19px; }
.card-back span { display: grid; place-items: center; width: 112px; height: 128px; margin: 0 auto 25px; border: 5px solid #e6bd4f; border-radius: 28px 28px 48px 48px; color: #f4d275; background: #650014; font-size: 74px; font-weight: 1000; box-shadow: 0 0 36px rgb(255 197 48 / 28%); }
.card-back strong { font-size: 34px; letter-spacing: .12em; }
.card-back small { color: #f6ce72; font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.card-front { transform: rotateY(180deg); background: #140006; }
.card-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-code { position: absolute; left: 17%; right: 17%; top: 93.65%; translate: 0 -50%; color: #72001d; font-size: clamp(18px, 4.2vw, 29px); font-weight: 1000; line-height: 1; letter-spacing: .025em; white-space: nowrap; text-shadow: 0 1px 0 rgb(255 255 255 / 85%), 0 2px 4px rgb(67 0 15 / 28%); }
.ticket-card-slide[data-card-id="13"] .card-code,
.ticket-card-slide[data-card-id="14"] .card-code { top: 95.55%; left: 16%; right: 16%; }
.card-rarity { position: absolute; top: 14px; left: 50%; translate: -50% 0; padding: 7px 12px; border-radius: 999px; color: #fff5c6; background: rgb(40 0 7 / 82%); font-size: 10px; font-weight: 900; letter-spacing: .08em; opacity: 0; transition: opacity .3s 1s; }
.collectible-card.is-hidden .card-back { transform: rotateY(0); }
.collectible-card.is-hidden .card-front { transform: rotateY(180deg); }
.collectible-card.is-revealed .card-back { transform: rotateY(-180deg); }
.collectible-card.is-revealed .card-front { transform: rotateY(0); }
.collectible-card.is-revealed .card-rarity { opacity: 1; }
.special-reveal .card-front { animation: specialGlow 1.9s ease both; }
.special-reveal::before,
.special-reveal::after { content: "★"; position: absolute; z-index: 5; color: #ffd747; font-size: 42px; pointer-events: none; animation: starBurst 1.5s ease both; }
.special-reveal::before { top: 14%; left: -8%; }
.special-reveal::after { top: 5%; right: -5%; animation-delay: .18s; }
.gallery-arrow { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #e3c592; border-radius: 50%; color: #780019; background: #fff; font-size: 38px; cursor: pointer; box-shadow: 0 10px 25px rgb(70 0 16 / 10%); }
.gallery-arrow:disabled { opacity: .25; cursor: default; }
.card-actions { margin-top: 18px; }
.download-ticket { min-height: 48px; padding: 0 24px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #720018, #a0002b); font-weight: 900; cursor: pointer; box-shadow: 0 10px 25px rgb(112 0 26 / 20%); }
.gallery-progress { display: flex; justify-content: center; align-items: baseline; gap: 5px; color: #8d767b; }
.gallery-progress strong { color: #760018; font-size: 22px; }
.gallery-progress span { margin-left: 12px; font-size: 13px; }
.back-to-tickets { justify-self: center; color: #750018; font-weight: 800; }
@keyframes cardSlideIn { from { opacity: 0; transform: translateX(20px) scale(.97); } }
@keyframes specialGlow { 0%,100% { filter: none; } 42% { filter: brightness(1.25) drop-shadow(0 0 34px #f5bf27); transform: scale(1.025); } }
@keyframes starBurst { 0% { opacity: 0; transform: translateY(90px) scale(.2) rotate(0); } 45% { opacity: 1; } 100% { opacity: 0; transform: translateY(-80px) scale(1.4) rotate(160deg); } }

@media (max-width: 700px) {
  .receipt-page, .lookup-purchase { gap: 30px; margin-bottom: 42px; }
  .purchase-receipt { padding: 22px 18px; border-radius: 20px; }
  .receipt-number { position: static; margin-top: 15px; text-align: left; }
  .receipt-brand > span { width: 44px; height: 51px; font-size: 27px; }
  .receipt-brand small { font-size: 8px; }
  .receipt-person { margin-top: 22px; }
  .receipt-grid { grid-template-columns: 1fr 1fr; }
  .receipt-grid > div { padding: 13px; }
  .receipt-codes { padding: 15px; }
  .receipt-codes li { padding: 7px 9px; font-size: 12px; }
  .gallery-heading h2 { font-size: 30px; }
  .gallery-heading p { font-size: 14px; }
  .card-stage { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; }
  .gallery-arrow { width: 34px; height: 44px; border-radius: 12px; font-size: 29px; }
  .card-back, .card-front { border-radius: 18px; }
  .card-back { border-width: 3px; }
  .card-back span { width: 78px; height: 91px; font-size: 52px; }
  .card-back strong { font-size: 24px; }
  .card-back small { font-size: 11px; }
  .card-code { font-size: clamp(15px, 5.5vw, 23px); }
  .gallery-progress { flex-wrap: wrap; }
  .gallery-progress span { flex-basis: 100%; margin: 3px 0 0; }
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { max-width: 100%; overflow-x: hidden; overflow-x: clip; background: var(--crema); color: var(--negro); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.home { overflow-x: hidden; overflow-x: clip; }

/* Encabezado y hero web: solo la ilustración procede de la imagen original. */
.public-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 86px; padding: 10px max(24px, calc((100vw - 1220px) / 2)); background: linear-gradient(110deg, rgb(255 255 255 / 97%), rgb(255 248 239 / 97%)); border-bottom: 2px solid #e4b858; box-shadow: 0 10px 30px rgb(80 0 18 / 7%); backdrop-filter: blur(16px); }
.public-brand { display: flex; align-items: center; gap: 11px; min-width: 210px; height: 64px; text-decoration: none; }
.public-brand img { display: block; width: 64px; height: 64px; object-fit: contain; }
.public-brand span { display: grid; gap: 2px; line-height: 1; }
.public-brand strong { color: var(--guinda); font-size: 19px; font-weight: 950; letter-spacing: -.03em; }
.public-brand small { color: #9b6b08; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.public-nav { display: flex; justify-content: center; gap: 5px; width: max-content; margin-inline: auto; padding: 5px; border: 1px solid #eadde0; border-radius: 15px; background: rgb(116 0 25 / 5%); }
.public-nav a { position: relative; padding: 11px 15px; border-radius: 10px; color: #403438; text-decoration: none; font-size: 14px; font-weight: 850; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.public-nav a::after { display: none; }
.public-nav a:hover { color: var(--guinda); background: rgb(255 255 255 / 75%); }
.public-nav a.active { color: var(--guinda); background: white; box-shadow: 0 5px 15px rgb(77 0 17 / 10%); }
.mobile-admin-link { display: none; }
.admin-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 8px; border: 1px solid #8f1731; border-radius: 13px; color: white; background: linear-gradient(135deg, #85001d, #570012); text-decoration: none; font-size: 13px; font-weight: 900; box-shadow: 0 10px 24px rgb(103 0 22 / 20%); }
.admin-link span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #650016; background: linear-gradient(145deg, #f5c34c, #d8960c); font-size: 18px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border: 1px solid #ead9dd; border-radius: 11px; color: var(--guinda); background: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.menu-label { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.menu-icon { font-size: 27px; line-height: 1; }
.campaign-ribbon { position: fixed; z-index: 18; right: 0; top: 33%; display: flex; align-items: center; gap: 12px; padding: 11px 9px; color: white; background: linear-gradient(180deg, #85001d, #530011); border-radius: 13px 0 0 13px; box-shadow: 0 10px 28px rgb(61 0 12 / 22%); writing-mode: vertical-rl; transform: rotate(180deg); }
.campaign-ribbon span { color: #efb333; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.campaign-ribbon b { font-size: 10px; font-weight: 750; }

.web-hero { position: relative; display: grid; grid-template-columns: .74fr 1.26fr; gap: 18px; align-items: center; width: min(calc(100% - 48px), 1240px); min-height: 700px; margin: 0 auto; padding: 34px 0 48px; }
.web-hero::before { content: ''; position: absolute; z-index: -1; left: -20vw; right: -20vw; top: 0; bottom: 0; background: #fff; }
.hero-copy { position: relative; z-index: 2; padding-left: 10px; }
.hero-kicker { display: inline-flex; padding: 8px 12px; border: 1px solid #e4c889; border-radius: 99px; color: #8a6200; background: #fff9e9; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-copy h1 { position: relative; margin: 18px 0 25px; padding-bottom: 22px; color: var(--guinda); font-size: clamp(72px, 7vw, 106px); line-height: .82; letter-spacing: -.06em; text-transform: uppercase; text-align: center; }
.hero-copy h1::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 190px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--dorado), #f4c34b); transform: translateX(-50%); }
.hero-copy h1 span, .hero-copy h1 strong { display: block; }
.hero-copy h1 span { color: #82001c; }
.hero-copy h1 span { font-size: .76em; letter-spacing: .04em; transform: rotate(-1.5deg); }
.hero-copy h1 strong { color: var(--dorado); font-size: 1.02em; text-shadow: 3px 3px 0 rgb(100 0 21 / 13%); transform: rotate(1deg); }
.hero-copy h1 b { display: block; margin: 14px auto 0; color: var(--guinda); font-size: .46em; letter-spacing: -.02em; }
.hero-copy .title-art { display: flex; justify-content: center; margin: 14px 0 20px; padding: 0; filter: none; }
.hero-copy .title-art::after { display: none; }
.hero-copy .title-art img { display: block; width: min(100%, 342px); height: auto; image-rendering: auto; }
.hero-copy h1 b { margin-left: 9px; color: var(--dorado); font-size: .52em; letter-spacing: -.04em; }
.hero-copy > p { max-width: 460px; margin: 0; color: #3f3437; font-size: clamp(19px, 2vw, 25px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.hero-actions a { padding: 16px 21px; border: 2px solid var(--guinda); border-radius: 12px; text-decoration: none; font-weight: 900; text-transform: uppercase; transition: transform .18s ease, box-shadow .18s ease; }
.hero-actions a:hover { transform: translateY(-3px); box-shadow: 0 13px 25px rgb(83 0 16 / 16%); }
.hero-actions .primary { color: white; background: var(--guinda); }
.hero-actions .secondary { color: var(--guinda); background: white; }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: 28px; }
.hero-note strong { color: var(--guinda); font-size: 38px; }
.hero-note span { padding-left: 13px; border-left: 1px solid #d9c9cc; color: #786c70; font-size: 12px; line-height: 1.5; }
.hero-art { position: relative; align-self: stretch; min-height: 650px; overflow: hidden; background-color: #fff; background-image: url('assets/hero-capibara.png'); background-size: 108% auto; background-position: center center; background-repeat: no-repeat; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0, transparent 7%, transparent 93%, #fff 100%); pointer-events: none; }
.art-label { position: absolute; right: 22px; bottom: 22px; padding: 11px 15px; border-radius: 10px; color: #5c0014; background: rgb(255 255 255 / 90%); font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }

.countdown-section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 66px) clamp(20px, 7vw, 90px) clamp(42px, 6vw, 72px);
  color: white;
  background: radial-gradient(circle at 90% 60%, rgb(178 22 53 / 35%) 0 16%, transparent 16.5%), linear-gradient(118deg, #87011e, #4e000f 74%, #680015);
  border-radius: 42px 42px 0 0;
}
.countdown-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; font-size: clamp(18px, 2.4vw, 30px); font-weight: 900; }
.countdown-title span { color: var(--dorado); font-size: 1.3em; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown-grid > div { position: relative; display: grid; justify-items: center; gap: 12px; }
.countdown-grid > div:not(:last-child)::after { content: ':'; position: absolute; top: 8%; right: -3%; color: var(--dorado); font-size: clamp(32px, 6vw, 74px); font-weight: 900; }
.countdown-grid strong { font-size: clamp(52px, 10vw, 122px); line-height: .9; letter-spacing: -.07em; }
.countdown-grid span { color: #e2a322; font-size: clamp(11px, 1.6vw, 19px); font-weight: 900; }

.stats-section {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 30px);
  padding: clamp(68px, 8vw, 100px) clamp(22px, 5vw, 64px) clamp(58px, 7vw, 88px);
  background: #fdfaf6;
}
.stats-section article { position: relative; min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e8d3aa; border-radius: 16px; background: white; box-shadow: 0 15px 35px rgb(77 15 25 / 9%); }
.stats-section i { position: absolute; top: -44px; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; color: var(--dorado); background: #710016; font-size: 37px; font-style: normal; }
.stats-section strong { color: var(--guinda); font-size: clamp(64px, 7vw, 94px); line-height: .95; letter-spacing: -.055em; }
.stats-section span { margin-top: 22px; text-align: center; font-size: clamp(15px, 1.7vw, 21px); font-weight: 900; line-height: 1.18; }

.steps-section { padding: clamp(72px, 9vw, 118px) max(24px, calc((100vw - 1180px) / 2)); background: white; }
.section-heading { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-heading > span { color: var(--dorado); font-size: 13px; font-weight: 950; letter-spacing: .18em; }
.section-heading h2 { margin: 9px 0 10px; color: var(--guinda); font-size: clamp(34px, 5vw, 58px); line-height: 1; text-transform: uppercase; }
.section-heading p { margin: 0; color: #695c61; font-size: 18px; line-height: 1.6; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 330px; padding: 44px 26px 30px; overflow: hidden; border: 1px solid #eadedb; border-radius: 22px; background: #fffdfa; color: #2e2427; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgb(72 10 21 / 7%); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.step-card:hover, .step-card:focus-visible { transform: translateY(-9px); border-color: var(--dorado); box-shadow: 0 22px 45px rgb(72 10 21 / 15%); outline: none; }
.step-number { position: absolute; right: 18px; top: 6px; color: #f0e8e2; font-size: 64px; font-weight: 950; }
.step-icon { position: relative; display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 28px; border: 2px solid #8e1730; border-radius: 22px; color: white; background: linear-gradient(145deg, #85001d, #570012); box-shadow: 0 10px 22px rgb(119 0 25 / 18%); }
.step-icon svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.step-card strong { position: relative; display: block; min-height: 58px; color: var(--guinda); font-size: 21px; line-height: 1.25; text-transform: uppercase; }
.step-card small { display: block; min-height: 54px; margin-top: 10px; color: #6d6265; font-size: 15px; line-height: 1.55; }
.step-card em { display: block; margin-top: 22px; color: #a56b00; font-size: 14px; font-style: normal; font-weight: 900; }

.candidates-section { overflow: hidden; padding: clamp(76px, 8vw, 110px) 0 70px; color: white; background: radial-gradient(circle at 50% 40%, #8d102a, #3b000c 72%); }
.candidates-section .section-heading { padding-inline: 22px; }
.candidates-section .section-heading p { color: #ead9dd; }
.candidate-stage { position: relative; height: 500px; perspective: 1300px; transform-style: preserve-3d; }
.candidate-card { position: absolute; left: 50%; top: 0; width: 340px; height: 453px; padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: #f0d7bd; cursor: pointer; transform-style: preserve-3d; transform-origin: center; box-shadow: 0 25px 55px rgb(0 0 0 / 30%); transition: transform .48s cubic-bezier(.2,.8,.2,1), opacity .35s ease, filter .35s ease; }
.candidate-card:not(.active) { filter: saturate(.65) brightness(.72); }
.candidate-card.active { box-shadow: 0 30px 80px rgb(0 0 0 / 42%), 0 0 0 4px #efb333; }
.candidate-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.candidate-controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.candidate-controls button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; color: white; background: rgb(255 255 255 / 10%); font-size: 25px; cursor: pointer; }
.candidate-controls button:hover { color: #5b0013; background: #efb333; }
.candidate-controls strong { min-width: 70px; color: #efb333; text-align: center; }
.candidate-hint { margin: 14px 0 0; color: #d9c6ca; font-size: 12px; text-align: center; }
.candidate-dialog { width: min(620px, calc(100% - 28px)); max-height: 92vh; padding: 0; overflow: hidden; border: 0; border-radius: 23px; background: #f4dcc5; box-shadow: 0 35px 100px rgb(0 0 0 / 55%); }
.candidate-dialog::backdrop { background: rgb(24 0 6 / 78%); backdrop-filter: blur(7px); }
.candidate-dialog img { display: block; width: 100%; max-height: 92vh; object-fit: contain; }
.candidate-dialog .dialog-close { z-index: 2; width: 42px; height: 42px; border-radius: 50%; color: white; background: rgb(87 0 18 / 85%); }

.areas-section { padding: clamp(76px, 8vw, 110px) max(22px, calc((100vw - 1180px) / 2)); background: #fffaf3; }
.area-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto 25px; }
.area-tabs button { min-height: 58px; padding: 13px; border: 2px solid #dbc8bd; border-radius: 13px; color: #5f4b50; background: white; font-size: 16px; font-weight: 900; cursor: pointer; }
.area-tabs button.active { border-color: var(--guinda); color: white; background: var(--guinda); box-shadow: 0 10px 25px rgb(120 0 25 / 18%); }
.area-cover { position: relative; overflow: hidden; border-radius: 25px; background: #f5dec8; box-shadow: 0 24px 65px rgb(74 11 23 / 15%); }
.area-cover img { display: block; width: 100%; aspect-ratio: 2.05 / 1; object-fit: cover; transition: opacity .16s ease, transform .4s ease; }
.area-cover img.changing { opacity: .2; transform: scale(1.02); }
.area-caption { position: absolute; left: 22px; bottom: 20px; display: flex; align-items: center; gap: 13px; padding: 10px 15px; border-radius: 12px; color: white; background: rgb(87 0 18 / 88%); backdrop-filter: blur(8px); }
.area-caption span { color: #efb333; font-size: 24px; font-weight: 950; }
.area-caption strong { font-size: 14px; text-transform: uppercase; }

.proposals-section { padding: clamp(75px, 8vw, 110px) max(22px, calc((100vw - 1180px) / 2)); background: linear-gradient(145deg, #fff, #fbf4ea); }
.proposals-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.proposals-intro > div { max-width: 770px; }
.proposals-intro span { color: #b77a00; font-size: 12px; font-weight: 950; letter-spacing: .17em; }
.proposals-intro h2 { margin: 8px 0 10px; color: var(--guinda); font-size: clamp(42px, 6vw, 72px); line-height: .95; text-transform: uppercase; }
.proposals-intro p { margin: 0; color: #6e6064; font-size: 18px; line-height: 1.55; }
.proposals-intro button { flex: 0 0 auto; padding: 14px 18px; border: 2px solid var(--guinda); border-radius: 11px; color: var(--guinda); background: white; font-weight: 900; cursor: pointer; }
.proposal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: proposals; }
.proposal-grid li { position: relative; display: grid; grid-template-columns: 56px 1fr; align-items: center; min-height: 110px; padding: 18px 20px; overflow: hidden; border: 1px solid #eadbd2; border-radius: 17px; background: white; box-shadow: 0 10px 30px rgb(70 8 19 / 6%); transition: transform .2s ease, border-color .2s ease; }
.proposal-grid li:hover { transform: translateY(-4px); border-color: #d99a11; }
.proposal-grid li:last-child { grid-column: 1 / -1; }
.proposal-grid span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #efb333; background: var(--guinda); font-size: 14px; font-weight: 950; }
.proposal-grid p { margin: 0; color: #403438; font-size: 16px; line-height: 1.48; }
.proposal-dialog { width: min(700px, calc(100% - 28px)); max-height: 92vh; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #f6f0eb; box-shadow: 0 35px 100px rgb(0 0 0 / 55%); }
.proposal-dialog::backdrop { background: rgb(24 0 6 / 78%); backdrop-filter: blur(7px); }
.proposal-dialog img { display: block; width: 100%; max-height: 92vh; object-fit: contain; }
.proposal-dialog .dialog-close { z-index: 2; width: 42px; height: 42px; border-radius: 50%; color: white; background: rgb(87 0 18 / 85%); }

.trust-section { padding: clamp(72px, 8vw, 105px) max(24px, calc((100vw - 1180px) / 2)); color: white; background: linear-gradient(130deg, #710018, #3c000d); }
.section-heading.light span { color: #efb533; }
.section-heading.light h2 { color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-grid article { padding: 34px 26px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 20px; background: rgb(255 255 255 / 6%); }
.trust-grid article > div { color: #efb02a; font-size: 42px; }
.trust-grid h3 { margin: 18px 0 9px; font-size: 20px; }
.trust-grid p { margin: 0; color: #ead9dc; font-size: 15px; line-height: 1.6; }

.letter-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; width: min(calc(100% - 40px), 1120px); margin: clamp(60px, 8vw, 100px) auto; padding: clamp(28px, 4vw, 50px); border: 1px solid #ead4a6; border-radius: 28px; background: white; box-shadow: 0 18px 50px rgb(64 15 24 / 10%); }
.letter-badge { display: grid; place-items: center; width: 112px; height: 128px; color: #efb02a; background: var(--guinda); border: 5px solid #efb02a; border-radius: 55px 55px 22px 22px; font-size: 72px; font-weight: 950; }
.letter-cta span { color: #b77a00; font-size: 12px; font-weight: 950; letter-spacing: .15em; }
.letter-cta h2 { margin: 4px 0 7px; color: var(--guinda); font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.letter-cta p { margin: 0; color: #685c60; line-height: 1.5; }
.cta-slogan { color: var(--guinda); font-size: 26px; line-height: .9; text-align: right; }

.home-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 42px; padding: 45px max(24px, calc((100vw - 1180px) / 2)); color: white; background: #19191c; }
.home-footer strong { color: #ecb134; font-size: 20px; }
.home-footer p { margin: 7px 0 0; color: #c4bec0; font-size: 13px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.home-footer nav a { color: #ddd7d8; font-size: 13px; text-decoration: none; }
.home-footer nav a:hover { color: white; }
.socials { display: flex; gap: 10px; }
.socials span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #777; border-radius: 50%; font-weight: 900; }

.step-dialog { width: min(500px, calc(100% - 34px)); padding: 38px; border: 0; border-radius: 24px; text-align: center; color: #3b2a30; box-shadow: 0 28px 90px rgb(31 0 8 / 45%); }
.step-dialog::backdrop { background: rgb(37 0 9 / 68%); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; color: #720018; font-size: 34px; cursor: pointer; }
.dialog-number { color: #eadfd6; font-size: 50px; font-weight: 950; line-height: 1; }
.dialog-icon { margin: 10px; font-size: 58px; }
.step-dialog h2 { margin: 0; color: #720018; font-size: 29px; }
.step-dialog p { line-height: 1.6; }
.step-dialog a { display: inline-flex; margin-top: 12px; padding: 13px 23px; border-radius: 10px; color: white; background: #780019; text-decoration: none; font-weight: 800; }

/* Pantallas interiores */
.placeholder { min-height: 100vh; background: radial-gradient(circle at 85% 15%, rgb(218 156 20 / 13%), transparent 24rem), linear-gradient(145deg, #fff 0%, var(--crema) 70%); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px clamp(20px, 5vw, 72px); background: linear-gradient(110deg, rgb(255 255 255 / 96%), rgb(255 248 239 / 96%)); border-bottom: 2px solid #e4b858; box-shadow: 0 10px 30px rgb(80 0 18 / 7%); }
.brand { display: flex; align-items: center; color: var(--guinda); font-weight: 900; letter-spacing: .03em; }
.brand img { display: block; width: 66px; height: 66px; object-fit: contain; }
.brand span { margin-left: 9px; font-size: 18px; font-weight: 950; letter-spacing: -.03em; }
.site-menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border: 1px solid #e3cfd4; border-radius: 11px; color: var(--guinda); background: white; font: inherit; font-weight: 900; cursor: pointer; }
.site-menu-toggle span { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.site-menu-toggle b { font-size: 27px; line-height: 1; }
.site-header nav { display: flex; gap: 7px; padding: 5px; border: 1px solid #eadde0; border-radius: 14px; background: rgb(116 0 25 / 5%); }
.site-header a { padding: 10px 13px; border-radius: 9px; color: #292326; text-decoration: none; font-weight: 750; }
.site-header nav a:hover { color: var(--guinda); background: white; }
.site-header a:hover { color: var(--guinda); }
.placeholder-main { width: min(920px, calc(100% - 36px)); margin: 0 auto; padding: clamp(70px, 13vh, 150px) 0; }
.eyebrow { color: var(--dorado); font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.placeholder h1 { margin: 10px 0 18px; color: var(--guinda); font-size: clamp(42px, 8vw, 86px); line-height: .95; }
.lead { max-width: 620px; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.55; color: #51464a; }
.notice { margin-top: 34px; padding: 22px; border-left: 5px solid var(--dorado); background: white; box-shadow: 0 12px 40px rgb(64 15 24 / 9%); line-height: 1.5; }
.back { display: inline-flex; margin-top: 32px; padding: 15px 24px; border-radius: 10px; color: white; background: linear-gradient(135deg, #8b001f, #5d0015); text-decoration: none; font-weight: 850; }
.form-card { margin-top: 34px; padding: clamp(22px, 4vw, 40px); border-radius: 22px; background: white; box-shadow: 0 16px 52px rgb(64 15 24 / 11%); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #560014; font-weight: 800; }
.field input, .field select { width: 100%; padding: 14px 15px; border: 1px solid #d7c7ca; border-radius: 10px; font: inherit; }
.field input:focus, .field select:focus { outline: 3px solid rgb(217 154 17 / 22%); border-color: var(--dorado); }
.total-box { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: 12px; background: #fff7e6; color: #650016; font-weight: 850; }
.submit-button { width: 100%; padding: 16px; border: 0; border-radius: 11px; color: white; background: linear-gradient(135deg, #8b001f, #5d0015); font: inherit; font-weight: 900; cursor: pointer; }
.form-result { margin-top: 18px; padding: 16px; border-radius: 10px; background: #eef9ef; color: #175d22; line-height: 1.45; }
.search-results { display: grid; gap: 12px; margin-top: 20px; }
.purchase-card { padding: 18px; border: 1px solid #eadde0; border-radius: 12px; line-height: 1.5; }
.brand { display: flex; min-width: 190px; height: 64px; overflow: visible; }
.brand img { width: 66px; height: 66px; object-fit: contain; }
.placeholder-main { width: min(1050px, calc(100% - 36px)); }
.placeholder h1 { font-size: clamp(50px, 7vw, 90px); }
.lead { max-width: 760px; font-size: clamp(20px, 2.3vw, 26px); }
.field label { font-size: 16px; }
.field input, .field select { font-size: 16px; }
.sale-closed { max-width: 720px; margin-top: 32px; padding: 55px; border-radius: 26px; color: white; background: linear-gradient(145deg, #7b001a, #350009); text-align: center; box-shadow: 0 22px 60px rgb(70 0 15 / 22%); }
.sale-closed > div { font-size: 50px; }
.sale-closed > span { color: #efb333; font-size: 12px; font-weight: 950; letter-spacing: .17em; }
.sale-closed h2 { margin: 10px 0; font-size: clamp(32px, 5vw, 54px); }
.sale-closed p { color: #eadadd; font-size: 18px; line-height: 1.6; }
.sale-closed a { display: inline-flex; margin-top: 15px; padding: 14px 20px; border-radius: 10px; color: var(--guinda); background: white; text-decoration: none; font-weight: 900; }
.buy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; align-items: start; }
.purchase-form { margin-top: 28px; }
.form-section-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; margin: 12px 0 19px; padding-top: 25px; border-top: 1px solid #eee5e6; }
.form-section-title:first-child { padding-top: 0; border: 0; }
.form-section-title > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: #f0b332; background: var(--guinda); font-weight: 950; }
.form-section-title div { display: grid; gap: 3px; }
.form-section-title strong { color: var(--guinda); font-size: 18px; }
.form-section-title small { color: #7a6f72; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method-grid label { cursor: pointer; }
.method-grid input { position: absolute; opacity: 0; pointer-events: none; }
.method-grid span { display: grid; place-items: center; min-height: 54px; border: 2px solid #e6dadd; border-radius: 11px; color: #4c3e42; background: #fff; font-weight: 900; transition: .18s ease; }
.method-grid input:checked + span { border-color: var(--guinda); color: var(--guinda); background: #fff4f6; box-shadow: 0 0 0 3px rgb(120 0 25 / 8%); }
.payment-empty { padding: 28px; border: 1px dashed #d9c7cb; border-radius: 14px; color: #817478; text-align: center; background: #fcfaf8; }
.payment-detail { display: flex; align-items: center; gap: 20px; min-height: 170px; padding: 22px; border-radius: 18px; color: white; background: linear-gradient(135deg, #790019, #43000e); }
.payment-detail > div:last-child { display: grid; gap: 6px; }
.payment-detail small { color: #efb334; font-weight: 950; letter-spacing: .12em; }
.payment-detail strong { font-size: 21px; }
.payment-detail span { color: #f3e8ea; }
.payment-detail em { color: #ddc9cd; font-size: 12px; font-style: normal; }
.qr-frame { display: grid; place-items: center; width: 128px; height: 128px; flex: 0 0 auto; overflow: hidden; border-radius: 12px; color: var(--guinda); background: white; text-align: center; font-size: 12px; font-weight: 950; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.pay-logo { font-size: 54px; }
.upload-box { margin: 0 0 20px; padding: 22px; border: 1px dashed #c9b3b8; border-radius: 14px; background: #fdfaf7; }
.upload-box small { color: #8b7f82; }
.buy-summary { position: sticky; top: 102px; margin-top: 28px; padding: 30px; border-radius: 22px; color: white; background: linear-gradient(150deg, #780019, #3e000c); box-shadow: 0 20px 45px rgb(65 0 14 / 18%); }
.buy-summary > span { color: #efb333; font-size: 11px; font-weight: 950; letter-spacing: .14em; }
.buy-summary h2 { margin: 9px 0; font-size: 34px; }
.buy-summary p { color: #eadbde; line-height: 1.6; }
.buy-summary ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; color: #fff3f5; font-size: 13px; }
.lookup-wrap { max-width: 760px; }
.lookup-card { margin-top: 28px; }
.purchase-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; background: white; box-shadow: 0 10px 28px rgb(62 7 17 / 7%); }
.purchase-card small { color: #8e8185; }
.purchase-card h3 { margin: 5px 0; color: var(--guinda); }
.purchase-card p { margin: 3px 0; }
.status { display: inline-flex; align-self: start; padding: 7px 10px; border-radius: 99px; font-size: 11px; font-weight: 950; }
.status.pendiente { color: #855b00; background: #fff0c5; }
.status.aprobado { color: #17652b; background: #dff7e4; }
.status.rechazado { color: #961e2d; background: #ffe0e4; }
.observation, .ticket-list { grid-column: 1 / -1; }
.observation { padding: 10px; border-radius: 8px; background: #fff2f3; }
.ticket-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-ticket { display: grid; gap: 7px; padding: 17px; border-radius: 13px; color: white; background: linear-gradient(135deg, #760018, #3f000d); }
.mini-ticket span { color: #efb333; font-size: 10px; font-weight: 900; }
.mini-ticket strong { font-size: 18px; }
.mini-ticket button { justify-self: start; padding: 7px 10px; border: 0; border-radius: 7px; color: var(--guinda); background: white; font-weight: 800; cursor: pointer; }
.draw-stage { overflow: hidden; margin-top: 30px; padding: clamp(32px, 6vw, 70px); border-radius: 28px; color: white; background: radial-gradient(circle at 80% 20%, rgb(221 158 26 / 20%), transparent 30%), linear-gradient(145deg, #790019, #2e000a); text-align: center; box-shadow: 0 24px 60px rgb(69 0 15 / 24%); }
.draw-stage > span { color: #efb333; font-size: 12px; font-weight: 950; letter-spacing: .2em; }
.draw-stage h2 { margin: 10px 0 30px; font-size: clamp(30px, 5vw, 58px); }
.draw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.draw-stats > div { display: grid; gap: 7px; padding: 20px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 15px; background: rgb(255 255 255 / 7%); }
.draw-stats strong { color: #efb333; font-size: 35px; }
.draw-stats small { color: #f4e8ea; }
.roulette-window { display: grid; justify-items: center; gap: 18px; margin-top: 28px; padding: 40px; border-radius: 18px; background: rgb(12 0 4 / 36%); }
.lock-icon { font-size: 48px; }
.roulette-window p { max-width: 500px; margin: 0; color: #e7dadd; line-height: 1.6; }
.roulette-code { font-size: clamp(25px, 5vw, 52px); font-weight: 950; }
.draw-button { padding: 14px 22px; border: 0; border-radius: 10px; color: #5a0013; background: #efb333; font-weight: 950; cursor: pointer; }
.draw-button:disabled { opacity: .58; cursor: wait; }
.draw-progress { color: #efb333; font-size: 12px; font-weight: 950; letter-spacing: .17em; }
.roulette-person { display: grid; justify-items: center; gap: 7px; min-height: 55px; }
.roulette-person strong { font-size: clamp(20px, 3vw, 31px); }
.roulette-person small { color: #e7dadd; font-size: 15px; }
.roulette-person em { padding: 6px 11px; border-radius: 999px; color: #ffb9c5; background: rgb(255 255 255 / 9%); font-size: 11px; font-style: normal; font-weight: 900; letter-spacing: .12em; }
.roulette-person b { margin-top: 5px; padding: 8px 14px; border-radius: 999px; color: #540012; background: #efb333; font-size: 15px; }
.draw-admin-note { font-size: 12px; opacity: .72; }
.roulette-window.is-spinning .roulette-code { animation: roulettePulse .13s linear infinite alternate; filter: blur(.5px); }
.draw-round-log { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.draw-round-log span { padding: 7px 10px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; color: #d9c8cc; background: rgb(255 255 255 / 5%); font-size: 11px; }
.roulette-window.has-winner { border: 1px solid rgb(239 179 51 / 60%); background: radial-gradient(circle at 50% 0, rgb(239 179 51 / 24%), transparent 48%), rgb(12 0 4 / 42%); box-shadow: inset 0 0 40px rgb(239 179 51 / 10%); }
.winner-badge { color: #efb333; font-size: 16px; font-weight: 1000; letter-spacing: .12em; }
.draw-complete { display: grid; justify-items: center; gap: 8px; color: #f6d780; }
.draw-complete > div { font-size: 50px; }
.draw-complete strong { font-size: 23px; }
.draw-complete p { margin: 0; }
.draw-history { margin-top: 28px; padding: 25px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 18px; background: rgb(16 0 5 / 28%); text-align: left; }
.draw-history > span { color: #efb333; font-size: 11px; font-weight: 950; letter-spacing: .16em; }
.draw-history > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.draw-history article { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 15px; border-radius: 12px; background: rgb(255 255 255 / 7%); }
.draw-history article i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #5a0013; background: #efb333; font-size: 18px; font-style: normal; font-weight: 1000; }
.draw-history article div { display: grid; min-width: 0; gap: 3px; }
.draw-history article small { color: #efb333; font-weight: 850; }
.draw-history article strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draw-history article span { color: #e3d6d8; font-size: 11px; }
@keyframes roulettePulse { from { transform: scale(.98); opacity: .72; } to { transform: scale(1.03); opacity: 1; } }
.admin-login { max-width: 470px; margin: 0 auto; text-align: center; }
.admin-login .form-card { display: grid; gap: 17px; }
.admin-login h2, .admin-login p { margin: 0; }
.admin-lock { font-size: 46px; }
.login-error { padding: 12px; border-radius: 8px; color: #9a1c2b; background: #ffe5e8; }
.admin-shell { display: grid; gap: 24px; width: min(1180px, calc(100vw - 36px)); margin-left: 50%; transform: translateX(-50%); }
.admin-toolbar, .admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-toolbar span, .admin-section-head span { color: #b47b00; font-size: 11px; font-weight: 950; letter-spacing: .14em; }
.admin-toolbar h2, .admin-section-head h3 { margin: 4px 0 0; color: var(--guinda); }
.outline-button { margin-left: 8px; padding: 10px 13px; border: 1px solid #bba8ac; border-radius: 9px; color: var(--guinda); background: white; font-weight: 800; cursor: pointer; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.admin-metrics article { display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: white; box-shadow: 0 12px 30px rgb(65 8 19 / 7%); }
.admin-metrics span { color: #786b6f; font-size: 13px; }
.admin-metrics strong { color: var(--guinda); font-size: 40px; }
.admin-section { padding: 25px; border-radius: 19px; background: white; box-shadow: 0 12px 35px rgb(65 8 19 / 7%); }
.admin-section-head input { width: min(330px, 100%); padding: 12px; border: 1px solid #dacdd0; border-radius: 9px; }
.admin-table-wrap { margin-top: 20px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 12px; color: #6b5e62; background: #faf6f3; text-align: left; }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid #eee7e8; vertical-align: top; }
.admin-table td > small, .admin-table td > strong { display: block; margin-bottom: 4px; }
.empty-table { padding: 40px !important; color: #867a7d; text-align: center; }
.proof-button, .row-actions button { padding: 7px 9px; border: 1px solid #ccb9be; border-radius: 7px; color: var(--guinda); background: white; font-weight: 800; cursor: pointer; }
.proof-button:disabled { opacity: .6; cursor: wait; }
.modal-open { overflow: hidden; }
.proof-viewer { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(20 0 5 / 82%); backdrop-filter: blur(8px); }
.proof-viewer-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(880px, 100%); max-height: calc(100dvh - 40px); overflow: hidden; border: 1px solid rgb(239 179 51 / 45%); border-radius: 20px; background: #fffaf5; box-shadow: 0 30px 90px rgb(0 0 0 / 45%); }
.proof-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #eaded8; }
.proof-viewer-head > div { display: grid; min-width: 0; gap: 3px; }
.proof-viewer-head span { color: #a66e00; font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.proof-viewer-head strong { overflow: hidden; color: var(--guinda); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.proof-viewer-head small { overflow: hidden; color: #766a6d; text-overflow: ellipsis; white-space: nowrap; }
.proof-viewer-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: var(--guinda); font-size: 28px; line-height: 1; cursor: pointer; }
.proof-viewer-body { min-height: 0; overflow: auto; padding: 16px; background: #1d1719; }
.proof-viewer-body img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 210px); margin: auto; object-fit: contain; }
.proof-viewer-body iframe { display: block; width: 100%; height: min(68dvh, 720px); border: 0; background: white; }
.proof-viewer-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 13px 18px; border-top: 1px solid #eaded8; }
.proof-viewer-actions a, .proof-viewer-actions button { padding: 10px 14px; border: 1px solid #cbb7bc; border-radius: 9px; color: var(--guinda); background: white; font-weight: 850; text-decoration: none; cursor: pointer; }
.proof-viewer-actions .proof-viewer-done { color: white; border-color: var(--guinda); background: var(--guinda); }
.row-actions { display: flex; gap: 6px; }
.row-actions button:first-child { color: #17652b; border-color: #a9d8b4; }
.row-actions button:last-child { color: #9b2331; border-color: #edb9bf; }
.config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.draw-switch { display: flex; align-items: center; gap: 10px; padding: 15px; border-radius: 10px; background: #f8f2ed; font-weight: 800; }
.config-grid .submit-button { grid-column: 1 / -1; }
.config-grid .reset-draw-button { grid-column: 1 / -1; justify-self: center; margin: 0; color: #972436; border-color: #e0b7bd; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.info-grid article { padding: 28px; border-radius: 18px; background: white; box-shadow: 0 12px 35px rgb(65 8 19 / 7%); }
.info-grid article > span { color: #eadfdc; font-size: 46px; font-weight: 950; }
.info-grid h3 { margin: 8px 0; color: var(--guinda); font-size: 23px; }
.info-grid p { margin: 0; color: #6e6265; line-height: 1.6; }
.faq-list { display: grid; gap: 12px; margin-top: 30px; }
.faq-list details { padding: 20px; border-radius: 14px; background: white; box-shadow: 0 8px 25px rgb(65 8 19 / 6%); }
.faq-list summary { color: var(--guinda); font-weight: 900; cursor: pointer; }
.faq-list p { color: #6e6265; line-height: 1.6; }
.public-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.public-stats article { display: grid; justify-items: center; gap: 8px; padding: 32px; border-radius: 18px; background: white; }
.public-stats strong { color: var(--guinda); font-size: 54px; }
.public-stats span { text-align: center; font-weight: 800; }
.contact-card { margin-top: 30px; padding: clamp(30px, 6vw, 70px); border-radius: 24px; color: white; background: linear-gradient(145deg, #780019, #3c000c); }
.contact-card > span { color: #efb333; font-size: 11px; font-weight: 950; letter-spacing: .15em; }
.contact-card h2 { margin: 8px 0; font-size: 36px; }
.contact-card p { color: #ebdcdf; }
.contact-actions { display: flex; gap: 12px; margin-top: 24px; }
.contact-actions a { padding: 12px 16px; border-radius: 9px; color: var(--guinda); background: white; text-decoration: none; font-weight: 900; }

@media (max-width: 850px) {
  .public-header { grid-template-columns: auto auto 1fr; gap: 14px; }
  .menu-toggle { display: inline-flex; order: 3; justify-self: end; }
  .public-nav { position: absolute; left: 18px; right: 18px; top: calc(100% + 8px); display: none; padding: 12px; border: 1px solid #eadde0; border-radius: 16px; background: white; box-shadow: 0 20px 50px rgb(60 6 17 / 18%); }
  .public-nav.open { display: grid; }
  .public-nav a { padding: 13px 12px; border-radius: 9px; }
  .admin-link { justify-self: end; }
  .web-hero { grid-template-columns: 1fr; gap: 4px; padding-top: 58px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-art { min-height: 520px; }
  .steps-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .letter-cta { grid-template-columns: auto 1fr; }
  .cta-slogan { text-align: center; }
  .home-footer { grid-template-columns: 1fr; gap: 25px; }
  .buy-layout { grid-template-columns: 1fr; }
  .buy-summary { position: static; order: -1; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  dialog { margin: auto; }
  .campaign-ribbon { position: relative; top: auto; right: auto; bottom: auto; left: auto; justify-content: center; min-height: 40px; padding: 9px 13px; border-radius: 0; writing-mode: horizontal-tb; transform: none; box-shadow: 0 8px 22px rgb(61 0 12 / 14%); }
  .campaign-ribbon span, .campaign-ribbon b { font-size: 10px; }
  .public-header { grid-template-columns: 1fr auto; min-height: 72px; padding: 7px 12px; }
  .public-brand { gap: 8px; min-width: 0; height: 57px; }
  .public-brand img { width: 54px; height: 54px; }
  .public-brand strong { font-size: 16px; }
  .public-brand small { display: none; }
  .menu-toggle { order: initial; grid-column: 2; }
  .admin-link { display: none; }
  .public-nav { position: fixed; top: 73px; left: 0; right: 0; z-index: 30; width: auto; margin: 0; gap: 4px; padding: 10px 16px 16px; border-width: 1px 0 0; border-radius: 0 0 18px 18px; background: #fffdfa; box-shadow: 0 18px 38px rgb(50 0 11 / 20%); }
  .public-nav.open { display: grid; animation: mobileMenuIn .18s ease-out; }
  .public-nav a { min-height: 46px; padding: 13px 16px; border-radius: 10px; font-size: 16px; text-align: center; }
  .public-nav a.active { color: white; background: var(--guinda); }
  .public-nav a::after { display: none; }
  .public-nav .mobile-admin-link { display: block; margin-top: 4px; color: white; background: linear-gradient(135deg, #8b001f, #570012); }
  .web-hero { width: min(calc(100% - 28px), 1180px); min-height: 0; gap: 0; padding: 24px 0 26px; }
  .hero-copy { display: contents; }
  .hero-kicker { order: 1; justify-self: center; max-width: 100%; text-align: center; }
  .hero-copy .title-art { order: 2; margin: 13px 0 12px; }
  .hero-copy .title-art img { width: min(76vw, 280px); }
  .hero-copy > p { order: 3; padding-inline: 4px; font-size: 18px; }
  .hero-art { order: 4; margin: 2px 0 -5px; }
  .hero-actions { order: 5; display: grid; margin-top: 8px; }
  .hero-actions a { width: 100%; text-align: center; }
  .hero-art { min-height: 0; height: auto; aspect-ratio: 1 / 1; background-size: contain; background-position: center top; }
  .hero-art::after { background: linear-gradient(90deg, #fff 0, transparent 3%, transparent 97%, #fff 100%); }
  .art-label { right: 10px; bottom: 10px; }
  .candidate-stage { height: 360px; }
  .candidate-card { width: 240px; height: 320px; border-radius: 17px; }
  .candidate-controls button { width: 48px; height: 48px; }
  .area-tabs { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .area-tabs button { min-width: 145px; min-height: 50px; font-size: 14px; }
  .area-cover { border-radius: 16px; }
  .area-cover img { aspect-ratio: 1.15 / 1; }
  .area-caption { left: 12px; bottom: 12px; }
  .proposals-intro { align-items: stretch; flex-direction: column; }
  .proposals-section { padding: 62px 16px 72px; }
  .proposals-intro { gap: 18px; margin-bottom: 26px; }
  .proposals-intro h2 { font-size: 34px; line-height: 1; }
  .proposals-intro p { font-size: 16px; }
  .proposals-intro button { width: 100%; min-height: 48px; }
  .proposal-grid { grid-template-columns: 1fr; }
  .proposal-grid li:last-child { grid-column: 1; }
  .proposal-grid li { grid-template-columns: 48px 1fr; padding: 15px; }
  .proposal-grid p { font-size: 15px; }
  .countdown-section { border-radius: 22px 22px 0 0; padding-inline: 12px; }
  .countdown-title { font-size: 15px; }
  .countdown-grid strong { font-size: clamp(39px, 13vw, 58px); }
  .countdown-grid span { font-size: 9px; }
  .countdown-grid > div:not(:last-child)::after { font-size: 30px; right: -5%; }
  .stats-section { grid-template-columns: 1fr; gap: 12px; padding: 30px 16px 42px; }
  .stats-section article { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; min-height: 112px; padding: 18px; align-items: center; justify-items: start; border-radius: 18px; }
  .stats-section i { position: static; grid-row: 1 / 3; width: 64px; height: 64px; font-size: 27px; }
  .stats-section strong { align-self: end; font-size: 48px; line-height: .9; letter-spacing: -.04em; }
  .stats-section span { align-self: start; margin-top: 7px; text-align: left; font-size: 13px; line-height: 1.15; }
  .steps-grid, .trust-grid { grid-template-columns: 1fr; }
  .trust-section { padding: 56px 16px 62px; }
  .trust-section .section-heading { margin-bottom: 28px; }
  .trust-section .section-heading > span { font-size: 11px; letter-spacing: .14em; }
  .trust-section .section-heading h2 { margin-top: 7px; font-size: 32px; line-height: 1.05; }
  .trust-grid { gap: 10px; }
  .trust-grid article { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 17px 16px; border-radius: 16px; }
  .trust-grid article > div { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #5a0013; background: #efb02a; font-size: 28px; }
  .trust-grid h3 { align-self: end; margin: 0 0 4px; font-size: 18px; }
  .trust-grid p { align-self: start; font-size: 13px; line-height: 1.4; }
  .steps-section { padding: 62px 16px 70px; }
  .steps-section .section-heading { margin-bottom: 30px; }
  .step-card { display: grid; grid-template-columns: 60px 1fr; column-gap: 15px; row-gap: 7px; min-height: 0; padding: 20px 18px; border-radius: 18px; }
  .step-number { top: 7px; right: 13px; font-size: 46px; }
  .step-icon { grid-column: 1; grid-row: 1 / 3; width: 58px; height: 58px; margin: 0; border-radius: 16px; }
  .step-icon svg { width: 32px; height: 32px; }
  .step-card strong { grid-column: 2; min-height: 0; padding-right: 36px; font-size: 17px; }
  .step-card small { grid-column: 2; min-height: 0; margin: 0; font-size: 14px; line-height: 1.4; }
  .step-card em { grid-column: 1 / -1; margin-top: 7px; }

  .step-dialog { width: calc(100vw - 24px); max-width: 430px; max-height: calc(100dvh - 24px); padding: 27px 20px 22px; overflow-y: auto; border-radius: 18px; }
  .step-dialog .dialog-close { position: sticky; z-index: 3; top: 0; float: right; display: grid; place-items: center; width: 42px; height: 42px; margin: -17px -11px -25px 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgb(70 0 15 / 14%); }
  .dialog-number { font-size: 38px; }
  .dialog-icon { margin: 5px; font-size: 44px; }
  .step-dialog h2 { font-size: 23px; line-height: 1.1; }
  .step-dialog p { margin: 10px 0; font-size: 15px; line-height: 1.45; }
  .step-dialog a { width: 100%; justify-content: center; margin-top: 7px; }

  .candidate-dialog,
  .proposal-dialog { width: min(470px, calc(100vw - 20px)); height: auto; max-height: calc(100dvh - 20px); padding: 0; overflow: hidden; border-radius: 16px; }
  .candidate-dialog { aspect-ratio: 4 / 5; }
  .proposal-dialog { aspect-ratio: 1427 / 2048; }
  .candidate-dialog[open],
  .proposal-dialog[open] { display: grid; place-items: center; }
  .candidate-dialog img,
  .proposal-dialog img { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 20px); object-fit: contain; }
  .candidate-dialog .dialog-close,
  .proposal-dialog .dialog-close { position: absolute; z-index: 5; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid rgb(255 255 255 / 75%); font-size: 29px; line-height: 1; box-shadow: 0 8px 25px rgb(0 0 0 / 25%); }
  .letter-cta { grid-template-columns: 1fr; text-align: center; }
  .letter-badge { margin: 0 auto; }
  .site-header { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 73px; padding: 7px 12px; backdrop-filter: blur(14px); }
  .site-header .brand { width: auto; min-width: 0; height: 57px; padding: 0; overflow: visible; }
  .site-header .brand img { display: block; width: 54px; height: 54px; object-fit: contain; }
  .site-header .brand span { margin-left: 8px; font-size: 16px; }
  .site-menu-toggle { display: inline-flex; justify-self: end; }
  .site-header nav { position: fixed; z-index: 30; top: 73px; left: 0; right: 0; display: none; width: auto; margin: 0; padding: 10px 16px 16px; border-width: 1px 0 0; border-radius: 0 0 18px 18px; background: #fffdfa; box-shadow: 0 18px 38px rgb(50 0 11 / 20%); }
  .site-header nav.open { display: grid; gap: 4px; animation: mobileMenuIn .18s ease-out; }
  .site-header nav a { display: flex; justify-content: center; min-height: 46px; padding: 13px 16px; border: 0; border-radius: 10px; background: transparent; font-size: 16px; text-align: center; }
  .site-header nav a:hover { background: #f7edef; }
  .site-header nav a[href*="pagina=admin"] { color: white; background: var(--guinda); border-color: var(--guinda); }
  .placeholder input,
  .placeholder select,
  .placeholder textarea { font-size: 16px !important; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .placeholder-main { padding-top: 55px; }
  .buy-summary { padding: 24px; }
  .method-grid { grid-template-columns: 1fr; }
  .payment-detail { align-items: flex-start; flex-direction: column; }
  .qr-frame { width: 150px; height: 150px; align-self: center; }
  .ticket-list, .info-grid, .public-stats, .config-grid { grid-template-columns: 1fr; }
  .purchase-card { grid-template-columns: 1fr; }
  .status, .observation, .ticket-list { grid-column: 1; }
  .draw-stats { grid-template-columns: 1fr; }
  .draw-stage { padding: 28px 14px; border-radius: 20px; }
  .roulette-window { gap: 14px; padding: 27px 13px; }
  .draw-history { padding: 17px 12px; }
  .draw-history > div { grid-template-columns: 1fr; }
  .roulette-person small { font-size: 13px; }
  .admin-toolbar, .admin-section-head { align-items: stretch; flex-direction: column; }
  .admin-toolbar > div:last-child { display: flex; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics article { padding: 16px; }
  .admin-metrics strong { font-size: 32px; }
  .config-grid .submit-button { grid-column: 1; }
  .admin-shell { width: min(100%, calc(100vw - 20px)); }
  .admin-section { padding: 17px 14px; border-radius: 15px; }
  .admin-section-head input { box-sizing: border-box; width: 100%; }
  .admin-toolbar > div:last-child { width: 100%; gap: 8px; }
  .admin-toolbar .outline-button { flex: 1; min-height: 44px; margin: 0; }
  .config-grid, .config-grid > *, .config-grid .field { min-width: 0; width: 100%; }
  .config-grid input[type="file"] { box-sizing: border-box; width: 100%; min-width: 0; font-size: 13px; }
  .admin-table-wrap { overflow: visible; width: 100%; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; box-sizing: border-box; }
  .admin-table thead { display: none; }
  .admin-table tr:not(.empty-row) { overflow: hidden; margin-bottom: 16px; border: 1px solid #eadde0; border-radius: 14px; background: #fffdfa; box-shadow: 0 8px 22px rgb(76 0 18 / 7%); }
  .admin-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #eee7e8; overflow-wrap: anywhere; }
  .admin-table td:last-child { border-bottom: 0; }
  .admin-table td::before { content: attr(data-label); color: #86767a; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .admin-table td > strong, .admin-table td > small { grid-column: 2; }
  .admin-table td > strong + small { margin-top: -6px; }
  .admin-table .empty-table { display: block; width: 100%; padding: 28px 12px !important; }
  .admin-table .empty-table::before { content: none; }
  .proof-button { min-height: 42px; width: 100%; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .row-actions button { min-height: 42px; }
  .contact-actions { flex-direction: column; }
  .proof-viewer { padding: 0; place-items: stretch; }
  .proof-viewer-card { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .proof-viewer-head { padding: 12px 14px; }
  .proof-viewer-head strong { font-size: 17px; }
  .proof-viewer-head small { max-width: 72vw; }
  .proof-viewer-body { display: grid; place-items: center; padding: 10px; }
  .proof-viewer-body img { max-height: calc(100dvh - 175px); }
  .proof-viewer-body iframe { height: 100%; min-height: 0; }
  .proof-viewer-actions { padding: 10px; }
  .proof-viewer-actions a, .proof-viewer-actions button { flex: 1; text-align: center; }
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
