:root {
  --bg: #020202;
  --panel: #050505;
  --line: rgba(255, 255, 255, 0.11);
  --red: #ed1b31;
  --text: #f3f0ee;
  --muted: #a59c9c;
  --dim: #7c7373;
  --font-title: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 80% 22%, rgba(237, 27, 49, 0.2), transparent 28rem),
    linear-gradient(180deg, #020202 0%, #090101 55%, #020202 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.install-app-button {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  min-height: 52px;
  border: 1px solid var(--red);
  padding: 0 18px;
  color: var(--text);
  background: var(--red);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.48);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.install-app-button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.install-guide {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.78);
}

.install-guide-panel {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid var(--line);
  padding: 30px 24px 24px;
  color: var(--text);
  background: rgba(3, 3, 3, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
}

.install-guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  font-weight: 900;
}

.install-guide-panel h2 {
  margin: 10px 0 18px;
  font-family: var(--font-title);
  font-size: clamp(44px, 12vw, 70px);
  line-height: 0.95;
  text-transform: uppercase;
}

.install-guide-warning {
  border-left: 3px solid var(--red);
  padding-left: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.install-guide-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-guide-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  background: rgba(237, 27, 49, 0.08);
}

.install-guide-steps strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text);
  background: var(--red);
  font-weight: 900;
}

.install-guide-steps span {
  color: var(--text);
  line-height: 1.35;
}

.install-guide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.install-guide-actions button {
  min-height: 48px;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  isolation: isolate;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--section-image, linear-gradient(135deg, rgba(237, 27, 49, 0.13), transparent 38%)),
    radial-gradient(circle at 18% 82%, rgba(237, 27, 49, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82));
  background-position: center;
  background-size: cover;
  opacity: 0.72;
}

.route-fechas {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.92)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.24) 54%, rgba(0, 0, 0, 0.76)),
    url("./assets/backgrounds/fechas-pinon-fijo.jpg");
}

.route-inicio {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1) 52%, rgba(0, 0, 0, 0.72)),
    url("./assets/backgrounds/inicio.jpg");
}

.route-fogon {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0.76)),
    url("./assets/backgrounds/fogon-patio.jpg");
}

.route-casa {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 56%, rgba(0, 0, 0, 0.8)),
    url("./assets/backgrounds/casa-dossier-web-25.jpg");
}

.route-historia {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 56%, rgba(0, 0, 0, 0.82)),
    url("./assets/backgrounds/historia-casa-mistica.jpg");
}

.route-beneficios {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.8)),
    url("./assets/backgrounds/beneficios-hilda-tb.jpg");
}

.route-pueblo {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.8)),
    url("./assets/backgrounds/beneficios-hilda-tb.jpg");
}

.route-griselda {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.92)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 54%, rgba(0, 0, 0, 0.84)),
    url("./assets/backgrounds/griselda-cuaderno-vitral.png");
}

.route-gente {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.92)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22) 54%, rgba(0, 0, 0, 0.86)),
    url("./assets/backgrounds/gente-foro-pared-bombistica.jpg");
}

.route-registro,
.route-access {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.16) 52%, rgba(0, 0, 0, 0.76)),
    url("./assets/backgrounds/inicio.jpg");
}

.route-pasaporte {
  --section-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.2) 54%, rgba(0, 0, 0, 0.78)),
    url("./assets/backgrounds/pasaporte-dsc9917.jpg");
}

.topbar,
.main,
.access-screen {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 76px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.94);
}

.brand {
  width: min(43vw, 294px);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-btn {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-btn.active {
  color: var(--text);
  background: var(--red);
}

.notification-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(237, 27, 49, 0.52);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
}

.notification-btn.active {
  background: rgba(237, 27, 49, 0.18);
}

.notification-bomb {
  position: relative;
  display: block;
  width: 28px;
  height: 31px;
}

.bomb-body {
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 0 0 2px rgba(237, 27, 49, 0.08), 0 0 18px rgba(237, 27, 49, 0.24);
}

.bomb-body::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.bomb-fuse {
  position: absolute;
  left: 17px;
  top: 0;
  width: 12px;
  height: 13px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  border-radius: 0 11px 0 0;
  transform: rotate(-18deg);
  transform-origin: bottom left;
}

.bomb-spark {
  position: absolute;
  right: -3px;
  top: -5px;
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(0.6);
}

.bomb-spark::before,
.bomb-spark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 2px;
  height: 10px;
  border-radius: 99px;
  background: #ffcb45;
  box-shadow: 0 0 10px rgba(255, 203, 69, 0.9);
}

