/* ================================
   ESTILOS GENERALES
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #333330;
  overflow: hidden;
}

/* ================================
   PANTALLA DE CARGA
   ================================ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cb8a62 0%, #e6be9a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #333330;
}

.loading-logos {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.loading-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(51, 51, 48, 0.3);
  border-top: 5px solid #333330;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-percent {
  font-size: 1.5rem;
  margin-top: 10px;
  font-weight: bold;
  color: #333330;
}

/* ================================
   CONTENEDOR PRINCIPAL
   Lienzo completo del viewport, sin columna centrada
   ================================ */
#app-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #333330;
}

/* ================================
   HEADER FLOTANTE SOBRE EL MAPA
   ================================ */
header {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 450px;
  background: rgba(51, 51, 48, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  z-index: 60;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-logos {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.header-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-text {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.header-text h1 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.header-text p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ================================
   MAPA A PANTALLA COMPLETA
   Ocupa todo el viewport; el header y el nav flotan encima
   ================================ */
.map-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background-image: url("assets/fondo-mapa.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #333330;
  touch-action: none;
  cursor: grab;
  overscroll-behavior: none;
}

.map-container.grabbing {
  cursor: grabbing;
}

.map-content {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, calc(100vh * 1082.48 / 1924.4));
  width: min(100%, calc(100dvh * 1082.48 / 1924.4));
  height: min(100%, calc(100vw * 1924.4 / 1082.48));
  transform-origin: center center;
  transition: transform 0.05s ease-out;
  will-change: transform;
}

#mapa-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
}

/* ================================
   ZOOM - FLOTANTE BORDE DERECHO
   ================================ */
.zoom-controls {
  position: fixed;
  right: 12px;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.zoom-btn {
  width: 44px;
  height: 44px;
  background: rgba(203, 138, 98, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
  background: rgba(203, 138, 98, 1);
  transform: scale(1.05);
}

.zoom-btn:active {
  transform: scale(0.95);
}

/* ================================
   BRÚJULA - FLOTANTE JUNTO AL ZOOM
   ================================ */
#compass {
  position: fixed;
  right: 66px;
  bottom: 152px;
  width: 62px;
  height: 62px;
  z-index: 55;
  cursor: pointer;
  transition: transform 0.2s;
}

#compass:active {
  transform: scale(0.95);
}

.compass-glass-bg {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.compass-bg {
  position: absolute;
  top: -2%;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/compass-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 5;
}

.compass-needle {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  z-index: 10;
}

.needle-red {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 18px solid #e74c3c;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ================================
   PINS
   ================================ */
#map-content {
  --pin-base: 40px;
  --pin-scale: 1;
}

.hotspot {
  position: absolute;
  width: calc(var(--pin-base) * var(--pin-scale));
  height: calc(var(--pin-base) * var(--pin-scale));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition:
    transform 0.2s,
    opacity 0.3s;
  animation: bounce 2s ease-in-out infinite;
}

.hotspot-inicio {
  background-image: url("assets/iconos-mapa/icono-inicio.png");
}
.hotspot-fin {
  background-image: url("assets/iconos-mapa/icono-fin.png");
}
.hotspot-mural {
  background-image: url("assets/iconos-mapa/icono-mural.png");
}

.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
  animation: none;
  z-index: 15;
}

.hotspot.hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.map-container.grabbing .hotspot,
body.is-pinching .hotspot {
  animation-play-state: paused;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-1px);
  }
}

/* ================================
   PUNTO GPS DEL USUARIO
   ================================ */
