/* ==========================================================================
   EXPERIENCIA INMERSIVA: GARAGE · LA BANDA (ESPACIO DE ENSAYO CINEMÁTICO)
   ========================================================================== */

/* Modal full-screen overrides for Garage */
.room-modal-backdrop.room-modal-backdrop--garage {
  padding: 0;
  background: #080504;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 950;
  transition: opacity 0.5s ease;
}

.room-modal-card.room-modal-card--garage {
  width: 100vw;
  width: 100dvw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: 0;
  border: none;
  background: #070504;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0;
}

.room-modal-card.room-modal-card--garage::-webkit-scrollbar {
  width: 6px;
}
.room-modal-card.room-modal-card--garage::-webkit-scrollbar-thumb {
  background: rgba(224, 149, 92, 0.4);
  border-radius: 4px;
}

/* Contenedor principal del Garage */
.grg-experience {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #080504;
  color: var(--cream);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Topbar fija estilo sala de ensayo vintage */
/* ==========================================================================
   APPLE LIQUID GLASS SYSTEM & TOPBAR (visionOS Inspired)
   ========================================================================== */

/* Topbar fija estilo Apple Liquid Glass (Vintage Tones) */
.grg-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(18, 12, 9, 0.72) 0%, rgba(12, 8, 6, 0.5) 100%);
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  border-bottom: 1px solid rgba(224, 149, 92, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.grg-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* CLASE MAESTRA: BOTÓN APPLE LIQUID GLASS (TONO VINTAGE NATURAL CÁLIDO) */
.grg-glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eec896;
  background-color: rgba(24, 14, 9, 0.3);
  background: linear-gradient(135deg, rgba(180, 105, 50, 0.28) 0%, rgba(130, 70, 32, 0.18) 45%, rgba(35, 20, 12, 0.72) 100%);
  border: 1px solid rgba(224, 149, 92, 0.32);
  border-top-color: rgba(240, 175, 100, 0.48);
  border-bottom-color: rgba(130, 65, 25, 0.4);
  border-radius: 9999px;
  box-shadow:
    inset 0 1.2px 1px 0 rgba(240, 175, 95, 0.45),
    inset 0 0.5px 0.5px 0 rgba(220, 145, 80, 0.28),
    inset 0 -1.5px 2px 0 rgba(12, 6, 3, 0.6),
    0 8px 24px -4px rgba(0, 0, 0, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.25s ease;
  overflow: hidden;
}

/* Destello superior de curvatura de vidrio líquido vintage */
.grg-glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(235, 160, 80, 0.14) 0%, rgba(200, 120, 50, 0.01) 100%);
  border-radius: 9999px 9999px 120px 120px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .grg-glass-btn:hover {
    transform: translateY(-1.5px) scale(1.02);
    background: linear-gradient(135deg, rgba(220, 135, 65, 0.35) 0%, rgba(160, 85, 38, 0.22) 50%, rgba(45, 24, 14, 0.8) 100%);
    border-color: rgba(240, 175, 105, 0.5);
    border-top-color: rgba(250, 195, 125, 0.7);
    color: #ffdfaa;
    box-shadow:
      inset 0 1.5px 1px 0 rgba(250, 195, 125, 0.6),
      inset 0 -1px 2px 0 rgba(15, 8, 4, 0.5),
      0 12px 30px -4px rgba(0, 0, 0, 0.75),
      0 0 20px rgba(224, 149, 92, 0.3);
  }
}

@media (hover: hover) and (pointer: fine) {
  .grg-glass-btn:hover::before {
    opacity: 1;
  }
}