.bomb-spark::after {
  transform: rotate(90deg);
}

.notification-btn.has-news {
  border-color: var(--red);
  box-shadow: 0 0 22px rgba(237, 27, 49, 0.34);
}

.notification-btn.has-news .bomb-fuse {
  border-color: #ffcb45;
  box-shadow: 4px -4px 12px rgba(255, 203, 69, 0.54);
}

.notification-btn.has-news .bomb-spark {
  opacity: 1;
  animation: bombSpark 1.1s ease-in-out infinite;
}

.notification-btn strong {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border: 1px solid #000;
  border-radius: 999px;
  color: var(--text);
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

@keyframes bombSpark {
  0%,
  100% {
    transform: rotate(0deg) scale(0.72);
  }

  50% {
    transform: rotate(28deg) scale(1);
  }
}

.session-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.db-status {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.db-status.online {
  border-color: rgba(111, 210, 157, 0.55);
  color: #6fd29d;
}

.db-status.demo {
  border-color: rgba(237, 27, 49, 0.45);
  color: var(--red);
}

.mode-note {
  border-left: 3px solid var(--red);
  padding-left: 14px;
  color: var(--muted);
  font-size: 16px;
}

.main {
  width: min(100%, 1120px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px 76px;
}

.logout-footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 40px calc(42px + env(safe-area-inset-bottom));
}

.logout-door-button {
  display: grid;
  grid-template-columns: 42px auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 360px);
  min-height: 72px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.72);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.logout-door-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 42px;
  border: 2px solid var(--red);
  border-right-width: 5px;
  background: linear-gradient(90deg, rgba(237, 27, 49, 0.18), rgba(0, 0, 0, 0.34));
  box-shadow: 0 0 18px rgba(237, 27, 49, 0.22);
}

.logout-door-icon::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 19px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}

.logout-door-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 16px;
  width: 13px;
  height: 9px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: skewX(-18deg);
}

.access-shell {
  display: grid;
  place-items: center;
  padding: 28px;
}

.access-shell.route-registro {
  display: block;
  padding: 0 18px 28px;
}

.access-screen,
.access-stack {
  display: grid;
  gap: 30px;
  width: min(100%, 560px);
}

.access-logo {
  display: block;
  width: min(54vw, 360px);
  margin: 0 auto;
}

.register-logo {
  display: block;
  width: min(48vw, 260px);
  height: auto;
  margin: 12px auto 18px;
}

.public-register .page-head {
  padding-top: 18px;
}

.main.public-register {
  padding-right: 0;
  padding-left: 0;
}

.public-register .passport-hero {
  overflow: hidden;
}

.public-register .passport-hero h1 {
  font-size: clamp(30px, 8.6vw, 42px);
}

.public-register .passport-hero p {
  max-width: 330px;
  margin: 24px auto 34px;
  font-size: clamp(18px, 4.6vw, 22px);
}

.public-register .back-link {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 18px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 3px;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.access-card {
  border: 1px solid var(--line);
  padding: 34px 28px;
  background: rgba(0, 0, 0, 0.84);
}

.access-card h1 {
  font-size: clamp(48px, 13vw, 78px);
}

.access-card p {
  margin: 28px 0;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  padding: 0 15px;
  color: var(--text);
  background: #050505;
  font-size: 18px;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 2px !important;
  text-transform: uppercase;
}

.check-row input {
  width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  accent-color: var(--red);
}

.register-check {
  margin-top: -10px;
}

.hero {
  display: grid;
  gap: 30px;
  min-height: calc(100vh - 76px);
  padding: 74px 0 78px;
  align-content: center;
  text-align: center;
}

.main-logo {
  display: block;
  width: min(52vw, 360px);
  height: auto;
  margin: 0 auto;
}

.kicker,
.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 9px;
  text-transform: uppercase;
}

.no-break-word {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.eyebrow .no-break-word {
  letter-spacing: 3px;
}

.lead {
  max-width: 670px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: clamp(22px, 4.2vw, 30px);
  line-height: 1.55;
}

.split-actions,
.passport-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 560px);
  margin: 0 auto;
}

