@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

/* ------------------------------------------------------------------------- */
/* Colores y base                                                            */
/* ------------------------------------------------------------------------- */

:root {
  --background: #08070a;
  --text: #fff8ed;
  --surface: #1c1320;
  --orange: #ff851f;
  --action-orange: #ff6b12;
  --violet: #e9bbff;
  --muted: #c4b1bf;
  --dark-purple: #2b1732;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.4 "DM Mono", monospace;
}

main {
  max-width: 760px;
  min-height: 100dvh;
  margin: auto;
  padding: clamp(18px, 4vw, 32px);
}

/* ------------------------------------------------------------------------- */
/* Portada: solo cabecera y tres accesos visuales                            */
/* ------------------------------------------------------------------------- */

.home-menu {
  max-width: 900px;
  padding-top: clamp(14px, 3vw, 32px);
}

.home-header {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.home-actions {
  display: grid;
  width: min(88%, 720px);
  gap: clamp(3px, 0.8vw, 8px);
  margin: clamp(22px, 10vw, 96px) auto 0;
}

.image-action {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}

.image-action[hidden] { display: none; }

.image-action img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 160ms ease, transform 160ms ease;
}

.image-action:active img {
  filter: brightness(0.86);
  transform: scale(0.98);
}

.home-costume-action {
  position: relative;
  isolation: isolate;
}

.home-costume-action::before {
  position: absolute;
  z-index: -1;
  inset: 10% 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(76, 255, 38, .65) 20%, rgba(76, 255, 38, .24) 55%, transparent 78%);
  filter: blur(20px);
  content: '';
  pointer-events: none;
  animation: costume-green-glow 3s ease-in-out infinite alternate;
}

.home-costume-action img {
  filter: drop-shadow(0 0 8px rgba(94, 255, 45, .5));
}

.home-costume-action[hidden] { display: none; }

@keyframes costume-green-glow {
  from { opacity: .55; transform: translateX(-3%) scale(.94); }
  to { opacity: 1; transform: translateX(3%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .home-costume-action::before { animation: none; }
}

/* Votación pública del concurso de disfraces. */
.costume-page main { max-width: 700px; }

.costume-card {
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid rgba(255, 133, 31, .45);
  border-radius: 20px;
  background: var(--surface);
}

.costume-hero-icon { font-size: 3.5rem; line-height: 1; }

.costume-card h1 {
  margin: 12px 0;
  color: var(--orange);
  font: 700 clamp(2.2rem, 8vw, 3.8rem)/1.05 "Fraunces", serif;
}

.costume-lead { font-size: clamp(1rem, 3.5vw, 1.15rem); }

.costume-status {
  margin: 24px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--dark-purple);
  color: #ffd6a7;
  font-weight: 700;
  text-align: center;
}

.costume-winners {
  margin-top: 26px;
  text-align: center;
}

.costume-winners h2 {
  margin: 0 0 20px;
  color: var(--orange);
  font: 700 clamp(2rem, 7vw, 3rem)/1.1 "Fraunces", serif;
}

.costume-winners ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.costume-winners li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #674572;
  border-radius: 12px;
  background: var(--dark-purple);
  text-align: left;
  font-size: clamp(1rem, 4vw, 1.25rem);
}
.costume-winners .costume-medal { font-size: 2rem; line-height: 1; }
.costume-winners > p { margin: 25px 0 0; color: var(--orange); font-size: 1.25rem; font-weight: 700; }

.costume-instruction { margin: 25px 0 15px; }

.costume-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.costume-number-grid label {
  color: #ffd6a7;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.costume-number-grid input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  min-width: 0;
  height: 56px;
  padding: 8px;
  border: 2px solid #674572;
  border-radius: 10px;
  background: #fff;
  color: #201324;
  font: 700 1.45rem/1.2 "DM Mono", monospace;
  text-align: center;
}

.costume-range, .costume-note { color: var(--muted); font-size: .85rem; }
.costume-message { color: #ffb6a1; min-height: 1.4em; }
.costume-page button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 500px) {
  .costume-number-grid { gap: 8px; }
  .costume-number-grid label { min-width: 0; font-size: 1rem; }
  .costume-number-grid input { font-size: 1.25rem; }
}

/* ------------------------------------------------------------------------- */
/* Página "Mi casa"                                                         */
/* ------------------------------------------------------------------------- */

.house-screen {
  max-width: 680px;
}

.back-button {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--action-orange);
  color: #120b14;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.house-card {
  padding: 0;
  background: transparent;
}

.house-header-image {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 auto clamp(8px, 2vw, 14px);
}

#house-form > label:first-of-type {
  margin-top: 8px;
}

.house-page .help {
  font-size: 0.88rem;
}

.house-page .check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  background: transparent;
  color: var(--action-orange);
  font-size: 1rem;
  font-weight: 500;
}

.house-page .check input {
  flex: 0 0 auto;
  margin: 0;
}

.house-page .check span {
  flex: 1;
}

.form-error {
  margin: 0 0 8px;
  color: #ff4d4d;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------------- */
/* Página "Ruta Caramelos"                                                   */
/* ------------------------------------------------------------------------- */

.route-screen {
  max-width: 760px;
}

.route-header-image {
  display: block;
  width: min(100%, 700px);
  height: auto;
  margin: 0 auto clamp(24px, 5vw, 38px);
}

.decorated-winners {
  margin: -4px auto 24px;
  max-width: 620px;
  text-align: center;
}

.decorated-winners h2 {
  margin: 0 0 15px;
  color: var(--orange);
  font: 700 clamp(1.9rem, 7vw, 2.7rem)/1.1 "Fraunces", serif;
}

.decorated-winners ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decorated-winners li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid #674572;
  border-radius: 12px;
  background: var(--dark-purple);
  color: var(--text);
  font-size: clamp(.95rem, 3.7vw, 1.15rem);
  text-align: left;
}

.decorated-winner-trophy { font-size: 1.8rem; line-height: 1; }

.decorated-winners > p {
  margin: 18px 0 0;
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
}

.scan-qr-button {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 15px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--action-orange);
  color: #120b14;
  font-family: "DM Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
}


.scan-help {
  min-height: 1.4em;
  margin: 10px auto 20px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.route-map-section {
  margin-top: 14px;
}

.route-progress {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

#route-map,
#contest-map {
  height: min(60dvh, 590px);
  min-height: 380px;
  overflow: hidden;
  border-radius: 14px;
}

.candy-house-pin {
  width: max-content !important;
  min-width: 50px;
  height: 34px !important;
  padding: 5px 8px;
  border: 2px solid #24132a;
  border-radius: 8px 8px 8px 2px !important;
  background: var(--action-orange);
  box-shadow: 2px 2px 0 #24132a;
  color: #24132a;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.candy-house-pin.visited {
  filter: grayscale(1);
  opacity: 0.5;
}

.contest-house-pin {
  width: max-content !important;
  min-width: 50px;
  height: 34px !important;
  padding: 5px 8px;
  border: 2px solid #24132a;
  border-radius: 8px 8px 8px 2px !important;
  background: #b559ca;
  box-shadow: 2px 2px 0 #24132a;
  color: #24132a;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.contest-house-pin.scanned {
  filter: grayscale(1);
  opacity: 0.5;
}

.address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin-top: 5px;
}

.address-search-row input {
  min-width: 0;
  margin-top: 0;
}

.search-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--action-orange);
  color: #120b14;
  font-size: 1.15rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0.15rem 0 0.8rem;
  font-family: Fraunces, Georgia, serif;
  line-height: 0.9;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 4rem);
  letter-spacing: -0.06em;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------------- */