#user-location {
  position: absolute;
  width: calc(36px * var(--pin-scale));
  height: calc(36px * var(--pin-scale));
  background-image: url("assets/icon-ubicacion.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 20;
  will-change: transform;
  animation: pulse-blue 2s infinite;
  transition: transform 0.3s ease-out;
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

/* ================================
   MODALES
   ================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
  color: white;
}

.modal-simplified {
  padding: 40px 30px;
}

.modal-simplified h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Detalle de Mural */
.mural-detail {
  text-align: left;
}

.mural-detail-img {
  width: 100%;
  max-height: 45vh;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mural-detail-artist {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.mural-detail-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
}

.qr-action-section {
  margin-top: 20px;
}

.qr-action-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.qr-camera-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 15px;
  padding: 20px 40px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
}

.qr-camera-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.qr-camera-btn:active {
  transform: translateY(0);
}

.camera-icon {
  width: 32px;
  height: 32px;
}

.qr-scanner-container {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

#qr-reader {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.qr-close-btn {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 24px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.qr-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ================================
   AVISO DE PERMISOS DE CÁMARA
   ================================ */
.camera-permission-notice {
  margin-top: 20px;
  padding: 25px;
  background: rgba(231, 76, 60, 0.2);
  border: 2px solid rgba(231, 76, 60, 0.5);
  border-radius: 15px;
  text-align: left;
}

.notice-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
}

.camera-permission-notice h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #e74c3c;
  text-align: center;
}

.camera-permission-notice > p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 20px;
}

.permission-tutorial {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.permission-tutorial h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: white;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tutorial-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.step-number {
  background: #667eea;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.tutorial-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

.mobile-instructions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-instructions h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: white;
}

.mobile-instructions ul {
  list-style: none;
  padding: 0;
}

.mobile-instructions li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-instructions li:last-child {
  border-bottom: none;
}

.retry-camera-btn,
.retry-location-btn {
  background: #e74c3c;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.retry-camera-btn:hover,
.retry-location-btn:hover {
  background: #c0392b;
}

/* ================================
   AVISO DE PERMISOS DE UBICACIÓN
   ================================ */
.location-permission-notice {
  margin-top: 20px;
  padding: 25px;
  background: rgba(52, 152, 219, 0.2);
  border: 2px solid rgba(52, 152, 219, 0.5);
  border-radius: 15px;
  text-align: left;
}

.location-permission-notice .notice-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
}

.location-permission-notice h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #3498db;
  text-align: center;
}

.location-permission-notice > p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 20px;
}

/* ================================
   MODAL DE FILTROS
   ================================ */
.filter-modal {
  max-width: 500px;
}