.grg-glass-btn:active {
  transform: translateY(0.5px) scale(0.98);
  box-shadow:
    inset 0 1px 1px 0 rgba(0, 0, 0, 0.4),
    inset 0 -1px 1px 0 rgba(255, 240, 210, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Píldora central de título */
.grg-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grg-topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 1.15rem;
  border-radius: 9999px;
  background: rgba(45, 28, 18, 0.64);
  border: 1px solid rgba(224, 149, 92, 0.28);
  box-shadow: inset 0 1px 0.5px rgba(255, 235, 205, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.grg-topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 8px var(--amber-hot);
  animation: blinkLive 1.8s infinite;
}

.grg-topbar-title {
  font-family: 'Anton', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(224, 149, 92, 0.35);
}

/* Controles a la derecha */
.grg-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botón Circular de Iluminación en Topbar (Solo foquito) */
.grg-ctrl-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #eec896;
}
.grg-ctrl-btn svg {
  transition: transform 0.25s ease, filter 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .grg-ctrl-btn:hover svg {
    transform: scale(1.18);
    filter: drop-shadow(0 0 6px rgba(224, 149, 92, 0.8));
  }
}
.grg-ctrl-btn.active {
  background: linear-gradient(135deg, rgba(235, 145, 65, 0.52) 0%, rgba(180, 95, 38, 0.38) 50%, rgba(85, 36, 14, 0.75) 100%);
  border-color: rgba(245, 180, 110, 0.65);
  border-top-color: rgba(255, 210, 140, 0.85);
  box-shadow:
    inset 0 1.5px 1.2px 0 rgba(255, 210, 140, 0.7),
    0 0 22px rgba(224, 149, 92, 0.55),
    0 8px 22px rgba(0, 0, 0, 0.5);
  color: #ffdfaa;
}
.grg-ctrl-btn.active svg {
  filter: drop-shadow(0 0 8px #ffaa44);
}

/* Botón Circular Cerrar */
.grg-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  font-size: 1.05rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .grg-close-btn:hover {
    transform: rotate(90deg) scale(1.06);
    border-color: rgba(255, 225, 180, 0.6);
  }
}

/* Escenario principal con imagen de fondo del Garage */
.grg-scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 85px 1.5rem 3rem;
  box-sizing: border-box;
}

/* Capa de fondo con la imagen de alta definición del Garage */
.grg-bg-layer {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 50% 30%, rgba(20, 12, 8, 0.35) 0%, rgba(8, 5, 4, 0.85) 75%, rgba(6, 4, 3, 0.98) 100%),
    linear-gradient(to bottom, rgba(8, 5, 4, 0.5) 0%, rgba(8, 5, 4, 0.2) 50%, rgba(8, 5, 4, 0.9) 100%),
    url('../assets/CASA/garage-la-banda.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 0;
  transition: filter 0.8s ease, transform 0.8s ease;
}

/* Efecto de luz ambiental: cálida / tenue */
.grg-experience.mode-dim .grg-bg-layer {
  filter: brightness(0.7) contrast(1.15) sepia(0.2);
}
.grg-experience.mode-bright .grg-bg-layer {
  filter: brightness(1.05) contrast(1.05);
}

/* Haz de luz cenital de la lámpara colgante */
.grg-spotlight-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 95vw);
  height: 85%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 205, 120, 0.38) 0%, rgba(224, 149, 92, 0.18) 35%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  filter: blur(12px);
  animation: lampWarmth 6s ease-in-out infinite alternate;
}

@keyframes lampWarmth {
  0% { opacity: 0.75; transform: translateX(-50%) scaleX(0.96); }
  50% { opacity: 0.9; transform: translateX(-50%) scaleX(1.03); }
  100% { opacity: 0.78; transform: translateX(-50%) scaleX(0.98); }
}

/* Parpadeo sutil del logo de neón en la pared de fondo */
.grg-neon-pulsar {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 175, 75, 0.42) 0%, rgba(224, 130, 60, 0.18) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(16px);
  animation: neonHum 4s infinite ease-in-out;
}

@keyframes neonHum {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.95); }
  45% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.05); }
  47% { opacity: 0.7; }
  50% { opacity: 0.98; }
  75% { opacity: 0.8; }
}

/* Canvas de motas de polvo flotantes en el haz de luz */
.grg-dust-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}

