@import url("https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&display=swap");

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #B3E5FC 0%, #E1F5FE 60%, #FFFFFF 100%);
  background-attachment: fixed; /* Mantiene el degradado fijo al hacer scroll */
  font-family: "Mountains of Christmas", cursive;
  display: flex;
  flex-direction: column;
  padding-top: 80px; 
}

/* Contenedor fijo y sellado a la ventana */
.fondo-nieve {
  position: fixed;
  inset: 0; /* Equivale a top:0; right:0; bottom:0; left:0; */
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  contain: strict; /* Evita que cualquier cosa interna afecte el tamaño de la página */
}

/* Los copos no se desplazan de caja, solo mueven su patrón de fondo */
.nieve, .nieve::before, .nieve::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(4px 4px at 20% 30%, #ffffff 50%, transparent),
    radial-gradient(6px 6px at 40% 70%, #ffffff 50%, transparent),
    radial-gradient(3px 3px at 60% 20%, #ffffff 50%, transparent),
    radial-gradient(5px 5px at 80% 50%, #ffffff 50%, transparent),
    radial-gradient(4px 4px at 15% 80%, #ffffff 50%, transparent),
    radial-gradient(6px 6px at 70% 90%, #ffffff 50%, transparent),
    radial-gradient(3px 3px at 90% 10%, #ffffff 50%, transparent);
  background-size: 300px 300px;
  animation: caer-fondo 12s linear infinite;
}

.nieve::before {
  background-size: 200px 200px;
  animation-duration: 18s;
  opacity: 0.6;
}

.nieve::after {
  background-size: 400px 400px;
  animation-duration: 8s;
  opacity: 0.85;
}

/* Anima la posición del patrón sin estirar ningún contenedor */
@keyframes caer-fondo {
  0% { background-position: 0 0; }
  100% { background-position: 0 300px; } /* Coincide con background-size para un bucle perfecto */
}

/* Estilo para tu contenido principal */
.contenido {
  position: relative;
  z-index: 2; /* Asegura que tu texto y botones queden por encima */
}

/* paginas internas*/
.interna {
  margin: 0;
  padding: 20px; /* Margen de seguridad en pantallas pequeñas */
  /* ESTO CENTRA LA TARJETA EN TODA LA PÁGINA */
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
}

.marco-baston {
  position: relative;
  z-index: 2; /* Queda por encima de la nieve */
  width: 100%;
  max-width: 550px; /* Ancho máximo de la tarjeta para que no se estire de más */
  background: repeating-linear-gradient(
    45deg,
    #D32F2F 0px,
    #D32F2F 12px,
    #FFFFFF 12px,
    #FFFFFF 24px
  );
  padding: 12px; /* Grosor del marco de bastón */
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.contenido-oscuro {
  background-color: #2e3c4f;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 40px 35px; /* 40px arriba/abajo, 35px izquierda/derecha */
  text-align: center; /* Opcional: centra el texto adentro */
}

.contenido-oscuro h2 {
  margin-top: 0; /* Quita el espacio extra arriba del título */
}

.contenido-oscuro p:last-child {
  margin-bottom: 0; /* Quita el espacio extra debajo del último párrafo */
}


/* --- ESTILOS DEL FORMULARIO --- */
.form-navidad {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Espacio uniforme entre campos */
  margin-top: 20px;
}

.campo-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.campo-grupo label {
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
}

.form-navidad input,
.form-navidad textarea,
.form-navidad select {
  padding: 12px 14px 14px 14px;
  border-radius: 8px;
  border: 1px solid #30363D;
  background-color: #ffffff; /* Más oscuro que el fondo de la tarjeta */
  color: #2e3c4f;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Resaltado al hacer clic en un campo */
.form-navidad input:focus,
.form-navidad textarea:focus,
.form-navidad select:focus {
  border-color: #D32F2F;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

/* --- BOTÓN ROJO CON LETRAS BLANCAS --- */
.btn-navidad {
  margin-top: 8px;
  padding: 14px 20px;
  background-color: #D32F2F; /* Rojo navidad a juego con el borde */
  color: #FFFFFF;            /* Letras blancas */
  border: none;
  border-radius: 8px;
  font-family: "Mountains of Christmas", cursive;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  width: 80%;
  transition: background-color 0.2s, transform 0.1s;
  align-self: center;
}

.btn-navidad:hover {
  background-color: #B71C1C; /* Rojo un poco más oscuro al pasar el mouse */
}

.btn-navidad:active {
  transform: scale(0.98); /* Pequeño efecto de presión al hacer clic */
}




