* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  /* Asegura que ocupen toda la pantalla */
  width: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-family: "Georgia", serif;
}

.goodbye-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
  animation: smoothReveal 0.8s ease-in-out forwards;
}

.background-goodbye {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  filter: brightness(0.45) blur(1px);
  transform: scale(1.02);
  will-change: opacity, transform;
}

.background-goodbye::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 25%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

@keyframes smoothReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
}

.goodbye-title,
.goodbye-container .title {
  position: relative;
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Impact', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .18em;
  text-align: center;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 1.5px #000;
  /* Sombra elegante consistente */
  text-transform: uppercase;
}

.ref {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  position: relative;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  paint-order: stroke fill;
  -webkit-text-stroke: 1px #000;
  text-transform: uppercase;
}

.text {
  position: relative;
  max-width: 80%;
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.6;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  paint-order: stroke fill;
  -webkit-text-stroke: 0.8px #000;
  text-transform: uppercase;
}

/* Ajuste específico de texto para pantallas 1920x1080 (solo tipografía, no layout) */
@media (min-width: 1920px) and (max-width: 3839px) {
  .goodbye-title,
  .goodbye-container .title {
    font-size: 5rem;
  }

  .ref {
    font-size: 2.4rem;
  }

  .text {
    font-size: 3rem;
  }
}

@media (min-width: 3840px) {
  .goodbye-title,
  .goodbye-container .title {
    font-size: 20rem;
  }

  .ref {
    font-size: 10rem;
  }

  .text {
    font-size: 8rem;
  }
}

@media (min-width: 7680px) {
  .goodbye-title,
  .goodbye-container .title {
    font-size: 30rem;
  }

  .ref {
    font-size: 18rem;
  }

  .text {
    font-size: 17rem;
  }
}