/* Capa de props de escenario (amplificadores, guitarras apoyadas, bajo, cables, micrófonos) */
/* Anclados exclusivamente a la zona superior de cubos para evitar cualquier colisión con la foto o el pie */
.grg-props-layer {
  position: absolute;
  top: 85px;
  left: 0;
  right: 0;
  height: 680px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Guitarras y bajo apoyados contra la pared */
.grg-wall-guitars-left {
  position: absolute;
  left: 1.5%;
  bottom: 60px;
  width: 130px;
  height: 260px;
  opacity: 0.8;
  filter: drop-shadow(4px 6px 16px rgba(0, 0, 0, 0.9));
  transform: rotate(6deg);
  transition: transform 0.5s ease;
}

.grg-wall-guitars-right {
  position: absolute;
  right: 2%;
  bottom: 60px;
  width: 140px;
  height: 270px;
  opacity: 0.8;
  filter: drop-shadow(-4px 6px 16px rgba(0, 0, 0, 0.9));
  transform: rotate(-8deg);
  transition: transform 0.5s ease;
}

/* Amplificadores y luces piloto titilantes (ubicado al flanco izquierdo de los instrumentos) */
.grg-amp-stack-left {
  position: absolute;
  left: 2%;
  bottom: 40px;
  width: 115px;
  height: 135px;
  background: linear-gradient(180deg, #1f1a18 0%, #120e0d 100%);
  border: 1.5px solid rgba(224, 149, 92, 0.35);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.9), inset 0 0 15px rgba(0,0,0,0.8);
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  padding: 8px;
  box-sizing: border-box;
}

.grg-amp-grille {
  flex: 1;
  background: repeating-linear-gradient(45deg, #221c19, #221c19 2px, #161210 2px, #161210 6px);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grg-amp-badge {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--amber-hot);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(224, 149, 92, 0.4);
}

.grg-amp-controls {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.grg-pilot-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5522;
  box-shadow: 0 0 10px #ff5522, 0 0 18px #ff7733;
  filter: drop-shadow(0 0 5px #ff6618);
  animation: pilotPulse 2.8s infinite alternate ease-in-out;
}
@keyframes pilotPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.grg-amp-knobs {
  display: flex;
  gap: 4px;
}
.grg-amp-knob {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a373;
  border: 1px solid #634832;
}

/* Micrófono vintage y pie */
.grg-stage-mic {
  position: absolute;
  right: 15%;
  bottom: 30px;
  width: 32px;
  height: 220px;
  opacity: 0.75;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.85));
}

/* Cables Jack desordenados en el piso de concreto del escenario */
.grg-floor-cables {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  opacity: 0.65;
}

/* Encabezado del escenario de ensayo */
.grg-stage-intro {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 1.6rem;
  pointer-events: auto;
}

.grg-stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-hot);
  background: rgba(224, 149, 92, 0.12);
  border: 1px solid rgba(224, 149, 92, 0.32);
  border-radius: 20px;
  padding: 0.32rem 1rem;
  margin-bottom: 0.75rem;
}

.grg-stage-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 8px var(--amber-hot);
  animation: blinkLive 1.8s infinite;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.grg-stage-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 25px rgba(0,0,0,0.9);
}

.grg-stage-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--cream-dim);
  line-height: 1.45;
  margin: 0 auto 0.75rem;
  max-width: 640px;
}

.grg-stage-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  opacity: 0.85;
}

/* ==========================================================================
   LOS 5 CUBOS 3D INTERACTIVOS EN EL CENTRO DEL GARAGE
   ========================================================================== */

.grg-stage-center {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  perspective: 1400px;
  -webkit-perspective: 1400px;
}

/* Contenedor en cuadrícula / arco para los 5 puestos de ensayo */
.grg-cubes-wrap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
  padding: 0.8rem 0.5rem 1.2rem;
  box-sizing: border-box;
}

/* Barra de acción con botón principal GIRAR TODOS justo debajo de los cubos */
.grg-cubes-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.8rem auto 2.2rem;
  position: relative;
  z-index: 15;
}

.grg-flip-all-cubes-btn {
  padding: 0.82rem 2.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  gap: 0.65rem;
}

/* Tarjeta individual del Cubo con perspectiva 3D */
.grg-cube-card {
  position: relative;
  width: 100%;
  height: 555px;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .grg-cube-card:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 14px 30px rgba(224, 149, 92, 0.28));
  }
}

/* Destacar la batería al centro con elevación de escenario */
.grg-cube-card[data-cube-id="bateria"] {
  transform: translateY(-10px);
}
@media (hover: hover) and (pointer: fine) {
  .grg-cube-card[data-cube-id="bateria"]:hover {
    transform: translateY(-18px);
  }
}

/* La estructura interna que rota 180 grados */
.grg-cube-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 14px;
}

.grg-cube-card.is-flipped .grg-cube-inner {
  transform: rotateY(180deg);
}
.grg-cube-card.is-flipped .grg-face--front {
  pointer-events: none;
  z-index: 1;
}
.grg-cube-card.is-flipped .grg-face--back {
  pointer-events: auto;
  z-index: 5;
}