/* Cabecera, controles y progreso                                            */
/* ------------------------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 6px 0 18px;
}

.event-logo {
  display: block;
  width: min(100%, 510px);
  height: auto;
}

button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a98aff;
  outline-offset: 2px;
}

.ghost {
  position: relative;
  padding: 13px 17px 12px;
  border: 3px solid #120b14;
  border-radius: 4px 14px 4px 14px;
  background: linear-gradient(135deg, #ffba2d 0%, var(--orange) 58%, #e64d12 100%);
  color: #120b14;
  box-shadow: 4px 4px 0 #86220c;
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ghost::before {
  content: "✦";
  margin-right: 7px;
}

.progress {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 14px;
  background: var(--text);
}

.progress > div,
.progress button {
  padding: 13px 12px;
  border: 0;
  background: var(--surface);
  text-align: left;
}

.progress span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.progress strong {
  font-size: 0.82rem;
}

.progress button {
  background: var(--orange);
  color: #24132a;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.progress button:disabled {
  background: #564d55;
  color: #bfb3b9;
}

.primary,
.secondary {
  width: 100%;
  margin: 8px 0;
  padding: 15px;
  font-weight: 500;
}

.primary {
  background: var(--action-orange);
  color: #24132a;
  font-size: 18px;
}

.secondary {
  background: #5a3567;
  color: var(--text);
}

.qr-button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 13px;
  border: 2px dashed var(--action-orange);
  border-radius: 8px;
  color: var(--action-orange);
  font-size: 15.6px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.qr-button[hidden] {
  display: none;
}

/* ------------------------------------------------------------------------- */
/* Mapa                                                                      */
/* ------------------------------------------------------------------------- */

#map {
  z-index: 0;
  min-height: 380px;
  height: min(60dvh, 590px);
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 16px;
}

.notice,
.help {
  margin: 10px 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.house-pin {
  width: max-content !important;
  min-width: 48px;
  height: 34px !important;
  padding: 5px 8px;
  border: 2px solid #24132a;
  border-radius: 8px 8px 8px 2px !important;
  background: var(--orange);
  box-shadow: 2px 2px 0 #24132a;
  color: #24132a;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.house-pin span {
  display: block;
}

.house-pin.contest {
  background: #b559ca;
}

.leaflet-popup-content {
  color: #24132a;
  font-family: "DM Mono", monospace;
  font-size: 13px;
}

.leaflet-popup-content img {
  display: block;
  width: 180px;
  max-height: 120px;
  margin: 8px 0;
  border-radius: 7px;
  object-fit: cover;
}

/* ------------------------------------------------------------------------- */
/* Diálogos y formularios                                                    */
/* ------------------------------------------------------------------------- */

dialog {
  width: min(540px, calc(100% - 24px));
  padding: 0;
  border: 2px solid var(--text);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 7px 7px 0 #000;
}

dialog::backdrop {
  background: #000c;
}

dialog form {
  position: relative;
  padding: 25px;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

label {
  display: block;
  margin: 15px 0 4px;
  font-size: 0.8rem;
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  background: #fff;
  color: #24132a;
  font: inherit;
  font-size: 0.9rem;
}

/* Safari en iPhone amplía la página al enfocar campos con texto menor de 16 px. */
.house-page input:not([type="checkbox"]) {
  font-size: 16px;
}

.check {
  padding: 9px;
  border-radius: 7px;
  background: #33203a;
}

.check input {
  display: inline;
  width: auto;
  margin: 0 7px 0 0;
}

small {
  color: var(--muted);
}

#picker-map {
  height: 210px;
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid var(--text);
  border-radius: 10px;
}

/* ------------------------------------------------------------------------- */
/* Página que abre un QR                                                     */
/* ------------------------------------------------------------------------- */

.scan-page main {
  max-width: 520px;
  padding-top: 15dvh;
}

.scan-page h1 {
  font-size: 3.3rem;
}

.scan-page a {
  display: block;
  margin-top: 20px;
  color: var(--violet);
  text-align: center;
}

/* ------------------------------------------------------------------------- */
/* Lector QR                                                                 */
/* ------------------------------------------------------------------------- */

.scanner-page main {
  max-width: 520px;
  padding-top: clamp(30px, 8vh, 80px);
}

.scanner-page .back-button {
  margin-bottom: 0;
}

.scanner-page h1 {
  margin-top: 34px;
  font-size: clamp(2rem, 8vw, 3.1rem);
}

.scanner-page main > p:not(.scan-help) {
  color: var(--muted);
}

#qr-reader {
  overflow: hidden;
  margin: 28px auto 0;
  border: 2px solid var(--orange);
  border-radius: 16px;
  background: #000;
}

#qr-reader video {
  display: block;
  width: 100%;
}

#qr-reader__dashboard {
  padding: 12px;
  color: var(--cream);
}

#qr-reader.scan-complete {
  height: 5px;
  margin-top: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
}

.scan-result {
  margin-top: 34px;
  color: var(--orange);
  text-align: center;
}

.scan-result-title {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 7vw, 2.1rem);
  font-weight: 700;
}

.scan-result-detail {
  margin: 8px 0;
  font-size: clamp(1.2rem, 5vw, 1.55rem);
  font-weight: 400;
}

/* ------------------------------------------------------------------------- */
/* Hoja para imprimir el QR                                                   */
/* ------------------------------------------------------------------------- */

.qr-print-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: #111;
}

.qr-print-card {
  width: min(100%, 700px);
  padding: 34px;
  border: 2px solid #111;
  text-align: center;
}

