:root {
  --font-body: "Mutone", "Manrope", sans-serif;
  --sand-50: #fff3f0;
  --sand-100: #ffe0da;
  --sand-200: #ffc5bb;
  --sand-300: #ff9787;
  --earth-600: #c92724;
  --earth-700: #981e1c;
  --earth-900: #0b0708;
  --stone-50: #faf7f6;
  --stone-100: #f1ebea;
  --stone-200: #ddd4d5;
  --stone-300: #c7b9bb;
  --stone-500: #6a6062;
  --stone-700: #241d1f;
  --forest-600: #13824f;
  --forest-700: #0f6a3f;
  --blue-700: #214c67;
  --orange-600: #ff6b3d;
  --ochre-700: #9a5a09;
  --wine-700: #741f27;
  --green-500: #13824f;
  --green-100: #e8f6ef;
  --red-500: #c92724;
  --shadow-soft: 0 18px 40px rgba(11, 7, 8, 0.14);
  --shadow-strong: 0 28px 60px rgba(11, 7, 8, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

@font-face {
  font-family: "Mutone";
  src: url("../Mutone.woff2") format("woff2"),
       url("../Mutone.ttf") format("truetype"),
       url("../Mutone.otf") format("opentype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--stone-700);
  background: linear-gradient(180deg, #f3d9db 0 7.5rem, #faf5ef 7.5rem 100%);
  overflow: hidden;
}

/* Tipografía oficial de Brasapporte. Los íconos son SVG, por lo que no se ven afectados. */
body :is(button, input, select, textarea, label, p, span, strong, small, h1, h2, h3, h4, h5, h6, a, li, td, th) {
  font-family: var(--font-body) !important;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-background {
  display: none;
}

.site-background__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
}

.site-background__glow--one {
  width: 28rem;
  height: 28rem;
  top: -10rem;
  right: -8rem;
  background: rgba(201, 39, 36, 0.28);
}

.site-background__glow--two {
  width: 22rem;
  height: 22rem;
  bottom: -8rem;
  left: -6rem;
  background: rgba(11, 7, 8, 0.18);
}

.site-background__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 29, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 31, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.phone-frame {
  width: min(100%, 430px);
  height: min(calc(100vh - 3rem), 920px);
  height: min(calc(100svh - 3rem), 920px);
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  background: #fbf6f1;
  box-shadow: 0 24px 56px rgba(63, 24, 15, 0.14);
  border: 1px solid rgba(201, 39, 36, 0.08);
  overflow: hidden;
  position: relative;
}

.app-root {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.app-shell {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fbf6f1;
}

.auth-shell {
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(201, 39, 36, 0.24), transparent 30%),
    linear-gradient(180deg, #fff7f5 0%, #f7edeb 100%);
}

.auth-shell--scrollable {
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-shell__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(11, 7, 8, 0.12), transparent 30%),
    linear-gradient(rgba(201, 39, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 39, 36, 0.05) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.4rem;
  border-radius: 2rem;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(139, 90, 43, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.auth-panel--loading {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.auth-copy {
  margin-top: 1.25rem;
}

.auth-copy h1,
.auth-copy p,
.auth-divider p,
.auth-feedback,
.auth-loading p {
  margin: 0;
}

.auth-copy h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.3rem;
  line-height: 0.95;
  color: var(--earth-900);
}

.auth-copy p:last-child {
  margin-top: 0.7rem;
  color: var(--stone-500);
  line-height: 1.6;
}

.auth-switch {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(43, 26, 15, 0.06);
}

.auth-switch__item {
  padding: 0.8rem 0.75rem;
  border-radius: 999px;
  color: var(--stone-500);
  font-weight: 800;
}

.auth-switch__item.is-active {
  color: white;
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  box-shadow: 0 12px 22px rgba(107, 68, 33, 0.2);
}

.auth-form {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.auth-form label span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--stone-500);
  font-size: 0.76rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(75, 64, 54, 0.12);
  background: rgba(255, 255, 255, 0.95);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  border-color: rgba(139, 90, 43, 0.28);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.14);
}

.auth-feedback {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.auth-feedback--error {
  color: #8d2d25;
  background: rgba(216, 79, 68, 0.12);
  border: 1px solid rgba(216, 79, 68, 0.18);
}

.auth-feedback--success {
  color: #1d6d3e;
  background: rgba(47, 158, 88, 0.12);
  border: 1px solid rgba(47, 158, 88, 0.18);
}

.auth-divider {
  margin: 1.1rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--stone-500);
  font-size: 0.8rem;
}

.auth-divider--tight {
  margin-top: 1rem;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: rgba(75, 64, 54, 0.12);
}

.google-button {
  width: 100%;
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background: white;
  color: var(--stone-700);
  border: 1px solid rgba(75, 64, 54, 0.12);
  box-shadow: 0 10px 18px rgba(43, 26, 15, 0.06);
  font-weight: 800;
}

.google-button[disabled],
.primary-button[disabled] {
  cursor: wait;
  opacity: 0.75;
}

.google-button__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  overflow: hidden;
}

.google-button__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--stone-500);
}

.auth-loading__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--earth-600);
  box-shadow: 0 0 0 0 rgba(139, 90, 43, 0.3);
  animation: pulse-dot 1.4s infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.12rem 1rem 0.2rem;
  background: linear-gradient(180deg, #d22827 0%, #cb2524 58%, #bf2322 100%);
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.chat-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand__mark {
  width: 4.65rem;
  height: 4.65rem;
  padding: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  background: transparent;
  box-shadow: none;
}

.brand__title,
.brand__subtitle,
.passport-card__id,
.stamp-card__status,
.receipt-card__meta,
.view-headline p,
.pavilion-card__summary p,
.floating-cart__meta,
.chat-header p,
.purchase-success p,
.section-title,
.section-subtitle,
.checkout-summary__label,
.checkout-form label span {
  margin: 0;
}

.brand__title {
  font-weight: 800;
  color: var(--stone-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__subtitle {
  font-size: 0.78rem;
  color: var(--stone-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-brand .brand__mark {
  width: 4.15rem;
  height: 4.15rem;
  padding: 0.2rem;
}

.topbar .brand__title {
  color: #fff;
}

.topbar .brand__subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(43, 26, 15, 0.06);
  color: var(--stone-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange-600);
  box-shadow: 0 0 0 0 rgba(209, 107, 36, 0.45);
  animation: pulse-dot 1.6s infinite;
}

.topbar .status-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.topbar .status-pill__dot {
  background: #ffd36b;
  box-shadow: 0 0 0 0 rgba(255, 211, 107, 0.4);
}

.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 7rem;
}

.app-content--immersive {
  overflow: hidden;
  padding-bottom: 0;
}

.view,
.chat-view {
  min-height: 100%;
}

.chat-view,
.chat-messages {
  min-height: 0;
}

.view {
  padding: 1rem;
  animation: fade-in 0.3s ease-out;
}

.view-headline {
  margin-bottom: 1.25rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 0.4rem;
}

.view-headline h2,
.passport-card__title,
.chat-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.view-headline h2 {
  font-size: 2rem;
  color: var(--earth-600);
  line-height: 1;
}

.view-headline p:last-child {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--stone-500);
}

.passport-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 24%),
    linear-gradient(135deg, #f5d57f, #c28a25 58%, #8f5a12);
  color: #281606;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(143, 90, 18, 0.18);
}

.passport-card__bone {
  position: absolute;
  right: -0.25rem;
  top: -0.45rem;
  opacity: 0.12;
}

.passport-card__bone img {
  width: 7.5rem;
  height: auto;
  display: block;
}

.passport-card__profile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.passport-card__avatar {
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 231, 0.42);
  border: 2px solid rgba(255, 248, 231, 0.62);
  backdrop-filter: blur(6px);
}

.passport-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.passport-card__title {
  font-size: 2rem;
  line-height: 0.92;
}

.passport-card__id {
  margin-top: 0.35rem;
  color: rgba(40, 22, 6, 0.76);
}

.badge-inline {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(40, 22, 6, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-block {
  margin-top: 1.35rem;
}

.section-block--spaced + .section-block--spaced {
  margin-top: 1.5rem;
}

.section-title,
.section-subtitle,
.modal-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title,
.section-subtitle {
  color: var(--stone-700);
  font-weight: 800;
}

.section-title {
  margin-bottom: 1rem;
}

.section-title__icon {
  color: var(--earth-600);
}

.section-subtitle {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(75, 64, 54, 0.12);
  margin-bottom: 0.95rem;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.stamp-card {
  padding: 1rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid rgba(75, 64, 54, 0.08);
  text-align: center;
  opacity: 0.68;
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.stamp-card.is-unlocked {
  border-color: rgba(139, 90, 43, 0.4);
  background: linear-gradient(180deg, #fff7ec, #fff1dd);
  opacity: 1;
  transform: translateY(-2px);
}

.stamp-card.is-interactive {
  cursor: pointer;
}

.stamp-card.is-interactive:active {
  transform: scale(0.98);
}

.stamp-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 0.65rem;
  font-size: 2rem;
  background: #ddd4ca;
  filter: grayscale(1);
  box-shadow: inset 0 4px 10px rgba(43, 26, 15, 0.12);
}

.stamp-card.is-unlocked .stamp-card__icon {
  color: white;
  filter: none;
}

.stamp-card__image {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.stamp-card__icon--orange {
  background: linear-gradient(135deg, #dd7c22, #b54f17);
}

.stamp-card__icon--ochre {
  background: linear-gradient(135deg, #af8430, #8a5e18);
}

.stamp-card__icon--blue {
  background: linear-gradient(135deg, #406b92, #244768);
}

.stamp-card__icon--green {
  background: linear-gradient(135deg, #4b8d4e, #2e6536);
}

.stamp-card__icon--wine {
  background: linear-gradient(135deg, #a33e62, #6f203f);
}

.stamp-card__icon--red {
  background: linear-gradient(135deg, #eb4a39, #981e1c);
}

.stamp-card__icon--amber {
  background: linear-gradient(135deg, #f7b534, #c97700);
}

.stamp-card__icon--charcoal {
  background: linear-gradient(135deg, #5b5556, #1f1a1b);
}

.stamp-card__name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
}

.stamp-card__status {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stamp-card__status--muted {
  color: var(--stone-500);
}

.success-banner {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e6f8ea, #d8f0dd);
  border: 1px solid rgba(47, 158, 88, 0.25);
  animation: soft-bounce 1.8s ease-in-out infinite;
}

.success-banner h4,
.success-banner p {
  margin: 0;
}

.success-banner h4 {
  color: var(--forest-700);
  font-weight: 800;
}

.success-banner p {
  margin-top: 0.25rem;
  color: rgba(47, 98, 54, 0.9);
  font-size: 0.9rem;
}

.passport-reward {
  margin-top: 0.95rem;
  display: flex;
  justify-content: center;
}

.passport-reward .primary-button {
  min-width: 11rem;
}

.modal-card--reward {
  max-width: 25rem;
}

.reward-ticket {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(75, 64, 54, 0.18);
  background: linear-gradient(180deg, #fff9ee, #fff3dd);
  text-align: center;
}

.reward-ticket img {
  width: min(100%, 13rem);
  margin: 0 auto;
}

.reward-ticket h4,
.reward-ticket p {
  margin: 0;
}

.reward-ticket h4 {
  margin-top: 0.85rem;
  color: var(--stone-700);
  font-size: 1rem;
}

.reward-ticket p {
  margin-top: 0.35rem;
  color: var(--stone-500);
  line-height: 1.5;
  font-size: 0.88rem;
}

.reward-ticket__code {
  margin-top: 0.85rem;
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(75, 64, 54, 0.08);
  color: var(--stone-700);
  font-size: 0.74rem;
  font-weight: 800;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.experience-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(75, 64, 54, 0.08);
  box-shadow: 0 16px 30px rgba(43, 26, 15, 0.08);
}

.experience-card--photo {
  min-height: min(76vh, 52rem);
}

.photo-view-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.9rem;
}

.view--immersive-experience {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.55rem;
  overflow: hidden;
}

.immersive-experience__actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
}

.ghost-button--immersive {
  color: var(--stone-700);
  background: rgba(43, 26, 15, 0.08);
}

.photo-option-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(75, 64, 54, 0.08);
  box-shadow: 0 16px 30px rgba(43, 26, 15, 0.08);
}

.photo-option-card__frame {
  position: relative;
  display: block;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(75, 64, 54, 0.08);
  background: #120d09;
  box-shadow: 0 14px 24px rgba(43, 26, 15, 0.12);
}

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

.photo-option-card__frame--horizontal {
  width: min(100%, 18rem);
  aspect-ratio: 16 / 9;
}

.photo-option-card__overlay-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 8.25rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-500), #1d8d49);
  box-shadow: 0 12px 22px rgba(29, 141, 73, 0.22);
  backdrop-filter: blur(4px);
}

.photo-option-card__overlay-button--ghost {
  color: var(--stone-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 22px rgba(43, 26, 15, 0.12);
}

.ai-option-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(75, 64, 54, 0.08);
  box-shadow: 0 16px 30px rgba(43, 26, 15, 0.08);
}

.ai-option-card__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: var(--earth-600);
  background: rgba(139, 90, 43, 0.08);
}

.ai-option-card__copy h3,
.ai-option-card__copy p {
  margin: 0;
}

.ai-option-card__copy h3 {
  color: var(--stone-700);
  font-weight: 800;
}

.ai-option-card__copy p {
  margin-top: 0.25rem;
  color: var(--stone-500);
  line-height: 1.5;
  font-size: 0.9rem;
}

.experience-frame {
  width: 100%;
  height: 100%;
  min-height: min(100vh - 8rem, 46rem);
  border: 0;
  display: block;
  background: #120d09;
}

.experience-frame--photo {
  min-height: min(76vh, 52rem);
}

.experience-frame--profile-gallery {
  min-height: min(66svh, 42rem);
  border-radius: 1rem;
}

.experience-frame--immersive {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: 1.1rem;
}

.receipt-card,
.product-card,
.pavilion-card,
.ticket-items,
.checkout-summary,
.modal-card,
.chat-header,
.chat-inputbar,
.pavilion-card__content {
  background: rgba(255, 255, 255, 0.82);
}

.receipt-card,
.product-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(43, 26, 15, 0.06);
  border: 1px solid rgba(75, 64, 54, 0.08);
}

.receipt-card {
  text-align: left;
  transition: transform 0.2s ease;
}

.receipt-card--ticket {
  gap: 0.85rem;
}

.receipt-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.receipt-card:active,
.product-card:active,
.primary-button:active,
.success-button:active,
.icon-button:active,
.bottom-nav__item:active {
  transform: scale(0.98);
}

.receipt-card__title,
.product-card h4,
.pavilion-card h3,
.floating-cart__total,
.purchase-success h3,
.modal-title {
  margin: 0;
}

.receipt-card__title,
.product-card h4,
.pavilion-card h3 {
  font-weight: 800;
  color: var(--stone-700);
}

.receipt-card__meta,
.pavilion-card__summary p,
.checkout-summary__row span,
.ticket-items__row span {
  color: var(--stone-500);
  font-size: 0.8rem;
}

.receipt-card__icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  background: rgba(43, 26, 15, 0.06);
  color: var(--stone-700);
}

.pavilion-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 30px rgba(43, 26, 15, 0.08);
}

.pavilion-card__bar {
  height: 0.4rem;
}

.pavilion-card__bar--orange {
  background: linear-gradient(90deg, #eb882e, #b5521b);
}

.pavilion-card__bar--ochre {
  background: linear-gradient(90deg, #c0943f, #8f6118);
}

.pavilion-card__bar--blue {
  background: linear-gradient(90deg, #4a79a1, #234d71);
}

.pavilion-card__bar--green {
  background: linear-gradient(90deg, #5a9d5d, #2e6536);
}

.pavilion-card__bar--wine {
  background: linear-gradient(90deg, #b44a71, #6f203f);
}

.pavilion-card__bar--red {
  background: linear-gradient(90deg, #f05e50, #b61f1d);
}

.pavilion-card__bar--amber {
  background: linear-gradient(90deg, #f6c24a, #d27b00);
}

.pavilion-card__bar--charcoal {
  background: linear-gradient(90deg, #5a5556, #211b1c);
}

.pavilion-card__content {
  padding: 1rem;
}

.pavilion-card__summary {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.pavilion-card__emoji {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(201, 39, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 39, 36, 0.08);
}

.pavilion-card__summary p {
  margin-top: 0.2rem;
}

.pavilion-card__image {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
}

.pavilion-visual {
  display: block;
}

.pavilion-card .primary-button {
  margin-top: 1rem;
  margin-left: auto;
}

.product-card p {
  margin: 0.3rem 0 0;
  color: var(--earth-600);
  font-weight: 800;
}

.floating-cart {
  position: sticky;
  bottom: 5.75rem;
  z-index: 6;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(24, 20, 17, 0.94);
  color: white;
  box-shadow: 0 18px 40px rgba(24, 20, 17, 0.4);
  animation: slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart__meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.floating-cart__total {
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.view-actions {
  margin-bottom: 1rem;
}

.ghost-button--shop {
  background: rgba(43, 26, 15, 0.08);
  color: var(--stone-700);
}

.notice-banner,
.empty-state {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75, 64, 54, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 20px rgba(43, 26, 15, 0.06);
}

.notice-banner {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.notice-banner--success {
  color: var(--green-500);
  background: rgba(228, 246, 234, 0.92);
}

.notice-banner--info {
  color: var(--blue-700);
  background: rgba(233, 242, 250, 0.92);
}

.notice-banner--error {
  color: var(--red-500);
  background: rgba(253, 237, 236, 0.92);
}

.empty-state {
  text-align: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 0.45rem;
  color: var(--stone-500);
  line-height: 1.55;
}

.primary-button,
.success-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.primary-button {
  padding: 0.9rem 1.25rem;
  color: white;
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  box-shadow: 0 14px 24px rgba(107, 68, 33, 0.25);
}

.primary-button--compact {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

.primary-button--wide,
.success-button--wide {
  width: 100%;
  min-height: 3.4rem;
  border-radius: 1rem;
}

/* Tutorial de bienvenida: los assets transparentes se superponen a la UI real. */
.brasapporte-tutorial {
  position: absolute;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}

.brasapporte-tutorial--guide {
  background: transparent;
}

.brasapporte-tutorial__guide {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
}

.brasapporte-tutorial__guide img {
  display: block;
  width: 100%;
  /* Los artes se diseñaron con el contenido ligeramente más arriba que la
     captura completa del navegador. Se amplía sólo en vertical para que las
     flechas y destacados coincidan con la interfaz real, sin descubrir el
     borde inferior de la pantalla. */
  height: calc(100% + clamp(2rem, 5svh, 3.5rem));
  object-fit: fill;
  transform: translateY(clamp(-3.5rem, -5svh, -2rem));
  pointer-events: none;
  user-select: none;
}

.brasapporte-tutorial--popup {
  padding: 1.25rem;
  background: rgba(38, 18, 10, 0.58);
}

.brasapporte-tutorial__popup-card {
  display: grid;
  width: min(82vw, 19rem);
  max-width: 100%;
  gap: 0.75rem;
  justify-items: center;
}

.brasapporte-tutorial__popup-card img {
  display: block;
  width: 100%;
  max-height: 58dvh;
  object-fit: contain;
  filter: drop-shadow(0 0.9rem 1.2rem rgba(42, 20, 8, 0.3));
}

.brasapporte-tutorial__popup-action {
  min-width: 10.75rem;
  justify-content: center;
}

.success-button {
  padding: 0.85rem 1.2rem;
  color: white;
  background: linear-gradient(135deg, #35ae61, #1d8d49);
  box-shadow: 0 14px 24px rgba(29, 141, 73, 0.24);
}

.success-button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.ghost-button {
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.topbar .ghost-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ghost-button--dark {
  background: rgba(17, 10, 6, 0.18);
  color: white;
}

.logout-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.language-button {
  flex: 0 0 auto;
  min-width: 3.95rem;
  padding-inline: 0.7rem;
  font-weight: 800;
}

.icon-button {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.icon-button--warm {
  color: var(--earth-600);
  background: #ffedd8;
}

.icon-button--solid {
  color: white;
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  box-shadow: 0 12px 22px rgba(107, 68, 33, 0.22);
}

.icon-button--ghost {
  background: rgba(43, 26, 15, 0.06);
  color: var(--stone-500);
}

.icon-button--overlay {
  color: white;
  background: rgba(0, 0, 0, 0.4);
}

.chat-view {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #faf5ef 0%, #f2ebe3 100%);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(135deg, #9d6733, #754722);
  color: white;
  box-shadow: 0 10px 22px rgba(107, 68, 33, 0.24);
}

.chat-header__identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-header__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--earth-600);
  font-size: 1.2rem;
}

.chat-header h2 {
  font-size: 1.5rem;
}

.chat-header p {
  margin-top: 0.15rem;
  color: rgba(255, 235, 215, 0.88);
  font-size: 0.78rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.chat-row {
  display: flex;
  justify-content: flex-start;
}

.chat-row--user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.85rem 1rem;
  border-radius: 1.3rem 1.3rem 1.3rem 0.35rem;
  background: white;
  color: var(--stone-700);
  border: 1px solid rgba(75, 64, 54, 0.08);
  box-shadow: 0 10px 20px rgba(43, 26, 15, 0.06);
}

.chat-bubble--user {
  border-radius: 1.3rem 1.3rem 0.35rem 1.3rem;
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  color: white;
  border-color: transparent;
}

.chat-bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-inputbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(75, 64, 54, 0.08);
}

.chat-inputbar input,
.checkout-form input {
  width: 100%;
  border: 1px solid transparent;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-inputbar input {
  height: 2.9rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(75, 64, 54, 0.07);
}

.chat-inputbar input:focus,
.checkout-form input:focus {
  border-color: rgba(139, 90, 43, 0.28);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.14);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  padding: 0.28rem 0.45rem calc(0.28rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #d22827 0%, #cb2524 58%, #bf2322 100%);
  backdrop-filter: blur(18px);
  border-top: 0;
  box-shadow: 0 -10px 22px rgba(111, 23, 23, 0.14);
}

.bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
  padding: 0.4rem 0.25rem;
  border-radius: 0.85rem;
  color: rgba(255, 247, 239, 0.8);
  font-size: 0.62rem;
  font-weight: 800;
}

.bottom-nav__item.is-active {
  color: var(--earth-600);
  background: #f8efe5;
}

.bottom-nav__icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
}

.bottom-nav__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.bottom-nav__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.65rem;
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-500);
  color: white;
  font-size: 0.56rem;
  border: 2px solid white;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 14, 10, 0.6);
}

.modal-overlay--scanner {
  background: rgba(0, 0, 0, 0.92);
}

.modal-overlay--experience {
  padding: 0;
  background: rgba(0, 0, 0, 0.92);
}

.modal-card,
.scanner-modal {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

.modal-card {
  max-width: 24rem;
  padding: 1.4rem;
}

.experience-modal {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-card--checkout {
  max-height: 88vh;
  overflow-y: auto;
}

.modal-card__close,
.scanner-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--stone-700);
  margin-bottom: 1.2rem;
}

.modal-card--preferences {
  max-width: 25rem;
}

.modal-copy {
  margin: -0.5rem 0 1rem;
  color: var(--stone-500);
  line-height: 1.55;
  font-size: 0.92rem;
}

.checkout-copy {
  margin-top: 1rem;
}

.checkout-note {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  color: var(--stone-700);
  background: rgba(43, 26, 15, 0.06);
  font-size: 0.86rem;
  font-weight: 700;
}

.preferences-field {
  display: block;
}

.preferences-field + .preferences-field,
.preferences-field + .primary-button {
  margin-top: 0.95rem;
}

.preferences-field span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--stone-500);
}

.preferences-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(75, 64, 54, 0.12);
  background: white;
  color: var(--stone-700);
  appearance: none;
}

.checkout-summary {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75, 64, 54, 0.08);
}

.checkout-summary__label {
  font-size: 0.78rem;
  color: var(--stone-500);
  margin-bottom: 0.65rem;
}

.checkout-summary__row,
.checkout-summary__total,
.ticket-items__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary__row + .checkout-summary__row {
  margin-top: 0.45rem;
}

.checkout-summary__total {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(75, 64, 54, 0.12);
  font-weight: 800;
  color: var(--earth-600);
}

.checkout-form {
  margin-top: 1.1rem;
}

.checkout-form label {
  display: block;
}

.checkout-form label + .checkout-form__grid,
.checkout-form__grid + .success-button {
  margin-top: 1rem;
}

.checkout-form label span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--stone-500);
}

.checkout-form input {
  min-height: 3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: white;
  border-color: rgba(75, 64, 54, 0.12);
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.purchase-success {
  text-align: center;
}

.purchase-success__icon {
  width: 3.45rem;
  height: 3.45rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-500);
}

.purchase-success p {
  margin-top: 0.35rem;
  color: var(--stone-500);
  font-size: 0.9rem;
}

.qr-ticket {
  position: relative;
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(75, 64, 54, 0.2);
  background: white;
  text-align: center;
}

.qr-ticket img {
  width: min(100%, 12rem);
  margin: 0 auto;
}

.qr-ticket p {
  margin: 0.8rem auto 0;
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--stone-500);
  background: rgba(75, 64, 54, 0.08);
}

.qr-ticket__cut {
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-50%);
}

.qr-ticket__cut--left {
  left: -0.75rem;
}

.qr-ticket__cut--right {
  right: -0.75rem;
}

.ticket-items {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75, 64, 54, 0.08);
}

.ticket-items__row {
  justify-content: flex-start;
  gap: 0.55rem;
}

.ticket-items__row + .ticket-items__row {
  margin-top: 0.55rem;
}

.scanner-modal {
  height: 100%;
  color: white;
  background:
    radial-gradient(circle at center, rgba(139, 90, 43, 0.18), transparent 32%),
    transparent;
}

.scanner-stage,
.scanner-success {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.scanner-frame {
  position: relative;
  width: min(70vw, 16rem);
  height: min(70vw, 16rem);
  display: grid;
  place-items: center;
  border-radius: 2rem;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
}

.scanner-frame::before,
.scanner-frame::after {
  content: "";
  position: absolute;
  inset: -0.4rem;
  border-radius: 2.2rem;
  border: 3px solid transparent;
}

.scanner-frame::before {
  border-top-color: white;
  border-left-color: white;
}

.scanner-frame::after {
  border-right-color: white;
  border-bottom-color: white;
}

.scanner-stage__icon {
  opacity: 0.45;
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #b97737, transparent);
  box-shadow: 0 0 20px rgba(185, 119, 55, 0.95);
  animation: scan 2.5s ease-in-out infinite;
}

.scanner-stage h3,
.scanner-success h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.scanner-stage p,
.scanner-success p {
  max-width: 19rem;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.scanner-success__emoji {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 1.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  animation: float 3s ease-in-out infinite;
}

.scanner-success__image {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}

.scanner-success__panel {
  width: min(100%, 22rem);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  animation: bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scanner-success__check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-500);
}

.brand--centered {
  width: 100%;
  justify-content: center;
}

.brand--platform {
  gap: 0.5rem;
}

.topbar .brand--platform .brand__mark {
  width: 3.55rem;
  height: 3.55rem;
}

.brand__separator {
  width: 1px;
  height: 2.15rem;
  background: rgba(255, 255, 255, 0.42);
}

.brand__brasaporte {
  width: 5.25rem;
  height: 2.35rem;
  object-fit: contain;
}

.topbar {
  justify-content: center;
  padding: 0.08rem 1rem 0.16rem;
}

.topbar .brand__mark {
  width: 4.75rem;
  height: 4.75rem;
}

.topbar .brand__header-art {
  display: block;
  width: min(11.8rem, 52vw);
  height: auto;
  max-height: 3.75rem;
  object-fit: contain;
}

.section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.section-header-inline .section-title {
  margin-bottom: 0;
}

.view--passport {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.view--passport .section-block {
  margin-top: 0;
}

.view--passport .section-title {
  font-size: 1.8rem;
  line-height: 1;
  color: #3d2318;
  font-weight: 900;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #231d20;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 227, 229, 0.82);
  color: var(--earth-600);
  font-size: 0.76rem;
  font-weight: 800;
}

.passport-hero,
.overview-panel,
.beer-shop-card,
.qr-feature-card,
.ai-panel,
.profile-shortcut,
.leaderboard-row,
.progress-map,
.world-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(75, 64, 54, 0.08);
  box-shadow: 0 16px 30px rgba(43, 26, 15, 0.08);
}

.passport-hero {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1rem 1rem;
  border-radius: 1.95rem;
  background: linear-gradient(135deg, #efc86f, #d3a54a 72%, #c59337);
  color: #532711;
  border-color: rgba(157, 106, 25, 0.15);
  box-shadow: 0 18px 34px rgba(103, 64, 19, 0.16);
}

.passport-hero--iniciador {
  background: linear-gradient(135deg, #ffad44, #ff9433 72%, #d86609);
  color: #fff;
}

.passport-hero--parrillero {
  background: linear-gradient(135deg, #ff5a49, #ff3b26 72%, #c8271c);
  color: #fff;
}

.passport-hero--guardian {
  background: linear-gradient(135deg, #4f7cc5, #2f62ad 72%, #204b8a);
  color: #fff;
}

.passport-hero--experto {
  background: linear-gradient(135deg, #2caa56, #218933 72%, #085613);
  color: #fff;
}

.passport-hero--grill-master {
  background: linear-gradient(135deg, #4a4a4a, #222 72%, #111);
  color: #fff;
}

.passport-hero--iniciador .passport-hero__name,
.passport-hero--parrillero .passport-hero__name,
.passport-hero--guardian .passport-hero__name,
.passport-hero--experto .passport-hero__name,
.passport-hero--grill-master .passport-hero__name,
.passport-hero--iniciador .passport-hero__progress-head,
.passport-hero--parrillero .passport-hero__progress-head,
.passport-hero--guardian .passport-hero__progress-head,
.passport-hero--experto .passport-hero__progress-head,
.passport-hero--grill-master .passport-hero__progress-head {
  color: #fff;
}

.passport-hero--iniciador .passport-hero__meta,
.passport-hero--parrillero .passport-hero__meta,
.passport-hero--guardian .passport-hero__meta,
.passport-hero--experto .passport-hero__meta,
.passport-hero--grill-master .passport-hero__meta {
  color: rgba(255, 255, 255, 0.8);
}

.passport-hero--iniciador .passport-hero__brand,
.passport-hero--parrillero .passport-hero__brand,
.passport-hero--guardian .passport-hero__brand,
.passport-hero--experto .passport-hero__brand,
.passport-hero--grill-master .passport-hero__brand {
  color: #fff;
}

.passport-hero--iniciador .badge-inline--rank { color: #d86609; }
.passport-hero--parrillero .badge-inline--rank { color: #c8271c; }
.passport-hero--guardian .badge-inline--rank { color: #204b8a; }
.passport-hero--experto .badge-inline--rank { color: #085613; }
.passport-hero--grill-master .badge-inline--rank { color: #222; }

.passport-hero::after {
  display: none;
}

.passport-hero__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.passport-hero__avatar {
  position: relative;
  width: 5.1rem;
  height: 5.1rem;
  flex: 0 0 auto;
}

.passport-hero__avatar > img,
.profile-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #76d7d7;
  background: #76d7d7;
}

.passport-hero__edit {
  position: absolute;
  right: -0.2rem;
  bottom: 0.1rem;
  width: 2rem;
  height: 2rem;
}

.passport-hero__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.passport-hero__brand {
  margin: 0 0 0.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  line-height: 0.9;
  color: #151112;
  font-weight: 700;
}

.passport-hero__name,
.passport-hero__meta,
.passport-hero__rank-row {
  margin: 0;
}

.passport-hero__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #5a2c17;
}

.passport-hero__meta {
  margin-top: 0.2rem;
  color: rgba(90, 44, 23, 0.76);
  font-size: 0.82rem;
}

.passport-hero__rank-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-left: 6.05rem;
}

.passport-hero__rank-pill {
  width: 100%;
  max-width: 18.25rem;
  min-height: 3rem;
  padding: 0.36rem 0.42rem 0.36rem 0.52rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.72);
  box-shadow: inset 0 0 0 1px rgba(121, 74, 30, 0.08);
}

.badge-inline--rank {
  margin-top: 0;
  background: transparent;
  color: #6f3420;
  padding-inline: 0;
  box-shadow: none;
}

.passport-hero__rank-badge {
  flex: 1 1 auto;
  min-height: 2.1rem;
  align-items: center;
}

.rank-label-with-icon {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.34rem;
  line-height: 1.1;
}

.rank-label-with-icon > img {
  width: 1.16rem;
  height: 1.16rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.rank-label-with-icon > span {
  min-width: 0;
}

.rank-label-with-icon--passport > img {
  width: 1.3rem;
  height: 1.3rem;
}

.passport-hero__rank-more {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  box-shadow: none;
}

.passport-hero__summary {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.passport-hero__progress-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  color: #5a2c17;
  font-size: 0.85rem;
  font-weight: 800;
}

.passport-hero__progress-head strong {
  font-size: 1rem;
}

.passport-hero__progress-bar {
  height: 0.8rem;
  background: rgba(91, 51, 22, 0.16);
}

.passport-hero__progress-bar .progress-bar__fill {
  background: linear-gradient(90deg, #f2b133, #d65228 54%, #be2524);
}

.overview-panel,
.beer-shop-card,
.qr-feature-card,
.progress-map,
.world-card {
  border-radius: 1.5rem;
}

.overview-panel {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.overview-panel__stats {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.overview-stat {
  padding: 0.9rem 0.85rem;
  border-radius: 1.1rem;
  background: #f3f1ee;
}

.overview-stat--rank {
  grid-column: 1 / 2;
}

.overview-stat strong,
.overview-stat span {
  display: block;
}

.overview-stat strong {
  color: var(--stone-700);
  font-size: 0.95rem;
}

.overview-stat__rank-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.overview-stat span {
  margin-top: 0.2rem;
  color: var(--stone-500);
  font-size: 0.74rem;
  line-height: 1.35;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e1dc;
}

.progress-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3b12e, #cc2d2a 60%, #a71f1e);
}

.progress-bar--large {
  height: 0.92rem;
}

.progress-bar--compact {
  height: 0.58rem;
}

.world-card {
  padding: 0.48rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  aspect-ratio: 1.14 / 1;
  min-height: 8.95rem;
  background: #e8e5e1;
  border-width: 2px;
  border-color: rgba(147, 125, 95, 0.42);
}

.world-card__pin {
  width: 4.9rem;
  height: 4.9rem;
  display: grid;
  place-items: center;
  border-radius: 1.35rem;
  background: rgba(255, 233, 233, 0.9);
  margin-inline: auto;
}

.world-card__pin-image {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.world-card__art-shell {
  width: 100%;
  min-height: 5.05rem;
  display: grid;
  align-items: center;
  justify-items: center;
  margin-top: -0.45rem;
}

.world-card__art {
  width: min(100%, 9.9rem);
  max-height: 4.95rem;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin-inline: auto;
}

.world-card__art--joya {
  transform: translateX(0.18rem);
}

.world-card__label,
.world-card__progress-row span,
.world-card__progress-row strong {
  margin: 0;
}

.world-card__center {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  gap: 0.15rem;
  transform: translateY(-0.28rem);
}

.world-card__label {
  color: #51494b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.world-card__progress {
  margin-top: auto;
  transform: translateY(-0.75rem);
}

.world-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: -0.34rem;
}

.world-card__spacer {
  width: 1.8rem;
  height: 1.8rem;
}

.world-card__actions,
.pavilion-card__actions,
.beer-shop-card__hero,
.beer-stepper {
  display: flex;
  align-items: center;
}

.world-card__actions {
  margin-top: auto;
  transform: translateY(-0.72rem);
}

.world-card__unlock {
  width: 100%;
  min-height: 2.05rem;
  padding-inline: 0.55rem;
  font-size: 0.75rem;
  background: linear-gradient(135deg, #25925d, #157948);
  box-shadow: 0 10px 18px rgba(22, 116, 70, 0.16);
}

.world-card__progress-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  color: #167446;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.world-card__open {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #bd2f2a;
  background: rgba(255, 247, 235, 0.96);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 12px rgba(92, 53, 20, 0.1);
}

.world-card__open--locked {
  color: rgba(189, 47, 42, 0.8);
}

.world-card.is-clickable {
  cursor: pointer;
}

.world-card.is-unlocked {
  background: linear-gradient(180deg, #f2dfb0, #edd59c);
  border-color: rgba(171, 131, 57, 0.98);
  box-shadow: 0 12px 20px rgba(102, 74, 27, 0.08);
}

.world-card.is-unlocked .progress-bar {
  background: rgba(30, 139, 85, 0.18);
}

.world-card.is-unlocked .progress-bar--world-green .progress-bar__fill {
  background: linear-gradient(90deg, #21a264, #14814d);
}

.world-card.is-unlocked .world-card__pin {
  background: rgba(255, 245, 233, 0.9);
}

.world-card.is-unlocked .world-card__progress-row {
  color: #167446;
}

.world-card.is-locked .world-card__art,
.world-card.is-locked .world-card__pin-image,
.world-card.is-locked .world-card__pin {
  filter: grayscale(1) saturate(0);
  opacity: 0.65;
}

.world-card.is-locked {
  border-color: rgba(165, 157, 149, 0.68);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.ghost-button--surface {
  color: var(--stone-700);
  background: rgba(43, 26, 15, 0.08);
}

.ghost-button--wide {
  width: 100%;
  min-height: 3.15rem;
  border-radius: 1rem;
}

.pavilion-card__footer {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.pavilion-card__actions {
  justify-content: flex-end;
}

.beer-shop-card {
  padding: 1rem;
}

.beer-shop-card__hero {
  justify-content: space-between;
  gap: 1rem;
}

.beer-shop-card__label {
  margin: 0;
  color: var(--stone-500);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.beer-shop-card__hero h3 {
  margin: 0.35rem 0 0;
  color: var(--earth-600);
  font-size: 2rem;
}

.beer-stepper {
  gap: 0.85rem;
}

.beer-stepper span {
  min-width: 1.2rem;
  text-align: center;
  font-weight: 800;
  color: var(--stone-700);
}

.beer-shop-card__cta {
  margin-top: 1rem;
}

.qr-feature-card {
  padding: 1rem;
}

.qr-feature-card .primary-button {
  margin-top: 0.8rem;
}

.modal-overlay--transparent {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem 1rem 6rem;
  background: rgba(20, 14, 10, 0.12);
}

.ai-fab {
  position: absolute;
  right: 1rem;
  bottom: 6.15rem;
  z-index: 15;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  box-shadow: 0 18px 32px rgba(152, 30, 28, 0.28);
}

.icon-button--cream {
  color: #b62323;
  background: rgba(255, 247, 235, 0.9);
  box-shadow: 0 10px 20px rgba(92, 53, 20, 0.12);
}

.icon-button--mini {
  width: 1.7rem;
  height: 1.7rem;
  color: #b62323;
  background: rgba(201, 39, 36, 0.08);
  font-size: 0.95rem;
}

.ai-panel {
  width: min(100%, 20rem);
  padding: 1rem;
  border-radius: 1.5rem;
}

.ai-panel__copy h3,
.ai-panel__copy p {
  margin: 0;
}

.ai-panel__copy p {
  margin-top: 0.3rem;
  color: var(--stone-500);
  line-height: 1.5;
  font-size: 0.9rem;
}

.ai-panel .stack-list {
  margin-top: 1rem;
}

.modal-card--profile,
.modal-card--scoreboard {
  max-width: 26rem;
}

.modal-card--scoreboard {
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 1.25rem 1rem 1rem;
  background: #fff8f1;
}

.modal-card--profile {
  width: min(100%, 30rem);
  max-width: 30rem;
  max-height: calc(100vh - 5.25rem);
  max-height: calc(100svh - 5.25rem);
  overflow-y: auto;
  padding: 0 1rem 1.15rem;
  border-radius: 1.45rem 1.45rem 0 0;
  background: #fff4d9;
  border: 2px solid rgba(174, 116, 45, 0.58);
}

.modal-overlay--profile-menu {
  align-items: flex-end;
  padding: 5.25rem 1rem 0;
  background: rgba(44, 24, 13, 0.42);
}

.profile-menu__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.profile-menu__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -1rem 0.75rem;
  padding: 1rem 1rem 0.35rem;
  background: #fff4d9;
}

/* Perfil: portada de accesos alineada con la guía móvil de Brasapporte. */
.profile-home {
  display: grid;
  gap: 0.82rem;
  padding: 0.1rem 0 0.4rem;
}

.profile-page {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1rem;
  background: #fff4d9;
}

.profile-page__topbar {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}

.profile-page__topbar h2 {
  margin: 0;
  color: #703d20;
  font-size: 1.35rem;
  font-weight: 1000;
  text-align: center;
}

.profile-page__topbar .icon-button {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: #8d5528;
  font-size: 1.55rem;
  line-height: 1;
}

.profile-page__backdrop { display: block; }

.profile-home__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.82rem;
  width: 100%;
  padding: 0.85rem;
  border: 2px solid rgba(193, 116, 32, 0.64);
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffab42, #f57b1d);
  color: #fff;
  text-align: left;
  box-shadow: 0 9px 18px rgba(145, 76, 17, 0.17);
}

.profile-home__identity-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 0.82rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.profile-home__identity-qr {
  display: grid;
  place-items: center;
  gap: 0.08rem;
  width: 3.35rem;
  min-height: 3.35rem;
  padding: 0.28rem;
  border: 2px solid rgba(255, 247, 223, 0.7);
  border-radius: 0.84rem;
  background: rgba(119, 56, 17, 0.26);
  color: #fff;
  font-size: 0.61rem;
  font-weight: 1000;
  line-height: 1;
}

.profile-identity-qr-card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
}

.profile-identity-qr-card .modal-copy { margin: 0; }

.profile-identity-qr-card__image {
  display: block;
  width: min(15rem, 76vw);
  aspect-ratio: 1;
  padding: 0.55rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(83, 41, 13, 0.16);
}

.profile-identity-qr-card__name {
  color: #6d3a1f;
  font-size: 1.02rem;
}

.profile-home__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 50%;
  border: 0.23rem solid #43d6da;
  background: #ffdb57;
  box-shadow: 0 0 0 0.18rem rgba(255, 243, 206, 0.9);
}

.profile-home__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-home__avatar-edit {
  position: absolute;
  right: -0.35rem;
  bottom: -0.22rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(139, 16, 27, 0.88);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 224, 174, 0.88);
}

.profile-home__identity-copy {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.profile-home__identity-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 1000;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-home__identity-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-home__identity-copy em {
  justify-self: start;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(176, 69, 14, 0.62);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.profile-home__identity-copy em .rank-label-with-icon > img {
  width: 0.94rem;
  height: 0.94rem;
}

.profile-home__section-title {
  margin-top: 0.15rem;
  color: #6d3a1f;
  font-size: 0.78rem;
  font-weight: 1000;
}

.profile-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.profile-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.26rem;
  min-height: 5.7rem;
  padding: 0.55rem;
  border: 2px solid rgba(190, 128, 47, 0.52);
  border-radius: 0.82rem;
  background: #ffe9bb;
  color: #703d20;
  text-align: center;
  box-shadow: 0 5px 12px rgba(113, 65, 25, 0.08);
}

.profile-access-card img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.profile-access-card strong,
.profile-access-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-access-card strong { font-size: 0.78rem; font-weight: 1000; }
.profile-access-card span { color: #9a673e; font-size: 0.61rem; font-weight: 700; }

.profile-home__photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(190, 128, 47, 0.55);
  border-radius: 0.72rem;
  background: #ffe9bb;
  color: #703d20;
}

.profile-home__photos span { display: grid; gap: 0.02rem; text-align: left; }
.profile-home__photos strong { font-size: 0.82rem; font-weight: 1000; }
.profile-home__photos small { color: #9a673e; font-size: 0.64rem; }

.profile-settings-list { display: grid; gap: 0.42rem; }

.profile-settings-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.3rem;
  padding: 0.52rem 0.75rem;
  border: 1.5px solid rgba(190, 128, 47, 0.55);
  border-radius: 0.58rem;
  background: #ffedc8;
  color: #703d20;
  font-size: 0.73rem;
  font-weight: 850;
  text-align: left;
}

.profile-settings-list button span { color: #c46f26; font-size: 1.1rem; line-height: 1; }
.profile-settings-list button .profile-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #d62323;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 1000;
  line-height: 1;
}
.profile-settings-list .profile-settings-list__logout { color: #a11b20; border-color: rgba(161, 27, 32, 0.38); }
.profile-settings-list .profile-settings-list__logout span { color: #a11b20; display: inline-flex; }

.profile-menu__topbar-copy {
  display: grid;
  gap: 0.45rem;
}

.profile-menu__topbar--tickets {
  justify-content: center;
}

.profile-menu__topbar--tickets .profile-menu__topbar-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.profile-menu__topbar--tickets > .icon-button {
  margin-left: auto;
}

.modal-title--profile-tickets {
  margin: 0;
  color: #6b3b22;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.profile-inline-notice {
  margin-bottom: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: #fff2df;
  color: var(--earth-700);
  font-size: 0.84rem;
  line-height: 1.45;
}

.profile-menu__avatar {
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
}

.profile-menu__grid {
  display: grid;
  gap: 0.75rem;
}

.profile-shortcut {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  text-align: left;
}

.profile-shortcut strong,
.profile-shortcut span {
  display: block;
}

.profile-shortcut strong {
  color: var(--stone-700);
}

.profile-shortcut span {
  margin-top: 0.25rem;
  color: var(--stone-500);
  font-size: 0.82rem;
  line-height: 1.4;
}

.profile-shortcut[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.profile-shortcut--danger strong {
  color: var(--earth-600);
}

.scoreboard-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  padding-top: 0.25rem;
  background: #fff8f1;
}

.scoreboard-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.profile-panel__section {
  display: grid;
  gap: 0.9rem;
}

.profile-panel__hint {
  margin: 0;
  color: var(--stone-500);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-photo-editor {
  display: grid;
  gap: 0.9rem;
}

.profile-photo-editor__preview {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto;
  border-radius: 1.65rem;
  overflow: hidden;
  border: 2px solid rgba(201, 39, 36, 0.14);
  box-shadow: 0 14px 28px rgba(70, 32, 14, 0.12);
}

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

.profile-photo-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.profile-photo-decision {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 16px 28px rgba(50, 28, 13, 0.18);
}

.profile-photo-decision[disabled] {
  opacity: 0.68;
  cursor: wait;
}

.profile-photo-decision--cancel {
  background: linear-gradient(135deg, #c92724, #891916);
}

.profile-photo-decision--confirm {
  background: linear-gradient(135deg, #1fbe63, #15924a);
}

.profile-chip-button {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 54, 37, 0.12);
  background: white;
  color: var(--stone-700);
  font-weight: 800;
}

.profile-chip-button.is-active {
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  color: white;
  border-color: transparent;
}

.profile-hidden-input {
  display: none;
}

.profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-avatar-option {
  padding: 0.55rem;
  border-radius: 1.15rem;
  text-align: center;
  border: 1px solid rgba(79, 54, 37, 0.1);
  background: white;
  box-shadow: 0 10px 20px rgba(50, 28, 13, 0.06);
}

.profile-avatar-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.95rem;
}

.profile-avatar-option span {
  display: block;
  margin-top: 0.45rem;
  color: var(--stone-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.profile-avatar-option.is-selected {
  border-color: rgba(201, 39, 36, 0.4);
  box-shadow: 0 14px 28px rgba(201, 39, 36, 0.12);
}

.profile-form {
  display: grid;
  gap: 0.85rem;
}

.profile-field {
  display: grid;
  gap: 0.4rem;
}

.profile-field span {
  color: var(--stone-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-field input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(82, 56, 40, 0.12);
  background: white;
  padding: 0.92rem 1rem;
  font: inherit;
  color: var(--stone-700);
}

.profile-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-section-head strong,
.profile-section-head span {
  display: block;
}

.profile-section-head span {
  margin-top: 0.2rem;
  color: var(--stone-500);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-friends-list,
.profile-search-results {
  display: grid;
  gap: 0.7rem;
}

.profile-friend-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 1.15rem;
  background: white;
  border: 1px solid rgba(79, 54, 37, 0.08);
  box-shadow: 0 12px 24px rgba(50, 28, 13, 0.06);
}

.profile-friend-card.is-active {
  border-color: rgba(201, 39, 36, 0.28);
  box-shadow: 0 18px 32px rgba(201, 39, 36, 0.12);
}

.profile-friend-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.profile-friend-card__meta img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  object-fit: cover;
}

.profile-friend-card__meta strong,
.profile-friend-card__meta span {
  display: block;
}

.profile-friend-card__meta span {
  margin-top: 0.15rem;
  color: var(--stone-500);
  font-size: 0.79rem;
}

.profile-friend-card__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.profile-section-head--compact { margin-top: 0.35rem; }

.profile-search-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: #87603b;
  font-size: 0.76rem;
  font-weight: 850;
}

.profile-receive-qr {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(25, 132, 86, 0.45);
  border-radius: 1rem;
  background: linear-gradient(135deg, #edfff3, #ccefd9);
  color: #176d46;
  text-align: left;
}

.profile-receive-qr__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  background: #198b58;
  color: #fff;
  font-size: 2rem;
  font-weight: 1000;
}

.profile-receive-qr strong,
.profile-receive-qr small { display: block; }
.profile-receive-qr strong { font-size: 0.98rem; font-weight: 1000; }
.profile-receive-qr small { margin-top: 0.14rem; color: #48715a; font-size: 0.74rem; line-height: 1.35; }

.profile-inbox-list { display: grid; gap: 0.7rem; }

.profile-inbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(190, 128, 47, 0.34);
  border-radius: 0.9rem;
  background: #fff8e9;
}

.profile-inbox-card > div:first-child { min-width: 0; }
.profile-inbox-card strong,
.profile-inbox-card span { display: block; }
.profile-inbox-card strong { color: #703d20; font-size: 0.84rem; font-weight: 1000; }
.profile-inbox-card span { margin-top: 0.2rem; color: #7d6755; font-size: 0.72rem; line-height: 1.35; }

.profile-empty-card {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff2df;
  color: var(--stone-600);
  font-size: 0.84rem;
  line-height: 1.45;
}

.button-secondary--profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 63, 44, 0.14);
  background: white;
  color: var(--stone-700);
  font-weight: 800;
}

.profile-pass-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(94, 63, 44, 0.1);
  background: white;
  color: var(--stone-700);
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(50, 28, 13, 0.05);
}

.profile-pass-toggle.is-open {
  border-color: rgba(201, 39, 36, 0.2);
}

.profile-ticket-panel {
  display: grid;
  gap: 0.9rem;
}

.profile-day-tabs,
.profile-status-tabs {
  display: grid;
  gap: 0.5rem;
}

.profile-day-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-day-tabs--tickets {
  gap: 0.55rem;
}

.profile-status-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-day-tab,
.profile-status-tab {
  min-height: 42px;
  padding: 0.72rem 0.45rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(94, 63, 44, 0.1);
  background: white;
  color: var(--stone-600);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.profile-ticket-day-tab-button {
  min-height: 72px;
  padding: 0.45rem 0.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(94, 63, 44, 0.12);
  background: white;
  color: var(--stone-700);
  box-shadow: 0 10px 20px rgba(50, 28, 13, 0.05);
}

.profile-ticket-day-tab-button.is-active {
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  color: white;
  border-color: transparent;
}

.profile-ticket-day-tab-button .ticket-day-tab-copy {
  width: 100%;
  display: grid;
  grid-template-rows: repeat(5, auto);
  justify-items: center;
  align-items: center;
  gap: 1px;
  text-align: center;
  line-height: 0.92;
}

.profile-ticket-day-tab-button .ticket-day-tab-copy > span {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

.profile-ticket-day-tab-button .ticket-day-tab-brand-line {
  font-size: 0.5rem;
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-ticket-day-tab-button .ticket-day-tab-heb {
  font-size: 0.55rem;
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-ticket-day-tab-button .ticket-day-tab-date {
  font-size: 0.64rem;
  line-height: 0.95;
  font-weight: 1000;
}

.profile-ticket-day-tab-button .ticket-day-tab-year {
  font-size: 0.56rem;
  line-height: 0.95;
  font-weight: 1000;
}

.profile-ticket-day-tab-button .ticket-day-tab-weekday {
  font-size: 0.52rem;
  line-height: 0.95;
  font-weight: 900;
}

.profile-day-tab.is-active,
.profile-status-tab.is-active {
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
  color: white;
  border-color: transparent;
}

.profile-ticket-grid {
  display: grid;
  gap: 0.75rem;
}

/* Biblioteca de boletos: etiquetas visuales simples como las del arte móvil. */
.profile-ticket-library {
  display: grid;
  gap: 0.95rem;
}

.profile-ticket-library__title {
  margin: 0;
  color: #6b3b22;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 1000;
  line-height: 1;
}

.profile-ticket-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.7rem 0 0.95rem;
}

.profile-ticket-status-tab {
  min-height: 2.3rem;
  padding: 0.4rem 0.25rem;
  border: 1px solid rgba(188, 127, 52, 0.42);
  border-radius: 0.62rem;
  background: #fffaf0;
  color: #6b3b22;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1.05;
}

.profile-ticket-status-tab.is-active {
  border-color: #a65b18;
  background: linear-gradient(135deg, #d4861f, #a95d15);
  color: #fff;
  box-shadow: 0 5px 12px rgba(116, 62, 17, 0.2);
}

.profile-ticket-day-group {
  display: grid;
  gap: 0.48rem;
}

.profile-ticket-day-group h4 {
  margin: 0;
  color: #6b3b22;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 1000;
}

.profile-ticket-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-ticket-simple {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.16rem;
  min-height: 5.55rem;
  padding: 0.36rem;
  border: 1.5px solid rgba(188, 127, 52, 0.47);
  border-radius: 0.8rem;
  background: #fff7e6;
  color: #68391e;
  box-shadow: 0 7px 14px rgba(97, 55, 22, 0.07);
}

.profile-ticket-simple.is-selected {
  border: 3px solid #1d813f;
  background: #effce8;
  box-shadow: 0 0 0 3px rgba(29, 129, 63, 0.14), 0 7px 14px rgba(97, 55, 22, 0.09);
}

.profile-ticket-simple i {
  position: absolute;
  top: 0.26rem;
  right: 0.26rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 999px;
  background: #1d813f;
  color: #fff;
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 1000;
}

.profile-transfer-floating {
  position: sticky;
  bottom: -0.5rem;
  z-index: 5;
  display: grid;
  gap: 0.55rem;
  margin: 0.25rem -0.25rem -0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(188, 127, 52, 0.42);
  border-radius: 0.9rem 0.9rem 0 0;
  background: rgba(255, 248, 235, 0.97);
  box-shadow: 0 -8px 20px rgba(93, 49, 18, 0.11);
  backdrop-filter: blur(8px);
}

.profile-transfer-floating > span {
  color: #6b3b22;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.profile-transfer-floating > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-ticket-simple img {
  width: 3.85rem;
  height: 3.85rem;
  object-fit: contain;
}

.profile-ticket-simple span {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.59rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-ticket-simple__permit {
  margin-top: -0.05rem;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  background: #d22827;
  color: #fff;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.profile-ticket-simple--choice { background: #fff2dd; }
.profile-ticket-simple--prime { background: #fff5de; }
.profile-ticket-simple--hospitality { background: #fff0d8; }
.profile-ticket-simple--smp { background: #f4f1ed; }

/* Un boleto enviado por WhatsApp queda bloqueado hasta que su dueño lo
   recupere. La tarjeta es intencionalmente breve para no competir con los
   boletos vigentes del selector. */
.profile-ticket-whatsapp-transfer {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  align-items: center;
  gap: 0.62rem;
  min-height: 4.7rem;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid rgba(188, 127, 52, 0.5);
  border-radius: 0.85rem;
  background: #fff5e4;
  box-shadow: 0 7px 14px rgba(97, 55, 22, 0.07);
}

.profile-ticket-whatsapp-transfer img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
}

.profile-ticket-whatsapp-transfer p {
  margin: 0;
  color: #6b3b22;
  font-size: 0.8rem;
  font-weight: 1000;
  line-height: 1.12;
}

.profile-ticket-whatsapp-transfer .button-secondary--profile {
  min-height: 2.35rem;
  padding: 0.42rem 0.65rem;
  white-space: nowrap;
}

.profile-ticket-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.42rem;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(94, 63, 44, 0.12);
  box-shadow: 0 14px 26px rgba(50, 28, 13, 0.06);
}

.profile-ticket-card__art {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
  justify-self: center;
  margin-bottom: 0.1rem;
}

.profile-ticket-card > .row:last-child {
  margin-top: auto !important;
  padding-top: 0.85rem;
}

.profile-ticket-card > .row:last-child .button-secondary--profile {
  align-self: flex-end;
}

.profile-ticket-card--selected {
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.22),
    0 16px 30px rgba(37, 99, 235, 0.16);
}

.profile-ticket-selector {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid #bfdbfe;
  background: rgba(255, 255, 255, 0.98);
  color: #1d4ed8;
  border-radius: 1rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.profile-ticket-selector__box {
  width: 1rem;
  height: 1rem;
  border-radius: 0.45rem;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
}

.profile-ticket-selector.is-selected {
  border-color: #2563eb;
}

.profile-transfer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dbe4ff;
  box-shadow: 0 16px 30px rgba(11, 7, 8, 0.08);
}

.profile-transfer-bar__count {
  color: #35527c;
  font-size: 0.9rem;
}

.profile-transfer-actions,
.profile-transfer-friends {
  display: grid;
  gap: 0.75rem;
}

.profile-transfer-actions--modal {
  margin-top: 0.5rem;
}

.profile-transfer-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-transfer-modal-copy {
  margin-top: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 248, 244, 0.98);
  border: 1px solid rgba(201, 39, 36, 0.08);
  color: var(--stone-700);
  line-height: 1.5;
}

.profile-transfer-friends--modal {
  margin-top: 0.75rem;
  max-height: min(56vh, 26rem);
  overflow: auto;
  padding-right: 0.15rem;
}

.profile-transfer-scanner-reader {
  width: min(100%, 18rem);
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.3);
}

.profile-transfer-scanner-reader video {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.profile-ticket-card h3 {
  margin: 0 0 0.15rem;
  color: white;
  font-size: 0.98rem;
  line-height: 1.35;
}

.profile-ticket-card .sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-ticket-card--choice {
  background: #c41f13;
  border-color: rgba(255, 255, 255, 0.18);
}

.profile-ticket-card--prime {
  background: #efaf43;
  border-color: rgba(255, 255, 255, 0.18);
}

.profile-ticket-card--choice .button-secondary--profile,
.profile-ticket-card--prime .button-secondary--profile {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.98);
  color: #321c0d;
  box-shadow: 0 10px 18px rgba(11, 7, 8, 0.14);
}

.profile-ticket-card--parking {
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(226, 240, 255, 0.96));
}

.profile-ticket-card--parking-general {
  background: linear-gradient(180deg, #f6f0e4, #ead6b4);
  border-color: rgba(126, 90, 32, 0.24);
}

.profile-ticket-card--parking-vip {
  background: linear-gradient(180deg, #2f3542, #151922);
  border-color: rgba(255, 215, 155, 0.22);
}

.profile-ticket-card--parking h3 {
  color: var(--stone-700);
}

.profile-ticket-card--parking .sub {
  color: var(--stone-500);
}

.profile-ticket-card--parking-vip h3,
.profile-ticket-card--parking-vip .sub,
.profile-ticket-card--parking-vip .profile-parking-ticket-label,
.profile-ticket-card--parking-vip .profile-parking-ticket-value {
  color: white;
}

.profile-ticket-card--parking-vip .profile-parking-ticket-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #ffe2aa;
}

.profile-parking-ticket-head {
  display: grid;
  gap: 0.28rem;
}

.profile-parking-ticket-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(122, 80, 17, 0.12);
  color: #7a5011;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-parking-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.profile-parking-ticket-item {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.34);
}

.profile-parking-ticket-label {
  display: block;
  font-size: 0.68rem;
  color: var(--stone-500);
  margin-bottom: 0.2rem;
}

.profile-parking-ticket-value {
  color: var(--stone-700);
  font-size: 0.9rem;
}

.profile-chat-page {
  border-radius: 1.2rem;
  overflow: hidden;
  background: #f4f2f2;
  border: 1px solid rgba(94, 63, 44, 0.08);
  box-shadow: 0 16px 30px rgba(50, 28, 13, 0.08);
}

.profile-chat-shell {
  display: block;
  min-height: 70vh;
}

.profile-chat-left,
.profile-chat-right {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.profile-chat-left {
  background: #fff;
}

.profile-chat-right {
  background: #faf8f8;
}

.profile-chat-page.mobile-list .profile-chat-right {
  display: none;
}

.profile-chat-page.mobile-conv .profile-chat-left {
  display: none;
}

.profile-chat-top,
.profile-chat-conversation-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee3e4;
  background: #fff;
}

.profile-chat-friends-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid #eee3e4;
  background: #fff;
}

.profile-chat-friend-pill {
  min-width: 72px;
  max-width: 86px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  cursor: pointer;
}

.profile-chat-friend-pill img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.profile-chat-friend-pill div {
  margin-top: 4px;
  font-size: 12px;
  color: var(--stone-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chat-threads-list {
  display: grid;
  gap: 0;
  overflow: auto;
}

.profile-chat-thread-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #f0e8e9;
  background: white;
  text-align: left;
}

.profile-chat-thread-item.is-active {
  background: #fff6ec;
}

.profile-chat-thread-item img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.profile-chat-thread-item .preview {
  color: #6f6466;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chat-peer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-chat-peer-head img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.profile-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #faf8f8;
}

.profile-msg-bubble {
  max-width: 88%;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.profile-msg-bubble.me {
  align-self: flex-end;
  background: #c92724;
  color: #fff;
}

.profile-msg-bubble.them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #eadedf;
  color: #3c2412;
}

.profile-chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e7ddde;
  background: #fff;
}

.profile-chat-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(82, 56, 40, 0.12);
  background: white;
  padding: 0.92rem 1rem;
  font: inherit;
  color: var(--stone-700);
}

.profile-pass-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(13, 12, 12, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
}

.profile-pass-qr-shell {
  position: relative;
  width: min(100%, 27rem);
}

.profile-pass-qr-close {
  position: absolute;
  top: -0.4rem;
  right: 0;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border: none;
  border-radius: 999px;
  background: rgba(57, 28, 16, 0.94);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.profile-pass-qr-stage {
  width: 100%;
}

.profile-pass-qr-ticket {
  width: 100%;
  background: white;
  border: 1px solid #e0d9da;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.profile-pass-qr-headbar {
  height: 2.4rem;
  background: #c92724;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
}

.profile-pass-qr-head-logo {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.profile-pass-qr-head-type {
  flex: 1;
  margin-left: -1.9rem;
  text-align: center;
  color: white;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.profile-pass-qr-banner-wrap {
  width: 100%;
  background: white;
}

.profile-pass-qr-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
}

.profile-pass-qr-main {
  padding: 0.7rem 0.85rem 0.95rem;
  text-align: center;
}

.profile-pass-qr-event {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  color: #191617;
}

.profile-pass-qr-seat {
  margin-top: 0.18rem;
  color: #4f494a;
  font-size: 0.82rem;
  line-height: 1.2;
}

.profile-pass-qr-wrap {
  margin: 0.7rem auto 0;
  width: min(19.75rem, 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.profile-pass-qr-wrap canvas,
.profile-pass-qr-image {
  width: min(100%, 20rem);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  border: 1px solid #ece4e5;
  background: white;
  display: block;
}

.profile-pass-qr-flames {
  position: absolute;
  left: 50%;
  bottom: -1.1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  width: max-content;
  pointer-events: none;
}

.profile-pass-qr-flame {
  width: 5.5rem;
  height: auto;
  opacity: 0.98;
}

.profile-pass-qr-flame--side {
  width: 4.9rem;
}

.profile-pass-qr-time-wrap {
  margin: 1.1rem auto 0;
}

.profile-pass-qr-time-track {
  display: block;
  height: 0.38rem;
  border-radius: 999px;
  background: #e5ddde;
  overflow: hidden;
}

.profile-pass-qr-time-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #c92724;
  transition: width 0.1s linear;
}

.profile-pass-qr-time-text {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5b5556;
}

.profile-pass-qr-meta {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  text-align: left;
}

.profile-pass-qr-meta-item {
  border: 1px solid #ece4e5;
  border-radius: 0.7rem;
  padding: 0.45rem;
  background: white;
}

.profile-pass-qr-meta-label {
  font-size: 0.62rem;
  color: #786f71;
  font-weight: 700;
}

.profile-pass-qr-meta-value {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 900;
  color: #191617;
  line-height: 1.15;
  word-break: break-word;
}

.profile-pass-qr-shell--style2 {
  width: min(30rem, calc(100vw - 1rem));
  max-height: calc(100svh - 1rem);
  overflow: auto;
}

.profile-pass-qr-shell--style2 .profile-pass-qr-close {
  top: -0.55rem;
  right: 0.35rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(74, 28, 19, 0.92);
}

.profile-pass-qr-style2-card {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 1.4rem;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, #ff6a55 0%, #ff3b26 48%, #c92724 100%);
  --profile-qr-accent: #ff3b26;
  --profile-qr-accent-strong: #c92724;
}

.profile-pass-qr-style2-card--choice {
  background: linear-gradient(135deg, #ff6a55 0%, #ff3b26 48%, #c92724 100%);
  --profile-qr-accent: #ff3b26;
  --profile-qr-accent-strong: #c92724;
}

.profile-pass-qr-style2-card--prime {
  background: linear-gradient(135deg, #975926 0%, #bf7a2d 48%, #e8a13d 100%);
  --profile-qr-accent: #e8a13d;
  --profile-qr-accent-strong: #975926;
}

.profile-pass-qr-style2-card--hospitality {
  background: linear-gradient(135deg, #b4b9c1 0%, #8a9099 48%, #626873 100%);
  --profile-qr-accent: #8a9099;
  --profile-qr-accent-strong: #626873;
}

.profile-pass-qr-style2-card--parking_general {
  background: linear-gradient(135deg, #78d9ff 0%, #49b5ff 48%, #1b8cd8 100%);
  --profile-qr-accent: #49b5ff;
  --profile-qr-accent-strong: #1b8cd8;
}

.profile-pass-qr-style2-card--parking_vip {
  background: linear-gradient(135deg, #3d85ff 0%, #1758d6 48%, #0b2e8e 100%);
  --profile-qr-accent: #3d85ff;
  --profile-qr-accent-strong: #0b2e8e;
}

.profile-pass-qr-style2-main {
  padding: 1.25rem 1.15rem 0.8rem;
  text-align: center;
}

.profile-pass-qr-style2-shell {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.profile-pass-qr-style2-top {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.profile-pass-qr-style2-logo {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
  display: block;
}

.profile-pass-qr-style2-title {
  width: 100%;
  text-align: center;
  line-height: 1.05;
}

.profile-pass-qr-style2-title-main,
.profile-pass-qr-style2-title-sub {
  display: block;
  color: #fff;
}

.profile-pass-qr-style2-title-main {
  font-size: 1.38rem;
  font-weight: 900;
}

.profile-pass-qr-style2-title-sub {
  margin-top: 0.14rem;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 800;
}

.profile-pass-qr-style2-info {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem 0.95rem;
  text-align: left;
}

.profile-pass-qr-style2-item {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

button.profile-pass-qr-style2-item {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.profile-pass-qr-style2-item.is-interactive {
  cursor: pointer;
}

.profile-pass-qr-style2-item.is-interactive .profile-pass-qr-style2-value {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  animation: profile-map-location-pulse 1.65s ease-in-out infinite;
}

@keyframes profile-map-location-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.035); }
}

.profile-pass-qr-style2-label {
  font-size: 0.66rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.profile-pass-qr-style2-value {
  font-size: 0.92rem;
  line-height: 1.15;
  font-weight: 850;
  color: #fff;
  word-break: break-word;
}

.profile-pass-qr-style2-value.is-small {
  font-size: 0.82rem;
}

.profile-pass-qr-style2-qr-wrap {
  width: min(360px, 84vw);
  margin: 0.2rem auto 0;
  padding: 0.72rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pass-qr-style2-qr-wrap canvas,
.profile-pass-qr-style2-qr-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  display: block;
  border: 0;
  border-radius: 0.62rem;
  background: #fff;
}

.profile-pass-qr-style2-time-wrap {
  width: min(150px, 48vw);
  margin: 0.1rem auto 0;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
}

.profile-pass-qr-style2-time-track {
  width: 100%;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.profile-pass-qr-style2-time-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
  transition: width 0.1s linear;
}

.profile-pass-qr-style2-time-text {
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.profile-pass-qr-style2-note {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.profile-pass-qr-style2-foot {
  padding: 0.8rem 1.15rem 1.15rem;
}

.profile-pass-qr-style2-footer-button {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--profile-qr-accent-strong);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.98rem;
  font-weight: 900;
}

.profile-pass-qr-style2-footer-button:hover {
  background: #fff4ef;
  border-color: #fff4ef;
}

.scoreboard-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(43, 26, 15, 0.06);
}

.scoreboard-tabs__item {
  padding: 0.72rem 0.55rem;
  border-radius: 999px;
  color: var(--stone-500);
  font-size: 0.8rem;
  font-weight: 800;
}

.scoreboard-tabs__item.is-active {
  color: white;
  background: linear-gradient(135deg, var(--earth-600), var(--earth-700));
}

.leaderboard-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(82, 56, 40, 0.08);
  box-shadow: 0 12px 24px rgba(50, 28, 13, 0.06);
}

.leaderboard-row.is-highlight {
  border-color: rgba(201, 39, 36, 0.24);
  background: linear-gradient(180deg, #fff6ef, #fff1e7);
}

.leaderboard-row__place {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 39, 36, 0.08);
  color: var(--earth-600);
  font-size: 0.76rem;
  font-weight: 800;
}

.leaderboard-row__identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.leaderboard-row__identity img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px rgba(50, 28, 13, 0.12);
}

.leaderboard-row__identity strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-row__score {
  color: var(--earth-700);
  font-weight: 900;
  white-space: nowrap;
}

.progress-map {
  position: relative;
  margin-top: 1rem;
  padding: 1.1rem 1rem 1rem;
}

.progress-map__path {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 2.5rem;
  height: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 181, 52, 0.2), rgba(201, 39, 36, 0.42));
}

.progress-map__flamin {
  position: absolute;
  top: 0.15rem;
  width: 4.25rem;
  transform: translateX(-50%);
  animation: float 2.6s ease-in-out infinite;
}

.progress-map__flamin-ring {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  padding: 0.45rem;
  background: radial-gradient(circle at 30% 30%, #fff8e2, #f6c85e);
  box-shadow:
    0 14px 26px rgba(201, 39, 36, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.72);
}

.progress-map__flamin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.progress-map__worlds {
  position: relative;
  margin-top: 4.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 0.55rem;
}

.progress-map__world {
  text-align: center;
}

.progress-map__world small {
  display: block;
  margin-top: 0.3rem;
  color: var(--stone-500);
  font-size: 0.68rem;
  line-height: 1.35;
}

.progress-map__pin {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(43, 26, 15, 0.06);
  filter: grayscale(1);
}

.progress-map__world.is-complete .progress-map__pin {
  filter: none;
  background: rgba(201, 39, 36, 0.08);
}

.progress-map__pin-image {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.progress-map__summary {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(75, 64, 54, 0.08);
}

.progress-map__summary strong,
.progress-map__summary p {
  margin: 0;
}

.progress-map__summary p {
  margin-top: 0.3rem;
  color: var(--stone-500);
  line-height: 1.5;
  font-size: 0.9rem;
}

.noscript-warning {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: white;
  background: rgba(43, 26, 15, 0.88);
  z-index: 30;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

@keyframes scan {
  0%,
  100% {
    top: 0.1rem;
  }
  50% {
    top: calc(100% - 0.2rem);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 107, 36, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(209, 107, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(209, 107, 36, 0);
  }
}

@keyframes soft-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.2rem);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .page-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    height: 100svh;
    border-radius: 0;
    border: 0;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-overlay--profile-menu {
    padding: calc(env(safe-area-inset-top) + 4.5rem) 0 0;
  }

  .modal-card {
    max-width: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .auth-shell {
    padding: 1rem;
  }

  .auth-panel {
    width: 100%;
    padding: 1.2rem;
    border-radius: 1.6rem;
  }

  .auth-copy h1 {
    font-size: 2rem;
  }

  .topbar__actions,
  .chat-header__actions {
    gap: 0.45rem;
  }

  .brand__subtitle {
    max-width: 8.25rem;
  }

  .overview-panel__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-overlay--transparent {
    padding: 0 0.85rem 6rem;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 0.6rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand__mark {
    width: 4.3rem;
    height: 4.3rem;
  }

  .brand__subtitle {
    max-width: 7rem;
  }

  .status-pill {
    display: none;
  }

  .language-button,
  .logout-button {
    padding-inline: 0.6rem;
  }

  .overview-panel__stats,
  .progress-map__worlds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-fab {
    right: 0.85rem;
  }
}

/* Tabla de puntaje de Brasapporte. */
.modal-overlay--scoreboard {
  align-items: flex-start;
  padding: 4.9rem 1rem 1rem;
  background: rgba(28, 19, 13, 0.46);
}

.modal-card--scoreboard {
  width: min(100%, 20.5rem);
  max-width: 20.5rem;
  max-height: min(31rem, calc(100svh - 6rem));
  padding: 0.35rem 0.48rem 0.62rem;
  border: 2px solid #c69745;
  border-radius: 1.05rem;
  background: #fff2d6;
  box-shadow: 0 14px 24px rgba(63, 37, 18, 0.32);
  font-family: "Poppins", sans-serif;
}

.modal-card--scoreboard .modal-card__close {
  top: -0.65rem;
  right: -0.65rem;
  z-index: 3;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffd77a;
  color: #fff;
  box-shadow: 0 3px 0 #c78328;
}

.scoreboard-head {
  gap: 0;
  padding: 0;
  border-radius: 0.68rem 0.68rem 0 0;
  overflow: hidden;
  background: #231d20;
}

.scoreboard-head__title {
  margin: 0;
  padding: 0.32rem 0.55rem 0.18rem;
  color: #f8ead0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.scoreboard-player {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.36rem;
  padding: 0.16rem 0.48rem 0.34rem;
  color: #fff;
}

.scoreboard-player > img {
  width: 2rem;
  height: 2rem;
  border: 2px solid #66d2ca;
  border-radius: 50%;
  object-fit: cover;
  background: #53bbb5;
}

.scoreboard-player__identity {
  min-width: 0;
  display: grid;
  gap: 0.04rem;
}

.scoreboard-player__identity strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-player__identity span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.42rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-player__score,
.leaderboard-row__score {
  color: #ffc639;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-shadow: 1px 1px 0 #f27300;
  white-space: nowrap;
}

/* Mundos Parrilleros: tarjetas y controles conforme al arte de producción. */
.view--passport {
  gap: 0.55rem;
  background: #fff2cc;
}

/* Explorar comparte el fondo de Mundos y se concentra exclusivamente en el
   acceso gráfico al mapa del evento. */
.view--explore {
  min-height: 100%;
  padding: 1rem;
  background: #fff2cc;
}

.explore-map-banner {
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.28rem 0.7rem rgba(93, 56, 24, 0.18);
}

.explore-map-banner:focus-visible {
  outline: 3px solid #bc5000;
  outline-offset: 3px;
}

.explore-map-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.view--passport .section-block {
  padding: 0.05rem 0.05rem 0.18rem;
}

.view--passport .section-header-inline {
  margin: 0.1rem 0 0.5rem;
}

.view--passport .section-title {
  color: #8a2216;
  font-family: "Poppins", "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
}

.world-grid {
  gap: 0.36rem;
}

.world-card,
.world-card.is-unlocked,
.world-card.is-locked {
  /* Paleta final de Mundos Parrilleros. */
  min-height: 0;
  aspect-ratio: 1.38 / 1;
  padding: 0.3rem 0.34rem 0.36rem;
  border: 2px solid #bc5000;
  border-radius: 0.82rem;
  background: #fedeb8;
  box-shadow: 0 0.1rem 0 rgba(188, 80, 0, 0.38), 0 0.28rem 0.52rem rgba(119, 72, 16, 0.1);
  font-family: "Poppins", "Manrope", sans-serif;
}

/* Las tarjetas de Mundos Parrilleros usan la tipografía oficial, incluso
   cuando alguno de sus elementos internos define una fuente propia. */
.world-card,
.world-card * {
  font-family: "Mutone", "Manrope", sans-serif !important;
}

.world-card__topline {
  min-height: 1.42rem;
  margin: 0;
}

.world-card__spacer {
  width: 1.42rem;
  height: 1.42rem;
}

.world-card__open,
.world-card__open--locked {
  width: 1.42rem;
  height: 1.42rem;
  border: 0;
  color: #fff2cc;
  background: #ffa506;
  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 0.08rem 0 #bc5000, 0 0.15rem 0.26rem rgba(188, 80, 0, 0.24);
}

.world-card__center {
  min-height: 3.55rem;
  transform: none;
}

.world-card__art-shell {
  min-height: 4.1rem;
  margin-top: -0.08rem;
}

.world-card__art {
  width: min(100%, 8.75rem);
  max-height: 4rem;
}

.world-card__progress {
  transform: none;
}

.world-card__progress-row {
  margin-bottom: 0.18rem;
  color: #16814b;
  font-size: 0.68rem;
  font-weight: 500;
}

.world-card .progress-bar {
  height: 0.46rem;
  background: #e8e69e;
}

.world-card.is-unlocked .progress-bar--world-green .progress-bar__fill {
  background: #43c84b;
}

.world-card__actions {
  margin-top: auto;
  transform: none;
}

.world-card__unlock {
  min-height: 1.22rem;
  padding-inline: 0.38rem;
  background: #43c84b;
  font-family: "Poppins", sans-serif;
  font-size: 0.48rem;
  box-shadow: none;
}

.scoreboard-tabs {
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: #f2dfbb;
}

.scoreboard-tabs__item {
  min-height: 1.58rem;
  padding: 0.33rem 0.16rem;
  border-radius: 0;
  color: #9b7252;
  font-size: 0.58rem;
  font-weight: 800;
}

.scoreboard-tabs__item.is-active {
  color: #a55215;
  background: #fff2d6;
  box-shadow: inset 0 -2px 0 #d3761c;
}

.scoreboard-content {
  padding: 0.45rem 0.14rem 0 0;
  background: #fff2d6;
}

.leaderboard-list {
  margin: 0;
  gap: 0.34rem;
  padding: 0 0.25rem 0.22rem;
}

.leaderboard-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  min-height: 2.82rem;
  padding: 0.28rem 0.36rem;
  border: 1px solid #d9b477;
  border-radius: 0.72rem;
  background: #fff8e9;
  box-shadow: 0 2px 0 rgba(186, 129, 46, 0.22);
}

.leaderboard-row.is-highlight {
  border-color: #e09937;
  background: #fff1d6;
}

.leaderboard-row__identity {
  gap: 0.38rem;
}

.leaderboard-row__identity img {
  width: 2.05rem;
  height: 2.05rem;
  border: 2px solid #f4bd35;
  box-shadow: none;
}

.leaderboard-row__identity > div {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}

.leaderboard-row__identity strong {
  color: #8b4b26;
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1.1;
}

.leaderboard-row__identity span {
  color: #c49b76;
  font-size: 0.42rem;
  font-weight: 700;
  line-height: 1.1;
}

.leaderboard-row__score {
  padding-right: 0.08rem;
  font-size: 0.72rem;
}

/* Ajustes de composición para la portada de Mundos y la tabla de puntaje. */
.brand--platform {
  gap: 0.78rem;
}

.topbar .brand--platform .brand__mark {
  width: 3.8rem;
  height: 3.8rem;
}

.brand__separator {
  display: none;
}

.brand__brasaporte {
  width: 7.7rem;
  height: 3.8rem;
}

.passport-hero__header {
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.4rem;
}

.passport-hero__avatar {
  width: 6.7rem;
  height: 6.7rem;
  margin-top: 0.62rem;
  margin-left: 0.25rem;
}

.passport-hero__edit {
  right: -0.18rem;
  bottom: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(129, 20, 33, 0.46) !important;
  box-shadow: 0 0.2rem 0.48rem rgba(83, 20, 22, 0.24) !important;
  backdrop-filter: blur(0.18rem);
}

.passport-hero__identity {
  align-self: center;
  display: grid;
  gap: 0.28rem;
  padding-right: 0.3rem;
  text-align: center;
}

.passport-hero__name {
  font-size: 1.64rem;
  line-height: 1.04;
  text-align: center;
}

.passport-hero__meta {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.passport-hero__rank-row {
  padding-left: 7.75rem;
}

.modal-overlay--scoreboard {
  padding: calc(env(safe-area-inset-top) + 5rem) 0.55rem 0.75rem;
}

.modal-card--scoreboard {
  width: min(100%, 29rem);
  max-width: 29rem;
  max-height: calc(100svh - 5.85rem);
  padding: 0.48rem 0.58rem 0.7rem;
}

.modal-card--scoreboard .modal-card__close {
  top: 0.42rem;
  right: 0.42rem;
  width: 2rem;
  height: 2rem;
}

.scoreboard-head__title {
  padding: 0.56rem 0.9rem 0.34rem;
  font-size: 1.02rem;
}

.scoreboard-player {
  grid-template-columns: 3.1rem minmax(0, 1fr) auto;
  gap: 0.68rem;
  padding: 0.34rem 0.86rem 0.6rem;
}

.scoreboard-player > img {
  width: 3.1rem;
  height: 3.1rem;
}

.scoreboard-player__identity strong {
  font-size: 0.98rem;
}

.scoreboard-player__identity span {
  font-size: 0.68rem;
}

.scoreboard-player__score,
.leaderboard-row__score {
  font-size: 1.24rem;
}

.scoreboard-tabs__item {
  min-height: 2rem;
  font-size: 0.78rem;
}

.scoreboard-content {
  padding-top: 0.55rem;
}

.leaderboard-list {
  gap: 0.44rem;
  padding: 0 0.36rem 0.28rem;
}

.leaderboard-row {
  min-height: 4.35rem;
  padding: 0.55rem 0.68rem;
  border-radius: 0.98rem;
}

.leaderboard-row__identity img {
  width: 3.15rem;
  height: 3.15rem;
}

.leaderboard-row__identity strong {
  font-size: 0.9rem;
}

.leaderboard-row__identity span {
  font-size: 0.66rem;
}

.progress-map__pin,
.progress-map__world.is-complete .progress-map__pin {
  width: 3.8rem;
  height: 3rem;
  padding: 0.12rem;
  overflow: visible;
  border-radius: 0.72rem;
  background: transparent;
  filter: grayscale(1) saturate(0.15) opacity(0.48);
}

.progress-map__world.is-complete .progress-map__pin {
  filter: none;
}

.progress-map__pin-image {
  width: 100%;
  height: 100%;
  border-radius: 0.6rem;
  object-fit: contain;
}

/* La cabina de foto usa todo el espacio entre la cabecera y la navegación. */
.phone-frame--photo-booth .app-content {
  overflow: hidden;
  padding-bottom: 0;
  background: #080706;
}

.phone-frame--photo-booth .view--photo {
  height: calc(100% - 4.75rem);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.phone-frame--photo-booth .experience-card--photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #080706;
}

.phone-frame--photo-booth .experience-frame--photo {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* La tabla muestra exclusivamente el rango y la puntuación del día activo. */
.scoreboard-head--iniciador { background: linear-gradient(135deg, #e48724, #c85f10); }
.scoreboard-head--parrillero { background: linear-gradient(135deg, #dc3428, #ad1b17); }
.scoreboard-head--guardian { background: linear-gradient(135deg, #315f9e, #173c76); }
.scoreboard-head--experto { background: linear-gradient(135deg, #14803a, #075016); }
.scoreboard-head--grill-master { background: linear-gradient(135deg, #3a3537, #151112); }

.scoreboard-player {
  grid-template-columns: 3.55rem minmax(0, 1fr) auto;
  gap: 0.76rem;
  padding: 0.38rem 0.9rem 0.68rem;
}

.scoreboard-player > img {
  width: 3.55rem;
  height: 3.55rem;
}

.scoreboard-player__identity strong {
  font-size: 1.12rem;
}

.scoreboard-player__identity span {
  font-size: 0.78rem;
}

.scoreboard-player__identity .rank-label-with-icon > img {
  width: 1.14rem;
  height: 1.14rem;
}

.scoreboard-player__score,
.leaderboard-row__score {
  font-size: 1.45rem;
}

.leaderboard-row {
  min-height: 4.7rem;
  padding: 0.6rem 0.76rem;
}

.leaderboard-row__identity {
  gap: 0.62rem;
}

.leaderboard-row__identity img {
  width: 3.42rem;
  height: 3.42rem;
}

.leaderboard-row__identity strong {
  font-size: 1rem;
}

.leaderboard-row__identity span {
  font-size: 0.72rem;
}

@media (orientation: landscape) {
  .page-shell:has(.phone-frame--photo-booth) {
    padding: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    background: #080706;
  }

  .phone-frame--photo-booth {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: #080706;
    box-shadow: none;
  }

  .phone-frame--photo-booth .bottom-nav {
    display: none;
  }

  .phone-frame--photo-booth .app-content {
    padding-bottom: 0;
  }

  .phone-frame--photo-booth .view--photo {
    height: 100%;
  }
}

/* Portada de Mundos: el rango acompaña la identidad y las tarjetas reservan
   una franja propia para desbloquear sin cubrir los logos. */
.passport-hero__identity {
  align-content: center;
}

.passport-hero__rank-row {
  width: 100%;
  margin-top: 0.38rem;
  padding-left: 0;
}

.passport-hero__rank-pill {
  width: 100%;
  max-width: none;
  min-height: 2.7rem;
}

.passport-hero__summary {
  margin-top: 0.82rem;
}

.world-card.is-locked {
  display: grid;
  grid-template-rows: 1.42rem minmax(0, 1fr) 1.92rem;
  gap: 0.16rem;
  justify-content: initial;
}

.world-card.is-locked .world-card__center {
  min-height: 0;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.world-card.is-locked .world-card__art-shell {
  min-height: 0;
  height: 100%;
  margin: 0;
  position: absolute;
  inset: 0;
  display: block;
}

.world-card.is-locked .world-card__art {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
}

.world-card.is-locked .world-card__actions {
  width: 100%;
  min-height: 0;
  height: 1.92rem;
  margin: 0;
  padding: 0;
}

.world-card.is-locked .world-card__unlock.primary-button--compact {
  height: 100%;
  min-height: 0;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
  box-shadow: none;
}

.world-card__unlock.primary-button--compact svg {
  width: 0.72rem;
  height: 0.72rem;
}

@media (max-width: 390px) {
  .passport-hero__avatar {
    width: 5.85rem;
    height: 5.85rem;
  }

  .passport-hero__name {
    font-size: 1.34rem;
  }

  .passport-hero__rank-pill {
    min-height: 2.45rem;
  }
}

.modal-overlay--unlock-guide { z-index: 40; padding: 1rem; }
.unlock-guide-modal { position: relative; width: min(100%, 25rem); padding: 1.45rem; border: 1px solid rgba(255,255,255,.56); border-radius: 1.5rem; color: #fff; text-align: center; background: linear-gradient(145deg, #8f211b, #c92724 58%, #e13d31); box-shadow: 0 1.4rem 3.2rem rgba(64,15,13,.38); }
.unlock-guide-modal__close { position: absolute; top: .65rem; right: .65rem; background: rgba(0,0,0,.22); color: #fff; }
.unlock-guide-modal__eyebrow { margin: 0; color: #ffd4bd; font-size: .68rem; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.unlock-guide-modal h2 { margin: .35rem 2rem .35rem; color: #fff; font-size: 1.55rem; }
.unlock-guide-modal > p:not(.unlock-guide-modal__eyebrow) { margin: 0 auto; max-width: 20rem; color: #fff0e8; font-size: .87rem; line-height: 1.45; }
.unlock-guide-modal__art { display: grid; place-items: center; min-height: 11rem; margin: 1rem 0; padding: .55rem; border-radius: 1.1rem; background: rgba(255,255,255,.93); box-shadow: inset 0 0 0 1px rgba(104,21,18,.12); }
.unlock-guide-modal__art img { display: block; width: min(100%, 16rem); max-height: 15rem; object-fit: contain; }
.unlock-guide-modal__start { width: 100%; justify-content: center; background: #fff; color: #a5261e; box-shadow: 0 .3rem 0 rgba(84,16,13,.25); }