/* Caras comunes: frontal y posterior */
.grg-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem 1.15rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   CARA FRONTAL: EL INSTRUMENTO & PUESTO DE ENSAYO (CUBO CERRADO)
   -------------------------------------------------------------------------- */
.grg-face--front {
  background:
    radial-gradient(ellipse at 50% 25%, rgba(45, 28, 20, 0.95) 0%, rgba(18, 12, 9, 0.98) 70%, rgba(10, 7, 5, 0.99) 100%);
  border: 1px solid rgba(224, 149, 92, 0.35);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(224, 149, 92, 0.1);
  transform: rotateY(0deg);
  z-index: 2;
}

/* Remaches y esquinas metálicas de cubo de ensayo / flight case */
.grg-face--front::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(224, 149, 92, 0.25);
  border-radius: 10px;
  pointer-events: none;
}

.grg-corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(224, 149, 92, 0.5);
  pointer-events: none;
}
.grg-corner--tl { top: 6px; left: 6px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.grg-corner--tr { top: 6px; right: 6px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.grg-corner--bl { bottom: 6px; left: 6px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.grg-corner--br { bottom: 6px; right: 6px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.grg-card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.grg-spot-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-hot);
  background: rgba(224, 149, 92, 0.14);
  border: 1px solid rgba(224, 149, 92, 0.3);
  padding: 0.24rem 0.65rem;
  border-radius: 4px;
}

.grg-inst-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  color: var(--stone);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
}
.grg-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

/* Área central de la cara frontal: Ilustración del instrumento */
.grg-inst-art-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0;
  position: relative;
}

.grg-inst-art-halo {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 149, 92, 0.28) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  animation: haloPulse 3.5s infinite alternate ease-in-out;
}

@keyframes haloPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.grg-inst-svg {
  width: 110px;
  height: 110px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.8));
  transition: transform 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .grg-cube-card:hover .grg-inst-svg {
    transform: scale(1.08) rotate(-2deg);
  }
}

.grg-inst-info {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 0.85rem;
}

.grg-inst-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.grg-inst-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--amber-hot);
  margin: 0 0 0.35rem;
}

.grg-inst-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  color: var(--stone);
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  display: inline-block;
}

/* Botón de llamada a la acción en cara frontal y botón central (Limpio, Profesional, Sin Excesos) */
.grg-flip-cta,
.grg-flip-all-cubes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(26, 18, 14, 0.92);
  border: 1px solid rgba(224, 149, 92, 0.3);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-shadow: none;
}

.grg-flip-cta {
  width: 100%;
  padding: 0.62rem 0.9rem;
  margin-top: auto;
}

.grg-flip-all-cubes-btn {
  padding: 0.72rem 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(36, 24, 18, 0.9);
  border: 1px solid rgba(224, 149, 92, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.grg-flip-cta::before,
.grg-flip-all-cubes-btn::before {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .grg-flip-cta:hover,
  .grg-cube-card:hover .grg-flip-cta {
    background: rgba(224, 149, 92, 0.18);
    border-color: var(--amber-hot);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(224, 149, 92, 0.25);
  }
}

@media (hover: hover) and (pointer: fine) {
  .grg-flip-all-cubes-btn:hover {
    background: rgba(224, 149, 92, 0.24);
    border-color: var(--amber-hot);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 18px rgba(224, 149, 92, 0.3);
  }
}

.grg-flip-cta svg,
.grg-flip-all-cubes-btn svg {
  transition: transform 0.4s ease;
  flex-shrink: 0;
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .grg-flip-cta:hover svg,
  .grg-cube-card:hover .grg-flip-cta svg,
  .grg-flip-all-cubes-btn:hover svg {
    transform: rotate(180deg);
    opacity: 1;
  }
}

.grg-flip-cta:active,
.grg-flip-all-cubes-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

/* --------------------------------------------------------------------------
   CARA POSTERIOR: LA FOTO REAL DEL INTEGRANTE & BIOGRAFÍA (CUBO GIRADO)
   -------------------------------------------------------------------------- */
.grg-face--back {
  background:
    radial-gradient(ellipse at 50% 15%, rgba(65, 38, 25, 0.95) 0%, rgba(20, 14, 10, 0.98) 60%, rgba(10, 7, 5, 0.99) 100%);
  border: 1px solid var(--amber-hot);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(224, 149, 92, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotateY(180deg);
  z-index: 1;
}

.grg-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.4rem;
}

.grg-member-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-hot);
  background: rgba(224, 149, 92, 0.18);
  border: 1px solid rgba(224, 149, 92, 0.45);
  border-radius: 4px;
  padding: 0.22rem 0.55rem;
}

