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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  color: white;
}

body {
  position: fixed;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.container {
  background-image: url("images/background-wapi.webp");
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  position: relative;
}

/* Overlay para garantizar contraste WCAG AA */
.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Todo el contenido por encima del overlay */
.container > * {
  position: relative;
  z-index: 1;
}

.email {
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.email:hover {
  opacity: 0.8;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

.logo {
  width: 150px;
  height: auto;
  margin: 0 auto;
}

.message {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(20px, 5vw, 80px);
}

.message h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  max-width: 750px;
  line-height: 1.1;
}

footer {
  text-align: center;
  padding-left: clamp(20px, 5vw, 80px);
}

/* Focus visible para navegación por teclado */
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    background-image: url("images/background-wapi-mobile.webp");
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .email {
    text-align: left;
  }

  footer {
    text-align: left;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: block;
  }
}