.split-actions {
  grid-template-columns: 1fr;
  width: min(100%, 720px);
}

.home-buttons {
  gap: 0;
}

.primary,
.secondary {
  min-height: 76px;
  padding: 0 18px;
  border-radius: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.2;
}

.action-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.primary {
  border: 1px solid var(--red);
  background: var(--red);
}

.primary:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--dim);
  background: #151515;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.08);
}

.section-grid {
  display: grid;
  gap: 22px;
  padding: 22px 0 64px;
}

.section-card,
.passport-entry,
.event-card,
.event-detail-card,
.benefit-card,
.profile-card,
.register-form,
.scan-card {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
}

.section-card {
  display: block;
  width: 100%;
  min-height: 186px;
  padding: 44px 40px;
  color: inherit;
  text-align: left;
}

.static-card {
  cursor: default;
}

.casa-links {
  padding-bottom: 26px;
}

.casa-fechas-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78)),
    url("./assets/backgrounds/casa-proximas-marquesina.jpg");
  background-position: center;
  background-size: cover;
}

.casa-fechas-card .eyebrow,
.casa-fechas-card h3,
.casa-fechas-card p,
.casa-fechas-card .enter {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.section-card.casa-fechas-card .eyebrow {
  color: var(--red);
}

.casa-historia-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 54%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82)),
    url("./assets/backgrounds/historia-casa-mistica.jpg");
  background-position: center;
  background-size: cover;
}

.casa-historia-card .eyebrow,
.casa-historia-card h3,
.casa-historia-card p,
.casa-historia-card .enter {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.section-card.casa-historia-card .eyebrow {
  color: var(--red);
}

.pueblo-links {
  padding-top: 0;
}

.griselda-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)),
    url("./assets/backgrounds/griselda-cuaderno-vitral.png");
  background-position: center;
  background-size: cover;
}

.griselda-card .eyebrow,
.griselda-card h3,
.griselda-card p,
.griselda-card .enter {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.section-card.griselda-card .eyebrow {
  color: var(--red);
}

.gente-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.52) 54%, rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.82)),
    url("./assets/backgrounds/gente-busca-gente-bombistica.jpg");
  background-position: center;
  background-size: cover;
}

.gente-card .eyebrow,
.gente-card h3,
.gente-card p,
.gente-card .enter {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.section-card.gente-card .eyebrow {
  color: var(--red);
}

.section-card .eyebrow {
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  margin-top: 24px;
  font-size: clamp(58px, 15vw, 112px);
}

h3 {
  margin-top: 26px;
  font-size: clamp(35px, 9vw, 56px);
}

p {
  color: var(--muted);
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.45;
}

.section-card p,
.benefit-card p,
.profile-card p,
.passport-entry p {
  font-size: 23px;
}

.enter,
.enter-button,
.back-link {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.enter {
  margin-top: 28px;
}

.enter-button,
.back-link {
  border: 0;
  background: transparent;
}

.section-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 28px 0 4px;
  border: 1px solid rgba(237, 27, 49, 0.45);
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-back span {
  color: var(--red);
  font-size: 18px;
  line-height: 1;
}

.section-back strong {
  font: inherit;
}

.section-bottom-nav {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 4px 40px 16px;
}

.section-bottom-nav .section-back {
  width: min(100%, 360px);
  min-height: 72px;
  justify-content: center;
  margin: 0 auto;
  font-size: 15px;
  letter-spacing: 4px;
}

.passport-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 64px;
  padding: 34px 40px;
}

.page-head {
  padding: 86px 0 54px;
}

.page-head.compact {
  padding-bottom: 26px;
}

.page-head p {
  max-width: 740px;
}

.red {
  color: var(--red);
}

.social-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-note a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(237, 27, 49, 0.5);
  padding: 0 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(237, 27, 49, 0.55);
  border-radius: 50%;
}

.social-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link.facebook .social-icon svg,
.social-link.youtube .social-icon svg {
  fill: currentColor;
  stroke: none;
}