.grg-turn-back-icon {
  font-size: 0.85rem;
  color: var(--amber);
  opacity: 0.85;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .grg-turn-back-icon:hover {
    transform: rotate(-90deg) scale(1.15);
  }
}

/* Contenedor de la foto troquelada del músico */
.grg-member-photo-frame {
  position: relative;
  width: 100%;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 60%, rgba(224, 149, 92, 0.22) 0%, rgba(14, 10, 8, 0.8) 75%);
  border: 1px solid rgba(224, 149, 92, 0.3);
  margin-bottom: 0.45rem;
}

.grg-member-photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: linear-gradient(to top, rgba(10, 7, 5, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

.grg-member-photo {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(1.02) drop-shadow(0 6px 16px rgba(0,0,0,0.9));
  transition: transform 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .grg-cube-card:hover .grg-member-photo {
    transform: scale(1.04);
  }
}

/* Nombre, rol y descripción */
.grg-member-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  min-height: 0;
}

.grg-member-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.grg-member-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: #f7f2ea;
  font-weight: 400;
  line-height: 1.50;
  letter-spacing: 0.01em;
  margin: 0;
  display: block;
  overflow-y: auto;
  max-height: 245px;
  padding-right: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 149, 92, 0.3) transparent;
}

.grg-member-desc strong {
  color: #ffe4c4;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.grg-member-desc em {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--amber-hot);
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(224, 149, 92, 0.35);
}

.grg-member-desc::-webkit-scrollbar {
  width: 3px;
}
.grg-member-desc::-webkit-scrollbar-track {
  background: transparent;
}
.grg-member-desc::-webkit-scrollbar-thumb {
  background: rgba(224, 149, 92, 0.35);
  border-radius: 3px;
}

/* Fila de acciones en la cara posterior (Sonido + Instagram + Volver) */
.grg-member-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  width: 100%;
}

.grg-sound-sample-btn {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(26, 18, 14, 0.85);
  border: 1px solid rgba(224, 149, 92, 0.3);
  border-radius: 8px;
  padding: 0 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.grg-sound-sample-btn::before {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .grg-sound-sample-btn:hover {
    color: #ffffff;
    background: rgba(224, 149, 92, 0.2);
    border-color: var(--amber-hot);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(224, 149, 92, 0.2);
  }
}

.grg-sound-sample-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

/* Botón de Instagram de cada integrante */
.grg-member-ig-btn {
  flex: 1.2;
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: rgba(26, 18, 14, 0.85);
  border: 1px solid rgba(224, 149, 92, 0.3);
  border-radius: 8px;
  padding: 0 0.7rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.grg-member-ig-btn::before {
  display: none;
}

.grg-member-ig-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .grg-member-ig-btn:hover {
    color: #ffffff;
    background: rgba(224, 149, 92, 0.2);
    border-color: var(--amber-hot);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(224, 149, 92, 0.2);
  }
}

@media (hover: hover) and (pointer: fine) {
  .grg-member-ig-btn:hover svg {
    transform: scale(1.15);
  }
}

.grg-member-ig-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

/* Botón Circular Volver al Instrumento */
.grg-flip-back-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(26, 18, 14, 0.85);
  border: 1px solid rgba(224, 149, 92, 0.3);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.grg-flip-back-btn svg {
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .grg-flip-back-btn:hover {
    color: #ffffff;
    background: rgba(224, 149, 92, 0.2);
    border-color: var(--amber-hot);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(224, 149, 92, 0.2);
  }
}

@media (hover: hover) and (pointer: fine) {
  .grg-flip-back-btn:hover svg {
    transform: rotate(-180deg);
  }
}

.grg-flip-back-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

/* ==========================================================================
   PIE DE ESCENARIO: BANDEJA DE VIDRIO LÍQUIDO & CONTROLES (Apple visionOS)
   ========================================================================== */
.grg-stage-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1040px;
  margin: 2rem auto 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.25rem 2.2rem;
  background: linear-gradient(135deg, rgba(32, 22, 16, 0.9) 0%, rgba(16, 11, 8, 0.94) 100%);
  border: 1px solid rgba(224, 149, 92, 0.25);
  border-top-color: rgba(255, 235, 205, 0.38);
  border-radius: 28px;
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 235, 205, 0.35),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.6),
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(224, 149, 92, 0.12);
  box-sizing: border-box;
}