.qr-print-street {
  margin: 0;
  font-size: clamp(1.6rem, 5.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.qr-print-number {
  margin: 12px 0 26px;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 700;
}

.qr-print-code {
  display: block;
  width: min(100%, 540px);
  margin: 0 auto 28px;
  image-rendering: pixelated;
}

@media print {
  .qr-print-page {
    display: block;
    padding: 0;
  }

  .qr-print-card {
    width: 100%;
    border: 0;
  }

  .qr-print-page button,
  .qr-print-page [role='status'] {
    display: none;
  }
}

/* ------------------------------------------------------------------------- */
/* Gestión privada                                                           */
/* ------------------------------------------------------------------------- */

.admin-page main {
  max-width: 900px;
  padding-top: clamp(34px, 8vh, 84px);
}

.admin-login {
  max-width: 460px;
  margin: 0 auto;
}

.admin-login form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.admin-login input {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

.admin-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.admin-topbar h1,
.admin-section h2 {
  margin: 0;
}

.admin-section {
  margin-top: 42px;
}

.admin-costume-section {
  padding: 20px;
  border: 1px solid rgba(255, 133, 31, .45);
  border-radius: 16px;
  background: #150f18;
}

.admin-costume-form { margin-top: 18px; }
.admin-costume-form label { display: block; margin-bottom: 7px; }

.admin-costume-input-row, .admin-costume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-costume-input-row input {
  width: 135px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  font: 1rem "DM Mono", monospace;
}

.admin-costume-input-row .primary,
.admin-costume-actions .primary,
.admin-costume-actions .secondary {
  width: auto;
  margin: 0;
  padding: 12px 15px;
  border-radius: 9px;
  cursor: pointer;
}

.admin-costume-actions { margin-top: 17px; }
.admin-costume-message { color: #ffb6a1; }
.admin-costume-winner { color: #ffb46c; font-weight: 700; }

@media (max-width: 570px) {
  .admin-costume-input-row input,
  .admin-costume-input-row .primary { width: 100%; }
}

.admin-summary-section {
  margin-top: 30px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-stat {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
}

.admin-stat strong {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}

.admin-stat span,
.admin-registration {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-registration {
  margin-top: 7px;
}

.admin-description,
.admin-empty {
  color: var(--muted);
}

.admin-houses {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-house {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.admin-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--dark-purple);
  color: var(--orange);
  font-size: 0.74rem;
}

.admin-print {
  flex: 0 0 auto;
  width: auto;
  min-width: 160px;
  padding: 10px 13px;
  text-decoration: none;
  text-align: center;
}

.admin-house-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-delete {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #e46c6c;
  border-radius: 9px;
  background: #321a22;
  color: #ffd4d4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-delete:hover {
  background: #51252d;
}

.admin-delete:disabled {
  opacity: .55;
  cursor: wait;
}

.admin-results-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border-radius: 12px;
  background: var(--surface);
}

.admin-results {
  width: 100%;
  border-collapse: collapse;
}

.admin-results th,
.admin-results td {
  padding: 14px 16px;
  border-bottom: 1px solid #3c2943;
  text-align: left;
}

.admin-results th {
  color: var(--orange);
}

@media (max-width: 570px) {
  .admin-topbar,
  .admin-house {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .admin-print {
    flex: 1;
    min-width: 0;
  }

  .admin-house-actions {
    width: 100%;
  }
}


/* ------------------------------------------------------------------------- */
/* Footer portada                                                            */
/* ------------------------------------------------------------------------- */

.home-menu {
  display: flex;
  flex-direction: column;
}

.home-footer {
  margin-top: auto;
  padding: 32px 0 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.72rem;
}

.home-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--orange);
  text-decoration: underline;
}

.home-footer a:active {
  color: var(--action-orange);
}

/* ------------------------------------------------------------------------- */
/* Móvil                                                                     */
/* ------------------------------------------------------------------------- */

@media (max-width: 570px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }

  .event-logo {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .progress {
    grid-template-columns: 1fr 1fr;
  }

  .progress button {
    grid-column: span 2;
    text-align: center;
  }

  header .ghost {
    align-self: flex-end;
    padding: 12px 16px 11px;
    font-size: 0.86rem;
  }

  #map {
    margin-inline: -4px;
    border-radius: 12px;
  }
}
/* ==========================================================================
   MI CASA - MODALIDADES DE PARTICIPACIÓN
   ========================================================================== */


.participation-section {

  margin:
    27px
    0
    21px;

}


/* ==========================================================================
   CABECERA
   ========================================================================== */

.participation-heading {

  display: flex;

  gap:
    11px;

  align-items:
    center;

  margin-bottom:
    14px;

}


.participation-heading-icon {

  display: grid;

  width:
    42px;

  height:
    42px;

  flex:
    0 0 42px;

  place-items:
    center;

  border:
    1px solid
    rgba(255, 133, 31, .42);

  border-radius:
    12px;

  background:

    linear-gradient(
      145deg,
      rgba(255, 107, 18, .18),
      rgba(75, 34, 84, .48)
    );

  font-size:
    1.4rem;

  box-shadow:
    0 0 14px
    rgba(255, 107, 18, .08);

}


.participation-heading h2 {

  margin:
    0 0 3px;

  color:
    var(
      --orange,
      #ff7918
    );

  font-family:
    Fraunces,
    Georgia,
    serif;

  font-size:
    1.22rem;

  line-height:
    1.1;

}


.participation-heading p {

  margin: 0;

  color:
    var(
      --muted,
      #c4b1bf
    );

  font-size:
    .86rem;

  line-height:
    1.5;

}


/* ==========================================================================
   TARJETA
   ========================================================================== */

.participation-card {

  position:
    relative;

  display:
    block;

  margin:
    10px
    0;

  cursor:
    pointer;

  -webkit-tap-highlight-color:
    transparent;

}


/*
 * El checkbox sigue existiendo
 * pero lo ocultamos visualmente.
 */

.participation-card > input {

  position:
    absolute;

  width:
    1px;

  height:
    1px;

  opacity:
    0;

  pointer-events:
    none;

}


/* ==========================================================================
   CONTENIDO TARJETA
   ========================================================================== */

.participation-card-content {

  display:
    grid;

  grid-template-columns:
    64px
    minmax(0, 1fr)
    58px;

  gap:
    12px;

  align-items:
    center;

  min-height:
    96px;

  padding:
    11px
    12px;

  border:
    2px solid
    rgba(255, 255, 255, .11);

  border-radius:
    17px;

  background:

    linear-gradient(
      145deg,
      rgba(39, 25, 44, .94),
      rgba(18, 12, 22, .98)
    );

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, .23);

  transition:
    border-color .18s ease,
    background .18s ease,
    transform .14s ease,
    box-shadow .18s ease;

}


/* Pulsación móvil */

.participation-card:active
.participation-card-content {

  transform:
    scale(.985);

}


/* ==========================================================================
   PERSONAJES
   ========================================================================== */

.participation-character {

  display:
    grid;

  width:
    62px;

  height:
    62px;

  place-items:
    center;

  overflow:
    hidden;

  border-radius:
    16px;

  background:

    radial-gradient(
      circle,
      rgba(255, 119, 25, .17),
      rgba(31, 15, 34, .72)
    );

}


.participation-character img {

  display:
    block;

  width:
    59px;

  height:
    59px;

  object-fit:
    contain;

}


/* ==========================================================================
   TEXTO
   ========================================================================== */

.participation-copy {

  min-width:
    0;

}


.participation-copy strong {

  display:
    block;

  margin-bottom:
    5px;

  color:
    #fff3dd;

  font-family:
    Fraunces,
    Georgia,
    serif;

  font-size:
    1.02rem;

  line-height:
    1.1;

}


.participation-copy small {

  display:
    block;

  color:
    var(
      --muted,
      #c4b1bf
    );

  font-size:
    .83rem;

  line-height:
    1.5;

}


.participation-copy small b {

  color:
    #ffe1ae;

  font-weight:
    700;

}

.participation-no-break {
  white-space: nowrap;
}


/* ==========================================================================
   INDICADOR SÍ / NO
   ========================================================================== */

.participation-state {

  display:
    grid;

  width:
    55px;

  height:
    36px;

  place-items:
    center;

  border:
    2px solid
    rgba(255, 255, 255, .22);

  border-radius:
    999px;

  background:
    #211923;

  color:
    #bdaeb9;

  font-family:
    "DM Mono",
    monospace;

  font-size:
    .72rem;

  font-weight:
    700;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease;

}


/* Estado desactivado */

.participation-state::after {

  content:
    "NO";

}


/* ==========================================================================
   ESTADO SELECCIONADO GENERAL
   ========================================================================== */

.participation-card
> input:checked
+ .participation-card-content {

  border-color:
    var(
      --action-orange,
      #ff6812
    );

  background:

    linear-gradient(
      145deg,
      rgba(75, 31, 30, .94),
      rgba(39, 19, 35, .98)
    );

  box-shadow:
    0 0 0 2px rgba(255, 107, 18, .10),
    0 9px 28px rgba(0, 0, 0, .28),
    0 0 18px rgba(255, 107, 18, .13);

}


/* SÍ */

.participation-card
> input:checked
+ .participation-card-content
.participation-state {

  border-color:
    #ff9b35;

  background:

    linear-gradient(
      135deg,
      #ffad35,
      #ff6812
    );

  color:
    #20101e;

  box-shadow:
    0 0 12px
    rgba(255, 107, 18, .28);

}


.participation-card
> input:checked
+ .participation-card-content
.participation-state::after {

  content:
    "✓ SÍ";

}


/* ==========================================================================
   CARAMELos
   ========================================================================== */

.participation-card--candy
> input:checked
+ .participation-card-content {

  border-color:
    #ff7918;

}


/* Personaje caramelos seleccionado */

.participation-card--candy
> input:checked
+ .participation-card-content
.participation-character {

  background:

    radial-gradient(
      circle,
      rgba(255, 128, 26, .30),
      rgba(66, 24, 20, .72)
    );

  box-shadow:
    0 0 14px
    rgba(255, 107, 18, .18);

}


/* ==========================================================================
   CONCURSO DE DECORACIÓN
   ========================================================================== */

.participation-card--contest
> input:checked
+ .participation-card-content {

  border-color:
    #d48bff;

  background:

    linear-gradient(
      145deg,
      rgba(66, 32, 76, .96),
      rgba(35, 19, 42, .98)
    );

  box-shadow:
    0 0 0 2px rgba(202, 111, 255, .08),
    0 9px 28px rgba(0, 0, 0, .28),
    0 0 18px rgba(204, 116, 255, .10);

}


/* Botón SÍ concurso */

.participation-card--contest
> input:checked
+ .participation-card-content
.participation-state {

  border-color:
    #e6b5ff;

  background:

    linear-gradient(
      135deg,
      #d999fa,
      #9e52bd
    );

  color:
    #1e1023;

  box-shadow:
    0 0 12px
    rgba(207, 122, 255, .25);

}


/* Personaje concurso seleccionado */

.participation-card--contest
> input:checked
+ .participation-card-content
.participation-character {

  background:

    radial-gradient(
      circle,
      rgba(210, 137, 255, .23),
      rgba(49, 24, 58, .75)
    );

  box-shadow:
    0 0 14px
    rgba(210, 137, 255, .15);

}


/* ==========================================================================
   FOCO TECLADO / ACCESIBILIDAD
   ========================================================================== */

.participation-card
> input:focus-visible
+ .participation-card-content {

  outline:
    3px solid
    #a98aff;

  outline-offset:
    3px;

}


/* ==========================================================================
   PEQUEÑA ANIMACIÓN AL ACTIVAR
   ========================================================================== */

.participation-card
> input:checked
+ .participation-card-content
.participation-character img {

  animation:
    participation-pop
    .24s
    ease-out;

}


@keyframes participation-pop {

  0% {

    transform:
      scale(.88);

  }

  65% {

    transform:
      scale(1.08);

  }

  100% {

    transform:
      scale(1);

  }

}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 420px) {

  .participation-section {

    margin-top:
      24px;

  }


  .participation-heading h2 {

    font-size:
      1.15rem;

  }


  .participation-card-content {

    grid-template-columns:
      48px
      minmax(0, 1fr)
      48px;

    gap:
      0;

    min-height:
      90px;

    padding:
      10px
      4px;

  }


  .participation-character {

    width:
      48px;

    height:
      48px;

  }


  .participation-character img {

    width:
      46px;

    height:
      46px;

  }


  .participation-copy strong {

    font-size:
      .91rem;

  }


  .participation-copy small {

    font-size:
      .78rem;

    line-height:
      1.5;

  }


  .participation-state {

    width:
      48px;

    height:
      34px;

    font-size:
      .66rem;

  }

}


/* MARCADORES DE LA RUTA DE CARAMELOS ------------------------------------ */

.candy-house-marker-container {
  background: transparent;
  border: 0;
}

.candy-house-marker {
  position: relative;
  display: flex;
  width: 66px;
  min-height: 50px;
  padding: 5px 8px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #ff8a32;
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(145deg, #613019, #21131b);
  color: #fff;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, .40),
    0 0 13px rgba(255, 127, 40, .32);
}

.candy-house-marker::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #ff8a32;
  border-bottom: 2px solid #ff8a32;
  background: #39201a;
  transform: rotate(45deg);
}

.candy-house-marker-icon {
  position: relative;
  z-index: 2;
  font-size: 1.55rem;
  line-height: 1;
}

.candy-house-marker-number {
  position: relative;
  z-index: 2;
  margin-top: 3px;
  color: #ffe0a9;
  font-size: .68rem;
  font-weight: 900;
}

.candy-house-marker.is-visited {
  border-color: #72d488;
  background: linear-gradient(145deg, #24462d, #102318);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, .40),
    0 0 13px rgba(86, 225, 117, .27);
}

.candy-house-marker.is-visited::after {
  border-color: #72d488;
  background: #17341f;
}

.candy-house-marker.is-visited .candy-house-marker-icon {
  color: #9af0ab;
  font-size: 1.45rem;
}


/* ==========================================================================
   REDUCIR ANIMACIONES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .participation-card-content,
  .participation-state {

    transition:
      none;

  }


  .participation-card
  > input:checked
  + .participation-card-content
  .participation-character img {

    animation:
      none;

  }

}
/* ==========================================================================
   RUTA DE CARAMELOS - TARJETA DE PROGRESO
   ========================================================================== */

.route-page .route-header-image {
  margin-bottom: 12px;
}

.route-page .scan-help {
  min-height: 0;
  margin: 8px auto 0;
}

.route-page .scan-help:empty {
  display: none;
}

.route-page .route-map-section {
  margin-top: 0;
}

.route-page .route-status-card {
  width: 100%;

  margin: 14px 0 10px;

  padding: 10px 12px;

  border: 1px solid rgba(255, 112, 20, .45);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(67, 27, 25, .92),
      rgba(24, 14, 29, .98)
    );

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .28);

  box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Parte superior
   -------------------------------------------------------------------------- */

.route-page .route-status-main {
  display: flex;

  align-items: center;

  gap: 10px;

  width: 100%;
}


/* --------------------------------------------------------------------------
   Personaje caramelo
   -------------------------------------------------------------------------- */

.route-page .route-status-character {
  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 50px;

  width: 50px;
  height: 50px;

  overflow: hidden;

  border: 1px solid rgba(255, 130, 30, .4);

  border-radius: 14px;

  background:
    radial-gradient(
      circle,
      rgba(255, 120, 20, .25),
      rgba(45, 20, 39, .72)
    );
}


/*
 * IMPORTANTE:
 * evita que estilos genéricos de imágenes
 * hagan crecer el personaje.
 */

.route-page
.route-status-character
img {
  display: block !important;

  width: 46px !important;
  height: 46px !important;

  max-width: 46px !important;
  max-height: 46px !important;

  margin: 0 !important;

  object-fit: contain !important;
}


/* --------------------------------------------------------------------------
   Texto
   -------------------------------------------------------------------------- */

.route-page .route-status-copy {
  display: block;

  flex: 1;

  min-width: 0;
}


.route-page .route-progress {
  display: block;

  margin: 0;

  color: #fff3df;

  font-family:
    Fraunces,
    Georgia,
    serif;

  font-size: 1.22rem;
  font-weight: 800;

  line-height: 1.3;
}


.route-page
.route-status-copy
small {
  display: block;

  margin-top: 3px;

  color: var(--muted, #c4b1bf);

  font-size: .82rem;

  line-height: 1.5;
}


/* ==========================================================================
   BARRA DE PROGRESO
   ========================================================================== */

.route-page .route-progress-track {
  display: block;

  width: 100%;
  height: 8px;

  margin-top: 8px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(0, 0, 0, .5);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07);
}


.route-page .route-progress-bar {
  display: block;

  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff5a0a,
      #ff9b27,
      #ffd35c
    );

  box-shadow:
    0 0 10px rgba(255, 107, 18, .45);

  transition: width .4s ease;
}


/* ==========================================================================
   MAPA
   ========================================================================== */

.route-page #route-map {
  width: 100%;

  min-height: 430px;

  border-radius: 15px;

  overflow: hidden;
}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 480px) {

  .route-page .route-status-card {
    margin-top: 12px;

    padding: 9px 11px;
  }


  .route-page .route-status-main {
    gap: 9px;
  }


  .route-page .route-status-character {
    flex-basis: 46px;

    width: 46px;
    height: 46px;
  }


  .route-page
  .route-status-character
  img {
    width: 42px !important;
    height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;
  }


  .route-page .route-progress {
    font-size: 1.1rem;
  }


  .route-page
  .route-status-copy
  small {
    font-size: .78rem;
  }

}