.events-marquee {
  position: relative;
  display: grid;
  gap: 24px;
  margin: 10px 0 72px;
  border: 2px solid rgba(237, 27, 49, 0.78);
  padding: 62px 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 16%, rgba(255, 255, 255, 0.035) 84%, transparent),
    repeating-linear-gradient(90deg, rgba(237, 27, 49, 0.09) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 0%, rgba(237, 27, 49, 0.26), transparent 32rem),
    #030303;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 34px rgba(237, 27, 49, 0.22),
    0 28px 80px rgba(0, 0, 0, 0.55);
}

.events-marquee::before,
.events-marquee::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.events-marquee::after {
  inset: 24px;
  border-color: rgba(237, 27, 49, 0.35);
  box-shadow: 0 0 24px rgba(237, 27, 49, 0.18) inset;
}

.marquee-title {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 12px 18px;
  text-align: center;
}

.marquee-title span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 9px;
  text-transform: uppercase;
}

.marquee-title strong {
  font-family: var(--font-title);
  color: var(--text);
  font-size: clamp(36px, 9vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 0 34px rgba(237, 27, 49, 0.32);
}

.marquee-bulbs {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.marquee-bulbs.top {
  top: 18px;
}

.marquee-bulbs.bottom {
  bottom: 18px;
}

.marquee-bulbs span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff1d0;
  box-shadow:
    0 0 7px rgba(255, 241, 208, 0.9),
    0 0 18px rgba(237, 27, 49, 0.55);
}

.marquee-bulbs span:nth-child(2n) {
  background: var(--red);
  box-shadow:
    0 0 8px rgba(237, 27, 49, 0.95),
    0 0 18px rgba(237, 27, 49, 0.5);
}

.events-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
  min-height: 162px;
  padding: 30px 34px;
  border-color: rgba(255, 255, 255, 0.18);
  color: inherit;
  background:
    linear-gradient(90deg, rgba(237, 27, 49, 0.14), rgba(0, 0, 0, 0.74) 34%, rgba(237, 27, 49, 0.08)),
    rgba(0, 0, 0, 0.88);
  text-align: left;
  box-shadow:
    0 0 18px rgba(237, 27, 49, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(237, 27, 49, 0.26);
  pointer-events: none;
}

.date-box {
  display: grid;
  place-items: center;
  min-height: 104px;
  border: 1px solid rgba(237, 27, 49, 0.72);
  background: rgba(0, 0, 0, 0.74);
  box-shadow:
    0 0 16px rgba(237, 27, 49, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.date-box span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
}

.date-box strong {
  font-family: var(--font-title);
  font-size: 56px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.26);
}

.event-card h3 {
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(237, 27, 49, 0.14);
}

.event-meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.arrow {
  color: var(--red);
  font-size: 30px;
}

.event-detail-card {
  padding: 0 54px 54px;
}

.poster-img {
  display: block;
  width: min(100%, 530px);
  margin: 0 auto 46px;
}

.event-detail-card p {
  max-width: 760px;
  margin: 0 auto;
  white-space: pre-line;
}

.simple-page {
  min-height: calc(100vh - 76px);
  padding: 160px 0 0;
}

.simple-page h1 {
  max-width: 900px;
}

.simple-page p {
  max-width: 760px;
  margin-top: 64px;
}

.historia-casa-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 132px);
  margin-top: 24px;
  border: 1px solid rgba(237, 27, 49, 0.48);
  padding: 72px 34px 64px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.86)),
    url("./assets/backgrounds/historia-casa-mistica.jpg");
  background-position: center;
  background-size: cover;
}

.historia-casa-page .eyebrow,
.historia-casa-page h1,
.historia-casa-page p {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.92);
}

.historia-casa-page p {
  color: rgba(243, 240, 238, 0.88);
}

.fogon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 46px;
}

.fogon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-color: rgba(237, 27, 49, 0.56);
  padding: 0 18px;
  color: var(--red);
  background: rgba(237, 27, 49, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.fogon-action:visited,
.fogon-action:hover,
.fogon-action:focus-visible {
  color: var(--red);
}

.quote {
  font-family: Georgia, serif;
  font-style: italic;
}

.passport-tabs {
  display: flex;
  gap: 0;
  margin: 0 -40px;
  padding: 44px 26px 34px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.72);
  scrollbar-width: none;
}

