* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  height: 100vh;
  background: url('../media/fondo.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: Arial, sans-serif;
  overflow: hidden;
}
.buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 1;
}
.btn {
  width: 300px;
  height: 100px;
  background-color: rgba(255, 0, 0, 0.836);
  color: #ffffff;
  font-size: 1.8rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
.btn:hover,
.btn:active,
.btn:focus {
  background-color: rgb(255, 78, 78);
  transform: scale(1.08);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.overlay video {
  max-width: 100%;
  max-height: 100%;
  transition: filter 0.7s cubic-bezier(.4,0,.2,1); /* transición suave */
}

.overlay video.blur-anim {
  animation: blurPulse 1.3s ease-in-out 0s 3 forwards;
}

@keyframes blurPulse {
  0% { filter: blur(0px);}
  50% { filter: blur(10px);}
  100% { filter: blur(0px);}
}
.blur-bg {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: backdrop-filter 0.6s;
}
h1 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.6);
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-align: center;
}
.overlay-text {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -120%);
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.7);
  z-index: 3;
  pointer-events: none;
}

.overlay-text.animate {
  animation: pulse 1.3s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: translate(-50%, -120%) scale(1);}
  50% { transform: translate(-50%, -120%) scale(1.18);}
  100% { transform: translate(-50%, -120%) scale(1);}
}
.timeout-prompt {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
}
.timeout-card {
  background: #fff;
  color: #111;
  padding: 28px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  width: min(90vw, 420px);
  text-align: center;
}
.timeout-card h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}
.timeout-card p {
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.btn-secondary {
  padding: 12px 22px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background: #0078d7;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #0a89ef;
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