.grg-footer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 280px;
}

.grg-footer-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #efe8de;
  line-height: 1.45;
  margin: 0;
}
.grg-footer-note strong {
  color: var(--amber-hot);
  font-style: normal;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.grg-footer-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.grg-footer-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.72rem 1.65rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.3s ease;
  overflow: hidden;
}

.grg-footer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  border-radius: 9999px 9999px 120px 120px;
  pointer-events: none;
  opacity: 0.85;
}

/* Secundario: Escuchar Discografía (Vidrio Ahumado Vintage / Warm Smoky Glass) */
.grg-glass-btn--vintage-secondary,
.grg-footer-btn--secondary {
  background: linear-gradient(135deg, rgba(185, 110, 50, 0.28) 0%, rgba(135, 75, 35, 0.18) 45%, rgba(40, 22, 14, 0.7) 100%);
  color: #eec896;
  border: 1px solid rgba(224, 145, 85, 0.35);
  border-top-color: rgba(245, 175, 100, 0.55);
  border-bottom-color: rgba(120, 55, 22, 0.5);
  box-shadow:
    inset 0 1.2px 1px 0 rgba(245, 175, 100, 0.45),
    inset 0 0.5px 0.5px 0 rgba(220, 140, 75, 0.3),
    inset 0 -1.5px 2px 0 rgba(15, 6, 2, 0.6),
    0 8px 24px -4px rgba(0, 0, 0, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.4);
}
.grg-glass-btn--vintage-secondary::before,
.grg-footer-btn--secondary::before {
  background: linear-gradient(180deg, rgba(240, 165, 80, 0.16) 0%, rgba(180, 95, 30, 0.01) 100%);
}
@media (hover: hover) and (pointer: fine) {
  .grg-glass-btn--vintage-secondary:hover,
  .grg-footer-btn--secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(215, 130, 60, 0.38) 0%, rgba(155, 85, 38, 0.26) 50%, rgba(55, 28, 16, 0.8) 100%);
    border-color: rgba(245, 175, 105, 0.55);
    border-top-color: rgba(255, 200, 125, 0.75);
    color: #ffdfaa;
    box-shadow:
      inset 0 1.5px 1px 0 rgba(255, 200, 125, 0.65),
      inset 0 -1px 2px 0 rgba(15, 6, 2, 0.5),
      0 12px 30px -4px rgba(0, 0, 0, 0.75),
      0 0 20px rgba(224, 149, 92, 0.35);
  }
}
.grg-glass-btn--vintage-secondary:active,
.grg-footer-btn--secondary:active {
  transform: translateY(0.5px) scale(0.98);
}

/* ==========================================================================
   APARTADO EXCLUSIVO: TODA LA BANDA JUNTA (GARAGE)
   ========================================================================== */
.grg-fullband-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1520px;
  margin: 3.5rem auto 1.5rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Haz de luz cenital suave que ilumina el área */
.grg-fullband-overhead-beam {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 92vw);
  height: 520px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 195, 110, 0.2) 0%, rgba(224, 149, 92, 0.08) 45%, transparent 72%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
}

.grg-fullband-inner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0.5rem;
  box-shadow: none;
  text-align: center;
  position: relative;
  z-index: 2;
}

.grg-fullband-inner::before {
  display: none;
}

.grg-fullband-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(224, 149, 92, 0.22);
}

.grg-fullband-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 10px var(--amber-hot);
}

.grg-fullband-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.grg-fullband-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.grg-fullband-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: #dfd7ce;
  max-width: 820px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   APARTADO CINEMÁTICO: FOTOGRAFÍA DE LA BANDA COMPLETA (FUSIÓN AMBIENTAL)
   -------------------------------------------------------------------------- */