.passport-tabs button {
  flex: 1 0 auto;
  min-height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.passport-tabs button.active {
  color: var(--text);
}

.passport-hero {
  text-align: center;
}

.passport-hero h1 {
  font-size: clamp(56px, 13vw, 96px);
}

.passport-hero p {
  max-width: 760px;
  margin: 38px auto 54px;
}

.benefits-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}

.benefit-bonus-note {
  align-items: center;
  background: rgba(237, 28, 45, 0.14);
  border: 1px solid rgba(237, 28, 45, 0.45);
  display: flex;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
}

.benefit-bonus-note strong {
  color: var(--white);
  display: block;
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefit-bonus-note p {
  margin: 4px 0 0;
}

.redeem-card {
  display: grid;
  gap: 20px;
}

.welcome-gift-card {
  overflow: hidden;
}

.benefit-highlight-card {
  border-color: rgba(237, 27, 49, 0.72);
  box-shadow: 0 0 36px rgba(237, 27, 49, 0.12);
}

.trivia-bomba-card {
  background:
    linear-gradient(135deg, rgba(237, 27, 49, 0.2), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 34%),
    var(--surface);
}

.trivia-form {
  display: grid;
  gap: 14px;
}

.trivia-question {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.42);
}

.trivia-question legend {
  padding: 0 8px 0 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.trivia-question label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.trivia-question input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
}

.trivia-live {
  display: grid;
  gap: 14px;
}

.trivia-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(237, 27, 49, 0.54);
  background: rgba(237, 27, 49, 0.14);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trivia-progress strong {
  min-width: 54px;
  color: var(--red);
  font-size: 1.4rem;
  text-align: right;
}

.trivia-question.active {
  gap: 12px;
}

.trivia-answer {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.trivia-answer:hover,
.trivia-answer:focus-visible {
  border-color: rgba(237, 27, 49, 0.78);
  background: rgba(237, 27, 49, 0.18);
}

.trivia-message {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(237, 27, 49, 0.48);
  color: var(--text);
  background: rgba(237, 27, 49, 0.12);
  line-height: 1.45;
}

.benefit-flyer {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.benefit-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.benefit-redeem-button {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.benefit-redeem-button.redeemed,
.benefit-redeem-button:disabled {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  cursor: default;
}

.benefit-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.redeemed-gift-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(237, 27, 49, 0.62);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(237, 27, 49, 0.26), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.54);
}

.redeemed-gift-badge strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.redeemed-gift-badge p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.gift-icon {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.84);
  background: rgba(237, 27, 49, 0.82);
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, 0.16), 0 0 22px rgba(237, 27, 49, 0.28);
}

.gift-icon::before,
.gift-icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
}

.gift-icon::before {
  top: -2px;
  left: 50%;
  width: 7px;
  height: calc(100% + 4px);
  transform: translateX(-50%);
}

.gift-icon::after {
  top: 13px;
  left: -2px;
  width: calc(100% + 4px);
  height: 7px;
}

.gift-icon.small {
  width: 24px;
  height: 22px;
  border-width: 1px;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.14);
}

.gift-icon.small::before {
  width: 4px;
}

.gift-icon.small::after {
  top: 7px;
  height: 4px;
}

.griselda-intro,
.griselda-note {
  background: rgba(0, 0, 0, 0.68);
}

.griselda-bonus-card {
  margin-top: 22px;
  border-color: rgba(237, 27, 49, 0.72);
  background:
    linear-gradient(135deg, rgba(237, 27, 49, 0.34), rgba(0, 0, 0, 0.78)),
    rgba(0, 0, 0, 0.72);
}

.griselda-bonus-card h2 {
  margin-top: 12px;
  font-size: clamp(46px, 10vw, 82px);
}

.griselda-bonus-card p {
  color: var(--text);
}

.griselda-intro p {
  margin: 18px 0 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 34px);
  font-style: italic;
  line-height: 1.55;
}

.griselda-note {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.griselda-note h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
}

.griselda-note p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.72;
}

.griselda-note .quote {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.griselda-signature {
  margin: 0;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 2px;
  text-align: right;
}

.gente-forum-card {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.gente-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.gente-form textarea {
  min-height: 150px;
  resize: vertical;
}

.gente-message {
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
}

.gente-post-list {
  display: grid;
  gap: 18px;
  padding: 22px 0 64px;
}

.gente-post {
  border: 1px solid var(--line);
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24) 58%, rgba(0, 0, 0, 0.76)),
    url("./assets/backgrounds/gente-foro-pared-bombistica.jpg");
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(8px);
}

