/* ==========================================================
   NRB Art Estudio — Página "Próximamente"
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

html {
  background: #000; /* color de respaldo mientras carga o si falta la imagen */
}

/* ----------------------------------------------------------
   FONDO
   Agrega tu imagen dentro de la carpeta "images/" y cambia
   "fondo.jpg" por el nombre real de tu archivo.
   Ejemplo: url('../images/mi-foto.jpg')
   ---------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  background-image: url('images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Difuminado a negro sobre la imagen (viñeta + degradado inferior) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 70%, #000 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.9) 100%);
}

/* ----------------------------------------------------------
   CONTENIDO CENTRADO
   ---------------------------------------------------------- */
.content {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.message {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 3.5em; /* deja espacio fijo para que ambos textos no salten de posición */
}

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  color: #ffffff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4.5vw, 3rem);
  white-space: normal;
}

/* Animación de cruce entre el mensaje en español e inglés.
   Ciclo total: 8s. Cada texto se muestra ~4s con un fundido suave. */
.text-es {
  animation: crossfade 8s ease-in-out infinite;
}

.text-en {
  opacity: 0;
  animation: crossfade 8s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes crossfade {
  0%, 40%   { opacity: 1; }
  50%, 90%  { opacity: 0; }
  100%      { opacity: 1; }
}

/* Respeta a quienes prefieren menos movimiento en pantalla */
@media (prefers-reduced-motion: reduce) {
  .text-es,
  .text-en {
    animation: none;
  }
  .text-es {
    opacity: 1;
  }
  .text-en {
    display: none;
  }
}
