/* ---------- Reset básico ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Variables de color ---------- */
:root {
  --button-color: #FF4500;
  --button-hover: #FF6347;
  --text-color: #ffffff;
}

/* ---------- Body con fondo de tatuaje + gradiente palpitante + ruido ---------- */
body {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: url('tattoo-bg.png') center/cover no-repeat fixed;
  background-color: #000000;
  position: relative;
}

/* Gradiente radial con efecto respiración (desktop) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, 
    rgba(0,0,0,0.75) 0%, 
    rgba(8,3,3,0.82) 35%, 
    rgba(0,0,0,0.88) 70%, 
    rgba(0,0,0,0.92) 100%);
  z-index: -2;
  animation: breathe 6s ease-in-out infinite;
  will-change: transform;
}

/* Ruido sutil para eliminar banding */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="1" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.06"/%3E%3C/svg%3E');
  background-repeat: repeat;
  background-size: 200px;
  z-index: -1;
  pointer-events: none;
}

/* Animación respiración desktop (con escala) */
@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
}

/* ---------- Contenedor principal ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  position: relative;
  z-index: 1;
}

/* ---------- Logo ---------- */
.logo {
  width: 120px;
  margin-bottom: 15px;
}

/* ---------- Titular ---------- */
.hero h1 {
  font-size: 3rem;
  text-shadow: 0 0 8px var(--button-color), 0 0 20px var(--button-hover);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
}

/* ---------- Descripción ---------- */
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.5s;
}

/* ---------- Formulario ---------- */
#waitlist-form {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.8s;
}

.input-container {
  flex: 1;
}

#waitlist-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#waitlist-form button {
  padding: 12px 24px;
  background: var(--button-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 0 10px var(--button-color), 0 0 20px var(--button-hover);
}

#waitlist-form button:hover {
  background: var(--button-hover);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--button-color), 0 0 30px var(--button-hover);
}

#waitlist-form button:active {
  transform: scale(0.98);
}

/* ---------- Redes sociales ---------- */
.socials {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s forwards;
  animation-delay: 1.1s;
}

.socials a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s, transform 0.2s;
}

.socials a:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.socials span {
  opacity: 0.5;
}

/* ---------- Popup ---------- */
#popup {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: popupShow 0.5s ease;
  white-space: nowrap;
}

/* ---------- Utilidades ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Animaciones ---------- */
@keyframes popupShow {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Mensaje de error inline (opcional) ---------- */
.error-msg {
  font-size: 0.9rem;
  color: #ffd966;
  margin-top: 5px;
  text-align: left;
}