* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
}

/* Contenedor principal */
.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 24px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: background-image 0.4s ease;
}


/* Overlay oscuro */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* Asegurar que el contenido esté arriba del overlay */
.texto,
button {
  position: relative;
  z-index: 1;
}

/* Texto principal */
.texto {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: clamp(24px, 6vw, 44px);
  line-height: 1.4;
  padding: 24px;

  /*background: rgba(0, 0, 0, 0.35);*/
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Botón */
button {
  width: 100%;
  max-width: 480px;
  padding: 18px;

  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;

  border: none;
  border-radius: 18px;

  background: #f1c40f;
  color: #1a1a1a;

  cursor: pointer;
  box-shadow: 0 8px 0 #cfa20c;
}

button:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #cfa20c;
}

@media (min-width: 768px) {
  .texto {
    max-width: 900px;
  }
}