.filter-modal h2 {
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.filter-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.filter-item.active {
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.filter-icons-combined {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.filter-icon-small {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.filter-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
}

.filter-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: white;
}

.filter-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ================================
   MODAL DE LISTA DE MURALES
   ================================ */
.murales-modal {
  max-width: 500px;
  max-height: 85vh;
}

.murales-modal h2 {
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.murales-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.mural-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.mural-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.mural-item .mural-number {
  background: rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mural-item .mural-info h4 {
  font-size: 1rem;
  margin-bottom: 3px;
  color: white;
}

.mural-item .mural-info p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.mural-item-destacado {
  background: rgba(203, 138, 98, 0.35) !important;
  border: 2px solid rgba(203, 138, 98, 0.7) !important;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(203, 138, 98, 0.3);
}

.mural-item-destacado:hover {
  background: rgba(203, 138, 98, 0.5) !important;
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(203, 138, 98, 0.5);
}

.mural-item-destacado .mural-number {
  background: rgba(203, 138, 98, 0.9) !important;
  color: #ffffff;
}

.ver-todos-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.loading-murales {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.close-btn:hover {
  color: white;
}

/* ================================
   NAVEGACIÓN INFERIOR FLOTANTE
   ================================ */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(51, 51, 48, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s;
}

.nav-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-item span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
}
.nav-item:hover .nav-icon {
  opacity: 1;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item.active .nav-icon {
  opacity: 1;
}
.nav-item:active {
  transform: scale(0.95);
}

/* ================================
   SCROLLBAR
   ================================ */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.murales-list::-webkit-scrollbar {
  width: 6px;
}
.murales-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.murales-list::-webkit-scrollbar-thumb {
  background: rgba(203, 138, 98, 0.5);
  border-radius: 3px;
}

/* ================================
   MEDIA QUERIES (MÓVIL)
   ================================ */
@media (max-width: 768px) {
  header {
    top: 8px;
    width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .header-logo {
    height: 40px;
  }
  .header-text h1 {
    font-size: 0.95rem;
  }
  .header-text p {
    font-size: 0.66rem;
  }

  .zoom-controls {
    right: 10px;
    bottom: 140px;
    gap: 6px;
  }

  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 10px;
  }

  #compass {
    right: 60px;
    bottom: 142px;
    width: 54px;
    height: 54px;
  }

  .compass-glass-bg {
    width: 62px;
    height: 62px;
  }

  .needle-red {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 15px solid #e74c3c;
  }

  #map-content {
    --pin-base: 45px;
  }

  .modal-content {
    padding: 25px;
  }
  .modal-simplified {
    padding: 30px 20px;
  }
  .modal-simplified h2 {
    font-size: 1.5rem;
  }
  .qr-camera-btn {
    padding: 18px 30px;
    font-size: 1.1rem;
  }
  .filter-modal {
    max-width: 90%;
  }
  .filter-icon {
    width: 56px;
    height: 56px;
  }
  .filter-icon-small {
    width: 35px;
    height: 35px;
  }
  .murales-modal {
    max-width: 90%;
  }

  .bottom-nav {
    width: calc(100% - 20px);
    padding: 8px 6px;
    bottom: 10px;
  }

  .nav-item {
    padding: 6px 12px;
  }
  .nav-icon {
    width: 22px;
    height: 22px;
  }
  .nav-item span {
    font-size: 0.62rem;
  }
}

/* Pantallas muy bajas (horizontal o celulares pequenos) */
@media (max-height: 620px) {
  .header-logo {
    height: 32px;
  }
  .header-content {
    gap: 5px;
  }
  .zoom-controls {
    bottom: 120px;
  }
  #compass {
    bottom: 122px;
  }
}

/* =========================================
   FONDO GENERAL CARBÓN ORGANICO
   ========================================= */
#app-container,
#map-container,
.map-wrapper,
main {
  background-color: #333330 !important;
}

/* =========================================
   BOTONES
   ========================================= */
button,
.btn,
.bottom-nav button,
.nav-btn,
.modal-btn,
.action-btn,
.filter-btn {
  background: rgba(203, 138, 98, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

button:hover,
.btn:hover,
.bottom-nav button:hover {
  background: rgba(203, 138, 98, 1) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203, 138, 98, 0.4);
}

button:active {
  transform: translateY(0);
}

/* =========================================
   ICONOS Y ESTADOS ACTIVOS
   ========================================= */
.bottom-nav button svg,
.bottom-nav button i,
.nav-btn svg,
.filter-btn svg {
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.bottom-nav button.active,
.nav-btn.active {
  background: #cb8a62 !important;
  box-shadow: 0 4px 15px rgba(203, 138, 98, 0.5);
  border-bottom: 3px solid #333330 !important;
}

/* =========================================
   MODALES Y LISTAS
   ========================================= */
.modal-content,
.modal-body,
.filter-modal {
  background: rgba(51, 51, 48, 0.95) !important;
  border: 1px solid rgba(203, 138, 98, 0.3) !important;
  color: #e6be9a !important;
  backdrop-filter: blur(15px);
}

.mural-item,
.list-item {
  background: rgba(203, 138, 98, 0.1) !important;
  border-bottom: 1px solid rgba(203, 138, 98, 0.2) !important;
  color: #e6be9a !important;
}

.mural-item:hover {
  background: rgba(203, 138, 98, 0.25) !important;
}

/* =========================================
   BORDES Y LÍNEAS LIMPIAS
   ========================================= */
.mural-list li,
.mural-item,
.mural-card,
.modal-content,
.modal-body {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  outline: none !important;
  background-clip: padding-box;
}

.mural-list li::after,
.mural-item::after,
.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

/* =========================================
   RESPLANDOR NARANJA EN BOTONES
   ========================================= */
.btn,
.btn-primary,
.btn-camera,
button[class*="camera"],
.action-btn,
#btn-camera {
  box-shadow:
    0 0 15px rgba(255, 130, 0, 0.5),
    0 0 30px rgba(255, 90, 0, 0.3) !important;
  border: 1px solid rgba(255, 165, 0, 0.4) !important;
  background: linear-gradient(135deg, #ff8c00, #ff5500) !important;
  color: white !important;
  transition: all 0.3s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-camera:hover,
button[class*="camera"]:hover,
#btn-camera:hover {
  box-shadow:
    0 0 20px rgba(255, 140, 0, 0.8),
    0 0 40px rgba(255, 100, 0, 0.5) !important;
  border: 1px solid rgba(255, 200, 0, 0.7) !important;
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.3) !important;
  border: 1px solid rgba(255, 165, 0, 0.5) !important;
}

/* ================================
   MODAL DE BIENVENIDA
   ================================ */
.welcome-modal {
  background: linear-gradient(135deg, #cb8a62 0%, #e6be9a 100%) !important;
  border: 2px solid rgba(51, 51, 48, 0.3) !important;
  color: #333330 !important;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 30px;
}

.welcome-header {
  text-align: center;
  margin-bottom: 30px;
}

.welcome-logos {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.welcome-logos .welcome-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.welcome-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.welcome-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333330 !important;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.welcome-subtitle {
  font-size: 1rem;
  color: #333330 !important;
  line-height: 1.5;
  font-weight: 500;
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
}

.welcome-step {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s;
}

.welcome-step:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.step-content {
  width: 100%;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333330 !important;
  font-weight: 700;
  text-align: center !important;
  justify-content: center !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-content p {
  font-size: 0.95rem;
  color: #333330 !important;
  line-height: 1.6;
  margin-top: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.step-content p strong {
  color: #333330 !important;
  font-weight: 700;
  display: inline;
}

/* Iconos inline en el texto */
.inline-icon-img {
  width: 40px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 3px;
  flex-shrink: 0;
}

.inline-icon-qr {
  width: 28px;
  height: 28px;
  background: #333330;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.inline-icon-qr svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.welcome-footer {
  text-align: center;
  margin-top: 30px;
}

.welcome-final-message {
  font-size: 1.1rem;
  color: #333330 !important;
  margin-bottom: 20px;
  font-weight: 600;
}

.welcome-start-btn {
  background: #333330 !important;
  color: #e6be9a !important;
  border: 2px solid rgba(230, 190, 154, 0.5) !important;
  border-radius: 15px;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 20px rgba(51, 51, 48, 0.4);
  transition: all 0.3s;
}

.welcome-start-btn:hover {
  background: #1a1a18 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(51, 51, 48, 0.6);
}

.welcome-start-btn:active {
  transform: translateY(0);
}

#compass:active .compass-glass-bg {
  border: 2px solid #cb8a62;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(203, 138, 98, 0.6);
}

.proximity-modal {
  text-align: center;
  border: 2px solid rgba(203, 138, 98, 0.5);
}

.proximity-message {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 20px 0;
  line-height: 1.5;
}

.proximity-mural-info {
  background: rgba(203, 138, 98, 0.2);
  border: 1px solid rgba(203, 138, 98, 0.4);
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}

.proximity-mural-info h3 {
  color: #e6be9a;
  font-size: 1.3rem;
  margin: 0;
}

.proximity-scan-btn {
  margin-top: 15px;
}

.proximity-close-btn {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 24px;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.proximity-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ================================
   HOTSPOT DE REFERENCIA (Puntos rojos)
   ================================ */
.hotspot-referencia {
  background-image: url("assets/iconos-mapa/icono-referencia.png");
  width: calc(var(--pin-base) * var(--pin-scale) * 0.9);
  height: calc(var(--pin-base) * var(--pin-scale) * 0.9);
  z-index: 15;
  animation: none;
}

.hotspot-referencia:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 18;
}

/* ================================
   PANEL DE CALIBRACIÓN
   ================================ */
#calibration-panel {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 400px;
  background: rgba(51, 51, 48, 0.95);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(231, 76, 60, 0.6);
  border-radius: 16px;
  padding: 20px;
  z-index: 9998;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: white;
}

.calibration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calibration-header h3 {
  font-size: 1.1rem;
  color: #e74c3c;
  margin: 0;
}

.calibration-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calibration-close,
.calibration-min {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.calibration-close:hover {
  background: rgba(231, 76, 60, 0.3);
}

.calibration-min:hover {
  background: rgba(203, 138, 98, 0.4);
}

.calibration-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Estado minimizado: pastilla en esquina que no bloquea el mapa */
#calibration-panel.minimized {
  top: 12px;
  left: 12px;
  transform: none;
  width: auto;
  max-width: none;
  padding: 8px 12px;
  border-radius: 999px;
}

#calibration-panel.minimized .calibration-body {
  display: none;
}

#calibration-panel.minimized .calibration-header {
  margin-bottom: 0;
}

#calibration-panel.minimized .calibration-header h3 {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

#calibration-panel.minimized .calibration-min,
#calibration-panel.minimized .calibration-close {
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

.calibration-instruction {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.calibration-result {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  min-height: 80px;
}

.calibration-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.calibration-data {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #e6be9a;
  margin: 0;
  line-height: 1.6;
  word-break: break-all;
}

.calibration-copy {
  background: rgba(203, 138, 98, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 20px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.calibration-copy:hover {
  background: rgba(203, 138, 98, 1);
}

.calibration-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Durante calibración: hotspots no interceptan clics y cursor en cruz */
body.calibration-active .hotspot,
body.calibration-active #user-location {
  pointer-events: none;
}

body.calibration-active .map-container {
  cursor: crosshair;
}

/* ================================
   CONTENIDO DE PUNTOS DE PREMIO
   ================================ */
.referencia-foto {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(203, 138, 98, 0.4);
  margin: 15px 0;
  background: rgba(0, 0, 0, 0.2);
}

.referencia-texto {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e6be9a;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Item destacado de premios en la lista de murales */
.mural-item-premios {
  background: rgba(231, 76, 60, 0.15) !important;
  border: 2px solid rgba(231, 76, 60, 0.6) !important;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.25);
}

.mural-item-premios:hover {
  background: rgba(231, 76, 60, 0.3) !important;
  transform: translateX(8px);
}

.mural-item-premios .mural-number {
  background: rgba(231, 76, 60, 0.9) !important;
  color: #ffffff;
}

.premios-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* ================================
   DETALLE DE MURAL: VIDEO, AUTOR/NARRADOR, PREGUNTA Y PUNTOS
   ================================ */
.mural-video {
  width: min(100%, calc(62vh * 9 / 16));
  aspect-ratio: 9 / 16;
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #333330;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.mural-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Autor y narrador */
.mural-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mural-person {
  background: rgba(255, 255, 255, 0.12);
  border-left: 3px solid #e6be9a;
  border-radius: 6px 12px 12px 6px;
  padding: 10px 12px;
}

.mural-person:only-child {
  grid-column: 1 / -1;
}

.person-role {
  display: block;
  font-size: 0.75rem;
  color: #e6be9a;
  margin-bottom: 2px;
}

.person-name {
  display: block;
  font-size: 1rem;
  color: white;
}

.person-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.person-desc:empty {
  display: none;
}

/* Pregunta */
.mural-quiz {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.quiz-hint {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: white;
  margin-bottom: 14px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  font: inherit;
  font-size: 1rem;
  text-align: left;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.quiz-option:hover:not(:disabled) {
  background: rgba(230, 190, 154, 0.3);
  border-color: #e6be9a;
}

.quiz-option:focus-visible,
.quiz-next-btn:focus-visible,
.points-badge:focus-visible,
.premio-entregar-btn:focus-visible {
  outline: 3px solid #e6be9a;
  outline-offset: 2px;
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.6;
}

.quiz-option.is-correct {
  opacity: 1;
  background: rgba(46, 160, 90, 0.45);
  border-color: #5fd38d;
}

.quiz-option.is-wrong {
  opacity: 1;
  background: rgba(214, 69, 65, 0.45);
  border-color: #ff8a80;
}

.quiz-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
}

.quiz-result.ok {
  background: rgba(46, 160, 90, 0.3);
}

.quiz-result.fail {
  background: rgba(51, 51, 48, 0.45);
}

.quiz-result-msg {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.quiz-result-progress {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.quiz-next-btn {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #333330;
  background: #e6be9a;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  margin-top: 12px;
  width: 100%;
  cursor: pointer;
}

.quiz-next-btn:hover {
  background: #cb8a62;
  color: white;
}

/* Contador de puntos en el header */
.points-badge {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #333330;
  background: #e6be9a;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.points-star {
  color: #a8572a;
}

/* Lista de murales: estado */
.mural-item .mural-info {
  flex: 1;
}

.mural-status {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 4px 10px;
}

.mural-status.ok {
  background: #e6be9a;
  color: #333330;
}

.mural-status.fail {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Modal de puntos y premio */
.puntos-modal h2 {
  margin-bottom: 10px;
}

.puntos-total {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: white;
}

.puntos-total span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #e6be9a;
  margin-top: 4px;
}

.puntos-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 8px;
}

.puntos-bar div {
  height: 100%;
  background: #e6be9a;
  border-radius: 999px;
  transition: width 0.4s;
}

.puntos-count {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.puntos-falta {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.premio-box {
  margin-top: 20px;
  background: #e6be9a;
  color: #333330;
  border-radius: 16px;
  padding: 20px;
}

.premio-box.entregado {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.premio-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.premio-codigo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 14px 0;
  padding: 10px;
  border: 2px dashed #333330;
  border-radius: 10px;
}

.premio-entregar-btn {
  font: inherit;
  font-weight: 700;
  color: white;
  background: #333330;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  width: 100%;
}

.premio-nota {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .puntos-bar div {
    transition: none;
  }
}

/* ================================
   INGRESO (usuario y contraseña de WordPress)
   ================================ */
.mural-panel {
  text-align: left;
}

.login-msg {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  text-align: center;
}

.login-msg:empty {
  display: none;
}

.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e6be9a;
  margin: 12px 0 6px;
}

.login-form input,
.premio-staff input {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #333330;
}

.login-form input:focus-visible,
.premio-staff input:focus-visible {
  outline: 3px solid #e6be9a;
  outline-offset: 1px;
}

.login-pass {
  display: flex;
  gap: 8px;
}

.login-pass input {
  flex: 1;
  min-width: 0;
}

.login-ver {
  font: inherit;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.login-error,
.quiz-error,
.premio-error {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffb4ab;
}

.premio-error {
  color: #a3261d;
}

.login-btn {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border-radius: 12px;
  cursor: pointer;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.login-links a {
  color: #e6be9a;
  font-size: 0.9rem;
}

.mural-msg {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  padding: 10px 0;
}

/* Puntos: saludo, staff y cerrar sesión */
.puntos-nombre {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.premio-staff {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(51, 51, 48, 0.5);
  text-align: left;
}

.premio-staff label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.premio-staff-row {
  display: flex;
  gap: 8px;
}

.premio-staff-row input {
  width: 6.5em;
  flex-shrink: 0;
  border-color: #333330;
}

.premio-staff-row .premio-entregar-btn {
  flex: 1;
  width: auto;
}

button.logout-link,
button.logout-link:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none;
  transform: none;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: underline;
  font: inherit;
  font-size: 0.9rem;
  margin-top: 20px;
  cursor: pointer;
}


.puntos-modal {
  max-height: 85vh;
}

.mural-status.pend {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.mural-status.none {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-style: italic;
  padding-right: 0;
}

/* ================================
   TARJETAS DE PREMIOS (Mis puntos)
   ================================ */
.premios-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.premio-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px;
}

.premio-card.ganado {
  border-color: #e6be9a;
}

.premio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.premio-card-title {
  font-size: 1.15rem;
  color: white;
}

.premio-card-pts {
  font-weight: 700;
  color: #e6be9a;
  white-space: nowrap;
}

.premio-card .puntos-bar {
  margin: 10px 0 12px;
}

.premio-murales {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premio-mural {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.premio-mural-estado {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.premio-mural.ok .premio-mural-estado {
  background: #e6be9a;
  color: #333330;
}

.premio-mural.fail .premio-mural-estado {
  background: rgba(214, 69, 65, 0.5);
  color: white;
}

.premio-falta,
.premio-entregado {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.premio-entregado {
  color: #9be3b4;
  font-weight: 700;
}

.premio-card .premio-box {
  margin-top: 14px;
  text-align: center;
}

.premio-card .premio-codigo {
  font-size: 1.6rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