.contest-page .contest-progress-vote {
  display: block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--orange);
  color: #1b1020;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.contest-page .contest-progress-vote[hidden] { display: none; }
.contest-page .contest-progress-vote:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* ==========================================================================
   CONCURSO DE DECORACIÓN
   ========================================================================== */


/* --------------------------------------------------------------------------
   PROGRESO
   -------------------------------------------------------------------------- */

.contest-page .contest-progress-card {
  width: 100%;
  margin: 26px 0 18px;
  padding: 13px 14px 14px;

  border: 1px solid rgba(195, 102, 255, .42);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(64, 29, 73, .95),
      rgba(24, 14, 29, .98)
    );

  box-shadow:
    0 9px 28px rgba(0, 0, 0, .28);
}


.contest-page .contest-progress-main {
  display: flex;
  align-items: center;
  gap: 12px;
}


.contest-page .contest-progress-character {
  display: grid;

  flex: 0 0 58px;

  width: 58px;
  height: 58px;

  place-items: center;

  overflow: hidden;

  border: 1px solid rgba(220, 145, 255, .4);
  border-radius: 15px;

  background:
    radial-gradient(
      circle,
      rgba(203, 112, 255, .25),
      rgba(43, 20, 48, .74)
    );
}


.contest-page
.contest-progress-character
img {
  display: block !important;

  width: 54px !important;
  height: 54px !important;

  max-width: 54px !important;
  max-height: 54px !important;

  object-fit: contain !important;
}