.grg-fullband-badge-wrap,
.grg-fullband-title,
.grg-fullband-desc {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.grg-fullband-inner.is-revealed .grg-fullband-badge-wrap {
  opacity: 1;
  transform: translateY(0);
}

.grg-fullband-inner.is-revealed .grg-fullband-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.grg-fullband-inner.is-revealed .grg-fullband-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.grg-fullband-card {
  position: relative;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(35px);
  filter: brightness(0.85);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease;
  max-width: 1240px;
  margin: 0 auto;
}

.grg-fullband-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: brightness(1);
}

.grg-fullband-card:hover,
.grg-fullband-card:focus-visible {
  filter: brightness(1.06) contrast(1.02);
}

.grg-fullband-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 48vw, 620px);
  overflow: hidden;
  /* Difuminado cinematográfico integral con desvanecimiento profundo en el borde superior */
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 52%, #000 42%, rgba(0,0,0,0.85) 62%, rgba(0,0,0,0.3) 84%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 8%, #000 20%, #000 80%, rgba(0,0,0,0.5) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 88% 82% at 50% 52%, #000 42%, rgba(0,0,0,0.85) 62%, rgba(0,0,0,0.3) 84%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 8%, #000 20%, #000 80%, rgba(0,0,0,0.5) 92%, transparent 100%);
  mask-composite: intersect;
}

.grg-fullband-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .grg-fullband-card:hover .grg-fullband-img {
    transform: scale(1.025);
  }
}

.grg-fullband-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(7, 5, 4, 0.4) 90%);
  pointer-events: none;
}

/* Viñeta cinematográfica envolvente con difuminado superior, lateral e inferior */
.grg-fullband-feather-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    /* Difuminado suave en la parte superior (techo y vigas) */
    linear-gradient(to bottom, #080504 0%, rgba(8, 5, 4, 0.9) 6%, rgba(8, 5, 4, 0.5) 15%, transparent 26%, transparent 76%, rgba(8, 5, 4, 0.55) 90%, #080504 100%),
    /* Difuminado suave en laterales izquierdo y derecho */
    linear-gradient(to right, #080504 0%, rgba(8, 5, 4, 0.75) 5%, transparent 16%, transparent 84%, rgba(8, 5, 4, 0.75) 95%, #080504 100%),
    /* Difuminado radial en las cuatro esquinas */
    radial-gradient(ellipse 88% 82% at 50% 52%, transparent 42%, rgba(8, 5, 4, 0.35) 65%, rgba(8, 5, 4, 0.88) 88%, #080504 100%);
}

/* Efecto haz de luz cálido cinematográfico al revelarse en scroll */
.grg-fullband-light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 205, 125, 0.0) 30%,
    rgba(255, 195, 100, 0.3) 50%,
    rgba(255, 205, 125, 0.0) 70%,
    transparent 100%
  );
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 2;
}

.grg-fullband-card.is-revealed .grg-fullband-light-sweep {
  animation: grgStageSweep 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes grgStageSweep {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 1279px) {
  .grg-cubes-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
  }
  .grg-cube-card {
    flex: 0 0 285px;
    max-width: 300px;
    height: 550px;
  }
}

