/* ============================================== */
/* Foro de recomendaciones                        */
/* ============================================== */

.foro-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 16px 40px;
}

.foro-titulo {
    color: #ffffff;
    margin-bottom: 8px;
}

.foro-intro {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Formulario de publicación */
.foro-form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.foro-form-label {
    display: block;
    font-weight: 700;
    color: #560D47;
    margin-bottom: 8px;
}

.foro-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #d9c9e3;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1em;
    font-family: inherit;
    color: #2d1b27;
    resize: vertical;
}

.foro-form textarea:focus {
    outline: none;
    border-color: #560D47;
}

.foro-form-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.foro-anonimo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b5a78;
    font-size: 0.95em;
    cursor: pointer;
}

.foro-anonimo input {
    accent-color: #560D47;
    width: 18px;
    height: 18px;
}

.foro-boton {
    background: linear-gradient(135deg, #7d1e65, #981871);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.foro-boton:hover {
    background: linear-gradient(135deg, #8d2575, #a81e81);
}

.foro-boton:active {
    transform: scale(0.98);
}

/* Aviso para anónimos */
.foro-login-aviso {
    background-color: #f5f0ff;
    color: #2d1b27;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 26px;
    line-height: 1.5;
}

.foro-login-aviso a {
    color: #560D47;
    font-weight: 700;
}

/* Lista de publicaciones */
.foro-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.foro-post {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.foro-post-cabecera {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.foro-autor {
    font-weight: 700;
    color: #560D47;
}

.foro-autor--anonimo {
    color: #6b5a78;
    font-style: italic;
}

.foro-fecha {
    color: #8a7a94;
    font-size: 0.85em;
    flex-shrink: 0;
}

.foro-cuerpo {
    color: #2d1b27;
    line-height: 1.55;
    margin: 0;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.foro-eliminar-form {
    margin-top: 10px;
    text-align: right;
}

.foro-eliminar {
    background: none;
    border: 1px solid #d9c9e3;
    border-radius: 6px;
    color: #8a2432;
    font-size: 0.85em;
    padding: 4px 12px;
    cursor: pointer;
}

.foro-eliminar:hover {
    background-color: #ffdddd;
    border-color: #8a2432;
}

.foro-vacio {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 20px 0;
}
