/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CUERPO */
body {
  min-height: 100vh;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0%, #020617 60%, #000000 100%);
  color: #ffffff;
  overflow-x: hidden;
}

/* CONTENEDOR PRINCIPAL */
.snow-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* CANVAS NIEVE */
#snowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* CONTENIDO */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.content h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  line-height: 1.45;
}

.content .hint {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  opacity: 0.8;
}

/* FORMULARIO */
.form-box {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.form-box input,
.form-box select {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: none;
  outline: none;
  width: 100%;
  font-size: 1.15rem;
  margin: 0; /* 🔥 Unifica separación entre inputs */
}

/* --- Mover flecha del SELECT --- */
.form-box select {
  background-position: right 12px center !important; /* 🔥 Flecha 10px a la izq */
}

/* BOTÓN */
.form-box button {
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.2s ease;
}

.form-box button:hover {
  background: #d4d4d4;
}

/* MOBILE */
@media (max-width: 360px) {
  .content {
    padding: 3rem 1rem;
  }

  .content h1 {
    font-size: 1.8rem;
  }

  .form-box input,
  .form-box button {
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
  }
}

/* TABLETS */
@media (min-width: 600px) and (max-width: 900px) {
  .content {
    padding: 5rem 2rem;
  }

  .content h1 {
    font-size: 3rem;
  }

  .content p {
    font-size: 1.4rem;
  }

  .form-box input,
  .form-box button,
  .form-box select {
    font-size: 1.3rem;
  }
}

/* PANTALLAS GRANDES */
@media (min-width: 1200px) {
  .content {
    padding-top: 6rem;
  }

  .form-box {
    max-width: 450px;
  }

  .form-box input,
  .form-box button,
  .form-box select {
    font-size: 1.25rem;
  }
}

/* FIX SAFARI */
.form-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

/* EXCLUIR CHECKBOX */
.form-box input:not([type="checkbox"]),
.form-box button,
.form-box select {
  display: block !important;
  width: 100% !important;
  font-size: 16px !important;
}

/* --------------------------------------------------------- */
/* OCULTAR FORMULARIO COMPLETO */
/* --------------------------------------------------------- */

#formIntercambio.oculto,
#formIntercambio.oculto * {
  display: none !important;
}

#introBlock.oculto {
  display: none !important;
}

/* --------------------------------------------------------- */
/* EFECTO FELIZ NAVIDAD */
/* --------------------------------------------------------- */

.feliz-navidad-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feliz-navidad {
  font-family: 'Pacifico', cursive;
  font-size: 4rem;
  color: #ffffff;
  display: inline-flex;
  gap: 0.05em;
}

.feliz-navidad span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-120px);
  animation: dropLetter 0.9s ease-out forwards;
}

@keyframes dropLetter {
  0% {
    opacity: 0;
    transform: translateY(-120px) scale(0.8) rotate(-4deg);
  }
  60% {
    opacity: 1;
    transform: translateY(8px) scale(1) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) rotate(0deg);
  }
}

.texto-registrado {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 500;
  opacity: 0;
  text-align: center;
  animation: aparecerTexto 1s ease forwards;
  animation-delay: 2s;
  color: #ffffff;
}

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

/* --------------------------------------------------------- */
/* CHECKBOX + SELECT RESPONSABLE */
/* --------------------------------------------------------- */

.linea-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: -4px;     /* 🔥 Iguala separación al input */
  margin-bottom: -4px;  /* 🔥 Mantiene misma distancia */
}

.linea-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.linea-check label {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

/* Ocultar select por defecto */
.responsable-hidden {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}

/* --------------------------------------------------------- */
/* ⭐ NUEVO → TEXTAREA (solo añadido, nada modificado) */
/* --------------------------------------------------------- */

.form-box textarea {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: none;
  outline: none;
  width: 100%;
  min-height: 100px;
  resize: vertical;
  font-size: 1.15rem;
  background: #ffffff;
  color: #000;
}

.form-box textarea::placeholder {
  color: #555;
}