html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  background-color: #2a1a14;
  overflow-x: hidden;
}

/* Background image — blurred + larger tile so it reads as texture, not mosaic */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  background-image: url('images/panchitos.jpeg');
  background-repeat: repeat;
  background-size: 25% auto;
  z-index: -2;
}

/* Soft vignette / dark layer for contrast */
.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Hero — fading welcome message, full viewport */
.hero {
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.welcome {
  text-align: center;
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 5rem);
  line-height: 1.05;
  letter-spacing: 1px;
  margin: 0;
  max-width: 16ch;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.welcome span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotate(0deg) scale(0.6);
  font-size: var(--size, 1em);
  color: var(--color, #fff);
  margin: 0.05em 0.12em;
  animation:
    popIn 0.7s cubic-bezier(.34, 1.56, .64, 1) forwards,
    float 4s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * 0.22s),
    calc(var(--i) * 0.22s + 0.7s);
}

.welcome .big {
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.25),
    0 8px 28px rgba(0, 0, 0, 0.6);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg)) scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-5px) rotate(calc(var(--rot, 0deg) * 0.6)); }
}

.welcome span:hover {
  cursor: default;
  animation:
    wiggle 0.5s ease-in-out,
    float 4s ease-in-out infinite 0.5s;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(var(--rot, 0deg)) scale(1); }
  25%      { transform: rotate(calc(var(--rot, 0deg) - 8deg)) scale(1.15); }
  75%      { transform: rotate(calc(var(--rot, 0deg) + 8deg)) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome span {
    animation: none;
    opacity: 1;
    transform: rotate(var(--rot, 0deg));
  }
}

.card-wrap {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
}

.card {
  position: relative;
  background: #e9d8bf;
  border: 6px solid #b33a2b;
  border-radius: 25px;
  padding: clamp(28px, 7vw, 56px);
  width: 100%;
  max-width: 620px;
  min-height: 75svh;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#form {
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  color: #b33a2b;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1.05;
  margin: 0 0 25px 0;
}

h1 span {
  display: block;
}

.option {
  display: flex;
  align-items: center;
  margin: 15px 0;
  cursor: pointer;
  line-height: 1.3;
}

.option input {
  display: none;
}

.circle {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  border: 2px solid #b33a2b;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  box-sizing: border-box;
}

.option input:checked + .circle::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #b33a2b;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 25px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background: #a93226;
}

.btn-icon {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.2em;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

button:hover .btn-icon {
  transform: translateY(1px) rotate(-15deg) scale(1.15);
}