.contest-progress-copy {
  flex: 1;
  min-width: 0;
}


.contest-progress-label {
  display: block;

  margin-bottom: 2px;

  color: #dca1ff;

  font-size: .61rem;
  font-weight: 800;

  letter-spacing: .09em;

  text-transform: uppercase;
}


.contest-progress-title {
  display: block;

  color: #fff1dd;

  font-family: Fraunces, Georgia, serif;

  font-size: 1.08rem;
  line-height: 1.12;
}


.contest-progress-copy small {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: .64rem;
  line-height: 1.4;
}


/* Barra */

.contest-progress-track {
  width: 100%;
  height: 9px;

  margin-top: 12px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(0, 0, 0, .50);
}


.contest-progress-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #9950bd,
      #db85ff,
      #ff961e
    );

  box-shadow:
    0 0 12px rgba(204, 115, 255, .40);

  transition: width .4s ease;
}


/* ==========================================================================
   MAPA CONCURSO
   ========================================================================== */

.contest-map-section {
  margin-top: 20px;
}


.contest-map-heading h2 {
  margin: 0;

  color: #ffb14a;

  font-family: Fraunces, Georgia, serif;

  font-size: 1.25rem;
}


.contest-map-heading p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: .66rem;
}


.contest-map-help {
  margin: 9px 2px 10px;

  color: var(--muted);

  font-size: .65rem;
  line-height: 1.45;
}


/* ==========================================================================
   MARCADORES CONCURSO
   ========================================================================== */

.contest-house-marker-container {
  background: transparent;
  border: 0;
}


.contest-house-marker {
  position: relative;

  display: flex;

  width: 66px;
  min-height: 50px;

  padding: 5px 8px 6px;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  border: 2px solid #d07aff;

  border-radius:
    16px
    16px
    16px
    5px;

  background:
    linear-gradient(
      145deg,
      #462250,
      #1b101f
    );

  color: #fff;

  box-shadow:
    0 5px 14px rgba(0, 0, 0, .40),
    0 0 13px rgba(202, 110, 255, .32);
}


.contest-house-marker::after {
  content: "";

  position: absolute;

  left: 25px;
  bottom: -8px;

  width: 14px;
  height: 14px;

  border-right: 2px solid #d07aff;
  border-bottom: 2px solid #d07aff;

  background: #28142d;

  transform: rotate(45deg);
}


.contest-house-marker-icon {
  position: relative;

  z-index: 2;

  font-size: 1.55rem;

  line-height: 1;
}


.contest-house-marker-number {
  position: relative;

  z-index: 2;

  margin-top: 3px;

  color: #f2ccff;

  font-size: .68rem;
  font-weight: 900;
}


/* Escaneada */

.contest-house-marker.is-scanned {
  border-color: #72d488;

  background:
    linear-gradient(
      145deg,
      #24462d,
      #102318
    );

  box-shadow:
    0 5px 14px rgba(0, 0, 0, .40),
    0 0 13px rgba(86, 225, 117, .27);
}


.contest-house-marker.is-scanned::after {
  border-color: #72d488;

  background: #17341f;
}


.contest-house-marker.is-scanned
.contest-house-marker-icon {
  color: #9af0ab;

  font-size: 1.45rem;
}


/* Popup */

.contest-house-popup {
  min-width: 140px;

  color: #251527;

  font-size: .75rem;
}


.contest-house-popup strong {
  display: block;

  margin-bottom: 7px;
}


.contest-popup-status {
  display: inline-block;

  padding: 4px 7px;

  border-radius: 999px;

  background: #efd9fa;

  color: #683378;

  font-size: .64rem;
  font-weight: 700;
}


.contest-popup-status--scanned {
  background: #d9f6df;

  color: #236232;
}


/* ==========================================================================
   VOTACIÓN
   ========================================================================== */

.contest-voting {
  margin-top: 22px;
}


/* --------------------------------------------------------------------------
   BLOQUEADO
   -------------------------------------------------------------------------- */

.contest-vote-locked {
  display: flex;

  gap: 14px;

  align-items: center;

  padding: 17px;

  border: 1px dashed rgba(208, 122, 255, .55);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(51, 28, 58, .66),
      rgba(20, 13, 24, .94)
    );
}

/* El progreso y su botón ya explican el desbloqueo; no duplicar el aviso bajo el mapa. */
#contest-vote-locked { display: none !important; }


.contest-lock-icon {
  display: grid;

  flex: 0 0 50px;

  width: 50px;
  height: 50px;

  place-items: center;

  border-radius: 14px;

  background: rgba(208, 122, 255, .12);

  font-size: 1.6rem;
}


.contest-vote-locked h2 {
  margin: 0 0 5px;

  color: #e4adff;

  font-family: Fraunces, Georgia, serif;

  font-size: 1.15rem;
}


.contest-vote-locked p {
  margin: 0;

  color: var(--muted);

  font-size: .69rem;
  line-height: 1.45;
}


/* --------------------------------------------------------------------------
   DESBLOQUEADO
   -------------------------------------------------------------------------- */

