/* =====================================================================
   herramientas.css — estilos compartidos para piezas gratuitas
   (Ofrenda al Linaje, Honra al Excluido, Mini-quiz, Meditación)
   ===================================================================== */

/* ----- Hero compartido ----- */
.hr-hero { min-height: 280px; }

/* ----- Tarjeta del formulario ----- */
.hr-form-card {
  background: rgba(247, 241, 227, 0.9);
  border: 1px solid rgba(58, 36, 16, 0.10);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 8px 28px -10px rgba(58, 36, 16, 0.12);
}
@media (min-width: 640px) {
  .hr-form-card { padding: 2.5rem 2.2rem; }
}

.hr-form-titulo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: #3a2410;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hr-input-group {
  margin-bottom: 1.2rem;
}
.hr-input-group label {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6842;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.hr-input-group label .opcional {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(58, 36, 16, 0.50);
  font-weight: 400;
  font-style: italic;
}

.hr-input-group input,
.hr-input-group select,
.hr-input-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fdfaf3;
  border: 1.5px solid rgba(58, 36, 16, 0.15);
  border-radius: 10px;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: #3a2410;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hr-input-group input:focus,
.hr-input-group select:focus,
.hr-input-group textarea:focus {
  outline: none;
  border-color: #c8201f;
  background: #fff;
}
.hr-input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path fill='%238a6842' d='M7 10L2 5h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

/* ----- Auxiliar de input (género auto + override) ----- */
.hr-input-aux {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.hr-input-aux-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: #8a6842;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hr-genero-pill {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.78rem !important;
}

/* ----- Pills de estilo ----- */
.hr-estilo-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hr-pill {
  padding: 0.55rem 1.1rem;
  background: #fdfaf3;
  border: 1.5px solid rgba(58, 36, 16, 0.15);
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3a2410;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hr-pill:hover {
  border-color: #c8201f;
  color: #c8201f;
}
.hr-pill.hr-active {
  background: #c8201f;
  border-color: #c8201f;
  color: #fff;
}

/* ----- Preview canvas ----- */
.hr-preview-wrap {
  position: sticky;
  top: 100px;
}
@media (max-width: 767px) {
  .hr-preview-wrap { position: static; }
}

.hr-preview-frame {
  position: relative;
  background: #fdfaf3;
  border: 1px solid rgba(58, 36, 16, 0.10);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 12px 36px -16px rgba(58, 36, 16, 0.30);
  aspect-ratio: 9 / 16;
  max-width: 380px;
  margin: 0 auto;
  overflow: hidden;
}
.hr-preview-frame.cuadrado { aspect-ratio: 1 / 1; }

.hr-preview-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f1e3;
}

.hr-preview-overlay {
  position: absolute;
  inset: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(247, 241, 227, 0.95);
  border-radius: 8px;
  border: 2px dashed rgba(201, 169, 106, 0.40);
  text-align: center;
  padding: 1rem;
}

.hr-acciones {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

/* ----- CTA zona ----- */
.hr-cta-zona { padding: 4rem 0; }

/* ----- Quiz styles (D) ----- */
.hr-quiz-card {
  background: rgba(247, 241, 227, 0.9);
  border: 1px solid rgba(58, 36, 16, 0.10);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 28px -10px rgba(58, 36, 16, 0.12);
  animation: hr-fade-in 0.35s ease;
}
@keyframes hr-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hr-quiz-progreso {
  height: 3px;
  background: rgba(58, 36, 16, 0.10);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.8rem;
}
.hr-quiz-progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8201f 0%, #c9a96a 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-quiz-pregunta {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  line-height: 1.35;
  color: #3a2410;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
@media (min-width: 640px) {
  .hr-quiz-pregunta { font-size: 1.6rem; }
}

.hr-quiz-opciones { display: flex; flex-direction: column; gap: 0.6rem; }

.hr-quiz-opcion {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: #fdfaf3;
  border: 1.5px solid rgba(58, 36, 16, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.98rem;
  color: #3a2410;
  width: 100%;
}
.hr-quiz-opcion:hover {
  border-color: #c8201f;
  background: #fff;
  transform: translateX(3px);
}

/* ----- Honra al Excluido (B) ----- */
.hr-ritual {
  background: #fdfaf3;
  border-left: 3px solid #a01816;
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: #3a2410;
  line-height: 1.75;
}
.hr-ritual p { margin-bottom: 0.9rem; }
.hr-ritual p:last-child { margin-bottom: 0; }
.hr-ritual em {
  font-style: italic;
  color: #a01816;
}

/* ----- Audio meditación (C) ----- */
.hr-audio-card {
  background: linear-gradient(135deg, #3a2410 0%, #5a3a22 100%);
  border-radius: 18px;
  padding: 2rem;
  color: #f7f1e3;
  border: 1px solid rgba(201, 169, 106, 0.30);
}
.hr-audio-titulo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: #f7f1e3;
  margin-bottom: 0.4rem;
}
.hr-audio-meta {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: rgba(247, 241, 227, 0.75);
  margin-bottom: 1.2rem;
}
.hr-audio-card audio {
  width: 100%;
  margin-bottom: 1rem;
  filter: invert(0.85) hue-rotate(180deg);
  border-radius: 8px;
}
.hr-audio-pendiente {
  background: rgba(247, 241, 227, 0.05);
  border: 1px dashed rgba(247, 241, 227, 0.25);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(247, 241, 227, 0.7);
  margin-bottom: 1rem;
}
