/* ============================================
   RESET Y VARIABLES GLOBALES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores */
  --color-primary: #FF4500;
  --color-primary-hover: #FF6347;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Sombras */
  --shadow-sm: 0 0 8px var(--color-primary);
  --shadow-md: 0 0 15px var(--color-primary-hover);
  --shadow-lg: 0 0 20px var(--color-primary), 0 0 30px var(--color-primary-hover);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 0.75rem;   /* 12px */
  --spacing-md: 1.25rem;   /* 20px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 1.875rem;  /* 30px */
  
  /* Tipografía base (1rem = 16px) */
  --font-xs: 0.875rem;     /* 14px */
  --font-sm: 1rem;         /* 16px */
  --font-md: 1.25rem;      /* 20px */
  --font-lg: 2rem;         /* 32px */
  --font-xl: 3rem;         /* 48px */
  
  /* Layout */
  --container-max-width: 600px;
  --border-radius: 0.375rem; /* 6px */
}

/* ============================================
   ESTRUCTURA BASE - SIN SCROLL
   ============================================ */
html {
  height: 100%;
}

body {
  height: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-white);
  background-color: var(--color-black);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ============================================
   FONDO CON IMAGEN Y CAPAS
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/tattoo-bg.png') center / cover no-repeat;
  z-index: -3;
  pointer-events: none;
}

/* Capa oscura gradiente - mejora legibilidad */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, 
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.70) 40%,
    rgba(0, 0, 0, 0.85) 70%,
    rgba(0, 0, 0, 0.95) 100%);
  z-index: -2;
  pointer-events: none;
}

/* Capa de ruido estático */
.noise-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.1"/%3E%3C/svg%3E');
  background-repeat: repeat;
  background-size: 200px;
  z-index: -1;
  pointer-events: none;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  max-width: var(--container-max-width);
  width: 90%;
  position: relative;
  z-index: 1;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  width: 7.5rem;   /* 120px */
  height: auto;
  margin-bottom: var(--spacing-xs);
  display: block;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
.hero h1 {
  font-size: var(--font-xl);
  font-weight: 700;
  text-shadow: var(--shadow-sm), var(--shadow-md);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: var(--font-md);
  line-height: 1.5;
  max-width: 90%;
  opacity: 0.92;
  font-weight: 400;
}

/* ============================================
   FORMULARIO
   ============================================ */
#waitlist-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  width: 100%;
  justify-content: center;
}

.form-group {
  flex: 0 1 280px;
  min-width: 200px;
}

#waitlist-form input {
  width: 100%;
  padding: var(--spacing-sm) 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #333333;
  font-size: var(--font-sm);
  outline: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  font-family: inherit;
}

#waitlist-form input::placeholder {
  color: #999999;
  opacity: 1;
}

#waitlist-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
  outline: none;
}

#waitlist-form button {
  padding: var(--spacing-sm) 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-sm);
  font-family: inherit;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

#waitlist-form button:hover {
  background: var(--color-primary-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

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

/* ============================================
   REDES SOCIALES
   ============================================ */
.socials {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.socials a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  font-size: var(--font-sm);
  padding: var(--spacing-xs) 0;
}

.socials a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.socials span {
  opacity: 0.4;
  user-select: none;
}

/* ============================================
   POPUP DE CONFIRMACIÓN
   ============================================ */
#popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-white);
  padding: 0.875rem 1.75rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: var(--font-sm);
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--color-primary);
  text-align: center;
  border: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#popup[aria-hidden="false"] {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.popup-icon {
  font-size: 1.125rem;
  font-weight: 700;
}

.popup-message {
  line-height: 1;
}

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