.gente-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.gente-post-head strong,
.gente-reply strong {
  color: var(--text);
  font-weight: 900;
}

.gente-post-head span,
.gente-reply span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.gente-post p,
.gente-reply p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 4vw, 24px);
  overflow-wrap: anywhere;
}

.gente-replies {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.gente-reply {
  border-left: 2px solid rgba(237, 27, 49, 0.5);
  padding: 12px 0 12px 16px;
}

.gente-reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.gente-reply-form input {
  min-width: 0;
}

.gente-reply-form button {
  min-height: 46px;
  border: 1px solid rgba(237, 27, 49, 0.56);
  padding: 0 14px;
  color: var(--text);
  background: rgba(237, 27, 49, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.redeem-cost {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 46px;
  border: 1px solid rgba(237, 27, 49, 0.64);
  padding: 0 14px;
  color: var(--text);
  background: rgba(237, 27, 49, 0.16);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.benefit-card,
.profile-card,
.register-form,
.scan-card {
  padding: 44px 34px;
}

.register-form {
  display: grid;
  gap: 30px;
  margin-bottom: 64px;
}

.photo-field {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgba(237, 27, 49, 0.58);
  border-radius: 50%;
  color: var(--muted);
  background: #0a0a0a;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.profile-photo.small {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-button {
  display: inline-grid;
  min-height: 52px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.upload-button input {
  display: none;
}

.photo-required-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.profile-alert {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(237, 27, 49, 0.55);
  background: rgba(237, 27, 49, 0.11);
}

.profile-alert strong {
  color: var(--text);
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.profile-alert p {
  margin: 0;
  color: var(--muted);
}

.profile-upload-button {
  margin-top: 18px;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.field-grid input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  padding: 0 15px;
  color: var(--text);
  background: #050505;
  font-size: 18px;
}

.full-button {
  width: 100%;
}

.passport-profile-layout {
  display: grid;
  gap: 22px;
}

.passport-profile-single {
  padding-bottom: 64px;
}

.passport-id-layout,
.profile-dashboard {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}

.passport-id-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(760px, 132vw);
  display: grid;
  align-content: end;
  border-color: rgba(235, 31, 48, 0.55);
  background: #050000;
  --level-accent: rgba(237, 27, 49, 0.64);
  --level-deep: rgba(0, 0, 0, 0.92);
  --level-glow: rgba(237, 27, 49, 0.22);
}

.profile-summary-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-content: end;
  border-color: rgba(235, 31, 48, 0.42);
  background: #050000;
  --level-accent: rgba(237, 27, 49, 0.64);
  --level-deep: rgba(0, 0, 0, 0.92);
  --level-glow: rgba(237, 27, 49, 0.22);
}

.passport-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  pointer-events: none;
}

.passport-id-card::before,
.profile-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, var(--level-glow), transparent 34%),
    linear-gradient(135deg, transparent 0%, var(--level-accent) 42%, transparent 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44) 38%, var(--level-deep));
  mix-blend-mode: normal;
}

.passport-id-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--level-accent), rgba(255, 255, 255, 0.3) 34%);
  box-shadow: inset 0 0 34px var(--level-glow);
}

.passport-id-card .profile-top,
.passport-id-card > p,
.passport-id-card .bomba-level-panel,
.passport-id-card .profile-points-line,
.profile-summary-card .profile-top,
.profile-summary-card .profile-alert,
.profile-summary-card .profile-upload-button,
.profile-summary-card .profile-points-line,
.profile-summary-card .bomba-level-panel {
  position: relative;
  z-index: 2;
}

.passport-id-card .profile-top {
  align-items: end;
}

.passport-id-card > p {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}