@media (max-width: 1024px) {
  /* Ocultar props decorativos en pantallas medianas y móviles para evitar cualquier choque visual */
  .grg-props-layer {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Fondo cinematográfico fijo para que no se deforme ni se vuelva borroso al hacer scroll */
  .grg-bg-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    z-index: 0;
  }

  .grg-spotlight-beam {
    width: 100vw;
    height: 55%;
    opacity: 0.7;
  }

  .grg-topbar {
    padding: max(0.4rem, env(safe-area-inset-top, 0.4rem)) 0.8rem 0.4rem;
    height: 54px;
    min-height: 54px;
    z-index: 120;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .grg-glass-btn {
  }
  .grg-topbar-center,
  .grg-topbar-pill {
    display: none;
  }
  .grg-topbar-right {
    gap: 0.45rem;
  }
  .grg-ctrl-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
  }
  .grg-close-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.95rem;
  }
  .grg-scene {
    padding: 64px 0 2.5rem;
    width: 100%;
  }
  .grg-stage-intro {
    margin-bottom: 1.1rem;
    padding: 0 1.2rem;
  }
  .grg-stage-title {
    font-size: clamp(1.75rem, 6.5vw, 2.3rem);
    line-height: 1.1;
    margin-bottom: 0.35rem;
  }
  .grg-stage-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 92vw;
    margin: 0 auto 0.6rem;
    color: var(--cream-dim);
  }
  .grg-stage-hint {
    font-size: 0.68rem;
    padding: 0.35rem 0.8rem;
    background: rgba(26, 18, 14, 0.7);
    border: 1px solid rgba(224, 149, 92, 0.25);
    border-radius: 999px;
  }

  /* Carrusel horizontal táctil perfectamente centrado con peek lateral */
  .grg-cubes-wrap {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.95rem;
    padding: 0.5rem calc((100vw - 280px) / 2) 1.4rem;
    scroll-padding: 0 calc((100vw - 280px) / 2);
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
  .grg-cubes-wrap::-webkit-scrollbar {
    display: none;
  }

  /* Cartas compactas y proporcionadas para pantallas móviles */
  .grg-cube-card {
    flex: 0 0 280px;
    width: 280px;
    max-width: 82vw;
    height: 485px;
    scroll-snap-align: center;
  }

  .grg-face {
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }

  .grg-inst-art-wrap {
    margin: 0.35rem 0;
  }
  .grg-inst-svg {
    width: 95px;
    height: 95px;
  }
  .grg-inst-art-halo {
    width: 115px;
    height: 115px;
  }
  .grg-inst-title {
    font-size: 1.22rem;
    letter-spacing: 0.06em;
  }

  .grg-flip-cta {
    height: 42px;
    font-size: 0.72rem;
    padding: 0 0.85rem;
    border-radius: 8px;
    box-sizing: border-box;
  }

  /* Cara posterior de las cartas */
  .grg-member-photo-frame {
    width: 100%;
    height: 135px;
    border-radius: 8px;
    margin-bottom: 0.35rem;
  }
  .grg-member-name {
    font-size: 1.18rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
  }
  .grg-member-desc {
    font-size: 0.78rem;
    line-height: 1.48;
    max-height: 155px;
    color: #f3ede4;
  }
  .grg-member-actions {
    margin-top: 0.5rem;
    gap: 0.35rem;
  }
  .grg-sound-sample-btn,
  .grg-member-ig-btn {
    height: 38px;
    font-size: 0.66rem;
    border-radius: 8px;
    padding: 0 0.5rem;
  }
  .grg-flip-back-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
  }

  /* Barra de acción con botón central */
  .grg-cubes-action-bar {
    margin: 0.6rem auto 2.2rem;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  .grg-flip-all-cubes-btn {
    width: min(100%, 340px);
    height: 44px;
    padding: 0 1.2rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    border-radius: 8px;
    justify-content: center;
  }

  /* Sección cinemática de toda la banda */
  .grg-fullband-section {
    margin: 1.5rem auto 1.5rem;
    padding: 0 0.8rem;
    box-sizing: border-box;
  }
  .grg-fullband-inner {
    padding: 0.8rem 0.2rem;
  }
  .grg-fullband-title {
    font-size: clamp(1.45rem, 5.8vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: 0.04em;
  }
  .grg-fullband-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 95vw;
    margin-bottom: 1.1rem;
    color: var(--cream-dim);
  }
  .grg-fullband-img-wrap {
    height: clamp(180px, 48vw, 260px);
    border-radius: 10px;
    border: 1px solid rgba(224, 149, 92, 0.25);
  }
}

@media (max-width: 480px) {
  .grg-cube-card {
    flex: 0 0 270px;
    width: 270px;
    max-width: 82vw;
    height: 475px;
  }
  .grg-cubes-wrap {
    padding: 0.5rem calc((100vw - 270px) / 2) 1.2rem;
    scroll-padding: 0 calc((100vw - 270px) / 2);
  }
  .grg-face {
    padding: 1rem 0.9rem;
  }
  .grg-inst-art-wrap svg {
    height: 90px;
    max-width: 110px;
  }
  .grg-inst-title {
    font-size: 1.18rem;
  }
  .grg-member-photo-frame {
    height: 130px;
  }
  .grg-member-name {
    font-size: 1.15rem;
  }
  .grg-member-desc {
    font-size: 0.76rem;
    max-height: 145px;
  }
}


/* Rendimiento móvil: blur grande reducido */
@media (max-width: 768px) {
  .grg-fullband-overhead-beam { filter: blur(24px); }
}
