:root {
  --bg-dark: #02162e;
  --bg-dark-2: #031127;
  --cyan: #2ad9ff;
  --cyan-soft: rgba(42, 217, 255, 0.22);
  --green: #9bd320;
  --green-soft: rgba(155, 211, 32, 0.12);
  --white: #ffffff;
  --text-soft: rgba(255,255,255,0.88);
  --text-muted: rgba(255,255,255,0.68);
  --line: rgba(88, 231, 255, 0.28);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: #02162e;
  overscroll-behavior: none;
}

body {
  margin: 0;
  height: calc(var(--vh, 1dvh) * 100);
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 133, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 255, 204, 0.10), transparent 30%),
    linear-gradient(180deg, #020f22 0%, #041730 100%);
  font-family: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--white);
  padding: clamp(0px, calc(var(--vh, 1vh) * 1), 12px) 16px;
}

.canvas {
  position: relative;
  width: min(430px, 100%);
  max-height: 100%;
}

.content {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  padding: clamp(0px, calc(var(--vh, 1dvh) * 0.5), 8px) clamp(14px, 4vw, 26px);
}

.pass-card {
  position: relative;
  width: 100%;
  max-height: 100%;
  padding: clamp(14px, calc((var(--vh, 1dvh) * 5.11) - 3.46px), 42.5px) clamp(16px, 5vw, 26px) clamp(10px, calc((var(--vh, 1dvh) * 3.61) - 2.45px), 30px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(6, 24, 48, 0.74), rgba(6, 20, 41, 0.78)),
    rgba(3, 22, 45, 0.48);
  border: 1px solid rgba(140, 238, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(43, 206, 255, 0.08) inset,
    0 0 25px rgba(20, 190, 255, 0.18),
    0 0 55px rgba(14, 74, 156, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-x: hidden;
  overflow-y: auto;
}

.pass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.6px;
  background: linear-gradient(135deg, rgba(42, 217, 255, 0.9), rgba(125, 255, 244, 0.16), rgba(155, 211, 32, 0.65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.92;
}

.pass-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 18%, transparent 32% 100%);
  border-radius: 22px;
  opacity: 0.30;
  pointer-events: none;
}

.top-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto clamp(12px, calc((var(--vh, 1dvh) * 4.81) - 3.26px), 40px);
  width: fit-content;
  min-width: 240px;
  padding: clamp(5px, calc((var(--vh, 1dvh) * 1.35) - 0.92px), 11.25px) 22px;
  border-radius: 999px;
  border: 1px solid rgba(42, 217, 255, 0.28);
  color: #aeeeff;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  background: rgba(4, 28, 54, 0.42);
  box-shadow: inset 0 0 18px rgba(12, 84, 140, 0.18);
}

.top-label::before,
.top-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(42,217,255,0.75), transparent);
  transform: translateY(-50%);
}

.top-label::before { left: -68px; }
.top-label::after  { right: -68px; }

.logo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto clamp(8px, calc((var(--vh, 1dvh) * 4.21) - 2.85px), 35px);
  text-align: center;
  filter: drop-shadow(0 0 16px rgba(36, 193, 255, 0.10));
}

.logo-wrap img {
  width: clamp(136px, calc((var(--vh, 1dvh) * 37.55) - 25.48px), 312.5px);
  height: auto;
}

/*.logo-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(20, 187, 255, 0.30), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}*/

.subtitle {
  margin-top: -13px;
  color: var(--text-soft);
  font-size: 10px;
  /*font-weight: 500;
  letter-spacing: 0.01em;*/
}

.welcome {
  margin: 0;
  font-size: clamp(12px, calc((var(--vh, 1dvh) * 2.7) - 1.83px), 22.5px);
  color: var(--text-soft);
  font-weight: 300;
}

.guest {
  margin: clamp(3px, calc((var(--vh, 1dvh) * 1.5) - 1.02px), 12.5px) 0 clamp(5px, calc((var(--vh, 1dvh) * 1.8) - 1.22px), 15px);
  /*font-size: clamp(36px, 8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;*/
  line-height: 1.2;
  font-size: clamp(17px, calc((var(--vh, 1dvh) * 3.76) - 2.55px), 31.25px);
  text-wrap: balance;
  text-shadow: 0 0 14px rgba(255,255,255,0.08);
}

