/* ============================================================
   BASE.CSS — Reset, bloqueo mobile-only y utilidades compartidas
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f0c1a;
  --envelope:    #f0f1f3;
  --envelope-dk: #c4c9d1;
  --seal:        #8b1a1a;
  --gold:        #c4c9d1;
  --card-bg:     #fffdf7;
  --card-text:   #2c1a0e;
  --placeholder: #c9cdd3;
  --font-script: 'Monsieur La Doulaise', cursive;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  font-family: 'Georgia', serif;
  -webkit-font-smoothing: antialiased;
}

/* ── VISTA BLOQUEADA A MOBILE ────────────────────────────────
   El contenido siempre vive dentro de una "pantalla" de max 480px.
   En escritorio se ve como si fuera un telefono centrado.       */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
}

#app-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  max-height: 932px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  transform: translateZ(0);   /* convierte a #app-scene en el "contenedor"
                                 de cualquier position:fixed adentro (ej. el
                                 boton del menu) -- asi flota alineado con
                                 el marco de 480px en vez de con toda la
                                 ventana del navegador en pantallas anchas */
}

/* ── UTILIDAD: RANURA DE IMAGEN (placeholder) ────────────────
   Usa esta clase en cualquier lugar donde despues ira una imagen.
   Solo marca el espacio, no carga nada. */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--placeholder);
  border-radius: 12px;
  background: rgba(216, 201, 163, 0.08);
  color: var(--placeholder);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 12px;
}

.img-slot span {
  opacity: 0.85;
}

/* Modificador: ranura usada como FONDO de una seccion completa.
   Se coloca detras del contenido (z-index -1) sin afectar el layout.
   Usa un patron de rayas diagonales para que sea imposible pasarla
   por alto, y la etiqueta se ancla arriba para no chocar con el
   texto real de la seccion (que suele ir centrado). */
.img-slot--section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  border-width: 0 0 3px 0;
  pointer-events: none;
  align-items: flex-start;
  padding-top: 18px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(216, 201, 163, 0.10),
      rgba(216, 201, 163, 0.10) 10px,
      rgba(216, 201, 163, 0.04) 10px,
      rgba(216, 201, 163, 0.04) 20px
    );
}

.img-slot--section-bg span {
  background: rgba(15, 12, 26, 0.75);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--placeholder);
}

/* Cuando el config.js SI tenga una imagen cargada, este helper
   convierte la ranura en <img> real (lo hace main.js). */
.img-slot.has-image {
  border: none;
  background: none;
  padding: 0;
}

.img-slot.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ── SCROLLBAR OCULTA (mobile look) ──────────────────────────── */
#invitation::-webkit-scrollbar { display: none; }
#invitation { -ms-overflow-style: none; scrollbar-width: none; }
