/* Variables y colores temáticos de la galería de invitaciones */
:root {
  --color-fondo: #0a0a0f;
  --color-superficie: rgba(20, 20, 30, 0.75);
  --color-primario: #00f0ff;
  --color-secundario: #ff007f;
  --color-acento: #9d4edd;
}

/* Limpieza de elementos heredados del Home */
.mesh-bg, .noise-overlay {
  display: none;
}

/* ========================================================
   SOLUCIÓN AL GLITCH: Contenedor sobredimensionado (120vh)
   para que la barra móvil jamás descubra los bordes del canvas.
   ======================================================== */
#smoke-bg {
  position: fixed;
  top: -10vh; /* Lo subimos un poco para cubrir de sobra arriba */
  left: 0;
  width: 100vw;
  height: 120vh; /* ¡Más alto que la pantalla para absorber el cambio de la barra! */
  z-index: -1;
  background-color: #0a0a0f;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

#smoke-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Tipografías y efectos visuales */
.section-title {
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5), 0 0 30px rgba(255, 0, 127, 0.3);
}

.section-subtitle {
  color: var(--color-secundario);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.hero-desc {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.6), 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Footer Inmersivo */
.auras-footer {
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.3) 60%, transparent 100%);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-links a {
  color: var(--color-primario);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.footer-links a:hover {
  color: var(--color-secundario);
  text-shadow: 0 0 12px rgba(255, 0, 127, 0.6);
}

.footer-bottom div {
  color: #d1d1d6;
}

.big-footer-text {
  -webkit-text-stroke: 1.5px var(--color-secundario);
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.2);
}

.big-footer-text:hover {
  -webkit-text-stroke: 1.5px var(--color-primario);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

/* Cuadrícula adaptativa para las tarjetas (Móvil y Escritorio) */
.invitations-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  margin-top: 4rem;
  width: 100%;
}

.invitations-grid .bento-item {
  width: 100%;
  max-width: 360px; 
  height: auto;     
  aspect-ratio: 9 / 16; 
  margin: 0;
  grid-column: auto; 
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 15px rgba(255, 0, 127, 0.05);
  background: rgba(10, 10, 15, 0.85);
}

.invitations-grid .bento-item:hover {
  border-color: var(--color-secundario);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.4), inset 0 0 25px rgba(0, 240, 255, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.invitations-grid .bento-tag {
  color: var(--color-primario);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}

/* Pantallas grandes / Escritorio */
@media (min-width: 768px) {
  .invitations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .invitations-grid .bento-item {
    max-width: 100%;
  }
}