.contest-vote-unlocked {
  padding: 17px;

  border: 1px solid rgba(255, 139, 31, .5);

  border-radius: 18px;

  background:
    linear-gradient(
      160deg,
      rgba(51, 25, 59, .98),
      rgba(17, 11, 21, .98)
    );

  box-shadow:
    0 12px 32px rgba(0, 0, 0, .30),
    0 0 20px rgba(255, 112, 17, .07);
}


.contest-vote-unlocked[hidden] {
  display: none !important;
}


.contest-vote-heading {
  display: flex;

  gap: 11px;

  align-items: center;

  margin-bottom: 16px;
}


.contest-vote-heading-icon {
  display: grid;

  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  place-items: center;

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 151, 26, .20),
      rgba(112, 46, 121, .42)
    );

  font-size: 1.6rem;
}


.contest-vote-eyebrow {
  display: block;

  margin-bottom: 2px;

  color: #ff962c;

  font-size: .58rem;
  font-weight: 800;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.contest-vote-heading h2 {
  margin: 0;

  color: #fff1db;

  font-family: Fraunces, Georgia, serif;

  font-size: 1.25rem;
}


.contest-vote-heading p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: .64rem;
}


/* ==========================================================================
   OPCIONES DE VOTO
   ========================================================================== */

.contest-vote-options {
  display: grid;

  gap: 9px;
}


.contest-vote-option {
  position: relative;

  display: block;

  margin: 0;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}


.contest-vote-option > input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


.contest-vote-option-content {
  display: grid;

  grid-template-columns:
    54px
    minmax(0, 1fr)
    34px;

  gap: 10px;

  align-items: center;

  min-height: 72px;

  padding: 9px 10px;

  border: 2px solid rgba(255, 255, 255, .09);

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(41, 27, 45, .95),
      rgba(20, 14, 23, .98)
    );

  transition:
    border-color .16s ease,
    background .16s ease,
    transform .14s ease;
}


.contest-vote-option:active
.contest-vote-option-content {
  transform: scale(.985);
}


.contest-vote-house-image {
  display: grid;

  width: 52px;
  height: 52px;

  place-items: center;

  overflow: hidden;

  border-radius: 13px;

  background:
    radial-gradient(
      circle,
      rgba(255, 127, 30, .18),
      rgba(56, 27, 62, .65)
    );
}


.contest-vote-house-image img {
  display: block !important;

  width: 49px !important;
  height: 49px !important;

  max-width: 49px !important;
  max-height: 49px !important;

  object-fit: contain !important;
}


.contest-vote-house-copy {
  min-width: 0;
}


.contest-vote-house-copy strong {
  display: block;

  color: #fff2dc;

  font-family: Fraunces, Georgia, serif;

  font-size: .95rem;
}


.contest-vote-house-copy small {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: .61rem;

  line-height: 1.35;
}


.contest-vote-check {
  display: grid;

  width: 30px;
  height: 30px;

  place-items: center;

  border: 2px solid rgba(255, 255, 255, .20);

  border-radius: 50%;

  color: transparent;

  font-size: .8rem;
  font-weight: 900;
}


/* Seleccionada */

.contest-vote-option
> input:checked
+ .contest-vote-option-content {
  border-color: #ff8320;

  background:
    linear-gradient(
      145deg,
      rgba(91, 39, 49, .97),
      rgba(47, 24, 53, .98)
    );

  box-shadow:
    0 0 15px rgba(255, 117, 22, .13);
}


.contest-vote-option
> input:checked
+ .contest-vote-option-content
.contest-vote-check {
  border-color: #ff9a31;

  background:
    linear-gradient(
      135deg,
      #ffae37,
      #ff6812
    );

  color: #21101e;
}


/* ==========================================================================
   BOTÓN VOTAR
   ========================================================================== */

.contest-vote-button {
  display: block;

  width: 100%;

  margin-top: 15px;

  padding: 14px;

  border: 0;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #ffab31,
      #ff6812
    );

  color: #21101e;

  font-family: "DM Mono", monospace;

  font-size: .82rem;
  font-weight: 800;

  box-shadow:
    0 7px 20px rgba(255, 101, 13, .18);
}


.contest-vote-button:disabled {
  background: #302531;

  color: #817481;

  box-shadow: none;

  opacity: 1;
}


.contest-vote-message {
  min-height: 1.5em;

  margin: 11px 2px 0;

  color: #ffb449;

  font-size: .70rem;

  font-weight: 700;

  text-align: center;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 420px) {

  .contest-page
  .contest-progress-character {
    flex-basis: 52px;

    width: 52px;
    height: 52px;
  }


  .contest-page
  .contest-progress-character
  img {
    width: 49px !important;
    height: 49px !important;
  }


  .contest-progress-title {
    font-size: .98rem;
  }


  .contest-vote-unlocked {
    padding: 14px 12px;
  }


  .contest-vote-option-content {
    grid-template-columns:
      49px
      minmax(0, 1fr)
      30px;

    gap: 8px;

    padding: 8px;
  }


  .contest-vote-house-image {
    width: 47px;
    height: 47px;
  }


  .contest-vote-house-image img {
    width: 45px !important;
    height: 45px !important;
  }

}

/* ==========================================================================
   CONCURSO DE DECORACIÓN
   ========================================================================== */


/* PROGRESO --------------------------------------------------------------- */

.contest-page .contest-progress-card {
  width: 100%;
  margin: 26px 0 18px;
  padding: 13px 14px 14px;

  border: 1px solid rgba(195, 102, 255, .42);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(64, 29, 73, .95),
      rgba(24, 14, 29, .98)
    );

  box-shadow:
    0 9px 28px rgba(0, 0, 0, .28);
}


.contest-page .contest-progress-main {
  display: flex;
  align-items: center;
  gap: 12px;
}


.contest-page .contest-progress-character {
  display: grid;

  flex: 0 0 58px;

  width: 58px;
  height: 58px;

  place-items: center;
  overflow: hidden;

  border: 1px solid rgba(220, 145, 255, .4);
  border-radius: 15px;

  background:
    radial-gradient(
      circle,
      rgba(203, 112, 255, .25),
      rgba(43, 20, 48, .74)
    );
}


.contest-page
.contest-progress-character
img {
  display: block !important;

  width: 54px !important;
  height: 54px !important;

  max-width: 54px !important;
  max-height: 54px !important;

  object-fit: contain !important;
}


.contest-progress-copy {
  flex: 1;
  min-width: 0;
}


.contest-progress-label {
  display: block;
  margin-bottom: 2px;

  color: #dca1ff;

  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}


.contest-progress-title {
  display: block;

  color: #fff1dd;

  font-family: Fraunces, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.12;
}


.contest-progress-copy small {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: .64rem;
  line-height: 1.4;
}


.contest-progress-track {
  width: 100%;
  height: 9px;

  margin-top: 12px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(0, 0, 0, .50);
}


.contest-progress-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #9950bd,
      #db85ff,
      #ff961e
    );

  box-shadow:
    0 0 12px rgba(204, 115, 255, .40);

  transition: width .4s ease;
}


/* MAPA ------------------------------------------------------------------- */

.contest-map-section {
  margin-top: 20px;
}


.contest-map-heading h2 {
  margin: 0;

  color: #ffb14a;

  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}


.contest-map-heading p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: .66rem;
}


.contest-map-help {
  margin: 9px 2px 10px;

  color: var(--muted);

  font-size: .65rem;
  line-height: 1.45;
}


.contest-page #contest-map {
  width: 100%;
  min-height: 430px;

  overflow: hidden;

  border-radius: 15px;
}


