/* ---------- responsive.css - Mobile First ---------- */
/* Breakpoints: 350px, 768px, 1024px */

/* ---------- Variables heredadas de style.css ---------- */
:root {
  --button-color: #FF4500;
  --button-hover: #FF6347;
}

/* ---------- Animación global para móviles (con opacidad más oscura) ---------- */
@keyframes breatheMobile {
  0% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.92;
  }
  100% {
    opacity: 0.85;
  }
}

/* ---------- Ultra small móviles < 350px ---------- */
@media (max-width: 350px) {
  html, body {
    overflow: hidden;
    height: 100%;
  }

  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100dvh;
  }

  body::before {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
      rgba(0,0,0,0.85) 0%, 
      rgba(8,3,3,0.88) 35%, 
      rgba(0,0,0,0.92) 70%, 
      rgba(0,0,0,0.95) 100%);
    z-index: -2;
    animation: breatheMobile 5s ease-in-out infinite;
    will-change: opacity;
  }

  body::after {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .hero {
    gap: 12px;
    padding: 16px;
    width: 95%;
    min-height: auto;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.6rem;
    text-shadow: 0 0 6px var(--button-color), 0 0 12px var(--button-hover);
  }

  .hero p {
    font-size: 0.85rem;
  }

  .logo {
    width: 60px;
    margin-bottom: 8px;
  }

  #waitlist-form {
    flex-direction: column;
    gap: 10px;
  }

  #waitlist-form input[type="email"],
  #waitlist-form button {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .socials {
    gap: 8px;
  }

  #popup {
    max-width: 280px;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    white-space: normal;
    text-align: center;
  }
}

/* ---------- Móviles normales < 768px (CON respiración por opacidad) ---------- */
@media (max-width: 768px) {
  html, body {
    overflow: hidden;
    height: 100%;
  }

  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100dvh;
  }

  body::before {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
      rgba(0,0,0,0.85) 0%, 
      rgba(8,3,3,0.88) 35%, 
      rgba(0,0,0,0.92) 70%, 
      rgba(0,0,0,0.95) 100%);
    z-index: -2;
    animation: breatheMobile 5s ease-in-out infinite;
    will-change: opacity;
  }

  body::after {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .hero {
    gap: 16px;
    padding: 20px;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: auto;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
    text-shadow: 0 0 6px var(--button-color), 0 0 15px var(--button-hover);
  }

  .hero p {
    font-size: 1rem;
  }

  .logo {
    width: 80px;
    margin-bottom: 10px;
  }

  #waitlist-form {
    flex-direction: column;
    gap: 12px;
  }

  #waitlist-form input[type="email"],
  #waitlist-form button {
    width: 100%;
    font-size: 1rem;
  }

  .socials {
    gap: 12px;
  }

  #popup {
    width: 90%;
    max-width: 320px;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    white-space: normal;
  }
}

/* ---------- Tablets y laptops pequeñas < 1024px ---------- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .logo {
    width: 100px;
  }

  #waitlist-form input[type="email"] {
    padding: 12px 14px;
  }

  #waitlist-form button {
    padding: 12px 22px;
  }
}

/* ---------- Desktop grandes (>= 1024px) ---------- */
/* No se requieren estilos adicionales, usa style.css base */