/* ============================================================
   Mentora — generador de invitaciones (/crear-invitacion)
   Complementa al style.css global; solo estilos del wizard.
   ============================================================ */

.gen-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 5vw, 48px);
  text-align: center;
}
.gen-hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.15;
  margin: 16px auto 14px;
  max-width: 22ch;
}
.gen-hero .lead {
  max-width: 58ch;
  margin: 0 auto 26px;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.65;
  opacity: .88;
}
.gen-cta-hero {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b2ff7 0%, #f8636b 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 12px 32px rgba(123, 47, 247, .25);
  transition: transform .15s ease;
}
.gen-cta-hero:hover { transform: translateY(-2px); }

/* ── Wizard ────────────────────────────────────────────── */
.gen-wrap {
  padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px);
  scroll-margin-top: 90px;
}
.gen-wrap .container { max-width: 880px; }

.gen-progreso {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.gen-progreso button {
  flex: 1;
  min-width: 140px;
  padding: 12px 10px;
  border: 1px solid #e3e3ec;
  background: #fff;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: #6b6b7d;
  cursor: pointer;
  transition: all .15s ease;
}
.gen-progreso button.activo {
  border-color: #7b2ff7;
  color: #7b2ff7;
  background: rgba(123, 47, 247, .06);
}
.gen-progreso button.hecho { color: #1a1a2e; }

.gen-paso h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  margin: 26px 0 16px;
}
.gen-paso h2:first-child { margin-top: 0; }

/* Tipos de evento */
.gen-tipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.gen-tipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  border: 2px solid #e3e3ec;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: #1a1a2e;
  transition: all .15s ease;
}
.gen-tipo__emoji { font-size: 1.9rem; }
.gen-tipo:hover { border-color: #c9b8f5; }
.gen-tipo.activo {
  border-color: #7b2ff7;
  background: rgba(123, 47, 247, .06);
  box-shadow: 0 8px 24px rgba(123, 47, 247, .12);
}

/* Temas */
.gen-temas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.gen-tema {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid #e3e3ec;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: #1a1a2e;
  transition: all .15s ease;
}
.gen-tema:hover { border-color: #c9b8f5; }
.gen-tema.activo {
  border-color: #7b2ff7;
  box-shadow: 0 8px 24px rgba(123, 47, 247, .12);
}
.gen-tema__muestra {
  width: 64px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
}
.gen-tema--elegante    .gen-tema__muestra { background: linear-gradient(170deg, #10172b, #1d2a4d); color: #cfa658; font-family: Georgia, serif; }
.gen-tema--floral      .gen-tema__muestra { background: linear-gradient(165deg, #f4f8f0, #fdf3f3); color: #b96a7c; font-family: Georgia, serif; border: 1px solid #eee; }
.gen-tema--romantico   .gen-tema__muestra { background: linear-gradient(170deg, #fdf0f3, #f8d8e0); color: #a8345c; font-family: Georgia, serif; border: 1px solid #f3dde3; }
.gen-tema--quinceanera .gen-tema__muestra { background: linear-gradient(160deg, #f7eefb, #ece9ff); color: #b14fc9; border: 1px solid #ece4f3; }
.gen-tema--fiesta      .gen-tema__muestra { background: linear-gradient(165deg, #14101f, #25143c); color: #2dd4bf; }
.gen-tema--clasico     .gen-tema__muestra { background: linear-gradient(170deg, #fbf7ef, #f4ecdc); color: #8c6d3f; font-family: Georgia, serif; border: 1px solid #efe6d4; }

/* Campos */
.gen-campos { display: flex; flex-direction: column; gap: 16px; }
.gen-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .gen-fila { grid-template-columns: 1fr; } }

.gen-campos label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: .92rem;
  color: #1a1a2e;
}
.gen-campos label small { font-weight: 400; opacity: .7; }
.gen-campos input,
.gen-campos textarea {
  padding: 13px 14px;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: #1a1a2e;
}
.gen-campos input:focus,
.gen-campos textarea:focus {
  outline: 2px solid #7b2ff7;
  outline-offset: 1px;
  border-color: transparent;
}

/* Preview */
.gen-preview-marco {
  border: 1px solid #e3e3ec;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(26, 26, 46, .10);
  background: #fff;
}
#gen-preview {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}

/* Botones y navegación */
.gen-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 12px;
  flex-wrap: wrap;
}
.gen-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  border: 0;
  background: #1a1a2e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, opacity .15s ease;
}
.gen-btn:hover { transform: translateY(-2px); opacity: .94; }
.gen-btn--ghost {
  background: #fff;
  color: #1a1a2e;
  border: 1px solid #d9d9e3;
}
.gen-btn--crear {
  background: linear-gradient(135deg, #7b2ff7 0%, #f8636b 100%);
  box-shadow: 0 12px 32px rgba(123, 47, 247, .25);
}

.gen-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecec;
  color: #b3261e;
  font-weight: 600;
  font-size: .92rem;
}
.gen-nota { font-size: .9rem; opacity: .75; margin-top: 10px; }

/* Éxito + upsell */
#gen-exito { text-align: center; }
#gen-exito h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 10px; }
.gen-link-caja {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 18px auto;
}
.gen-link-caja input {
  flex: 1;
  padding: 13px 14px;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  font: inherit;
  background: #f7f7fb;
}
.gen-exito-acciones {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.gen-upsell {
  margin: 34px auto 0;
  max-width: 560px;
  padding: 28px 26px;
  border-radius: 20px;
  background: #1a1a2e;
  color: #fff;
  text-align: left;
}
.gen-upsell h3 { font-size: 1.3rem; margin-bottom: 14px; text-align: center; }
.gen-upsell ul { list-style: none; padding: 0; margin: 0 0 20px; }
.gen-upsell li { padding: 6px 0; line-height: 1.5; }
.gen-upsell .gen-btn { width: 100%; }

/* Comparativa */
.gen-comparativa {
  padding: clamp(48px, 7vw, 88px) 0;
  background: #fafbfc;
}
.gen-comparativa .container { max-width: 880px; }
.gen-comparativa h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  margin-bottom: 30px;
}
.gen-tabla-wrap { overflow-x: auto; }
.gen-tabla {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(26, 26, 46, .08);
}
.gen-tabla th, .gen-tabla td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #f0f0f5;
  font-size: .95rem;
}
.gen-tabla th {
  background: #1a1a2e;
  color: #fff;
  font-size: .9rem;
}
.gen-tabla th:nth-child(2), .gen-tabla td:nth-child(2),
.gen-tabla th:nth-child(3), .gen-tabla td:nth-child(3) {
  text-align: center;
}
.gen-tabla td:nth-child(3) { font-weight: 600; }
.gen-comparativa__cta {
  text-align: center;
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .gen-btn, .gen-cta-hero, .gen-tipo, .gen-tema { transition: none; }
}