.passport-id-card .profile-photo {
  border-color: rgba(255, 255, 255, 0.40);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.passport-id-card .bomba-level-panel {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
}

.passport-id-code {
  max-width: 100%;
  font-size: clamp(34px, 9vw, 54px) !important;
  overflow-wrap: anywhere;
}

.profile-dashboard .profile-card {
  align-self: stretch;
}

.passport-main-card,
.passport-qr-card {
  align-self: stretch;
}

.passport-qr-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(235, 31, 48, 0.52);
  --level-accent: rgba(237, 27, 49, 0.58);
  --level-deep: rgba(0, 0, 0, 0.84);
  --level-glow: rgba(237, 27, 49, 0.24);
  background:
    radial-gradient(circle at 18% 16%, var(--level-glow), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), var(--level-deep)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), var(--level-accent) 54%, rgba(0, 0, 0, 0.78)),
    url("./assets/backgrounds/pasaporte-dsc9917.jpg");
  background-position: 78% 42%;
  background-size: cover;
}

.level-bomba-inicial {
  --level-accent: rgba(237, 27, 49, 0.58);
  --level-deep: rgba(5, 0, 0, 0.94);
  --level-glow: rgba(237, 27, 49, 0.22);
}

.level-bomba-encendida {
  --level-accent: rgba(255, 50, 42, 0.68);
  --level-deep: rgba(23, 0, 0, 0.94);
  --level-glow: rgba(255, 75, 36, 0.34);
}

.level-bomba-ritual {
  --level-accent: rgba(164, 42, 220, 0.64);
  --level-deep: rgba(13, 0, 20, 0.94);
  --level-glow: rgba(199, 54, 255, 0.28);
}

.level-bomba-de-la-casa {
  --level-accent: rgba(214, 148, 54, 0.66);
  --level-deep: rgba(18, 9, 0, 0.94);
  --level-glow: rgba(255, 180, 76, 0.26);
}

.level-bomba-insignia {
  --level-accent: rgba(24, 196, 204, 0.58);
  --level-deep: rgba(0, 16, 18, 0.94);
  --level-glow: rgba(38, 229, 237, 0.24);
}

.level-bomba-leyenda {
  --level-accent: rgba(210, 216, 224, 0.58);
  --level-deep: rgba(10, 10, 12, 0.94);
  --level-glow: rgba(218, 228, 240, 0.20);
}

.level-bomba-mitica {
  --level-accent: rgba(202, 33, 66, 0.68);
  --level-deep: rgba(20, 0, 7, 0.94);
  --level-glow: rgba(247, 194, 73, 0.28);
}

.level-bomba-maxima {
  --level-accent: rgba(228, 177, 67, 0.78);
  --level-deep: rgba(0, 0, 0, 0.96);
  --level-glow: rgba(255, 207, 88, 0.34);
}

.passport-qr-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.passport-qr-card .passport-code-box {
  position: relative;
  z-index: 1;
}

.profile-head p {
  max-width: 680px;
}

.profile-info-grid {
  display: grid;
  gap: 22px;
  padding: 22px 0 64px;
}

.profile-section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.profile-section-head h2,
.profile-card h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(36px, 8vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}

.profile-points-line {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.profile-points-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.profile-points-line strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: clamp(72px, 18vw, 110px);
  line-height: 0.9;
}

.profile-refresh-button {
  min-height: 44px;
  width: fit-content;
  border: 1px solid rgba(237, 27, 49, 0.55);
  padding: 0 14px;
  color: var(--text);
  background: rgba(237, 27, 49, 0.14);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.bomba-level-panel {
  margin-top: 26px;
  border: 1px solid rgba(237, 27, 49, 0.45);
  padding: 20px;
  background: rgba(237, 27, 49, 0.08);
}

.bomba-level-panel span {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bomba-level-panel strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-title);
  font-size: clamp(34px, 8vw, 56px);
  line-height: 0.92;
  text-transform: uppercase;
}

.bomba-level-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.bomba-level-panel.compact {
  margin-top: 22px;
  padding: 16px;
}

.bomba-level-panel.compact strong {
  font-size: clamp(28px, 7vw, 44px);
}

.profile-form {
  display: grid;
  gap: 26px;
}

.photo-field.compact {
  justify-items: start;
}

.staff-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}

.admin-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}

.stat-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-title);
  font-size: 76px;
  line-height: 1;
}

.profile-top,
.scan-person {
  display: flex;
  align-items: center;
  gap: 22px;
}

.scan-person {
  align-items: flex-start;
  margin: 28px 0;
}

