/* ============================================================
   Hotel Roseliere — Pantalla de carga (splash)
   ============================================================ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 34%, #4a3059 0%, #2a1c3f 42%, #150f21 100%);
  font-family: var(--font-sans);
  opacity: 1;
  transition: opacity 0.55s ease;
}

.splash.is-done {
  opacity: 0;
  pointer-events: none;
}

/* Si ya se mostró en esta sesión, no vuelve a aparecer */
html.splash-skip .splash {
  display: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px;
  max-width: min(560px, 88vw);
  text-align: center;
}

/* El emblema HR ya trae su propio fondo (la piscina al atardecer) */
.splash-logo {
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(201, 162, 94, 0.55),
    0 14px 44px rgba(0, 0, 0, 0.55);
  animation: splash-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: splash-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.splash-name b {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

/* Filete dorado entre el nombre y la ciudad */
.splash-name i {
  display: block;
  width: 62px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.splash-name span {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.splash-bar {
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  animation: splash-in 0.5s ease 0.34s both;
}

.splash-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  animation: splash-slide 1.15s ease-in-out infinite;
}

.splash-text {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  animation: splash-in 0.5s ease 0.42s both;
}

/* ============================================================
   Loader reutilizable — se superpone al contenedor del visor,
   no a toda la pantalla.
   ============================================================ */
.hr-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, #4a3059 0%, #2a1c3f 46%, #150f21 100%);
  font-family: var(--font-sans);
  opacity: 1;
  transition: opacity 0.45s ease;
}

.hr-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.hr-loader .splash-inner {
  gap: 18px;
  animation: splash-in 0.45s ease both;
}

.hr-loader .splash-logo {
  max-width: 118px;
  box-shadow:
    0 0 0 1px rgba(201, 162, 94, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.5);
  animation: none;
}

.hr-loader .splash-name { animation: none; }
.hr-loader .splash-name b { font-size: 1.15rem; }
.hr-loader .splash-bar,
.hr-loader .splash-text { animation: none; }

@keyframes splash-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes splash-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@media (max-width: 600px) {
  .splash-inner { gap: 18px; }
  .splash-logo { max-width: 150px; }
  .hr-loader .splash-logo { max-width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .splash, .splash-logo, .splash-name, .splash-bar, .splash-text {
    animation: none;
    transition: none;
  }
  .splash-bar span { animation: none; width: 100%; }
}