/* MARCADORES -------------------------------------------------------------- */

.contest-house-marker-container {
  background: transparent;
  border: 0;
}


.contest-house-marker {
  position: relative;

  display: flex;

  width: 66px;
  min-height: 50px;

  padding: 5px 8px 6px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 2px solid #d07aff;

  border-radius:
    16px
    16px
    16px
    5px;

  background:
    linear-gradient(
      145deg,
      #462250,
      #1b101f
    );

  color: #fff;

  box-shadow:
    0 5px 14px rgba(0, 0, 0, .40),
    0 0 13px rgba(202, 110, 255, .32);
}


.contest-house-marker::after {
  content: "";

  position: absolute;

  left: 25px;
  bottom: -8px;

  width: 14px;
  height: 14px;

  border-right: 2px solid #d07aff;
  border-bottom: 2px solid #d07aff;

  background: #28142d;

  transform: rotate(45deg);
}


.contest-house-marker-icon {
  position: relative;

  z-index: 2;

  font-size: 1.55rem;
  line-height: 1;
}


.contest-house-marker-number {
  position: relative;

  z-index: 2;

  margin-top: 3px;

  color: #f2ccff;

  font-size: .68rem;
  font-weight: 900;
}


.contest-house-marker.is-scanned {
  border-color: #72d488;

  background:
    linear-gradient(
      145deg,
      #24462d,
      #102318
    );

  box-shadow:
    0 5px 14px rgba(0, 0, 0, .40),
    0 0 13px rgba(86, 225, 117, .27);
}


.contest-house-marker.is-scanned::after {
  border-color: #72d488;

  background: #17341f;
}


.contest-house-marker.is-scanned
.contest-house-marker-icon {
  color: #9af0ab;

  font-size: 1.45rem;
}


.contest-house-popup {
  min-width: 140px;

  color: #251527;

  font-size: .75rem;
}


.contest-house-popup strong {
  display: block;

  margin-bottom: 7px;
}


.contest-popup-status {
  display: inline-block;

  padding: 4px 7px;

  border-radius: 999px;

  background: #efd9fa;

  color: #683378;

  font-size: .64rem;
  font-weight: 700;
}


.contest-popup-status--scanned {
  background: #d9f6df;

  color: #236232;
}


/* VOTACIÓN BLOQUEADA ------------------------------------------------------ */

.contest-voting {
  margin-top: 22px;
}


.contest-vote-locked {
  display: flex;

  gap: 14px;

  align-items: center;

  padding: 17px;

  border: 1px dashed rgba(208, 122, 255, .55);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(51, 28, 58, .66),
      rgba(20, 13, 24, .94)
    );
}


.contest-lock-icon {
  display: grid;

  flex: 0 0 50px;

  width: 50px;
  height: 50px;

  place-items: center;

  border-radius: 14px;

  background: rgba(208, 122, 255, .12);

  font-size: 1.6rem;
}


.contest-vote-locked h2 {
  margin: 0 0 5px;

  color: #e4adff;

  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}


.contest-vote-locked p {
  margin: 0;

  color: var(--muted);

  font-size: .69rem;
  line-height: 1.45;
}


/* VOTACIÓN DESBLOQUEADA -------------------------------------------------- */

.contest-vote-unlocked {
  padding: 17px;

  border: 1px solid rgba(255, 139, 31, .5);

  border-radius: 18px;

  background:
    linear-gradient(
      160deg,
      rgba(51, 25, 59, .98),
      rgba(17, 11, 21, .98)
    );

  box-shadow:
    0 12px 32px rgba(0, 0, 0, .30);
}


.contest-vote-unlocked[hidden] {
  display: none !important;
}


.contest-vote-heading {
  display: flex;

  gap: 11px;

  align-items: center;

  margin-bottom: 16px;
}


.contest-vote-heading-icon {
  display: grid;

  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  place-items: center;

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 151, 26, .20),
      rgba(112, 46, 121, .42)
    );

  font-size: 1.6rem;
}


.contest-vote-eyebrow {
  display: block;

  margin-bottom: 2px;

  color: #ff962c;

  font-size: .58rem;
  font-weight: 800;

  letter-spacing: .07em;

  text-transform: uppercase;
}


.contest-vote-heading h2 {
  margin: 0;

  color: #fff1db;

  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}


.contest-vote-heading p {
  margin: 3px 0 0;

  color: var(--muted);

  font-size: .64rem;
}


/* RANKING ---------------------------------------------------------------- */

.contest-rank-card {
  display: grid;

  grid-template-columns:
    45px
    minmax(0, 1fr);

  gap:
    4px
    11px;

  align-items: center;

  margin: 10px 0;

  padding: 12px;

  border: 1px solid rgba(255, 255, 255, .11);

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(42, 28, 47, .96),
      rgba(19, 13, 23, .98)
    );
}


.contest-rank-medal {
  grid-row: 1 / 3;

  display: grid;

  width: 43px;
  height: 43px;

  place-items: center;

  border-radius: 13px;

  background: rgba(0, 0, 0, .24);

  font-size: 1.55rem;
}


.contest-rank-copy {
  min-width: 0;
}


.contest-rank-copy strong {
  display: block;

  color: #fff1dc;

  font-family: Fraunces, Georgia, serif;

  font-size: .92rem;
}


.contest-rank-copy small {
  display: block;

  margin-top: 1px;

  color: var(--muted);

  font-size: .60rem;
}


.contest-rank-select {
  grid-column: 1 / -1;

  width: 100%;

  margin-top: 7px;

  padding: 12px 38px 12px 12px;

  border: 2px solid rgba(255, 255, 255, .12);

  border-radius: 11px;

  outline: none;

  background-color: #171019;

  color: #fff0da;

  font-family: "DM Mono", monospace;

  font-size: .72rem;
}


.contest-rank-select:focus {
  border-color: #ff8623;

  box-shadow:
    0 0 0 3px rgba(255, 117, 20, .11);
}


.contest-rank-card--first {
  border-color: rgba(255, 192, 44, .31);
}


.contest-rank-card--second {
  border-color: rgba(211, 211, 225, .23);
}


.contest-rank-card--third {
  border-color: rgba(214, 132, 75, .26);
}


/* VOTO EXISTENTE --------------------------------------------------------- */

.contest-existing-vote {
  margin-top: 12px;

  padding: 9px 10px;

  border: 1px solid rgba(104, 212, 132, .28);

  border-radius: 10px;

  background: rgba(69, 150, 87, .10);

  color: #a6ebb5;

  font-size: .64rem;

  line-height: 1.4;
}


/* BOTÓN ------------------------------------------------------------------ */

.contest-vote-button {
  display: block;

  width: 100%;

  margin-top: 15px;

  padding: 14px;

  border: 0;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #ffab31,
      #ff6812
    );

  color: #21101e;

  font-family: "DM Mono", monospace;

  font-size: .82rem;
  font-weight: 800;

  box-shadow:
    0 7px 20px rgba(255, 101, 13, .18);
}


.contest-vote-button:disabled {
  background: #302531;

  color: #817481;

  box-shadow: none;

  opacity: 1;
}


.contest-vote-message {
  min-height: 1.5em;

  margin: 11px 2px 0;

  color: #ffb449;

  font-size: .70rem;
  font-weight: 700;

  text-align: center;
}


/* MOBILE ----------------------------------------------------------------- */