.passport-code-box {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.fake-qr,
.real-qr {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border: 12px solid #fff;
  color: #000;
  background:
    linear-gradient(90deg, #000 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(#000 10px, transparent 10px) 0 0 / 24px 24px,
    #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.real-qr {
  border: 12px solid #fff;
  background: #fff;
}

.real-qr img,
.real-qr canvas {
  display: block;
  width: 166px !important;
  height: 166px !important;
}

.real-qr span {
  color: #000;
  background: #fff;
  font-size: 16px;
  text-align: center;
}

.empty-state {
  padding: 42px 0;
  color: var(--muted);
  text-align: center;
}

.staff-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.staff-field input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  padding: 0 15px;
  color: var(--text);
  background: #050505;
  font-size: 20px;
}

.history-row {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.history-row strong {
  color: var(--text);
  font-size: 22px;
}

.history-row span,
.history-row small {
  color: var(--muted);
  font-size: 16px;
}

.history-mentions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.history-mention-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.history-medal {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(235, 31, 48, 0.9) 0 28%, transparent 30%);
  box-shadow: 0 0 26px rgba(235, 31, 48, 0.34);
}

.history-medal::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -12px;
  height: 16px;
  border-left: 6px solid rgba(235, 31, 48, 0.75);
  border-right: 6px solid rgba(255, 255, 255, 0.16);
}

.history-mention-row strong {
  display: block;
  color: var(--text);
  font-size: 22px;
}

.history-mention-row p {
  margin: 8px 0 0;
}

.notifications-list {
  display: grid;
  gap: 18px;
  padding-bottom: 64px;
}

.notification-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.82);
}

.notification-card-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 24%, transparent 27%);
}

.notification-card h2 {
  margin: 8px 0 10px;
  font-family: var(--font-title);
  font-size: clamp(28px, 7vw, 48px);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.notification-action {
  margin-top: 14px;
}

.points {
  margin-top: 32px;
  font-family: var(--font-title);
  font-size: 86px;
  line-height: 1;
}

@media (max-width: 740px) {
  h1 {
    font-size: clamp(42px, 12vw, 68px);
  }

  h3 {
    font-size: clamp(30px, 8vw, 46px);
  }

  p {
    font-size: clamp(18px, 4.4vw, 23px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    height: 68px;
    padding: 0 12px;
    gap: 8px;
    overflow: hidden;
  }

  .brand {
    width: 170px;
    max-width: 42vw;
    justify-self: start;
  }

  .desktop-nav {
    min-width: 0;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .nav-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 8px;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .notification-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .main {
    width: 100%;
    max-width: 100%;
    padding: 0 18px 64px;
    overflow-x: clip;
  }

  .logout-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .primary,
  .secondary {
    min-height: 64px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 15px;
    letter-spacing: 1.8px;
  }

  .section-card,
  .passport-entry,
  .benefit-card,
  .profile-card,
  .register-form,
  .scan-card,
  .event-detail-card {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 58px;
  }

  .main-logo {
    width: min(48vw, 210px);
  }

  .lead {
    margin-top: 24px;
  }

  .kicker,
  .eyebrow {
    letter-spacing: 4px;
  }

  .section-card {
    min-height: 156px;
  }

  .section-card p,
  .benefit-card p,
  .profile-card p,
  .passport-entry p {
    font-size: 19px;
  }

  .page-head,
  .simple-page,
  .passport-hero,
  .profile-card,
  .benefit-card,
  .section-card {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .field-grid input,
  .login-form input,
  .staff-field input {
    font-size: 16px;
  }

  .event-card {
    grid-template-columns: 74px 1fr;
    gap: 14px;
    min-height: 146px;
    padding: 24px 18px;
  }

  .event-card h3 {
    font-size: 24px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .events-marquee {
    margin-right: -10px;
    margin-left: -10px;
    padding: 58px 18px;
  }

  .marquee-bulbs {
    left: 18px;
    right: 18px;
  }

  .marquee-bulbs span {
    width: 8px;
    height: 8px;
  }

  .date-box {
    min-height: 78px;
  }

  .date-box strong {
    font-size: 40px;
  }

  .event-detail-card {
    padding-top: 0;
    padding-bottom: 42px;
  }

  .passport-entry {
    display: grid;
  }
}

@media (min-width: 820px) {
  .split-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid,
  .passport-profile-layout,
  .passport-id-layout,
  .profile-dashboard,
  .staff-grid,
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
