/* ============================================================
   coming-soon.css — Página "Próximamente / Coming Soon"
   Replica del style.css original de la carpeta /Proximamente,
   adaptado al stack actual:
   - Sin @font-face de Montserrat: usamos Inter (autoalojada)
     desde fonts.css.
   - Resto de animaciones, gradientes y layout idénticos.
   ============================================================ */

@import url('./fonts.css');

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

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 600px;
  height: 100%;
}

.logo-container {
  width: 100%;
  max-width: 380px;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* Base style for elements before animation */
.svg-logo path {
  opacity: 0;
  transform: translateY(15px);
  fill: #ffffff;
}

/* Trigger class added via JS */
.svg-logo.animate path {
  animation: fadeUpLogo 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-container {
  height: 60px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animated-text {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.text-anim {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
  animation: textSwap 7s infinite ease-in-out;
}

.text-2 {
  animation-delay: 3.5s;
}

@keyframes textSwap {
  0%,
  5% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(15px);
  }

  15%,
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }

  55%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-15px);
  }
}

@media (min-width: 768px) {
  .logo-container {
    max-width: 500px;
  }
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Background Image System */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* Mouse ignores this entire container */
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.1);
  animation: premiumBgEntry 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  pointer-events: none;
  /* Mouse ignores the image itself */
  user-select: none;
  -webkit-user-drag: none;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Degradado oscuro (vignette) para enmarcar el contenido */
  background: radial-gradient(circle,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.8) 100%);
  pointer-events: auto;
}

@keyframes premiumBgEntry {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.85;
    /* Sustancial pero permite ver el texto claramente */
    transform: scale(1);
  }
}

/* Respeta prefers-reduced-motion: sin animaciones intensas */
@media (prefers-reduced-motion: reduce) {
  .svg-logo path,
  .text-anim,
  .background-img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Línea legal del splash (2026-08-13)
   El aviso legal y las dos políticas se sirven también con el modo activo
   (excepción en App\Core\Maintenance): mientras el splash es lo único
   público, es desde aquí desde donde hay que poder llegar a ellos. Va
   anclada abajo, discreta, sin robarle protagonismo al logo.
   ============================================================ */
.splash-legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding: 34px 20px calc(18px + env(safe-area-inset-bottom));
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  /* Velo propio, no confiado a la viñeta del fondo: la imagen la sube el
     cliente desde Ajustes y podría ser clara justo aquí abajo. Con esto los
     enlaces se leen sea cual sea la foto. */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .62) 55%, rgba(0, 0, 0, .82) 100%);
  pointer-events: none;   /* el degradado no debe tragarse clicks del fondo */
}
.splash-legal a { pointer-events: auto; }

.splash-legal a {
  position: relative;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  transition: color .25s;
}

.splash-legal a:hover,
.splash-legal a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Separador decorativo: pseudoelemento y no un carácter en el HTML, para que
   un lector de pantalla lea tres enlaces y no tres enlaces con puntos. */
.splash-legal a + a::before {
  content: "·";
  position: absolute;
  left: -12px;
  opacity: .45;
}

@media (max-width: 520px) {
  .splash-legal { font-size: 10px; gap: 6px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
