/*
  LIZNA — Pop-up "Rasca y gana" (solo home, visitantes directos de la web).
  3 casillas, se rasca una con el ratón/dedo y aparece un premio: WEB2/WEB3/WEB4 (seguros)
  o WEB15 (premio mayor). El resto de estilos (inputs, botones) reutiliza clases de Tailwind
  ya usadas en las landings sociales.
*/

.rasca-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 4, 14, 0.72);
  backdrop-filter: blur(6px);
}
.rasca-overlay.is-active { display: flex; }

.rasca-modal {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #2A003A 0%, #17081f 100%);
  border: 1px solid rgba(201, 162, 77, 0.35);
  border-radius: 1.75rem;
  padding: 2rem 1.75rem;
}

.rasca-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(246, 243, 238, 0.25);
  color: var(--lizna-ivory);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.rasca-close:hover { border-color: var(--lizna-gold); color: var(--lizna-gold); }

.rasca-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rasca-box {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  border: 1px solid rgba(201, 162, 77, 0.4);
  overflow: hidden;
  background: #141110;
  transition: opacity 0.4s ease;
}
.rasca-box.is-locked { opacity: 0.4; pointer-events: none; }
.rasca-box.is-winner { border-color: var(--lizna-gold); box-shadow: 0 0 0 2px rgba(201, 162, 77, 0.35); }

.rasca-prize {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  color: var(--lizna-gold);
}

.rasca-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.rasca-box.is-revealed canvas { pointer-events: none; }

#rasca-boxes-wrap.is-hidden { display: none; }

.rasca-result { display: none; }
.rasca-result.is-visible { display: block; }

.rasca-field-error { display: none; }
.rasca-field.has-error input { border-color: #E10613 !important; }
.rasca-field.has-error .rasca-field-error { display: block; }
.rasca-checkbox.has-error span { color: #E10613; }

.rasca-form.is-hidden { display: none; }
.rasca-code-box { display: none; }
.rasca-code-box.is-visible { display: block; }
