/* Muro de mensajes (F5.2). Usa las variables y el formulario de styles.css. */

.hero-pag .muro-intro { margin: 0; max-width: 56ch; color: var(--sobre-oscuro); font-size: 1.05rem; }

.muro { padding-bottom: 56px; }
.muro [hidden] { display: none !important; }  /* .btn y .muro-vacio fijan display */
.muro h2 { font-size: 1.3rem; }
.muro-escribir { max-width: 560px; margin-bottom: 40px; }
.muro-form { margin-top: 0; }

/* Selector de tipo: tres píldoras, el radio real queda accesible pero oculto */
.muro-tipos { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.muro-tipos legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .92rem; }
.muro-tipo { position: relative; cursor: pointer; }
.muro-tipo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.muro-tipo span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid #C9D2DE; border-radius: 999px; background: #fff; font-weight: 600; font-size: .95rem;
}
.muro-tipo span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--punto); }
.muro-tipo-memoria { --punto: var(--amarillo); }
.muro-tipo-gracias { --punto: var(--rojo); }
.muro-tipo-animo { --punto: var(--verde); }
.muro-tipo input:checked + span { border-color: var(--azul-profundo); background: var(--azul-profundo); color: #fff; }
.muro-tipo input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 2px; }

.muro-cuenta { justify-self: end; font-size: .8rem; color: var(--texto-tenue); }
.muro-cuenta.muro-cuenta-limite { color: #8f1d27; font-weight: 600; }
.muro-opc { font-weight: 400; color: var(--texto-tenue); }
.muro-fila { display: grid; gap: 16px; }
.muro-reglas { margin: 0; font-size: .88rem; color: var(--texto-tenue); line-height: 1.5; }
.muro-ok {
  margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600;
  background: #EAF5EB; border: 1.5px solid var(--verde); color: #1D5A20;
}
.btn-form[disabled] { opacity: .6; cursor: progress; }

/* Muro */
.muro-total { color: var(--texto-tenue); font-size: .95rem; margin-top: -.3em; }
.muro-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.muro-nota {
  position: relative; padding: 18px 18px 14px; border-radius: var(--radio);
  background: var(--fondo); border-top: 4px solid var(--acento); box-shadow: var(--sombra);
}
.muro-nota-memoria { --fondo: var(--azul-profundo); --acento: var(--amarillo); color: var(--sobre-oscuro); padding-left: 52px; }
.muro-nota-gracias { --fondo: #FFF3F3; --acento: var(--rojo); }
.muro-nota-animo { --fondo: #EEF7EE; --acento: var(--verde); }
.muro-nota-tipo {
  display: block; margin-bottom: 6px; font-family: var(--titulo); font-weight: 600;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-tenue);
}
.muro-nota-memoria .muro-nota-tipo { color: var(--amarillo); }
.muro-nota-texto { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.muro-nota-memoria .muro-nota-texto { color: #fff; }
.muro-nota-firma { margin: 0; font-size: .88rem; color: var(--texto-tenue); }
.muro-nota-memoria .muro-nota-firma { color: var(--label-oscuro); }
.muro-nota-firma strong { color: inherit; }

/* Vela: la llama de las notas "en memoria" y del estado vacío */
.muro-nota-memoria::before, .muro-vacio-vela::before {
  content: ""; position: absolute; width: 14px; height: 22px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #FFF6DC 0 22%, var(--amarillo) 48%, #F08C1A 100%);
  box-shadow: 0 0 14px 4px rgba(255, 193, 7, .35);
  animation: muro-llama 3.2s ease-in-out infinite alternate;
}
.muro-nota-memoria::before { left: 20px; top: 22px; }
.muro-nota-memoria::after {
  content: ""; position: absolute; left: 22px; top: 46px; width: 10px; height: 26px;
  border-radius: 2px; background: linear-gradient(#F4EAD5, #D9CBAE);
}
@keyframes muro-llama {
  from { transform: scale(1) rotate(-2deg); opacity: .92; }
  to { transform: scale(1.06, 1.1) rotate(2deg); opacity: 1; }
}

.muro-vacio {
  text-align: center; padding: 34px 22px 26px; border-radius: var(--radio);
  background: var(--azul-profundo); color: var(--sobre-oscuro);
}
.muro-vacio-vela { position: relative; display: block; width: 14px; height: 50px; margin: 0 auto 16px; }
.muro-vacio-vela::before { left: 0; top: 0; }
.muro-vacio-vela::after {
  content: ""; position: absolute; left: 1px; top: 24px; width: 12px; height: 26px;
  border-radius: 2px; background: linear-gradient(#F4EAD5, #D9CBAE);
}
.muro-vacio-titulo { font-family: var(--titulo); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: .4em; }
.muro-vacio p:last-child { margin: 0 auto; max-width: 44ch; font-size: .95rem; }

.muro-mas { margin-top: 18px; background: var(--gris-claro); color: var(--azul-profundo); border: 1.5px solid var(--borde); }

@media (min-width: 700px) {
  .muro-fila { grid-template-columns: 1fr 1fr; }
  .muro-lista { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (min-width: 960px) {
  .muro-lista { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .muro-nota-memoria::before, .muro-vacio-vela::before { animation: none; }
}