.accent-line {
  width: 150px;
  height: 6px;
  margin: 0 0 clamp(8px, calc((var(--vh, 1dvh) * 3) - 2.04px), 25px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42,217,255,0.12), rgba(42,217,255,1), rgba(155,211,32,0.6));
  box-shadow: 0 0 18px rgba(42, 217, 255, 0.35);
}

.event {
  margin: 0 0 clamp(10px, calc((var(--vh, 1dvh) * 3.91) - 2.65px), 32.5px);
  font-size: clamp(12px, calc((var(--vh, 1dvh) * 2.7) - 1.83px), 22.5px);
  font-weight: 600;
  color: #ffffff;
}

.event strong {
  color: var(--green);
  font-size: clamp(14px, calc((var(--vh, 1dvh) * 3) - 2.04px), 25px);
}

.folio-box {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(10px, calc((var(--vh, 1dvh) * 3.91) - 2.65px), 32.5px);
  padding: clamp(8px, calc((var(--vh, 1dvh) * 2.1) - 1.43px), 17.5px) 16px;
  width: min(92%, 320px);
  border-radius: 18px;
  border: 1px solid rgba(42, 217, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 35, 70, 0.34), rgba(0, 18, 41, 0.40)),
    rgba(4, 27, 49, 0.45);
  box-shadow: inset 0 0 18px rgba(13, 93, 164, 0.15);
  position: relative;
}

.folio-box::before,
.folio-box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(42, 217, 255, 0.75);
  opacity: 0.85;
}

.folio-box::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 16px 0 0 0;
}

.folio-box::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 16px 0;
}

.lock-badge {
  width: clamp(36px, calc((var(--vh, 1dvh) * 8.11) - 5.5px), 67.5px);
  height: clamp(36px, calc((var(--vh, 1dvh) * 8.11) - 5.5px), 67.5px);
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(155, 211, 32, 0.35);
  background: rgba(8, 33, 55, 0.65);
  box-shadow: 0 0 22px rgba(42, 217, 255, 0.10);
}

.folio-label {
  margin: 0 0 4px;
  color: #c4f6ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.folio-number {
  font-size: clamp(17px, calc((var(--vh, 1dvh) * 3.91) - 2.65px), 32.5px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.divider {
  position: relative;
  height: 1px;
  margin: clamp(3px, calc((var(--vh, 1dvh) * 0.9) - 0.61px), 7.5px) 0 clamp(10px, calc((var(--vh, 1dvh) * 3.3) - 2.24px), 27.5px);
  background: linear-gradient(90deg, transparent, rgba(42, 217, 255, 0.45) 10%, rgba(42, 217, 255, 0.45) 90%, transparent);
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #45e8ff;
  box-shadow: 0 0 16px rgba(69, 232, 255, 0.9);
}


.foot-note {
  margin-top: clamp(7px, calc((var(--vh, 1dvh) * 2.7) - 1.83px), 22.5px);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


@media (max-width: 430px) {
  /* Chrome en iOS y Edge en Android (entre otros) dibujan su propia barra
     inferior encima del contenido sin que la página pueda detectarlo
     (a diferencia de Safari/el navegador nativo). No hay forma de medir
     eso desde CSS/JS, así que dejamos un margen de seguridad fijo abajo
     para que el pase nunca llegue a esa zona de riesgo. */
  body {
    padding-top: clamp(0px, calc(var(--vh, 1vh) * 1), 8px);
    padding-right: 0;
    padding-bottom: calc(clamp(0px, calc(var(--vh, 1vh) * 1), 8px) + 72px);
    padding-left: 0;
  }
  .canvas { width: 100vw; border-radius: 0; }
  .info-grid { gap: 10px; }
  .info-item { grid-template-columns: 34px 1fr; gap: 8px; }
  .icon { width: 34px; height: 34px; }
  .info-text strong { font-size: 13px; }
}

/* Forzar vista vertical en celulares: si el usuario gira el teléfono a
   horizontal, rotamos el documento -90deg para que siga viéndose en
   portrait. No aplica en monitores de escritorio (sin puntero táctil). */
@media screen and (orientation: landscape) and (max-width: 926px) and (hover: none) and (pointer: coarse) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
  body {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }
}