@media (max-width: 420px) {

  .contest-page
  .contest-progress-character {
    flex-basis: 52px;

    width: 52px;
    height: 52px;
  }


  .contest-page
  .contest-progress-character
  img {
    width: 49px !important;
    height: 49px !important;
  }


  .contest-progress-title {
    font-size: .98rem;
  }


  .contest-vote-unlocked {
    padding: 14px 12px;
  }

}


/* CONCURSO: MISMA TARJETA COMPACTA QUE LA RUTA DE CARAMELOS ------------ */

.contest-page .contest-progress-card {
  margin: 14px 0 10px;
  padding: 10px 12px;
}

.contest-page .contest-progress-main {
  gap: 10px;
}

.contest-page .contest-progress-character {
  flex-basis: 50px;
  width: 50px;
  height: 50px;
}

.contest-page .contest-progress-character img {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
}

.contest-page .contest-progress-title {
  font-size: 1.22rem;
  line-height: 1.3;
}

.contest-page .contest-progress-copy small {
  margin-top: 3px;
  font-size: .82rem;
  line-height: 1.5;
}

.contest-page .contest-progress-track {
  margin-top: 8px;
}

.contest-page .contest-map-section {
  margin-top: 10px;
}

@media (max-width: 480px) {
  .contest-page .contest-progress-card {
    margin-top: 12px;
    padding: 9px 11px;
  }

  .contest-page .contest-progress-main {
    gap: 9px;
  }

  .contest-page .contest-progress-character {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .contest-page .contest-progress-character img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }

  .contest-page .contest-progress-title {
    font-size: 1.1rem;
  }

  .contest-page .contest-progress-copy small {
    font-size: .78rem;
  }
}


/* CASAL SOCIAL: PUNTO FIJO EN LOS DOS MAPAS ----------------------------- */

.casal-marker-container {
  background: transparent;
  border: 0;
}

.casal-marker {
  position: relative;
  display: grid;
  width: 50px;
  height: 48px;
  place-items: center;
  border: 2px solid #ff8a32;
  border-radius: 15px 15px 15px 5px;
  background: linear-gradient(145deg, #51233e, #1b101f);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, .4),
    0 0 13px rgba(255, 127, 40, .32);
  font-size: 1.8rem;
  line-height: 1;
}

.casal-marker::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #ff8a32;
  border-bottom: 2px solid #ff8a32;
  background: #29152a;
  transform: rotate(45deg);
}

.casal-marker-popup {
  min-width: 150px;
  color: #251527;
  font-size: .75rem;
}

.casal-marker-popup strong,
.casal-marker-popup span {
  display: block;
}

.casal-marker-popup span {
  margin-top: 4px;
}
/* ==========================================================================
   CONCURSO DE DISFRACES - EXPLICACIÓN VISUAL
   ========================================================================== */

.costume-vote-visual {
  display: block;

  width: 100%;
  max-width: 720px;
  height: auto;

  margin:
    18px
    auto
    22px;

  border:
    1px solid
    rgba(255, 126, 25, .45);

  border-radius:
    18px;

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, .35);

  object-fit:
    contain;
}


/* Móvil */

@media (max-width: 570px) {

  .costume-vote-visual {
    margin:
      14px
      auto
      18px;

    border-radius:
      14px;
  }

}

/* ==========================================================================
   HOME - BOTÓN PROGRAMA DE HALLOWEEN
   ========================================================================== */

.home-program-card {
  position: relative;

  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 38px;

  gap: 14px;

  width: 100%;

  margin:22px 0 22px;

  padding:
    13px
    14px;

  align-items: center;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 119, 25, .55);

  border-radius:
    17px;

  background:
    linear-gradient(
      135deg,
      rgba(55, 27, 61, .98),
      rgba(24, 15, 28, .98)
    );

  color:
    #fff;

  text-decoration:
    none;

  box-sizing:
    border-box;

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, .30),
    0 0 20px
    rgba(255, 103, 13, .07);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;

  -webkit-tap-highlight-color:
    transparent;
}


/* Brillo decorativo */

.home-program-card::before {
  content: "";

  position: absolute;

  top: -55px;
  right: -35px;

  width: 150px;
  height: 150px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 116, 20, .15),
      transparent 68%
    );

  pointer-events: none;
}


/* Pulsación */

.home-program-card:active {
  transform:
    scale(.985);
}


/* ==========================================================================
   CALENDARIO
   ========================================================================== */

.home-program-calendar {
  position: relative;

  display: flex;

  width: 58px;
  height: 62px;

  overflow: hidden;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  border:
    2px solid
    #ff801d;

  border-radius:
    12px;

  background:
    #fff4e6;

  color:
    #241428;

  box-shadow:
    0 0 13px
    rgba(255, 111, 16, .22);
}


.home-program-calendar::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 18px;

  background:
    linear-gradient(
      90deg,
      #ff5e0d,
      #ff9025
    );
}


.home-program-calendar-month {
  position: relative;

  z-index: 2;

  margin-top:
    -1px;

  color:
    #251329;

  font-size:
    .52rem;

  font-weight:
    900;

  letter-spacing:
    .07em;
}


.home-program-calendar strong {
  position: relative;

  z-index: 2;

  margin-top:
    5px;

  font-family:
    Fraunces,
    Georgia,
    serif;

  font-size:
    1.65rem;

  line-height:
    1;
}


/* ==========================================================================
   TEXTO
   ========================================================================== */

.home-program-content {
  position: relative;

  z-index: 2;

  display: block;

  min-width: 0;
}


.home-program-kicker {
  display: block;

  margin-bottom:
    3px;

  color:
    #e3a6ff;

  font-size:
    .52rem;

  font-weight:
    800;

  letter-spacing:
    .08em;
}


.home-program-title {
  display: block;

  color:
    #fff1dc;

  font-family:
    Fraunces,
    Georgia,
    serif;

  font-size:
    1.13rem;

  line-height:
    1.05;
}


.home-program-subtitle {
  display: block;

  margin-top:
    5px;

  color:
    #d0becd;

  font-size:
    .66rem;

  line-height:
    1.3;
}


/* ==========================================================================
   FLECHA
   ========================================================================== */

.home-program-arrow {
  position: relative;

  z-index: 2;

  display: grid;

  width: 34px;
  height: 34px;

  place-items: center;

  border:
    1px solid
    rgba(255, 134, 35, .55);

  border-radius:
    50%;

  background:
    rgba(255, 109, 17, .12);

  color:
    #ff8a25;

  font-family:
    Arial,
    sans-serif;

  font-size:
    1.8rem;

  line-height:
    1;
}


/* ==========================================================================
   HOVER ESCRITORIO
   ========================================================================== */

@media (hover: hover) {

  .home-program-card:hover {
    border-color:
      #ff841f;

    transform:
      translateY(-2px);

    box-shadow:
      0 10px 28px rgba(0, 0, 0, .34),
      0 0 20px rgba(255, 103, 13, .12);
  }

}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 420px) {

  .home-program-card {
    grid-template-columns:
      55px
      minmax(0, 1fr)
      32px;

    gap:
      10px;

    margin-bottom:
      18px;

    padding:
      11px;
  }


  .home-program-calendar {
    width:
      52px;

    height:
      57px;
  }


  .home-program-calendar strong {
    font-size:
      1.48rem;
  }


  .home-program-title {
    font-size:
      1rem;
  }


  .home-program-subtitle {
    font-size:
      .60rem;
  }


  .home-program-kicker {
    font-size:
      .48rem;
  }


  .home-program-arrow {
    width:
      30px;

    height:
      30px;

    font-size:
      1.55rem;
  }

}
